Browse Source

Avoid WCHAR string conversion warning

v0.7.4-release
Bert Belder 14 years ago
parent
commit
8a3132a406
  1. 2
      src/platform_cygwin.cc
  2. 2
      src/platform_win32.cc

2
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) {

2
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) {

Loading…
Cancel
Save