/* In case the object was not created (eg if it existed), return now */
if (Context == FALSE)
{
- TRACE("NtUserCreateDesktop opened desktop %wZ\n", ObjectAttributes->ObjectName);
+ TRACE("IntCreateDesktop opened desktop '%wZ'\n", ObjectAttributes->ObjectName);
Status = STATUS_SUCCESS;
goto Quit;
}
Cs.cx = Cs.cy = 100;
Cs.style = WS_POPUP|WS_CLIPCHILDREN;
Cs.hInstance = hModClient; // hModuleWin; // Server side winproc!
- Cs.lpszName = (LPCWSTR) &WindowName;
- Cs.lpszClass = (LPCWSTR) &ClassName;
+ Cs.lpszName = (LPCWSTR)&WindowName;
+ Cs.lpszClass = (LPCWSTR)&ClassName;
pWnd = IntCreateWindow(&Cs, &WindowName, pcls, NULL, NULL, NULL, pdesk);
if (pWnd == NULL)
{
NTSTATUS Status;
DECLARE_RETURN(BOOL);
- TRACE("NtUserCloseDesktop called (0x%p)\n", hDesktop);
+ TRACE("NtUserCloseDesktop(0x%p) called\n", hDesktop);
UserEnterExclusive();
if (hDesktop == gptiCurrent->hdesk || hDesktop == gptiCurrent->ppi->hdeskStartup)
RETURN(FALSE);
}
- Status = IntValidateDesktopHandle( hDesktop, UserMode, 0, &pdesk);
+ Status = IntValidateDesktopHandle(hDesktop, UserMode, 0, &pdesk);
if (!NT_SUCCESS(Status))
{
- ERR("Validation of desktop handle (0x%p) failed\n", hDesktop);
+ ERR("Validation of desktop handle 0x%p failed\n", hDesktop);
RETURN(FALSE);
}
UserEnterExclusive();
TRACE("Enter NtUserSwitchDesktop(0x%p)\n", hdesk);
- Status = IntValidateDesktopHandle( hdesk, UserMode, 0, &pdesk);
+ Status = IntValidateDesktopHandle(hdesk, UserMode, 0, &pdesk);
if (!NT_SUCCESS(Status))
{
- ERR("Validation of desktop handle (0x%p) failed\n", hdesk);
+ ERR("Validation of desktop handle 0x%p failed\n", hdesk);
RETURN(FALSE);
}
if (hDesktop != NULL)
{
/* Validate the new desktop. */
- Status = IntValidateDesktopHandle( hDesktop, UserMode, 0, &pdesk);
+ Status = IntValidateDesktopHandle(hDesktop, UserMode, 0, &pdesk);
if (!NT_SUCCESS(Status))
{
- ERR("Validation of desktop handle (0x%p) failed\n", hDesktop);
+ ERR("Validation of desktop handle 0x%p failed\n", hDesktop);
return FALSE;
}
return FALSE;
}
- pctiNew = DesktopHeapAlloc( pdesk, sizeof(CLIENTTHREADINFO));
+ pctiNew = DesktopHeapAlloc(pdesk, sizeof(CLIENTTHREADINFO));
if (pctiNew == NULL)
{
ERR("Failed to allocate new pcti\n");
#define METRIC2REG(met) (-((((met) * 1440)- 0) / dpi))
#define REQ_INTERACTIVE_WINSTA(err) \
+do { \
if (GetW32ProcessInfo()->prpwinsta != InputWindowStation) \
{ \
if (GetW32ProcessInfo()->prpwinsta == NULL) \
} \
else \
{ \
- ERR("NtUserSystemParametersInfo requires interactive window station (current is %wZ)\n", \
+ ERR("NtUserSystemParametersInfo requires interactive window station (current is '%wZ')\n", \
&(OBJECT_HEADER_TO_NAME_INFO(OBJECT_TO_OBJECT_HEADER(GetW32ProcessInfo()->prpwinsta))->Name)); \
} \
EngSetLastError(err); \
return 0; \
- }
+ } \
+} while (0)
static const WCHAR* KEY_MOUSE = L"Control Panel\\Mouse";
static const WCHAR* VAL_MOUSE1 = L"MouseThreshold1";