mirror of
https://github.com/reactos/reactos.git
synced 2025-07-30 21:51:47 +00:00
Close window if xml file could not be found.
svn path=/trunk/; revision=25179
This commit is contained in:
parent
36f750fcc3
commit
1e657a7c38
1 changed files with 5 additions and 3 deletions
|
@ -77,7 +77,7 @@ void DisplayApps (HWND hwnd, struct Category* Category)
|
|||
}
|
||||
}
|
||||
|
||||
BOOLEAN SetupControls (HWND hwnd)
|
||||
BOOL SetupControls (HWND hwnd)
|
||||
{
|
||||
HINSTANCE hInstance = GetModuleHandle(NULL);
|
||||
|
||||
|
@ -155,7 +155,8 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
|
|||
{
|
||||
case WM_CREATE:
|
||||
{
|
||||
SetupControls(hwnd);
|
||||
if(!SetupControls(hwnd))
|
||||
return -1;
|
||||
ShowMessage(L"ReactOS Downloader", L"Welcome to ReactOS's Downloader\nPlease choose a category on the right. This is version 0.8.");
|
||||
}
|
||||
break;
|
||||
|
@ -229,7 +230,8 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
|
|||
case WM_DESTROY:
|
||||
{
|
||||
DeleteObject(hLogo);
|
||||
FreeTree(Root.Children);
|
||||
if(Root.Children)
|
||||
FreeTree(Root.Children);
|
||||
PostQuitMessage(0);
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue