mirror of
https://github.com/reactos/reactos.git
synced 2025-01-13 01:22:03 +00:00
prevent crash
svn path=/trunk/; revision=25190
This commit is contained in:
parent
3b3aadac55
commit
ad4bf983da
1 changed files with 3 additions and 2 deletions
|
@ -264,7 +264,8 @@ LRESULT CALLBACK WndProc (HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
|
||||||
else if(data->hwndFrom == hApps)
|
else if(data->hwndFrom == hApps)
|
||||||
{
|
{
|
||||||
SelectedApplication = (struct Application*) ((LPNMTREEVIEW)lParam)->itemNew.lParam;
|
SelectedApplication = (struct Application*) ((LPNMTREEVIEW)lParam)->itemNew.lParam;
|
||||||
ShowMessage(SelectedApplication->Name, SelectedApplication->Description);
|
if(SelectedApplication)
|
||||||
|
ShowMessage(SelectedApplication->Name, SelectedApplication->Description);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -328,7 +329,7 @@ INT WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInst,
|
||||||
|
|
||||||
hwnd = CreateWindowW(L"Downloader",
|
hwnd = CreateWindowW(L"Downloader",
|
||||||
Strings[IDS_WINDOW_TITLE],
|
Strings[IDS_WINDOW_TITLE],
|
||||||
WS_OVERLAPPEDWINDOW,
|
WS_OVERLAPPEDWINDOW|WS_CLIPCHILDREN,
|
||||||
CW_USEDEFAULT,
|
CW_USEDEFAULT,
|
||||||
CW_USEDEFAULT,
|
CW_USEDEFAULT,
|
||||||
600, 550,
|
600, 550,
|
||||||
|
|
Loading…
Reference in a new issue