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
3d2fc2f3
Commit
3d2fc2f3
authored
Apr 01, 2010
by
Mikhail Maroukhine
Committed by
Alexandre Julliard
Apr 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
advapi32: Fix compiler warnings with flag -Wcast-qual.
parent
ae8d9e21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
cred.c
dlls/advapi32/cred.c
+3
-3
No files found.
dlls/advapi32/cred.c
View file @
3d2fc2f3
...
...
@@ -474,10 +474,10 @@ static DWORD registry_write_credential(HKEY hkey, const CREDENTIALW *credential,
GetSystemTimeAsFileTime
(
&
LastWritten
);
ret
=
RegSetValueExW
(
hkey
,
wszFlagsValue
,
0
,
REG_DWORD
,
(
LPVOID
)
&
credential
->
Flags
,
ret
=
RegSetValueExW
(
hkey
,
wszFlagsValue
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
credential
->
Flags
,
sizeof
(
credential
->
Flags
));
if
(
ret
!=
ERROR_SUCCESS
)
return
ret
;
ret
=
RegSetValueExW
(
hkey
,
wszTypeValue
,
0
,
REG_DWORD
,
(
LPVOID
)
&
credential
->
Type
,
ret
=
RegSetValueExW
(
hkey
,
wszTypeValue
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
credential
->
Type
,
sizeof
(
credential
->
Type
));
if
(
ret
!=
ERROR_SUCCESS
)
return
ret
;
ret
=
RegSetValueExW
(
hkey
,
NULL
,
0
,
REG_SZ
,
(
LPVOID
)
credential
->
TargetName
,
...
...
@@ -492,7 +492,7 @@ static DWORD registry_write_credential(HKEY hkey, const CREDENTIALW *credential,
ret
=
RegSetValueExW
(
hkey
,
wszLastWrittenValue
,
0
,
REG_BINARY
,
(
LPVOID
)
&
LastWritten
,
sizeof
(
LastWritten
));
if
(
ret
!=
ERROR_SUCCESS
)
return
ret
;
ret
=
RegSetValueExW
(
hkey
,
wszPersistValue
,
0
,
REG_DWORD
,
(
LPVOID
)
&
credential
->
Persist
,
ret
=
RegSetValueExW
(
hkey
,
wszPersistValue
,
0
,
REG_DWORD
,
(
const
BYTE
*
)
&
credential
->
Persist
,
sizeof
(
credential
->
Persist
));
if
(
ret
!=
ERROR_SUCCESS
)
return
ret
;
/* FIXME: Attributes */
...
...
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