setupapi: Remove unneeded NULL checks before MyFree().
This commit is contained in:
parent
ece0ae0a41
commit
bb80e2282e
|
@ -148,7 +148,6 @@ BOOL WINAPI SetupDiBuildClassInfoListExA(
|
||||||
ClassGuidListSize, RequiredSize,
|
ClassGuidListSize, RequiredSize,
|
||||||
MachineNameW, Reserved);
|
MachineNameW, Reserved);
|
||||||
|
|
||||||
if (MachineNameW)
|
|
||||||
MyFree(MachineNameW);
|
MyFree(MachineNameW);
|
||||||
|
|
||||||
return bResult;
|
return bResult;
|
||||||
|
@ -366,9 +365,7 @@ BOOL WINAPI SetupDiClassGuidsFromNameExA(
|
||||||
ClassGuidListSize, RequiredSize,
|
ClassGuidListSize, RequiredSize,
|
||||||
MachineNameW, Reserved);
|
MachineNameW, Reserved);
|
||||||
|
|
||||||
if (MachineNameW)
|
|
||||||
MyFree(MachineNameW);
|
MyFree(MachineNameW);
|
||||||
|
|
||||||
MyFree(ClassNameW);
|
MyFree(ClassNameW);
|
||||||
|
|
||||||
return bResult;
|
return bResult;
|
||||||
|
@ -636,7 +633,6 @@ SetupDiCreateDeviceInfoListExA(const GUID *ClassGuid,
|
||||||
hDevInfo = SetupDiCreateDeviceInfoListExW(ClassGuid, hwndParent,
|
hDevInfo = SetupDiCreateDeviceInfoListExW(ClassGuid, hwndParent,
|
||||||
MachineNameW, Reserved);
|
MachineNameW, Reserved);
|
||||||
|
|
||||||
if (MachineNameW)
|
|
||||||
MyFree(MachineNameW);
|
MyFree(MachineNameW);
|
||||||
|
|
||||||
return hDevInfo;
|
return hDevInfo;
|
||||||
|
@ -1303,7 +1299,6 @@ HKEY WINAPI SetupDiOpenClassRegKeyExA(
|
||||||
hKey = SetupDiOpenClassRegKeyExW(ClassGuid, samDesired,
|
hKey = SetupDiOpenClassRegKeyExW(ClassGuid, samDesired,
|
||||||
Flags, MachineNameW, Reserved);
|
Flags, MachineNameW, Reserved);
|
||||||
|
|
||||||
if (MachineNameW)
|
|
||||||
MyFree(MachineNameW);
|
MyFree(MachineNameW);
|
||||||
|
|
||||||
return hKey;
|
return hKey;
|
||||||
|
|
Loading…
Reference in New Issue