mirror of https://github.com/nodejs/node.git
Avoid WCHAR string conversion warning
parent
0b54514a86
commit
8a3132a406
|
@ -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) {
|
||||
|
|
|
@ -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…
Reference in New Issue