Author: hbelusca Date: Sun Dec 16 14:37:45 2012 New Revision: 57925
URL: http://svn.reactos.org/svn/reactos?rev=57925&view=rev Log: [WIn32k] Fix the fix for Safe Mode (vide revision r57923).
Modified: trunk/reactos/win32ss/user/ntuser/sysparams.c
Modified: trunk/reactos/win32ss/user/ntuser/sysparams.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/syspara... ============================================================================== --- trunk/reactos/win32ss/user/ntuser/sysparams.c [iso-8859-1] (original) +++ trunk/reactos/win32ss/user/ntuser/sysparams.c [iso-8859-1] Sun Dec 16 14:37:45 2012 @@ -25,18 +25,16 @@ #define METRIC2REG(met) (-((((met) * 1440)- 0) / dpi))
#define REQ_INTERACTIVE_WINSTA(err) \ - if (GetW32ProcessInfo()->prpwinsta) \ + if (GetW32ProcessInfo()->prpwinsta != InputWindowStation) \ { \ - if (GetW32ProcessInfo()->prpwinsta != InputWindowStation) \ + if (GetW32ProcessInfo()->prpwinsta == NULL) \ + { \ + ERR("NtUserSystemParametersInfo called without active window station, and it requires an interactive one\n"); \ + } \ + else \ { \ ERR("NtUserSystemParametersInfo requires interactive window station (current is %wZ)\n", &GetW32ProcessInfo()->prpwinsta->Name); \ - EngSetLastError(err); \ - return 0; \ } \ - } \ - else \ - { \ - ERR("NtUserSystemParametersInfo called without active window station, and it requires an interactive one.\n"); \ EngSetLastError(err); \ return 0; \ }