mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 17:54:08 +00:00
[PSDK|User32]
- Fix error return for future wine Win.c test_map_points tests. - Add missing error code. svn path=/trunk/; revision=57716
This commit is contained in:
parent
f6f71e3fd1
commit
edee22de36
2 changed files with 5 additions and 9 deletions
|
@ -838,6 +838,7 @@
|
|||
#define ERROR_REQUIRES_INTERACTIVE_WINDOWSTATION 1459
|
||||
#define ERROR_TIMEOUT 1460
|
||||
#define ERROR_INVALID_MONITOR_HANDLE 1461
|
||||
#define ERROR_INCORRECT_SIZE 1462
|
||||
#define ERROR_EVENTLOG_FILE_CORRUPT 1500
|
||||
#define ERROR_EVENTLOG_CANT_START 1501
|
||||
#define ERROR_LOG_FILE_FULL 1502
|
||||
|
|
|
@ -282,6 +282,8 @@ GetUser32Handle(HANDLE handle)
|
|||
INT Index;
|
||||
USHORT generation;
|
||||
|
||||
if (!handle) return NULL;
|
||||
|
||||
Index = (((UINT_PTR)handle & 0xffff) - FIRST_USER_HANDLE) >> 1;
|
||||
|
||||
if (Index < 0 || Index >= gHandleTable->nb_handles)
|
||||
|
@ -435,21 +437,14 @@ PWND
|
|||
FASTCALL
|
||||
ValidateHwnd(HWND hwnd)
|
||||
{
|
||||
PWND Wnd;
|
||||
PCLIENTINFO ClientInfo = GetWin32ClientInfo();
|
||||
ASSERT(ClientInfo != NULL);
|
||||
|
||||
/* See if the window is cached */
|
||||
if (hwnd == ClientInfo->CallbackWnd.hWnd)
|
||||
if (hwnd && hwnd == ClientInfo->CallbackWnd.hWnd)
|
||||
return ClientInfo->CallbackWnd.pWnd;
|
||||
|
||||
Wnd = ValidateHandle((HANDLE)hwnd, otWindow);
|
||||
if (Wnd != NULL)
|
||||
{
|
||||
return Wnd;
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return ValidateHandle((HANDLE)hwnd, otWindow);
|
||||
}
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue