Ensure correct window titles on unicode compiles on Windows

This commit is contained in:
inmarket 2017-06-30 19:44:38 +10:00
parent 9b73187100
commit 97511a9fc7

View File

@ -887,7 +887,7 @@ LLDSPEC bool_t gdisp_lld_init(GDisplay *g) {
#endif #endif
sprintf(buf, APP_NAME " - %u", g->systemdisplay+1); sprintf(buf, APP_NAME " - %u", g->systemdisplay+1);
SetWindowText(priv->hwnd, buf); SetWindowTextA(priv->hwnd, buf);
ShowWindow(priv->hwnd, SW_SHOW); ShowWindow(priv->hwnd, SW_SHOW);
UpdateWindow(priv->hwnd); UpdateWindow(priv->hwnd);