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
79165b16
Commit
79165b16
authored
Jul 25, 2023
by
Paul Gofman
Committed by
Alexandre Julliard
Aug 01, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nsi: Implement NsiCancelChangeNotification().
parent
a72f91f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
14 deletions
+20
-14
nsi.c
dlls/nsi/nsi.c
+8
-2
nsi.c
dlls/nsi/tests/nsi.c
+12
-12
No files found.
dlls/nsi/nsi.c
View file @
79165b16
...
...
@@ -119,9 +119,15 @@ err:
DWORD
WINAPI
NsiCancelChangeNotification
(
OVERLAPPED
*
ovr
)
{
FIXME
(
"%p stub.
\n
"
,
ovr
);
DWORD
err
=
ERROR_SUCCESS
;
TRACE
(
"%p.
\n
"
,
ovr
);
return
ERROR_NOT_SUPPORTED
;
if
(
!
ovr
)
return
ERROR_NOT_FOUND
;
if
(
!
CancelIoEx
(
get_nsi_device
(
TRUE
),
ovr
))
err
=
GetLastError
();
return
err
;
}
DWORD
WINAPI
NsiEnumerateObjectsAllParameters
(
DWORD
unk
,
DWORD
unk2
,
const
NPI_MODULEID
*
module
,
DWORD
table
,
...
...
dlls/nsi/tests/nsi.c
View file @
79165b16
...
...
@@ -1056,24 +1056,24 @@ void test_change_notifications(void)
ok
(
!
bret
&&
GetLastError
()
==
ERROR_IO_INCOMPLETE
,
"got bret %d, err %lu.
\n
"
,
bret
,
GetLastError
()
);
ret
=
NsiCancelChangeNotification
(
NULL
);
todo_wine
ok
(
ret
==
ERROR_NOT_FOUND
,
"got %lu.
\n
"
,
ret
);
ok
(
ret
==
ERROR_NOT_FOUND
,
"got %lu.
\n
"
,
ret
);
ret
=
NsiCancelChangeNotification
(
&
ovr
);
todo_wine
ok
(
!
ret
,
"got %lu.
\n
"
,
ret
);
ok
(
!
ret
,
"got %lu.
\n
"
,
ret
);
bytes
=
0xdeadbeef
;
bret
=
GetOverlappedResult
(
handle
,
&
ovr
,
&
bytes
,
FALS
E
);
bret
=
GetOverlappedResult
(
handle
,
&
ovr
,
&
bytes
,
TRU
E
);
todo_wine
ok
(
!
bret
&&
GetLastError
()
==
ERROR_OPERATION_ABORTED
,
"got bret %d, err %lu.
\n
"
,
bret
,
GetLastError
()
);
todo_wine
ok
(
ovr
.
Internal
==
(
ULONG
)
STATUS_CANCELLED
,
"got %Ix.
\n
"
,
ovr
.
Internal
);
todo_wine
ok
(
!
bytes
,
"got %lu.
\n
"
,
bytes
);
ok
(
!
bret
&&
GetLastError
()
==
ERROR_OPERATION_ABORTED
,
"got bret %d, err %lu.
\n
"
,
bret
,
GetLastError
()
);
ok
(
ovr
.
Internal
==
(
ULONG
)
STATUS_CANCELLED
,
"got %Ix.
\n
"
,
ovr
.
Internal
);
ok
(
!
bytes
,
"got %lu.
\n
"
,
bytes
);
bret
=
GetOverlappedResult
(
handle2
,
&
ovr2
,
&
bytes
,
FALSE
);
ok
(
!
bret
&&
GetLastError
()
==
ERROR_IO_INCOMPLETE
,
"got bret %d, err %lu.
\n
"
,
bret
,
GetLastError
()
);
ret
=
NsiCancelChangeNotification
(
&
ovr2
);
todo_wine
ok
(
!
ret
,
"got %lu.
\n
"
,
ret
);
bret
=
GetOverlappedResult
(
handle
,
&
ovr
,
&
bytes
,
FALS
E
);
todo_wine
ok
(
!
bret
&&
GetLastError
()
==
ERROR_OPERATION_ABORTED
,
"got bret %d, err %lu.
\n
"
,
bret
,
GetLastError
()
);
ok
(
!
ret
,
"got %lu.
\n
"
,
ret
);
bret
=
GetOverlappedResult
(
handle
,
&
ovr
,
&
bytes
,
TRU
E
);
ok
(
!
bret
&&
GetLastError
()
==
ERROR_OPERATION_ABORTED
,
"got bret %d, err %lu.
\n
"
,
bret
,
GetLastError
()
);
ret
=
NsiRequestChangeNotification
(
0
,
&
NPI_MS_NDIS_MODULEID
,
NSI_NDIS_INDEX_LUID_TABLE
,
&
ovr
,
&
handle
);
todo_wine
ok
(
ret
==
ERROR_INVALID_PARAMETER
,
"got %lu.
\n
"
,
ret
);
...
...
@@ -1081,9 +1081,9 @@ void test_change_notifications(void)
ret
=
NsiRequestChangeNotification
(
0
,
&
NPI_MS_IPV4_MODULEID
,
NSI_IP_FORWARD_TABLE
,
&
ovr
,
&
handle
);
ok
(
ret
==
ERROR_IO_PENDING
,
"got %lu.
\n
"
,
ret
);
ret
=
NsiCancelChangeNotification
(
&
ovr
);
todo_wine
ok
(
!
ret
,
"got %lu.
\n
"
,
ret
);
bret
=
GetOverlappedResult
(
handle
,
&
ovr
,
&
bytes
,
FALS
E
);
todo_wine
ok
(
!
bret
&&
GetLastError
()
==
ERROR_OPERATION_ABORTED
,
"got bret %d, err %lu.
\n
"
,
bret
,
GetLastError
()
);
ok
(
!
ret
,
"got %lu.
\n
"
,
ret
);
bret
=
GetOverlappedResult
(
handle
,
&
ovr
,
&
bytes
,
TRU
E
);
ok
(
!
bret
&&
GetLastError
()
==
ERROR_OPERATION_ABORTED
,
"got bret %d, err %lu.
\n
"
,
bret
,
GetLastError
()
);
}
START_TEST
(
nsi
)
...
...
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