Module: wine Branch: master Commit: 0a0316ea455668c25dad97643098f528932dcdae URL: http://source.winehq.org/git/wine.git/?a=commit;h=0a0316ea455668c25dad976430...
Author: Detlef Riekenberg wine.dev@web.de Date: Thu Feb 8 00:08:44 2007 +0100
regedit: Do not pass a global available pointer to a static function.
---
programs/regedit/childwnd.c | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/programs/regedit/childwnd.c b/programs/regedit/childwnd.c index b7262ff..3b3be61 100644 --- a/programs/regedit/childwnd.c +++ b/programs/regedit/childwnd.c @@ -60,14 +60,14 @@ static void draw_splitbar(HWND hWnd, int ReleaseDC(hWnd, hdc); }
-static void ResizeWnd(ChildWnd* pChildWnd, int cx, int cy) +static void ResizeWnd(int cx, int cy) { HDWP hdwp = BeginDeferWindowPos(2); RECT rt = {0, 0, cx, cy};
- cx = pChildWnd->nSplitPos + SPLIT_WIDTH/2; - DeferWindowPos(hdwp, pChildWnd->hTreeWnd, 0, rt.left, rt.top, pChildWnd->nSplitPos-SPLIT_WIDTH/2-rt.left, rt.bottom-rt.top, SWP_NOZORDER|SWP_NOACTIVATE); - DeferWindowPos(hdwp, pChildWnd->hListWnd, 0, rt.left+cx , rt.top, rt.right-cx, rt.bottom-rt.top, SWP_NOZORDER|SWP_NOACTIVATE); + cx = g_pChildWnd->nSplitPos + SPLIT_WIDTH/2; + DeferWindowPos(hdwp, g_pChildWnd->hTreeWnd, 0, rt.left, rt.top, g_pChildWnd->nSplitPos-SPLIT_WIDTH/2-rt.left, rt.bottom-rt.top, SWP_NOZORDER|SWP_NOACTIVATE); + DeferWindowPos(hdwp, g_pChildWnd->hListWnd, 0, rt.left+cx , rt.top, rt.right-cx, rt.bottom-rt.top, SWP_NOZORDER|SWP_NOACTIVATE); EndDeferWindowPos(hdwp); }
@@ -263,7 +263,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, last_split = -1; GetClientRect(hWnd, &rt); pChildWnd->nSplitPos = x; - ResizeWnd(pChildWnd, rt.right, rt.bottom); + ResizeWnd(rt.right, rt.bottom); ReleaseCapture(); } break; @@ -279,7 +279,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd, RECT rt; draw_splitbar(hWnd, last_split); GetClientRect(hWnd, &rt); - ResizeWnd(pChildWnd, rt.right, rt.bottom); + ResizeWnd(rt.right, rt.bottom); last_split = -1; ReleaseCapture(); SetCursor(LoadCursor(0, IDC_ARROW)); @@ -364,7 +364,7 @@ LRESULT CALLBACK ChildWndProc(HWND hWnd,
case WM_SIZE: if (wParam != SIZE_MINIMIZED && pChildWnd != NULL) { - ResizeWnd(pChildWnd, LOWORD(lParam), HIWORD(lParam)); + ResizeWnd(LOWORD(lParam), HIWORD(lParam)); } /* fall through */ default: def: