Преглед изворни кода

Fix win32 shell compilation issue in some environments.

Michael Ragazzon пре 5 година
родитељ
комит
8aaf78c30c
2 измењених фајлова са 4 додато и 3 уклоњено
  1. 2 1
      .gitignore
  2. 2 2
      Samples/shell/src/win32/ShellWin32.cpp

+ 2 - 1
.gitignore

@@ -2,7 +2,8 @@
 /Build/
 
 # Other common build targets
-/build/
+/build*/
+/Build*/
 /Bin/
 /bin/
 /Lib/

+ 2 - 2
Samples/shell/src/win32/ShellWin32.cpp

@@ -268,7 +268,7 @@ void Shell::DisplayError(const char* fmt, ...)
 	buffer[len + 1] = '\0';
 	va_end(argument_list);
 
-	MessageBox(window_handle, (LPCWSTR)Rml::StringUtilities::ToUTF16(buffer).c_str(), L"Shell Error", MB_OK);
+	MessageBoxW(window_handle, (LPCWSTR)Rml::StringUtilities::ToUTF16(buffer).c_str(), L"Shell Error", MB_OK);
 }
 
 void Shell::Log(const char* fmt, ...)
@@ -288,7 +288,7 @@ void Shell::Log(const char* fmt, ...)
 	buffer[len + 1] = '\0';
 	va_end(argument_list);
 
-	OutputDebugString((LPCWSTR)Rml::StringUtilities::ToUTF16(buffer).c_str());
+	OutputDebugStringW((LPCWSTR)Rml::StringUtilities::ToUTF16(buffer).c_str());
 }
 
 double Shell::GetElapsedTime()