From 4c3c1deeda7aa87e4a53ee57bfda10549e9e715f Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Wed, 15 Apr 2009 21:19:48 +0000 Subject: [PATCH] fix some setupapi winetests svn path=/trunk/; revision=40535 --- reactos/dll/win32/setupapi/devinst.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/reactos/dll/win32/setupapi/devinst.c b/reactos/dll/win32/setupapi/devinst.c index d3637f01e72..b9c8cdd2194 100644 --- a/reactos/dll/win32/setupapi/devinst.c +++ b/reactos/dll/win32/setupapi/devinst.c @@ -3373,7 +3373,12 @@ SetupDiInstallClassExA( PWSTR InfFileNameW = NULL; BOOL Result; - if (InfFileName) + if (!InfFileName) + { + SetLastError(ERROR_INVALID_PARAMETER); + return FALSE; + } + else { InfFileNameW = MultiByteToUnicode(InfFileName, CP_ACP); if (InfFileNameW == NULL)