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
a0d0d0dd
Commit
a0d0d0dd
authored
Nov 06, 2015
by
Jacek Caban
Committed by
Alexandre Julliard
Nov 06, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Fixed argument order in NtNotifyChangeKey.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
bb44de78
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
4 deletions
+29
-4
registry.c
dlls/advapi32/registry.c
+2
-2
reg.c
dlls/ntdll/reg.c
+2
-2
reg.c
dlls/ntdll/tests/reg.c
+25
-0
No files found.
dlls/advapi32/registry.c
View file @
a0d0d0dd
...
...
@@ -2674,8 +2674,8 @@ LSTATUS WINAPI RegNotifyChangeKeyValue( HKEY hkey, BOOL fWatchSubTree,
hEvent
,
fAsync
);
status
=
NtNotifyChangeKey
(
hkey
,
hEvent
,
NULL
,
NULL
,
&
iosb
,
fdwNotifyFilter
,
f
Async
,
NULL
,
0
,
f
WatchSubTree
);
fdwNotifyFilter
,
f
WatchSubTree
,
NULL
,
0
,
f
Async
);
if
(
status
&&
status
!=
STATUS_TIMEOUT
)
return
RtlNtStatusToDosError
(
status
);
...
...
dlls/ntdll/reg.c
View file @
a0d0d0dd
...
...
@@ -643,10 +643,10 @@ NTSTATUS WINAPI NtNotifyChangeKey(
IN
PVOID
ApcContext
OPTIONAL
,
OUT
PIO_STATUS_BLOCK
IoStatusBlock
,
IN
ULONG
CompletionFilter
,
IN
BOOLEAN
Asynchronous
,
IN
BOOLEAN
WatchSubtree
,
OUT
PVOID
ChangeBuffer
,
IN
ULONG
Length
,
IN
BOOLEAN
WatchSubtree
)
IN
BOOLEAN
Asynchronous
)
{
NTSTATUS
ret
;
...
...
dlls/ntdll/tests/reg.c
View file @
a0d0d0dd
...
...
@@ -146,6 +146,7 @@ static NTSTATUS (WINAPI * pRtlFreeHeap)(PVOID, ULONG, PVOID);
static
LPVOID
(
WINAPI
*
pRtlAllocateHeap
)(
PVOID
,
ULONG
,
ULONG
);
static
NTSTATUS
(
WINAPI
*
pRtlZeroMemory
)(
PVOID
,
ULONG
);
static
NTSTATUS
(
WINAPI
*
pRtlpNtQueryValueKey
)(
HANDLE
,
ULONG
*
,
PBYTE
,
DWORD
*
,
void
*
);
static
NTSTATUS
(
WINAPI
*
pNtNotifyChangeKey
)(
HANDLE
,
HANDLE
,
PIO_APC_ROUTINE
,
PVOID
,
PIO_STATUS_BLOCK
,
ULONG
,
BOOLEAN
,
PVOID
,
ULONG
,
BOOLEAN
);
static
HMODULE
hntdll
=
0
;
static
int
CurrentTest
=
0
;
...
...
@@ -183,6 +184,7 @@ static BOOL InitFunctionPtrs(void)
NTDLL_GET_PROC
(
NtQueryInformationProcess
)
NTDLL_GET_PROC
(
NtSetValueKey
)
NTDLL_GET_PROC
(
NtOpenKey
)
NTDLL_GET_PROC
(
NtNotifyChangeKey
)
NTDLL_GET_PROC
(
RtlFormatCurrentUserKeyPath
)
NTDLL_GET_PROC
(
RtlCompareUnicodeString
)
NTDLL_GET_PROC
(
RtlReAllocateHeap
)
...
...
@@ -1502,6 +1504,28 @@ static void test_NtQueryKey(void)
pNtClose
(
key
);
}
static
void
test_notify
(
void
)
{
OBJECT_ATTRIBUTES
attr
;
IO_STATUS_BLOCK
iosb
;
NTSTATUS
status
;
HANDLE
key
,
event
;
InitializeObjectAttributes
(
&
attr
,
&
winetestpath
,
0
,
0
,
0
);
status
=
pNtOpenKey
(
&
key
,
KEY_ALL_ACCESS
,
&
attr
);
ok
(
status
==
STATUS_SUCCESS
,
"NtOpenKey Failed: 0x%08x
\n
"
,
status
);
event
=
CreateEventW
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ok
(
event
!=
NULL
,
"CreateEvent failed: %u
\n
"
,
GetLastError
());
status
=
pNtNotifyChangeKey
(
key
,
event
,
NULL
,
NULL
,
&
iosb
,
REG_NOTIFY_CHANGE_NAME
,
FALSE
,
NULL
,
0
,
TRUE
);
todo_wine
ok
(
status
==
STATUS_PENDING
,
"NtNotifyChangeKey returned %x
\n
"
,
status
);
pNtClose
(
key
);
pNtClose
(
event
);
}
START_TEST
(
reg
)
{
static
const
WCHAR
winetest
[]
=
{
'\\'
,
'W'
,
'i'
,
'n'
,
'e'
,
'T'
,
'e'
,
's'
,
't'
,
0
};
...
...
@@ -1526,6 +1550,7 @@ START_TEST(reg)
test_NtQueryLicenseKey
();
test_NtQueryValueKey
();
test_long_value_name
();
test_notify
();
test_NtDeleteKey
();
test_symlinks
();
test_redirection
();
...
...
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