[ros-diffs] [hpoussin] 19242: Don't try to access an optional
parameter if it is NULL
hpoussin at svn.reactos.com
hpoussin at svn.reactos.com
Tue Nov 15 09:28:08 CET 2005
Don't try to access an optional parameter if it is NULL
Modified: trunk/reactos/lib/setupapi/devinst.c
_____
Modified: trunk/reactos/lib/setupapi/devinst.c
--- trunk/reactos/lib/setupapi/devinst.c 2005-11-15 06:14:31 UTC
(rev 19241)
+++ trunk/reactos/lib/setupapi/devinst.c 2005-11-15 08:27:38 UTC
(rev 19242)
@@ -1236,7 +1236,7 @@
DWORD dwLength;
DWORD rc;
- if (IsEqualIID(class, &GUID_NULL))
+ if (class && IsEqualIID(class, &GUID_NULL))
class = NULL;
/* Open Enum key */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051115/fe72cf39/attachment.html
More information about the Ros-diffs
mailing list