Avoid WCHAR string conversion warning

pull/22966/head
Bert Belder 2010-11-25 00:47:42 +01:00
parent 0b54514a86
commit 8a3132a406
2 changed files with 2 additions and 2 deletions

View File

@ -84,7 +84,7 @@ static inline char* _getProcessTitle() {
char *title;
int length, length_w;
length_w = GetConsoleTitleW(L"\0", sizeof(WCHAR));
length_w = GetConsoleTitleW((WCHAR*)L"\0", sizeof(WCHAR));
// If length is zero, there may be an error or the title may be empty
if (!length_w) {

View File

@ -85,7 +85,7 @@ static inline char* _getProcessTitle() {
char *title;
int length, length_w;
length_w = GetConsoleTitleW(L"\0", sizeof(WCHAR));
length_w = GetConsoleTitleW((WCHAR*)L"\0", sizeof(WCHAR));
// If length is zero, there may be an error or the title may be empty
if (!length_w) {