Changed: Use wide characters version of ShellExecute

--HG--
branch : develop
This commit is contained in:
kervala 2016-11-29 20:26:34 +01:00
parent d568a0eedd
commit 4aaec3dfc9

View file

@ -107,11 +107,11 @@ namespace NLGUI
{ {
return NLMISC::CPath::lookup(fileName, false); return NLMISC::CPath::lookup(fileName, false);
} }
static void shellExecute(const char *operation, const char *fileName, const char *parameters) static void shellExecute(const std::string &operation, const std::string &fileName, const std::string &parameters)
{ {
#if !FINAL_VERSION #if !FINAL_VERSION
#ifdef NL_OS_WINDOWS #ifdef NL_OS_WINDOWS
ShellExecute(NULL, operation, fileName, parameters, NULL, SW_SHOWDEFAULT); ShellExecuteW(NULL, utf8ToWide(operation), utf8ToWide(fileName), utf8ToWide(parameters), NULL, SW_SHOWDEFAULT);
#endif #endif
#endif #endif
} }