[ros-diffs] [sginsberg] 43064: - Fix uninitialized variable usage in DefWindowProcA/W - Don't inline EnableScrollBar as a forwarder for NtUserEnableScrollBar when it is implemented differently. Also define EXTINLINE compatibly for MSVC.

sginsberg at svn.reactos.org sginsberg at svn.reactos.org
Thu Sep 17 17:46:24 CEST 2009


Author: sginsberg
Date: Thu Sep 17 17:46:24 2009
New Revision: 43064

URL: http://svn.reactos.org/svn/reactos?rev=43064&view=rev
Log:
- Fix uninitialized variable usage in DefWindowProcA/W
- Don't inline EnableScrollBar as a forwarder for NtUserEnableScrollBar when it is implemented differently. Also define EXTINLINE compatibly for MSVC.

Modified:
    trunk/reactos/dll/win32/user32/include/ntwrapper.h
    trunk/reactos/dll/win32/user32/windows/defwnd.c

Modified: trunk/reactos/dll/win32/user32/include/ntwrapper.h
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/include/ntwrapper.h?rev=43064&r1=43063&r2=43064&view=diff
==============================================================================
--- trunk/reactos/dll/win32/user32/include/ntwrapper.h [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/include/ntwrapper.h [iso-8859-1] Thu Sep 17 17:46:24 2009
@@ -1,10 +1,10 @@
+#if defined(__GNUC__)
 #define EXTINLINE extern inline __attribute__((always_inline)) 
-
-EXTINLINE BOOL WINAPI
-EnableScrollBar(HWND hWnd, UINT wSBflags, UINT wArrows)
-{
-    return NtUserEnableScrollBar(hWnd, wSBflags, wArrows);
-}
+#elif defined(_MSC_VER)
+#define EXTINLINE extern __forceinline
+#else
+#error
+#endif
 
 EXTINLINE BOOL WINAPI
 GetScrollBarInfo(HWND hWnd, LONG idObject, PSCROLLBARINFO psbi)

Modified: trunk/reactos/dll/win32/user32/windows/defwnd.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/user32/windows/defwnd.c?rev=43064&r1=43063&r2=43064&view=diff
==============================================================================
--- trunk/reactos/dll/win32/user32/windows/defwnd.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/user32/windows/defwnd.c [iso-8859-1] Thu Sep 17 17:46:24 2009
@@ -2181,7 +2181,7 @@
 	       WPARAM wParam,
 	       LPARAM lParam)
 {
-   BOOL Hook, msgOverride;
+   BOOL Hook, msgOverride = FALSE;
    LRESULT Result = 0;
 
    LOADUSERAPIHOOK
@@ -2214,7 +2214,7 @@
 	       WPARAM wParam,
 	       LPARAM lParam)
 {
-   BOOL Hook, msgOverride;
+   BOOL Hook, msgOverride = FALSE;
    LRESULT Result = 0;
 
    LOADUSERAPIHOOK




More information about the Ros-diffs mailing list