Commit f4c4092f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

Fix RegisterWindowMessage declaration and improve debug message.

parent 38d67a45
...@@ -3203,20 +3203,22 @@ void WINAPI UserYield16(void) ...@@ -3203,20 +3203,22 @@ void WINAPI UserYield16(void)
* RegisterWindowMessage (USER.118) * RegisterWindowMessage (USER.118)
* RegisterWindowMessageA (USER32.@) * RegisterWindowMessageA (USER32.@)
*/ */
WORD WINAPI RegisterWindowMessageA( LPCSTR str ) UINT WINAPI RegisterWindowMessageA( LPCSTR str )
{ {
TRACE("%s\n", str ); UINT ret = GlobalAddAtomA(str);
return GlobalAddAtomA( str ); TRACE("%s, ret=%x\n", str, ret);
return ret;
} }
/*********************************************************************** /***********************************************************************
* RegisterWindowMessageW (USER32.@) * RegisterWindowMessageW (USER32.@)
*/ */
WORD WINAPI RegisterWindowMessageW( LPCWSTR str ) UINT WINAPI RegisterWindowMessageW( LPCWSTR str )
{ {
TRACE("%p\n", str ); UINT ret = GlobalAddAtomW(str);
return GlobalAddAtomW( str ); TRACE("%s ret=%x\n", debugstr_w(str), ret);
return ret;
} }
......
...@@ -4531,8 +4531,8 @@ ATOM WINAPI RegisterClassExW(const WNDCLASSEXW *); ...@@ -4531,8 +4531,8 @@ ATOM WINAPI RegisterClassExW(const WNDCLASSEXW *);
UINT WINAPI RegisterClipboardFormatA(LPCSTR); UINT WINAPI RegisterClipboardFormatA(LPCSTR);
UINT WINAPI RegisterClipboardFormatW(LPCWSTR); UINT WINAPI RegisterClipboardFormatW(LPCWSTR);
#define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat) #define RegisterClipboardFormat WINELIB_NAME_AW(RegisterClipboardFormat)
WORD WINAPI RegisterWindowMessageA(LPCSTR); UINT WINAPI RegisterWindowMessageA(LPCSTR);
WORD WINAPI RegisterWindowMessageW(LPCWSTR); UINT WINAPI RegisterWindowMessageW(LPCWSTR);
#define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage) #define RegisterWindowMessage WINELIB_NAME_AW(RegisterWindowMessage)
INT WINAPI ReleaseDC(HWND,HDC); INT WINAPI ReleaseDC(HWND,HDC);
BOOL WINAPI RemoveMenu(HMENU,UINT,UINT); BOOL WINAPI RemoveMenu(HMENU,UINT,UINT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment