Author: cwittich
Date: Sun Oct 26 13:03:38 2008
New Revision: 36996
URL:
http://svn.reactos.org/svn/reactos?rev=36996&view=rev
Log:
fix some advapi32 security winetests
Modified:
trunk/reactos/dll/win32/advapi32/sec/misc.c
Modified: trunk/reactos/dll/win32/advapi32/sec/misc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/advapi32/sec/mis…
==============================================================================
--- trunk/reactos/dll/win32/advapi32/sec/misc.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/advapi32/sec/misc.c [iso-8859-1] Sun Oct 26 13:03:38 2008
@@ -1256,7 +1256,7 @@
/* Check the privilege name is not NULL */
if (lpName == NULL)
{
- SetLastError(ERROR_INVALID_PARAMETER);
+ SetLastError(ERROR_NO_SUCH_PRIVILEGE);
return FALSE;
}
@@ -1334,7 +1334,7 @@
for (Priv = 0; Priv < sizeof(DefaultPrivNames) / sizeof(DefaultPrivNames[0]);
Priv++)
{
- if (0 == wcscmp(PrivName, DefaultPrivNames[Priv]))
+ if (0 == wcsicmp(PrivName, DefaultPrivNames[Priv]))
{
Luid->LowPart = Priv + 1;
Luid->HighPart = 0;