netkvm: Static analysis: coinstaller tweaks
Static analysis was failing with:
coinstaller\netkvmnetsh.cpp(64): warning C6011: Dereferencing NULL pointer 'pguidDevClassPtr'.
@@ -59,10 +59,11 @@ static bool _NetKVMGetDeviceClassGuids(vector<GUID>& GUIDs)
NETCO_DEBUG_PRINT(TEXT("SetupDiClassGuidsFromNameEx failed with code ") << dwErr);
return false;
}
- }
GUIDs.insert(GUIDs.end(), &pguidDevClassPtr[0], &pguidDevClassPtr[dwNumGuids]);
delete[] pguidDevClassPtr;
+ }
+
return true;
}
