[PATCH 2/2] user32: Compile some functions only on 64-bit architectures.

Zebediah Figura zfigura at codeweavers.com
Sat Mar 26 19:54:03 CDT 2022


Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
 dlls/user32/class.c | 4 ++++
 dlls/user32/win.c   | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/dlls/user32/class.c b/dlls/user32/class.c
index cc342cf507b..150226eb627 100644
--- a/dlls/user32/class.c
+++ b/dlls/user32/class.c
@@ -763,6 +763,8 @@ BOOL16 WINAPI ClassNext16( CLASSENTRY *pClassEntry )
 }
 #endif
 
+#ifdef _WIN64
+
 /* 64bit versions */
 
 #undef GetClassLongPtrA
@@ -803,3 +805,5 @@ ULONG_PTR WINAPI SetClassLongPtrA( HWND hwnd, INT offset, LONG_PTR newval )
     if (offset == GCLP_MENUNAME) return set_menu_nameA( hwnd, offset, newval );
     return NtUserSetClassLongPtr( hwnd, offset, newval, TRUE );
 }
+
+#endif /* _WIN64 */
diff --git a/dlls/user32/win.c b/dlls/user32/win.c
index 619bbba1dfe..0a3f65e5aa4 100644
--- a/dlls/user32/win.c
+++ b/dlls/user32/win.c
@@ -1828,6 +1828,7 @@ BOOL WINAPI SetProcessDefaultLayout( DWORD layout )
     return TRUE;
 }
 
+#ifdef _WIN64
 
 /* 64bit versions */
 
@@ -1868,6 +1869,8 @@ LONG_PTR WINAPI SetWindowLongPtrA( HWND hwnd, INT offset, LONG_PTR newval )
     return NtUserSetWindowLongPtr( hwnd, offset, newval, TRUE );
 }
 
+#endif /* _WIN64 */
+
 /*****************************************************************************
  *              RegisterTouchWindow (USER32.@)
  */
-- 
2.34.1




More information about the wine-devel mailing list