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();