From 536957eb310cf579529951a64fba0632aeb703af Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 19 Sep 2001 22:31:15 +0000 Subject: [PATCH] Fixed a couple of bugs in WIN_SetWindowLong caused by previous change. --- windows/win.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/windows/win.c b/windows/win.c index 9aa8dd315e1..2ca2f7728d4 100644 --- a/windows/win.c +++ b/windows/win.c @@ -1714,7 +1714,13 @@ static LONG WIN_SetWindowLong( HWND hwnd, INT offset, LONG newval, ptr = (DWORD*)&wndPtr->wIDmenu; break; case GWL_HINSTANCE: - retval = SetWindowWord( hwnd, offset, newval ); + ptr = (DWORD*)&wndPtr->hInstance; + break; + case GWL_USERDATA: + ptr = &wndPtr->userdata; + break; + case GWL_HWNDPARENT: + retval = SetParent( hwnd, (HWND)newval ); goto end; case GWL_WNDPROC: retval = (LONG)WINPROC_GetProc( wndPtr->winproc, type ); @@ -1729,10 +1735,6 @@ static LONG WIN_SetWindowLong( HWND hwnd, INT offset, LONG newval, SendMessageA(hwnd,WM_STYLECHANGED,GWL_STYLE,(LPARAM)&style); retval = style.styleOld; goto end; - - case GWL_USERDATA: - ptr = &wndPtr->userdata; - break; case GWL_EXSTYLE: style.styleOld = wndPtr->dwExStyle; style.styleNew = newval; -- 2.11.4.GIT