Fix RegisterWindowMessage declaration and improve debug message.

This commit is contained in:
Jacek Caban 2005-08-22 09:15:55 +00:00 committed by Alexandre Julliard
parent 38d67a4537
commit f4c4092fb5
2 changed files with 10 additions and 8 deletions

View File

@ -3203,20 +3203,22 @@ void WINAPI UserYield16(void)
* RegisterWindowMessage (USER.118)
* RegisterWindowMessageA (USER32.@)
*/
WORD WINAPI RegisterWindowMessageA( LPCSTR str )
UINT WINAPI RegisterWindowMessageA( LPCSTR str )
{
TRACE("%s\n", str );
return GlobalAddAtomA( str );
UINT ret = GlobalAddAtomA(str);
TRACE("%s, ret=%x\n", str, ret);
return ret;
}
/***********************************************************************
* RegisterWindowMessageW (USER32.@)
*/
WORD WINAPI RegisterWindowMessageW( LPCWSTR str )
UINT WINAPI RegisterWindowMessageW( LPCWSTR str )
{
TRACE("%p\n", str );
return GlobalAddAtomW( str );
UINT ret = GlobalAddAtomW(str);
TRACE("%s ret=%x\n", debugstr_w(str), ret);
return ret;
}

View File

@ -4531,8 +4531,8 @@ ATOM WINAPI RegisterClassExW(const WNDCLASSEXW *);
UINT WINAPI RegisterClipboardFormatA(LPCSTR);
UINT WINAPI RegisterClipboardFormatW(LPCWSTR);
#define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
WORD WINAPI RegisterWindowMessageA(LPCSTR);
WORD WINAPI RegisterWindowMessageW(LPCWSTR);
UINT WINAPI RegisterWindowMessageA(LPCSTR);
UINT WINAPI RegisterWindowMessageW(LPCWSTR);
#define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
INT WINAPI ReleaseDC(HWND,HDC);
BOOL WINAPI RemoveMenu(HMENU,UINT,UINT);