From 8a3132a4062e4c90e1727b1654a0261e9379a1d4 Mon Sep 17 00:00:00 2001 From: Bert Belder Date: Thu, 25 Nov 2010 00:47:42 +0100 Subject: [PATCH] Avoid WCHAR string conversion warning --- src/platform_cygwin.cc | 2 +- src/platform_win32.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/platform_cygwin.cc b/src/platform_cygwin.cc index d6ad3e1ff5d..2c874c74b7d 100644 --- a/src/platform_cygwin.cc +++ b/src/platform_cygwin.cc @@ -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) { diff --git a/src/platform_win32.cc b/src/platform_win32.cc index b828cc5a0b4..af8f7e7eb50 100644 --- a/src/platform_win32.cc +++ b/src/platform_win32.cc @@ -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) {