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
0603559d
Commit
0603559d
authored
Dec 08, 2005
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Check for failure to get the user path in RtlOpenCurrentUser.
Fixed the return value type.
parent
b586f6fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
reg.c
dlls/ntdll/reg.c
+2
-2
winternl.h
include/winternl.h
+1
-1
No files found.
dlls/ntdll/reg.c
View file @
0603559d
...
...
@@ -843,7 +843,7 @@ NTSTATUS WINAPI RtlFormatCurrentUserKeyPath( IN OUT PUNICODE_STRING KeyPath)
* If we return just HKEY_CURRENT_USER the advapi tries to find a remote
* registry (odd handle) and fails.
*/
DWORD
WINAPI
RtlOpenCurrentUser
(
NTSTATUS
WINAPI
RtlOpenCurrentUser
(
IN
ACCESS_MASK
DesiredAccess
,
/* [in] */
OUT
PHANDLE
KeyHandle
)
/* [out] handle of HKEY_CURRENT_USER */
{
...
...
@@ -853,7 +853,7 @@ DWORD WINAPI RtlOpenCurrentUser(
TRACE
(
"(0x%08lx, %p)
\n
"
,
DesiredAccess
,
KeyHandle
);
RtlFormatCurrentUserKeyPath
(
&
ObjectName
)
;
if
((
ret
=
RtlFormatCurrentUserKeyPath
(
&
ObjectName
)))
return
ret
;
InitializeObjectAttributes
(
&
ObjectAttributes
,
&
ObjectName
,
OBJ_CASE_INSENSITIVE
,
0
,
NULL
);
ret
=
NtCreateKey
(
KeyHandle
,
DesiredAccess
,
&
ObjectAttributes
,
0
,
NULL
,
0
,
NULL
);
RtlFreeUnicodeString
(
&
ObjectName
);
...
...
include/winternl.h
View file @
0603559d
...
...
@@ -2120,7 +2120,7 @@ ULONG WINAPI RtlNumberOfClearBits(PCRTL_BITMAP);
UINT
WINAPI
RtlOemStringToUnicodeSize
(
const
STRING
*
);
NTSTATUS
WINAPI
RtlOemStringToUnicodeString
(
UNICODE_STRING
*
,
const
STRING
*
,
BOOLEAN
);
NTSTATUS
WINAPI
RtlOemToUnicodeN
(
LPWSTR
,
DWORD
,
LPDWORD
,
LPCSTR
,
DWORD
);
DWORD
WINAPI
RtlOpenCurrentUser
(
ACCESS_MASK
,
PHANDLE
);
NTSTATUS
WINAPI
RtlOpenCurrentUser
(
ACCESS_MASK
,
PHANDLE
);
NTSTATUS
WINAPI
RtlPinAtomInAtomTable
(
RTL_ATOM_TABLE
,
RTL_ATOM
);
BOOLEAN
WINAPI
RtlPrefixString
(
const
STRING
*
,
const
STRING
*
,
BOOLEAN
);
...
...
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