Small hack to get rid of annoying err:resource: message for
MessageBoxes.
This commit is contained in:
parent
6417e6898e
commit
66da3dc3f6
|
@ -182,9 +182,11 @@ LRESULT WINAPI StaticWndProc( HWND32 hWnd, UINT32 uMsg, WPARAM32 wParam,
|
||||||
|
|
||||||
if (style == SS_ICON)
|
if (style == SS_ICON)
|
||||||
{
|
{
|
||||||
if (cs->lpszName)
|
if (cs->lpszName) {
|
||||||
STATIC_SetIcon( wndPtr,
|
if (!HIWORD(cs->lpszName) || cs->lpszName[0])
|
||||||
|
STATIC_SetIcon( wndPtr,
|
||||||
STATIC_LoadIcon( wndPtr, cs->lpszName ));
|
STATIC_LoadIcon( wndPtr, cs->lpszName ));
|
||||||
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if (style == SS_BITMAP)
|
if (style == SS_BITMAP)
|
||||||
|
|
Loading…
Reference in New Issue