Skip to content
Permalink
Browse files
update from ffissore
  • Loading branch information
todbot committed Sep 11, 2013
1 parent f909223 commit d78dc8150a8ad15c0a59e6b4610385c86618bbf7
Showing with 1 addition and 1 deletion.
  1. +1 −1 listComPorts.c
  2. BIN listComPorts.exe
  3. BIN usbSearch.exe
@@ -108,7 +108,7 @@ int listComPorts(void)
dhGetValue(L"%s", &pnpid, objDevice, L".PnPDeviceID");

if(verbose>1) printf("'%s'.\n", name);
if( (match = strstr( name, "(COM" )) != NULL ) { // look for "(COM23)"
if( name != NULL && ((match = strstr( name, "(COM" )) != NULL) ) { // look for "(COM23)"
// 'Manufacturuer' can be null, so only get it if we need it
dhGetValue(L"%s", &manu, objDevice, L".Manufacturer");
port_count++;
BIN +3.5 KB (110%) listComPorts.exe
Binary file not shown.
BIN +4 KB (110%) usbSearch.exe
Binary file not shown.

0 comments on commit d78dc81

Please sign in to comment.