Compare our device strings as uppercase strings. The casing seems to differ on different platforms.
This commit is contained in:
parent
509985293d
commit
2697fd928f
1 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
#include <Dbt.h>
|
||||
#include <string>
|
||||
#include <algorithm>
|
||||
|
||||
int g_argc;
|
||||
char **g_argv;
|
||||
|
@ -58,6 +59,7 @@ DWORD WINAPI TelldusWinService::deviceNotificationHandler( DWORD controlCode, DW
|
|||
}
|
||||
|
||||
std::wstring name(pDevInf->dbcc_name);
|
||||
transform(name.begin(), name.end(), name.begin(), toupper);
|
||||
|
||||
//Parse VID
|
||||
size_t posStart = name.find(L"VID_");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue