Commit a1117603 authored by DailyShana's avatar DailyShana

fix

parent 4db09d41
......@@ -35,10 +35,10 @@ void ClickButton(irr::gui::IGUIElement* btn) {
int main(int argc, char* argv[]) {
#ifdef _WIN32
wchar_t exepath[MAX_PATH];
GetModuleFileName(NULL, exepath, MAX_PATH);
GetModuleFileNameW(NULL, exepath, MAX_PATH);
wchar_t* p = wcsrchr(exepath, '\\');
*p = '\0';
SetCurrentDirectory(exepath);
SetCurrentDirectoryW(exepath);
#endif //_WIN32
#ifdef _WIN32
WORD wVersionRequested;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment