X-Git-Url: http://sigrok.org/gitweb/?a=blobdiff_plain;f=windows.c;h=2825a92082672a3c05aa5997390dc5d25f5b00b7;hb=fd20b0fc5a34cd7f776e4af6c763f59041de223b;hp=f9c2c41faf768925e6eb38b0a1784150f283cc6c;hpb=60fc49ceab499a979ba9053cce86944335ab5488;p=libserialport.git diff --git a/windows.c b/windows.c index f9c2c41..2825a92 100644 --- a/windows.c +++ b/windows.c @@ -265,8 +265,8 @@ static void enumerate_hub(struct sp_port *port, const char *hub_name, return; strcpy(device_name, "\\\\.\\"); strcat(device_name, hub_name); - hub_device = CreateFile(device_name, GENERIC_WRITE, FILE_SHARE_WRITE, - NULL, OPEN_EXISTING, 0, NULL); + hub_device = CreateFileA(device_name, GENERIC_WRITE, FILE_SHARE_WRITE, + NULL, OPEN_EXISTING, 0, NULL); free(device_name); if (hub_device == INVALID_HANDLE_VALUE) return;