Author: cwittich
Date: Thu Apr 16 01:19:48 2009
New Revision: 40535
URL:
http://svn.reactos.org/svn/reactos?rev=40535&view=rev
Log:
fix some setupapi winetests
Modified:
trunk/reactos/dll/win32/setupapi/devinst.c
Modified: trunk/reactos/dll/win32/setupapi/devinst.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/setupapi/devinst…
==============================================================================
--- trunk/reactos/dll/win32/setupapi/devinst.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/setupapi/devinst.c [iso-8859-1] Thu Apr 16 01:19:48 2009
@@ -3373,7 +3373,12 @@
PWSTR InfFileNameW = NULL;
BOOL Result;
- if (InfFileName)
+ if (!InfFileName)
+ {
+ SetLastError(ERROR_INVALID_PARAMETER);
+ return FALSE;
+ }
+ else
{
InfFileNameW = MultiByteToUnicode(InfFileName, CP_ACP);
if (InfFileNameW == NULL)