Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
cdb9be7b
Commit
cdb9be7b
authored
Nov 13, 2002
by
Aric Stewart
Committed by
Alexandre Julliard
Nov 13, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Work with the correct subkey with loading keys. Not a true fix to the
LoadKey/SaveKey situation.
parent
2d106a57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
registry.c
dlls/advapi32/registry.c
+10
-2
No files found.
dlls/advapi32/registry.c
View file @
cdb9be7b
...
...
@@ -1452,6 +1452,7 @@ LONG WINAPI RegLoadKeyW( HKEY hkey, LPCWSTR subkey, LPCWSTR filename )
{
HANDLE
file
;
DWORD
ret
,
len
,
err
=
GetLastError
();
HKEY
shkey
;
TRACE
(
"(%p,%s,%s)
\n
"
,
hkey
,
debugstr_w
(
subkey
),
debugstr_w
(
filename
)
);
...
...
@@ -1469,15 +1470,18 @@ LONG WINAPI RegLoadKeyW( HKEY hkey, LPCWSTR subkey, LPCWSTR filename )
goto
done
;
}
RegCreateKeyW
(
hkey
,
subkey
,
&
shkey
);
SERVER_START_REQ
(
load_registry
)
{
req
->
hkey
=
hkey
;
req
->
hkey
=
s
hkey
;
req
->
file
=
file
;
wine_server_add_data
(
req
,
subkey
,
len
);
ret
=
RtlNtStatusToDosError
(
wine_server_call
(
req
)
);
}
SERVER_END_REQ
;
CloseHandle
(
file
);
RegCloseKey
(
shkey
);
done:
SetLastError
(
err
);
/* restore the last error code */
...
...
@@ -1493,6 +1497,7 @@ LONG WINAPI RegLoadKeyA( HKEY hkey, LPCSTR subkey, LPCSTR filename )
WCHAR
buffer
[
MAX_PATH
];
HANDLE
file
;
DWORD
ret
,
len
,
err
=
GetLastError
();
HKEY
shkey
;
TRACE
(
"(%p,%s,%s)
\n
"
,
hkey
,
debugstr_a
(
subkey
),
debugstr_a
(
filename
)
);
...
...
@@ -1510,15 +1515,18 @@ LONG WINAPI RegLoadKeyA( HKEY hkey, LPCSTR subkey, LPCSTR filename )
goto
done
;
}
RegCreateKeyA
(
hkey
,
subkey
,
&
shkey
);
SERVER_START_REQ
(
load_registry
)
{
req
->
hkey
=
hkey
;
req
->
hkey
=
s
hkey
;
req
->
file
=
file
;
wine_server_add_data
(
req
,
buffer
,
len
*
sizeof
(
WCHAR
)
);
ret
=
RtlNtStatusToDosError
(
wine_server_call
(
req
)
);
}
SERVER_END_REQ
;
CloseHandle
(
file
);
RegCloseKey
(
shkey
);
done:
SetLastError
(
err
);
/* restore the last error code */
...
...
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