Regedit: Moved hEditMenu declaration to the top of the function

svn path=/trunk/; revision=18191
This commit is contained in:
Nathan Woods 2005-10-01 15:11:31 +00:00
parent c1388efea5
commit 38ecd48776

View file

@ -73,6 +73,7 @@ TCHAR szChildClass[MAX_LOADSTRING];
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow) BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
{ {
BOOL AclUiAvailable; BOOL AclUiAvailable;
HMENU hEditMenu;
WNDCLASSEX wcFrame = { WNDCLASSEX wcFrame = {
sizeof(WNDCLASSEX), sizeof(WNDCLASSEX),
@ -118,7 +119,6 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
/* Initialize the Windows Common Controls DLL */ /* Initialize the Windows Common Controls DLL */
InitCommonControls(); InitCommonControls();
HMENU hEditMenu;
hEditMenu = GetSubMenu(hMenuFrame, 1); hEditMenu = GetSubMenu(hMenuFrame, 1);
AclUiAvailable = InitializeAclUiDll(); AclUiAvailable = InitializeAclUiDll();