Commit 9acd67ec authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

shlwapi: Do not use wide character constants.

parent 83047596
...@@ -703,7 +703,7 @@ BOOL WINAPI SHRegGetBoolUSValueW( ...@@ -703,7 +703,7 @@ BOOL WINAPI SHRegGetBoolUSValueW(
/* process returned data via type into bool */ /* process returned data via type into bool */
switch (type) { switch (type) {
case REG_SZ: case REG_SZ:
data[9] = L'\0'; /* set end of string */ data[9] = '\0'; /* set end of string */
if (lstrcmpiW(data, wYES)==0 || lstrcmpiW(data, wTRUE)==0) if (lstrcmpiW(data, wYES)==0 || lstrcmpiW(data, wTRUE)==0)
ret = TRUE; ret = TRUE;
else if (lstrcmpiW(data, wNO)==0 || lstrcmpiW(data, wFALSE)==0) else if (lstrcmpiW(data, wNO)==0 || lstrcmpiW(data, wFALSE)==0)
...@@ -715,7 +715,7 @@ BOOL WINAPI SHRegGetBoolUSValueW( ...@@ -715,7 +715,7 @@ BOOL WINAPI SHRegGetBoolUSValueW(
break; break;
case REG_BINARY: case REG_BINARY:
if (datalen == 1) { if (datalen == 1) {
ret = (data[0] != L'\0'); ret = (data[0] != '\0');
break; break;
} }
default: default:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment