projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
89a84ca
)
minor fix in SetupDiGetDeviceInstanceIdA
author
Thomas Bluemel
<thomas@reactsoft.com>
Sat, 26 Nov 2005 10:18:24 +0000
(10:18 +0000)
committer
Thomas Bluemel
<thomas@reactsoft.com>
Sat, 26 Nov 2005 10:18:24 +0000
(10:18 +0000)
svn path=/trunk/; revision=19623
reactos/lib/setupapi/devinst.c
patch
|
blob
|
history
diff --git
a/reactos/lib/setupapi/devinst.c
b/reactos/lib/setupapi/devinst.c
index
86e2dad
..
85ef915
100644
(file)
--- a/
reactos/lib/setupapi/devinst.c
+++ b/
reactos/lib/setupapi/devinst.c
@@
-3493,7
+3493,7
@@
BOOL WINAPI SetupDiGetDeviceInstanceIdA(
DeviceInstanceIdW, DeviceInstanceIdSize,
RequiredSize);
DeviceInstanceIdW, DeviceInstanceIdSize,
RequiredSize);
- if (DeviceInstanceIdW != NULL)
+ if (
ret &&
DeviceInstanceIdW != NULL)
{
if (WideCharToMultiByte(CP_ACP, 0, DeviceInstanceIdW, -1,
DeviceInstanceId, DeviceInstanceIdSize, NULL, NULL) == 0)
{
if (WideCharToMultiByte(CP_ACP, 0, DeviceInstanceIdW, -1,
DeviceInstanceId, DeviceInstanceIdSize, NULL, NULL) == 0)