From 38ecd48776560685fcd90f1eb00641d508e02ac1 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Sat, 1 Oct 2005 15:11:31 +0000 Subject: [PATCH] Regedit: Moved hEditMenu declaration to the top of the function svn path=/trunk/; revision=18191 --- reactos/subsys/system/regedit/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/subsys/system/regedit/main.c b/reactos/subsys/system/regedit/main.c index 395cc4fc678..de99d30f43d 100644 --- a/reactos/subsys/system/regedit/main.c +++ b/reactos/subsys/system/regedit/main.c @@ -73,6 +73,7 @@ TCHAR szChildClass[MAX_LOADSTRING]; BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) { BOOL AclUiAvailable; + HMENU hEditMenu; WNDCLASSEX wcFrame = { sizeof(WNDCLASSEX), @@ -118,7 +119,6 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) /* Initialize the Windows Common Controls DLL */ InitCommonControls(); - HMENU hEditMenu; hEditMenu = GetSubMenu(hMenuFrame, 1); AclUiAvailable = InitializeAclUiDll();