Browse Source

Fix UTF8toUTF16 call.

tags/v2.0.0
Andrew Belt 3 years ago
parent
commit
6fbc3d6292
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      standalone/main.cpp

+ 1
- 1
standalone/main.cpp View File

@@ -61,7 +61,7 @@ int main(int argc, char* argv[]) {
#if defined ARCH_WIN
// Windows global mutex to prevent multiple instances
// Handle will be closed by Windows when the process ends
HANDLE instanceMutex = CreateMutexW(NULL, true, string::U8toU16(APP_NAME).c_str());
HANDLE instanceMutex = CreateMutexW(NULL, true, string::UTF8toUTF16(APP_NAME).c_str());
if (GetLastError() == ERROR_ALREADY_EXISTS) {
osdialog_message(OSDIALOG_ERROR, OSDIALOG_OK, "Rack is already running. Multiple Rack instances are not supported.");
exit(1);


Loading…
Cancel
Save