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
73fc0a18
Commit
73fc0a18
authored
Jul 12, 2020
by
Zebediah Figura
Committed by
Alexandre Julliard
Jul 15, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Implement registry mapping in WritePrivateProfileStringW().
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7c4f2d53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
profile.c
dlls/kernel32/profile.c
+17
-0
No files found.
dlls/kernel32/profile.c
View file @
73fc0a18
...
...
@@ -1473,6 +1473,9 @@ BOOL WINAPI WritePrivateProfileStringW( LPCWSTR section, LPCWSTR entry,
LPCWSTR
string
,
LPCWSTR
filename
)
{
BOOL
ret
=
FALSE
;
HKEY
key
;
TRACE
(
"(%s, %s, %s, %s)
\n
"
,
debugstr_w
(
section
),
debugstr_w
(
entry
),
debugstr_w
(
string
),
debugstr_w
(
filename
));
if
(
!
section
&&
!
entry
&&
!
string
)
/* documented "file flush" case */
{
...
...
@@ -1486,6 +1489,20 @@ BOOL WINAPI WritePrivateProfileStringW( LPCWSTR section, LPCWSTR entry,
}
if
(
!
entry
)
return
PROFILE_DeleteSection
(
filename
,
section
);
if
(
get_mapped_section_key
(
filename
,
section
,
entry
,
TRUE
,
&
key
))
{
LSTATUS
res
;
if
(
string
)
res
=
RegSetValueExW
(
key
,
entry
,
0
,
REG_SZ
,
(
const
BYTE
*
)
string
,
(
strlenW
(
string
)
+
1
)
*
sizeof
(
WCHAR
)
);
else
res
=
RegDeleteValueW
(
key
,
entry
);
RegCloseKey
(
key
);
if
(
res
)
SetLastError
(
res
);
return
!
res
;
}
EnterCriticalSection
(
&
PROFILE_CritSect
);
if
(
PROFILE_Open
(
filename
,
TRUE
))
...
...
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