Browse Source

Build on Windows

kiwec 1 month ago
parent
commit
d9f7da9b74
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Engine/Platform/WinEnvironment.cpp

+ 1 - 1
src/Engine/Platform/WinEnvironment.cpp

@@ -195,7 +195,7 @@ void WinEnvironment::openURLInDefaultBrowser(UString url) {
 
 void WinEnvironment::openDirectory(std::string path) {
     UString wpath(path.c_str());
-    ShellExecute(m_hwnd, L"open", wpath.wc_str(), NULL, NULL, SW_SHOW);
+    ShellExecuteW(m_hwnd, L"open", wpath.wc_str(), NULL, NULL, SW_SHOW);
 }
 
 UString WinEnvironment::openFileWindow(const char *filetypefilters, UString title, UString initialpath) {