projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scrollbar:
[reactos.git]
/
reactos
/
subsys
/
win32k
/
ntuser
/
window.c
diff --git
a/reactos/subsys/win32k/ntuser/window.c
b/reactos/subsys/win32k/ntuser/window.c
index
8d39e92
..
ff3e175
100644
(file)
--- a/
reactos/subsys/win32k/ntuser/window.c
+++ b/
reactos/subsys/win32k/ntuser/window.c
@@
-1973,15
+1973,18
@@
co_IntCreateWindowEx(DWORD dwExStyle,
IntReleaseWindowObject(ParentWindow);
}
IntReleaseWindowObject(ParentWindow);
}
+ //faxme:temp hack
+ UserReferenceWindowObjectCo(Window);
/* Initialize and show the window's scrollbars */
if (Window->Style & WS_VSCROLL)
{
/* Initialize and show the window's scrollbars */
if (Window->Style & WS_VSCROLL)
{
- co_UserShowScrollBar(Window
->hSelf
, SB_VERT, TRUE);
+ co_UserShowScrollBar(Window, SB_VERT, TRUE);
}
if (Window->Style & WS_HSCROLL)
{
}
if (Window->Style & WS_HSCROLL)
{
- co_UserShowScrollBar(Window
->hSelf
, SB_HORZ, TRUE);
+ co_UserShowScrollBar(Window, SB_HORZ, TRUE);
}
}
+ UserDereferenceWindowObjectCo(Window);
if (dwStyle & WS_VISIBLE)
{
if (dwStyle & WS_VISIBLE)
{
@@
-3109,7
+3112,6
@@
CLEANUP:
HMENU STDCALL
NtUserGetSystemMenu(HWND hWnd, BOOL bRevert)
{
HMENU STDCALL
NtUserGetSystemMenu(HWND hWnd, BOOL bRevert)
{
- HMENU Result = 0;
PWINDOW_OBJECT Window;
PMENU_OBJECT Menu;
DECLARE_RETURN(HMENU);
PWINDOW_OBJECT Window;
PMENU_OBJECT Menu;
DECLARE_RETURN(HMENU);
@@
-3117,20
+3119,17
@@
NtUserGetSystemMenu(HWND hWnd, BOOL bRevert)
DPRINT("Enter NtUserGetSystemMenu\n");
UserEnterShared();
DPRINT("Enter NtUserGetSystemMenu\n");
UserEnterShared();
- if (!(Window =
Int
GetWindowObject(hWnd)))
+ if (!(Window =
User
GetWindowObject(hWnd)))
{
{
- SetLastWin32Error(ERROR_INVALID_WINDOW_HANDLE);
- RETURN( 0);
+ RETURN(NULL);
}
if (!(Menu = IntGetSystemMenu(Window, bRevert, FALSE)))
{
}
if (!(Menu = IntGetSystemMenu(Window, bRevert, FALSE)))
{
- Result = Menu->MenuInfo.Self;
- IntReleaseMenuObject(Menu);
+ RETURN(NULL);
}
}
- IntReleaseWindowObject(Window);
- RETURN( Result);
+ RETURN(Menu->MenuInfo.Self);
CLEANUP:
DPRINT("Leave NtUserGetSystemMenu, ret=%i\n",_ret_);
CLEANUP:
DPRINT("Leave NtUserGetSystemMenu, ret=%i\n",_ret_);