mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-27 00:00:07 -06:00
libui/windows: don't explode if setWindowText() fails. fixes random crash when closing window.
also add extra safety, can't hurt.
This commit is contained in:
@ -29,8 +29,7 @@ WCHAR *windowText(HWND hwnd)
|
||||
|
||||
void setWindowText(HWND hwnd, WCHAR *wtext)
|
||||
{
|
||||
if (SetWindowTextW(hwnd, wtext) == 0)
|
||||
logLastError(L"error setting window text");
|
||||
SetWindowTextW(hwnd, wtext);
|
||||
}
|
||||
|
||||
void uiFreeText(char *text)
|
||||
|
Reference in New Issue
Block a user