[PATCH 3/5] user32: Make SetWindowTextA/W hookable.

Stefan Dösinger stefan at codeweavers.com
Mon Mar 3 03:15:37 CST 2014


Hooked by Steam.
---
 dlls/user32/win.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 29f2365..9e30321 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -2739,7 +2739,7 @@ INT WINAPI GetWindowTextW( HWND hwnd, LPWSTR lpString, INT nMaxCount )
  *		SetWindowTextA (USER32.@)
  *		SetWindowText  (USER32.@)
  */
-BOOL WINAPI SetWindowTextA( HWND hwnd, LPCSTR lpString )
+BOOL WINAPI DECLSPEC_HOTPATCH SetWindowTextA( HWND hwnd, LPCSTR lpString )
 {
     if (is_broadcast(hwnd))
     {
@@ -2756,7 +2756,7 @@ BOOL WINAPI SetWindowTextA( HWND hwnd, LPCSTR lpString )
 /*******************************************************************
  *		SetWindowTextW (USER32.@)
  */
-BOOL WINAPI SetWindowTextW( HWND hwnd, LPCWSTR lpString )
+BOOL WINAPI DECLSPEC_HOTPATCH SetWindowTextW( HWND hwnd, LPCWSTR lpString )
 {
     if (is_broadcast(hwnd))
     {
-- 
1.8.3.2




More information about the wine-patches mailing list