--- np2/win9x/sysmng.cpp 2005/03/20 13:12:49 1.11 +++ np2/win9x/sysmng.cpp 2007/11/11 07:11:27 1.12 @@ -95,9 +95,9 @@ void sysmng_updatecaption(UINT8 flag) { #if defined(OSLANG_UTF8) TCHAR tchr[512]; oemtotchar(tchr, NELEMENTS(tchr), work, -1); - SetWindowText(hWndMain, tchr); + SetWindowText(g_hWndMain, tchr); #else - SetWindowText(hWndMain, work); + SetWindowText(g_hWndMain, work); #endif }