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
7a353e15
Commit
7a353e15
authored
Jun 16, 2023
by
Jactry Zeng
Committed by
Alexandre Julliard
Jun 19, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
atl: Convert REG_DWORD to a correct type.
parent
6468ffd8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
registrar.c
dlls/atl/registrar.c
+1
-1
registrar.c
dlls/atl/tests/registrar.c
+8
-0
No files found.
dlls/atl/registrar.c
View file @
7a353e15
...
@@ -280,7 +280,7 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO
...
@@ -280,7 +280,7 @@ static HRESULT do_process_key(LPCOLESTR *pstr, HKEY parent_key, strbuf *buf, BOO
hres
=
get_word
(
&
iter
,
buf
);
hres
=
get_word
(
&
iter
,
buf
);
if
(
FAILED
(
hres
))
if
(
FAILED
(
hres
))
break
;
break
;
dw
=
wcstol
(
buf
->
str
,
NULL
,
10
);
dw
=
wcsto
u
l
(
buf
->
str
,
NULL
,
10
);
lres
=
RegSetValueExW
(
hkey
,
name
.
len
?
name
.
str
:
NULL
,
0
,
REG_DWORD
,
lres
=
RegSetValueExW
(
hkey
,
name
.
len
?
name
.
str
:
NULL
,
0
,
REG_DWORD
,
(
PBYTE
)
&
dw
,
sizeof
(
dw
));
(
PBYTE
)
&
dw
,
sizeof
(
dw
));
if
(
lres
!=
ERROR_SUCCESS
)
{
if
(
lres
!=
ERROR_SUCCESS
)
{
...
...
dlls/atl/tests/registrar.c
View file @
7a353e15
...
@@ -49,6 +49,10 @@ static const char textA[] =
...
@@ -49,6 +49,10 @@ static const char textA[] =
" val 'dword_unquoted_dec' = d 1
\n
"
" val 'dword_unquoted_dec' = d 1
\n
"
" val 'dword_quoted_hex' = d '0xA'
\n
"
" val 'dword_quoted_hex' = d '0xA'
\n
"
" val 'dword_unquoted_hex' = d 0xA
\n
"
" val 'dword_unquoted_hex' = d 0xA
\n
"
" val 'dword_negative' = d -2147483648
\n
"
" val 'dword_ulong' = d 2147483649
\n
"
" val 'dword_max' = d 4294967295
\n
"
" val 'dword_overrange' = d 4294967296
\n
"
" val 'binary_quoted' = b 'deadbeef'
\n
"
" val 'binary_quoted' = b 'deadbeef'
\n
"
" val 'binary_unquoted' = b dead0123
\n
"
" val 'binary_unquoted' = b dead0123
\n
"
" }
\n
"
" }
\n
"
...
@@ -72,6 +76,10 @@ static void test_registrar(void)
...
@@ -72,6 +76,10 @@ static void test_registrar(void)
{
"dword_quoted_dec"
,
TRUE
,
1
},
{
"dword_quoted_dec"
,
TRUE
,
1
},
{
"dword_quoted_hex"
,
FALSE
,
0xA
},
{
"dword_quoted_hex"
,
FALSE
,
0xA
},
{
"dword_unquoted_hex"
,
FALSE
,
0xA
},
{
"dword_unquoted_hex"
,
FALSE
,
0xA
},
{
"dword_negative"
,
FALSE
,
-
2147483648
},
{
"dword_ulong"
,
TRUE
,
2147483649
},
{
"dword_max"
,
TRUE
,
4294967295
},
{
"dword_overrange"
,
FALSE
,
4294967296
},
};
};
if
(
!
GetProcAddress
(
GetModuleHandleA
(
"atl.dll"
),
"AtlAxAttachControl"
))
if
(
!
GetProcAddress
(
GetModuleHandleA
(
"atl.dll"
),
"AtlAxAttachControl"
))
...
...
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