diff --git a/Contrib/nsDialogs/nsDialogs.c b/Contrib/nsDialogs/nsDialogs.c index f0876228..f0a42dad 100644 --- a/Contrib/nsDialogs/nsDialogs.c +++ b/Contrib/nsDialogs/nsDialogs.c @@ -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,