Logging bug fix and some warning fixes.

This commit is contained in:
Henrik Rydgard
2013-08-27 19:44:05 +02:00
parent bb8f38a145
commit b063724c9e
8 changed files with 19 additions and 8 deletions
+1
View File
@@ -25,6 +25,7 @@ void OutputDebugStringUTF8(const char *p) {
int len = std::min(2047, (int)strlen(p));
int size = (int)MultiByteToWideChar(CP_UTF8, 0, p, len, NULL, 0);
MultiByteToWideChar(CP_UTF8, 0, p, len, temp, size);
temp[size] = 0;
OutputDebugString(temp);
}