Permalink
Browse files

Fixes #1136 regarding ofSerial, Win32 and UNICODE

In which ofSerial::enumerateWin32Ports() would resolve
SetupDiGetDeviceRegistryProperty() to the --W() version with UNICODE
defined, later breaking the rest of the function. I have now hard-coded to
the --A() version of this function call.
  • Loading branch information...
1 parent ddb1792 commit fc86f4204026367e69d32b511cab5db3572a0c00 Josh Silverman committed Apr 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libs/openFrameworks/communication/ofSerial.cpp
@@ -51,7 +51,7 @@ void ofSerial::enumerateWin32Ports(){
break;
}
- if (SetupDiGetDeviceRegistryProperty(hDevInfo,
+ if (SetupDiGetDeviceRegistryPropertyA(hDevInfo,
&DeviceInterfaceData,
SPDRP_FRIENDLYNAME,
&dataType,

0 comments on commit fc86f42

Please sign in to comment.