mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 19:26:32 +00:00
[USER32_APITEST] Fix a typo.
svn path=/trunk/; revision=69799
This commit is contained in:
@@ -42,11 +42,11 @@ LRESULT CALLBACK DWPTestProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
|
||||
{
|
||||
WINDOWPOS* pwp = (WINDOWPOS*)lParam;
|
||||
ok(wParam==0,"expected wParam=0\n");
|
||||
RECOND_MESSAGE(iwnd, message, SENT, get_iwnd(pwp->hwndInsertAfter), pwp->flags);
|
||||
RECORD_MESSAGE(iwnd, message, SENT, get_iwnd(pwp->hwndInsertAfter), pwp->flags);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
RECOND_MESSAGE(iwnd, message, SENT, 0,0);
|
||||
RECORD_MESSAGE(iwnd, message, SENT, 0,0);
|
||||
}
|
||||
return DefWindowProc(hWnd, message, wParam, lParam);
|
||||
}
|
||||
@@ -59,7 +59,7 @@ static void FlushMessages()
|
||||
{
|
||||
int iwnd = get_iwnd(msg.hwnd);
|
||||
if(!(msg.message > WM_USER || !iwnd || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(iwnd, msg.message, POST,0,0);
|
||||
RECORD_MESSAGE(iwnd, msg.message, POST,0,0);
|
||||
DispatchMessageA( &msg );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -62,15 +62,15 @@ WndProc(
|
||||
|
||||
if (hWnd == hWndThread1)
|
||||
{
|
||||
RECOND_MESSAGE(1, message, SENT, wParam, lParam);
|
||||
RECORD_MESSAGE(1, message, SENT, wParam, lParam);
|
||||
}
|
||||
else if (hWnd == hWndThread2)
|
||||
{
|
||||
RECOND_MESSAGE(2, message, SENT, wParam, lParam);
|
||||
RECORD_MESSAGE(2, message, SENT, wParam, lParam);
|
||||
}
|
||||
else
|
||||
{
|
||||
RECOND_MESSAGE(3, message, SENT, wParam, lParam);
|
||||
RECORD_MESSAGE(3, message, SENT, wParam, lParam);
|
||||
}
|
||||
|
||||
switch (message)
|
||||
@@ -115,7 +115,7 @@ Thread1(
|
||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
||||
{
|
||||
if (!(msg.message > WM_USER || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(1, msg.message, POST, 0, 0);
|
||||
RECORD_MESSAGE(1, msg.message, POST, 0, 0);
|
||||
DispatchMessageA(&msg);
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ Thread1(
|
||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
||||
{
|
||||
if (!(msg.message > WM_USER || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(1, msg.message, POST, 0, 0);
|
||||
RECORD_MESSAGE(1, msg.message, POST, 0, 0);
|
||||
DispatchMessageA(&msg);
|
||||
}
|
||||
}
|
||||
@@ -135,7 +135,7 @@ Thread1(
|
||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
||||
{
|
||||
if (!(msg.message > WM_USER || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(1, msg.message, POST, 0, 0);
|
||||
RECORD_MESSAGE(1, msg.message, POST, 0, 0);
|
||||
DispatchMessageA(&msg);
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ Thread2(
|
||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
||||
{
|
||||
if (!(msg.message > WM_USER || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(2, msg.message, POST, 0, 0);
|
||||
RECORD_MESSAGE(2, msg.message, POST, 0, 0);
|
||||
DispatchMessageA(&msg);
|
||||
}
|
||||
|
||||
@@ -169,7 +169,7 @@ Thread2(
|
||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
||||
{
|
||||
if (!(msg.message > WM_USER || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(2, msg.message, POST, 0, 0);
|
||||
RECORD_MESSAGE(2, msg.message, POST, 0, 0);
|
||||
DispatchMessageA(&msg);
|
||||
}
|
||||
|
||||
@@ -177,7 +177,7 @@ Thread2(
|
||||
while (PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
|
||||
{
|
||||
if (!(msg.message > WM_USER || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(2, msg.message, POST, 0, 0);
|
||||
RECORD_MESSAGE(2, msg.message, POST, 0, 0);
|
||||
DispatchMessageA(&msg);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,11 +49,11 @@ LRESULT CALLBACK OwnerTestProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lP
|
||||
{
|
||||
WINDOWPOS* pwp = (WINDOWPOS*)lParam;
|
||||
ok(wParam==0,"expected wParam=0\n");
|
||||
RECOND_MESSAGE(iwnd, message, SENT, get_iwnd(pwp->hwndInsertAfter), pwp->flags);
|
||||
RECORD_MESSAGE(iwnd, message, SENT, get_iwnd(pwp->hwndInsertAfter), pwp->flags);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
RECOND_MESSAGE(iwnd, message, SENT, 0,0);
|
||||
RECORD_MESSAGE(iwnd, message, SENT, 0,0);
|
||||
}
|
||||
return DefWindowProc(hWnd, message, wParam, lParam);
|
||||
}
|
||||
@@ -66,7 +66,7 @@ static void FlushMessages()
|
||||
{
|
||||
int iwnd = get_iwnd(msg.hwnd);
|
||||
if(!(msg.message > WM_USER || !iwnd || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(iwnd, msg.message, POST,0,0);
|
||||
RECORD_MESSAGE(iwnd, msg.message, POST,0,0);
|
||||
DispatchMessageA( &msg );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ WndProc(
|
||||
if (message > WM_USER || IsDWmMsg(message) || IseKeyMsg(message))
|
||||
return DefWindowProcW(hWnd, message, wParam, lParam);
|
||||
|
||||
RECOND_MESSAGE(iwnd, message, SENT, wParam, lParam);
|
||||
RECORD_MESSAGE(iwnd, message, SENT, wParam, lParam);
|
||||
|
||||
switch(message)
|
||||
{
|
||||
@@ -150,7 +150,7 @@ trace("\n");
|
||||
{
|
||||
int iwnd = get_iwnd(msg.hwnd, FALSE);
|
||||
if(!(msg.message > WM_USER || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(iwnd, msg.message, POST, 0, 0);
|
||||
RECORD_MESSAGE(iwnd, msg.message, POST, 0, 0);
|
||||
DispatchMessageA( &msg );
|
||||
}
|
||||
trace("\n");
|
||||
@@ -181,7 +181,7 @@ trace("\n");
|
||||
{
|
||||
int iwnd = get_iwnd(msg.hwnd, FALSE);
|
||||
if(!(msg.message > WM_USER || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(iwnd, msg.message, POST, 0, 0);
|
||||
RECORD_MESSAGE(iwnd, msg.message, POST, 0, 0);
|
||||
DispatchMessageA( &msg );
|
||||
}
|
||||
trace("\n");
|
||||
|
||||
@@ -39,11 +39,11 @@ LRESULT CALLBACK SysParamsTestProc(HWND hWnd, UINT message, WPARAM wParam, LPARA
|
||||
{
|
||||
WINDOWPOS* pwp = (WINDOWPOS*)lParam;
|
||||
ok(wParam==0,"expected wParam=0\n");
|
||||
RECOND_MESSAGE(iwnd, message, SENT, get_iwnd(pwp->hwndInsertAfter), pwp->flags);
|
||||
RECORD_MESSAGE(iwnd, message, SENT, get_iwnd(pwp->hwndInsertAfter), pwp->flags);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
RECOND_MESSAGE(iwnd, message, SENT, 0,0);
|
||||
RECORD_MESSAGE(iwnd, message, SENT, 0,0);
|
||||
}
|
||||
return DefWindowProc(hWnd, message, wParam, lParam);
|
||||
}
|
||||
@@ -56,7 +56,7 @@ static void FlushMessages()
|
||||
{
|
||||
int iwnd = get_iwnd(msg.hwnd);
|
||||
if(!(msg.message > WM_USER || !iwnd || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(iwnd, msg.message, POST,0,0);
|
||||
RECORD_MESSAGE(iwnd, msg.message, POST,0,0);
|
||||
DispatchMessageA( &msg );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ LRESULT CALLBACK TmeTestProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
|
||||
ok(0, "Got unexpected WM_SYSTIMER in the winproc. wParam=%d\n", wParam);
|
||||
break;
|
||||
default:
|
||||
RECOND_MESSAGE(iwnd, message, SENT, 0,0);
|
||||
RECORD_MESSAGE(iwnd, message, SENT, 0,0);
|
||||
}
|
||||
return DefWindowProc(hWnd, message, wParam, lParam);
|
||||
}
|
||||
@@ -58,7 +58,7 @@ LRESULT CALLBACK TmeTestProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lPar
|
||||
static LRESULT CALLBACK MouseLLHookProc(int nCode, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
LRESULT ret;
|
||||
RECOND_MESSAGE(0, WH_MOUSE_LL, HOOK, wParam, 0);
|
||||
RECORD_MESSAGE(0, WH_MOUSE_LL, HOOK, wParam, 0);
|
||||
ret = CallNextHookEx(hMouseHookLL, nCode, wParam, lParam);
|
||||
if(ignore_mousell)
|
||||
return TRUE;
|
||||
@@ -69,7 +69,7 @@ static LRESULT CALLBACK MouseHookProc(int nCode, WPARAM wParam, LPARAM lParam)
|
||||
{
|
||||
MOUSEHOOKSTRUCT *hs = (MOUSEHOOKSTRUCT*) lParam;
|
||||
LRESULT ret;
|
||||
RECOND_MESSAGE(get_iwnd(hs->hwnd), WH_MOUSE, HOOK, wParam, hs->wHitTestCode);
|
||||
RECORD_MESSAGE(get_iwnd(hs->hwnd), WH_MOUSE, HOOK, wParam, hs->wHitTestCode);
|
||||
ret = CallNextHookEx(hMouseHook, nCode, wParam, lParam);
|
||||
if(ignore_mouse)
|
||||
return TRUE;
|
||||
@@ -87,12 +87,12 @@ static void FlushMessages()
|
||||
{
|
||||
if(msg.message == WM_SYSTIMER)
|
||||
{
|
||||
RECOND_MESSAGE(iwnd, msg.message, POST,msg.wParam,0);
|
||||
RECORD_MESSAGE(iwnd, msg.message, POST,msg.wParam,0);
|
||||
if(ignore_timer)
|
||||
continue;
|
||||
}
|
||||
else if(!(msg.message > WM_USER || !iwnd || IsDWmMsg(msg.message) || IseKeyMsg(msg.message)))
|
||||
RECOND_MESSAGE(iwnd, msg.message, POST,0,0);
|
||||
RECORD_MESSAGE(iwnd, msg.message, POST,0,0);
|
||||
}
|
||||
DispatchMessageA( &msg );
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ static inline BOOL IseKeyMsg(UINT msg)
|
||||
#define COMPARE_CACHE(msg_chain) compare_cache(&default_cache, __FILE__, __LINE__, msg_chain)
|
||||
#define TRACE_CACHE() trace_cache(&default_cache, __FILE__, __LINE__)
|
||||
#define EMPTY_CACHE() empty_message_cache(&default_cache);
|
||||
#define RECOND_MESSAGE(...) record_message(&default_cache, ##__VA_ARGS__);
|
||||
#define RECORD_MESSAGE(...) record_message(&default_cache, ##__VA_ARGS__);
|
||||
|
||||
#define COMPARE_CACHE_(cache, msg_chain) compare_cache(cache, __FILE__, __LINE__, msg_chain)
|
||||
#define TRACE_CACHE_(cache) trace_cache(cache, __FILE__, __LINE__)
|
||||
|
||||
Reference in New Issue
Block a user