mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 01:48:44 +00:00
Changed: Use wide characters version of ShellExecute
--HG-- branch : develop
This commit is contained in:
parent
d568a0eedd
commit
4aaec3dfc9
1 changed files with 2 additions and 2 deletions
|
@ -107,11 +107,11 @@ namespace NLGUI
|
|||
{
|
||||
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 ¶meters)
|
||||
{
|
||||
#if !FINAL_VERSION
|
||||
#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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue