Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
7300bc32
Commit
7300bc32
authored
Nov 06, 2001
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 06, 2001
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect use of a Unicode string literal.
parent
74c2cbee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
reg.c
dlls/shlwapi/reg.c
+8
-4
No files found.
dlls/shlwapi/reg.c
View file @
7300bc32
...
...
@@ -430,6 +430,10 @@ BOOL WINAPI SHRegGetBoolUSValueW(
BOOL
fIgnoreHKCU
,
BOOL
fDefault
)
{
static
const
WCHAR
wYES
[]
=
{
'Y'
,
'E'
,
'S'
,
'\0'
};
static
const
WCHAR
wTRUE
[]
=
{
'T'
,
'R'
,
'U'
,
'E'
,
'\0'
};
static
const
WCHAR
wNO
[]
=
{
'N'
,
'O'
,
'\0'
};
static
const
WCHAR
wFALSE
[]
=
{
'F'
,
'A'
,
'L'
,
'S'
,
'E'
,
'\0'
};
LONG
retvalue
;
DWORD
type
,
datalen
,
work
;
BOOL
ret
=
fDefault
;
...
...
@@ -447,10 +451,10 @@ BOOL WINAPI SHRegGetBoolUSValueW(
switch
(
type
)
{
case
REG_SZ
:
data
[
9
]
=
L'\0'
;
/* set end of string */
if
(
lstrcmpiW
(
data
,
L"YES"
)
==
0
)
ret
=
TRUE
;
if
(
lstrcmpiW
(
data
,
L"TRUE"
)
==
0
)
ret
=
TRUE
;
if
(
lstrcmpiW
(
data
,
L"NO"
)
==
0
)
ret
=
FALSE
;
if
(
lstrcmpiW
(
data
,
L"FALSE"
)
==
0
)
ret
=
FALSE
;
if
(
lstrcmpiW
(
data
,
wYES
)
==
0
||
lstrcmpiW
(
data
,
wTRUE
)
==
0
)
ret
=
TRUE
;
else
if
(
lstrcmpiW
(
data
,
wNO
)
==
0
||
lstrcmpiW
(
data
,
wFALSE
)
==
0
)
ret
=
FALSE
;
break
;
case
REG_DWORD
:
work
=
*
(
LPDWORD
)
data
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment