@@ -39,10 +39,10 @@ WCHAR* NWL_GetDevStrProp(DEVINST devInst, const DEVPROPKEY* pKey)
3939}
4040
4141static void
42- GetDeviceInfoDefault (PNODE node , void * data , DEVINST devInst , LPCWSTR instanceId )
42+ GetDeviceInfoDefault (PNODE node , void * data , DEVINST devInst , LPCWSTR hwIds )
4343{
4444 (void )data ;
45- NWL_NodeAttrSet (node , "HWID" , NWL_Ucs2ToUtf8 (instanceId ), 0 );
45+ NWL_NodeAttrSet (node , "HWID" , NWL_Ucs2ToUtf8 (hwIds ), 0 );
4646
4747 WCHAR * name = NWL_GetDevStrProp (devInst , & DEVPKEY_NAME );
4848 if (name )
@@ -67,16 +67,16 @@ NWL_EnumerateDevices(PNODE parent, DEVTREE_ENUM_CTX* ctx, DEVINST devInst)
6767{
6868 PNODE node = parent ;
6969 DEVINST childInst ;
70- WCHAR * instanceId = NWL_GetDevStrProp (devInst , & DEVPKEY_Device_InstanceId );
70+ WCHAR * hwIds = NWL_GetDevStrProp (devInst , & DEVPKEY_Device_HardwareIds );
7171
72- if (instanceId )
72+ if (hwIds )
7373 {
74- if (ctx -> filter [0 ] == L'\0' || _wcsnicmp (instanceId , ctx -> filter , ctx -> filterLen ) == 0 )
74+ if (ctx -> filter [0 ] == L'\0' || _wcsnicmp (hwIds , ctx -> filter , ctx -> filterLen ) == 0 )
7575 {
7676 node = NWL_NodeAppendNew (AppendDevices (parent , ctx -> hub ), "Device" , NFLG_TABLE_ROW );
77- ctx -> GetDeviceInfo (node , ctx -> data , devInst , instanceId );
77+ ctx -> GetDeviceInfo (node , ctx -> data , devInst , hwIds );
7878 }
79- free (instanceId );
79+ free (hwIds );
8080 }
8181
8282 if (CM_Get_Child (& childInst , devInst , 0 ) == CR_SUCCESS )
0 commit comments