Permalink
Browse files

Fixes #1136 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 --W() version of this function call.
  • Loading branch information...
1 parent 5cbda77 commit b154009fc6c3234f64af488607e1eb98bb16cd35 Josh Silverman committed Apr 4, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 libs/openFrameworks/communication/ofSerial.cpp
View
2 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 b154009

Please sign in to comment.