Author: gadamopoulos
Date: Sun Jan 29 10:32:59 2012
New Revision: 55288
URL:
http://svn.reactos.org/svn/reactos?rev=55288&view=rev
Log:
[win32k]
- Show some error messages in case NtUserSystemParametersInfo fails
Modified:
trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/sysparams.c [iso-8859-1] Sun Jan 29
10:32:59 2012
@@ -27,6 +27,7 @@
#define REQ_INTERACTIVE_WINSTA(err) \
if (gpwinstaCurrent != InputWindowStation) \
{ \
+ ERR("NtUserSystemParametersInfo requires interactive window
station\n"); \
EngSetLastError(err); \
return 0; \
}
@@ -422,7 +423,7 @@
if (!NT_SUCCESS(Status))
{
SetLastNtError(Status);
- TRACE("SpiMemCopy failed, pvDst=%p, pvSrc=%p, bProtect=%d,
bToUser=%d\n", pvDst, pvSrc, bProtect, bToUser);
+ ERR("SpiMemCopy failed, pvDst=%p, pvSrc=%p, bProtect=%d, bToUser=%d\n",
pvDst, pvSrc, bProtect, bToUser);
}
return NT_SUCCESS(Status);
}
@@ -1536,6 +1537,7 @@
if (!gbSpiInitialized)
{
KeRosDumpStackFrames(NULL, 20);
+ //ASSERT(FALSE);
return FALSE;
}
@@ -1545,7 +1547,8 @@
if (!gpwinstaCurrent)
{
ERR("UserSystemParametersInfo called without active
windowstation.\n");
- //KeRosDumpStackFrames(NULL, 0);
+ //ASSERT(FALSE);
+ //return FALSE;
}
/* Do the actual operation */