user32: make a few more functions hotpatchable

Austin English austinenglish at gmail.com
Mon Apr 30 12:16:29 CDT 2012


Fixes http://bugs.winehq.org/show_bug.cgi?id=30536

-- 
-Austin
-------------- next part --------------
diff --git a/dlls/user32/nonclient.c b/dlls/user32/nonclient.c
index 82a571d..08ce674 100644
--- a/dlls/user32/nonclient.c
+++ b/dlls/user32/nonclient.c
@@ -367,7 +367,7 @@ BOOL WINAPI DrawCaptionTempW (HWND hwnd, HDC hdc, const RECT *rect, HFONT hFont,
 /***********************************************************************
  *		AdjustWindowRect (USER32.@)
  */
-BOOL WINAPI AdjustWindowRect( LPRECT rect, DWORD style, BOOL menu )
+BOOL WINAPI DECLSPEC_HOTPATCH AdjustWindowRect( LPRECT rect, DWORD style, BOOL menu )
 {
     return AdjustWindowRectEx( rect, style, menu, 0 );
 }
@@ -376,7 +376,7 @@ BOOL WINAPI AdjustWindowRect( LPRECT rect, DWORD style, BOOL menu )
 /***********************************************************************
  *		AdjustWindowRectEx (USER32.@)
  */
-BOOL WINAPI AdjustWindowRectEx( LPRECT rect, DWORD style, BOOL menu, DWORD exStyle )
+BOOL WINAPI DECLSPEC_HOTPATCH AdjustWindowRectEx( LPRECT rect, DWORD style, BOOL menu, DWORD exStyle )
 {
     if (style & WS_ICONIC) return TRUE;
     style &= ~(WS_HSCROLL | WS_VSCROLL);
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 1cad8aa..cc8461a 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -2413,7 +2413,7 @@ WORD WINAPI SetWindowWord( HWND hwnd, INT offset, WORD newval )
  *
  * See SetWindowLongW.
  */
-LONG WINAPI SetWindowLongA( HWND hwnd, INT offset, LONG newval )
+LONG WINAPI DECLSPEC_HOTPATCH SetWindowLongA( HWND hwnd, INT offset, LONG newval )
 {
     return WIN_SetWindowLong( hwnd, offset, sizeof(LONG), newval, FALSE );
 }


More information about the wine-patches mailing list