user32: Issue a warning when dialog control creation fails.

This commit is contained in:
Dmitry Timoshkov 2011-11-17 13:19:38 +08:00 committed by Alexandre Julliard
parent 9bdcfc5d3e
commit eb0576ba59
1 changed files with 2 additions and 0 deletions

View File

@ -317,6 +317,8 @@ static BOOL DIALOG_CreateControls32( HWND hwnd, LPCSTR template, const DLG_TEMPL
}
if (!hwndCtrl)
{
WARN("control %s %s creation failed\n", debugstr_w(info.className),
debugstr_w(info.windowName));
if (dlgTemplate->style & DS_NOFAILCREATE) continue;
return FALSE;
}