mirror of
https://github.com/reactos/reactos.git
synced 2024-10-06 01:13:38 +00:00
[WIn32k]
Fix the fix for Safe Mode (vide revision r57923). svn path=/trunk/; revision=57925
This commit is contained in:
parent
f3900d8048
commit
afc06cbf84
|
@ -25,18 +25,16 @@ BOOL g_PaintDesktopVersion = FALSE;
|
||||||
#define METRIC2REG(met) (-((((met) * 1440)- 0) / dpi))
|
#define METRIC2REG(met) (-((((met) * 1440)- 0) / dpi))
|
||||||
|
|
||||||
#define REQ_INTERACTIVE_WINSTA(err) \
|
#define REQ_INTERACTIVE_WINSTA(err) \
|
||||||
if (GetW32ProcessInfo()->prpwinsta) \
|
|
||||||
{ \
|
|
||||||
if (GetW32ProcessInfo()->prpwinsta != InputWindowStation) \
|
if (GetW32ProcessInfo()->prpwinsta != InputWindowStation) \
|
||||||
{ \
|
{ \
|
||||||
ERR("NtUserSystemParametersInfo requires interactive window station (current is %wZ)\n", &GetW32ProcessInfo()->prpwinsta->Name); \
|
if (GetW32ProcessInfo()->prpwinsta == NULL) \
|
||||||
EngSetLastError(err); \
|
{ \
|
||||||
return 0; \
|
ERR("NtUserSystemParametersInfo called without active window station, and it requires an interactive one\n"); \
|
||||||
} \
|
|
||||||
} \
|
} \
|
||||||
else \
|
else \
|
||||||
{ \
|
{ \
|
||||||
ERR("NtUserSystemParametersInfo called without active window station, and it requires an interactive one.\n"); \
|
ERR("NtUserSystemParametersInfo requires interactive window station (current is %wZ)\n", &GetW32ProcessInfo()->prpwinsta->Name); \
|
||||||
|
} \
|
||||||
EngSetLastError(err); \
|
EngSetLastError(err); \
|
||||||
return 0; \
|
return 0; \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue