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/n…
==============================================================================
--- 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/d…
==============================================================================
--- 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