push "error" if nsDialogs::Create fails
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5253 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
b2af868f98
commit
5f5bc04e45
1 changed files with 6 additions and 0 deletions
|
@ -132,6 +132,12 @@ void __declspec(dllexport) Create(HWND hwndParent, int string_size, char *variab
|
|||
|
||||
g_dialog.hwDialog = CreateDialog(g_hInstance, MAKEINTRESOURCE(1), hwndParent, DialogProc);
|
||||
|
||||
if (g_dialog.hwDialog == NULL)
|
||||
{
|
||||
pushstring("error");
|
||||
return;
|
||||
}
|
||||
|
||||
SetWindowPos(
|
||||
g_dialog.hwDialog,
|
||||
0,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue