Small hack to get rid of annoying err:resource: message for

MessageBoxes.
This commit is contained in:
Marcus Meissner 1998-12-14 14:42:22 +00:00 committed by Alexandre Julliard
parent 6417e6898e
commit 66da3dc3f6
1 changed files with 4 additions and 2 deletions

View File

@ -182,9 +182,11 @@ LRESULT WINAPI StaticWndProc( HWND32 hWnd, UINT32 uMsg, WPARAM32 wParam,
if (style == SS_ICON)
{
if (cs->lpszName)
STATIC_SetIcon( wndPtr,
if (cs->lpszName) {
if (!HIWORD(cs->lpszName) || cs->lpszName[0])
STATIC_SetIcon( wndPtr,
STATIC_LoadIcon( wndPtr, cs->lpszName ));
}
return 1;
}
if (style == SS_BITMAP)