Fixed return value for WM_NOTIFY and WM_ACTIVATEAPP mappings.
This commit is contained in:
parent
cdb9cda6bf
commit
4de0df77cf
|
@ -1281,7 +1281,7 @@ INT WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16, UINT *pmsg32,
|
||||||
else return 0;
|
else return 0;
|
||||||
case WM_NOTIFY:
|
case WM_NOTIFY:
|
||||||
*plparam = (LPARAM)MapSL(*plparam);
|
*plparam = (LPARAM)MapSL(*plparam);
|
||||||
return 1;
|
return 0;
|
||||||
case WM_ACTIVATEAPP:
|
case WM_ACTIVATEAPP:
|
||||||
if (*plparam)
|
if (*plparam)
|
||||||
{ /* We need this when SetActiveWindow sends a Sendmessage16() to
|
{ /* We need this when SetActiveWindow sends a Sendmessage16() to
|
||||||
|
@ -1292,7 +1292,7 @@ INT WINPROC_MapMsg16To32A( UINT16 msg16, WPARAM16 wParam16, UINT *pmsg32,
|
||||||
DWORD idThread = (DWORD)TASK_GetPtr(htask)->teb->tid;
|
DWORD idThread = (DWORD)TASK_GetPtr(htask)->teb->tid;
|
||||||
*plparam = (LPARAM) idThread;
|
*plparam = (LPARAM) idThread;
|
||||||
}
|
}
|
||||||
return 1;
|
return 0;
|
||||||
case WM_ASKCBFORMATNAME:
|
case WM_ASKCBFORMATNAME:
|
||||||
case WM_DEVMODECHANGE:
|
case WM_DEVMODECHANGE:
|
||||||
case WM_PAINTCLIPBOARD:
|
case WM_PAINTCLIPBOARD:
|
||||||
|
@ -2007,10 +2007,8 @@ INT WINPROC_MapMsg32ATo16( HWND hwnd, UINT msg32, WPARAM wParam32,
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
case WM_ACTIVATEAPP:
|
case WM_ACTIVATEAPP:
|
||||||
if (*plparam) {
|
if (*plparam) *plparam = (LPARAM)THREAD_IdToTEB((DWORD) *plparam)->htask16;
|
||||||
*plparam = (LPARAM)THREAD_IdToTEB((DWORD) *plparam)->htask16;
|
return 0;
|
||||||
}
|
|
||||||
return 1;
|
|
||||||
case WM_ASKCBFORMATNAME:
|
case WM_ASKCBFORMATNAME:
|
||||||
case WM_DEVMODECHANGE:
|
case WM_DEVMODECHANGE:
|
||||||
case WM_PAINTCLIPBOARD:
|
case WM_PAINTCLIPBOARD:
|
||||||
|
|
Loading…
Reference in New Issue