Krzysztof Nowicki : user32: Make more functions hot-patchable for Steam.
Alexandre Julliard
julliard at winehq.org
Wed Jun 15 13:42:56 CDT 2011
Module: wine
Branch: master
Commit: 74159467168c7925857267f3aef71f09face2c9c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=74159467168c7925857267f3aef71f09face2c9c
Author: Krzysztof Nowicki <krissn at op.pl>
Date: Tue Jun 14 22:24:31 2011 +0200
user32: Make more functions hot-patchable for Steam.
---
dlls/user32/scroll.c | 18 ++++++++++--------
dlls/user32/sysparams.c | 4 ++--
2 files changed, 12 insertions(+), 10 deletions(-)
diff --git a/dlls/user32/scroll.c b/dlls/user32/scroll.c
index 6e6bc37..be205ef 100644
--- a/dlls/user32/scroll.c
+++ b/dlls/user32/scroll.c
@@ -28,6 +28,8 @@
* If you discover missing features, or bugs, please note them below.
*/
+#include "config.h"
+
#include <stdarg.h>
#include "windef.h"
@@ -1611,7 +1613,7 @@ LRESULT ScrollBarWndProc_common( HWND hwnd, UINT message, WPARAM wParam, LPARAM
* (corresponding to the 76 different positions of the window on
* the text), and info->nPage=25.
*/
-INT WINAPI SetScrollInfo(HWND hwnd, INT nBar, const SCROLLINFO *info, BOOL bRedraw)
+INT WINAPI DECLSPEC_HOTPATCH SetScrollInfo(HWND hwnd, INT nBar, const SCROLLINFO *info, BOOL bRedraw)
{
TRACE("hwnd=%p nBar=%d info=%p, bRedraw=%d\n", hwnd, nBar, info, bRedraw);
@@ -1781,7 +1783,7 @@ done:
* ( if nBar is SB_CTL, GetScrollInfo returns TRUE even if nothing
* is filled)
*/
-BOOL WINAPI GetScrollInfo(HWND hwnd, INT nBar, LPSCROLLINFO info)
+BOOL WINAPI DECLSPEC_HOTPATCH GetScrollInfo(HWND hwnd, INT nBar, LPSCROLLINFO info)
{
TRACE("hwnd=%p nBar=%d info=%p\n", hwnd, nBar, info);
@@ -1840,7 +1842,7 @@ BOOL WINAPI GetScrollBarInfo(HWND hwnd, LONG idObject, LPSCROLLBARINFO info)
* Note the ambiguity when 0 is returned. Use GetLastError
* to make sure there was an error (and to know which one).
*/
-INT WINAPI SetScrollPos( HWND hwnd, INT nBar, INT nPos, BOOL bRedraw)
+INT WINAPI DECLSPEC_HOTPATCH SetScrollPos( HWND hwnd, INT nBar, INT nPos, BOOL bRedraw)
{
SCROLLINFO info;
SCROLLBAR_INFO *infoPtr;
@@ -1873,7 +1875,7 @@ INT WINAPI SetScrollPos( HWND hwnd, INT nBar, INT nPos, BOOL bRedraw)
* There is ambiguity when 0 is returned. Use GetLastError
* to make sure there was an error (and to know which one).
*/
-INT WINAPI GetScrollPos(HWND hwnd, INT nBar)
+INT WINAPI DECLSPEC_HOTPATCH GetScrollPos(HWND hwnd, INT nBar)
{
TRACE("hwnd=%p nBar=%d\n", hwnd, nBar);
@@ -1903,7 +1905,7 @@ INT WINAPI GetScrollPos(HWND hwnd, INT nBar)
* Success: TRUE
* Failure: FALSE
*/
-BOOL WINAPI SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal, BOOL bRedraw)
+BOOL WINAPI DECLSPEC_HOTPATCH SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal, BOOL bRedraw)
{
SCROLLINFO info;
@@ -1932,7 +1934,7 @@ BOOL WINAPI SetScrollRange(HWND hwnd, INT nBar, INT minVal, INT maxVal, BOOL bRe
* RETURNS
* TRUE if values is filled
*/
-BOOL WINAPI GetScrollRange(HWND hwnd, INT nBar, LPINT lpMin, LPINT lpMax)
+BOOL WINAPI DECLSPEC_HOTPATCH GetScrollRange(HWND hwnd, INT nBar, LPINT lpMin, LPINT lpMax)
{
TRACE("hwnd=%p nBar=%d lpMin=%p lpMax=%p\n", hwnd, nBar, lpMin, lpMax);
@@ -2004,7 +2006,7 @@ static BOOL SCROLL_ShowScrollBar( HWND hwnd, INT nBar, BOOL fShowH, BOOL fShowV
* Success: TRUE
* Failure: FALSE
*/
-BOOL WINAPI ShowScrollBar(HWND hwnd, INT nBar, BOOL fShow)
+BOOL WINAPI DECLSPEC_HOTPATCH ShowScrollBar(HWND hwnd, INT nBar, BOOL fShow)
{
if ( !hwnd )
return FALSE;
@@ -2020,7 +2022,7 @@ BOOL WINAPI ShowScrollBar(HWND hwnd, INT nBar, BOOL fShow)
*
* Enables or disables the scroll bars.
*/
-BOOL WINAPI EnableScrollBar( HWND hwnd, UINT nBar, UINT flags )
+BOOL WINAPI DECLSPEC_HOTPATCH EnableScrollBar( HWND hwnd, UINT nBar, UINT flags )
{
BOOL bFineWithMe;
SCROLLBAR_INFO *infoPtr;
diff --git a/dlls/user32/sysparams.c b/dlls/user32/sysparams.c
index 0bd1dd2..5423bcf 100644
--- a/dlls/user32/sysparams.c
+++ b/dlls/user32/sysparams.c
@@ -2910,7 +2910,7 @@ UINT WINAPI GetDoubleClickTime(void)
/*************************************************************************
* GetSysColor (USER32.@)
*/
-COLORREF WINAPI GetSysColor( INT nIndex )
+COLORREF WINAPI DECLSPEC_HOTPATCH GetSysColor( INT nIndex )
{
if (nIndex >= 0 && nIndex < NUM_SYS_COLORS)
return SysColors[nIndex];
@@ -3025,7 +3025,7 @@ DWORD_PTR WINAPI SetSysColorsTemp( const COLORREF *pPens, const HBRUSH *pBrushes
/***********************************************************************
* GetSysColorBrush (USER32.@)
*/
-HBRUSH WINAPI GetSysColorBrush( INT index )
+HBRUSH WINAPI DECLSPEC_HOTPATCH GetSysColorBrush( INT index )
{
if (0 <= index && index < NUM_SYS_COLORS) return SysColorBrushes[index];
WARN("Unknown index(%d)\n", index );
More information about the wine-cvs
mailing list