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
e2e98ae3
Commit
e2e98ae3
authored
May 22, 2011
by
Mike Kaplinskiy
Committed by
Alexandre Julliard
May 23, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iphlpapi: Set the overlapped status to pending as well as returning ERROR_IO_PENDING.
parent
29b6b75e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
iphlpapi_main.c
dlls/iphlpapi/iphlpapi_main.c
+2
-0
iphlpapi.c
dlls/iphlpapi/tests/iphlpapi.c
+2
-2
No files found.
dlls/iphlpapi/iphlpapi_main.c
View file @
e2e98ae3
...
...
@@ -49,6 +49,7 @@
#include "winreg.h"
#define USE_WS_PREFIX
#include "winsock2.h"
#include "winternl.h"
#include "ws2ipdef.h"
#include "iphlpapi.h"
#include "ifenum.h"
...
...
@@ -2033,6 +2034,7 @@ DWORD WINAPI NotifyAddrChange(PHANDLE Handle, LPOVERLAPPED overlapped)
{
FIXME
(
"(Handle %p, overlapped %p): stub
\n
"
,
Handle
,
overlapped
);
if
(
Handle
)
*
Handle
=
INVALID_HANDLE_VALUE
;
if
(
overlapped
)
((
IO_STATUS_BLOCK
*
)
overlapped
)
->
u
.
Status
=
STATUS_PENDING
;
return
ERROR_IO_PENDING
;
}
...
...
dlls/iphlpapi/tests/iphlpapi.c
View file @
e2e98ae3
...
...
@@ -849,9 +849,9 @@ static void testNotifyAddrChange(void)
ok
(
ret
==
ERROR_IO_PENDING
,
"NotifyAddrChange returned %d, expected ERROR_IO_PENDING
\n
"
,
ret
);
todo_wine
ok
(
handle
!=
INVALID_HANDLE_VALUE
,
"NotifyAddrChange returned invalid file handle
\n
"
);
success
=
GetOverlappedResult
(
handle
,
&
overlapped
,
&
bytes
,
FALSE
);
todo_wine
ok
(
success
==
FALSE
,
"GetOverlappedResult returned TRUE, expected FALSE
\n
"
);
ok
(
success
==
FALSE
,
"GetOverlappedResult returned TRUE, expected FALSE
\n
"
);
ret
=
GetLastError
();
todo_wine
ok
(
ret
==
ERROR_IO_INCOMPLETE
,
"GetLastError returned %d, expected ERROR_IO_INCOMPLETE
\n
"
,
ret
);
ok
(
ret
==
ERROR_IO_INCOMPLETE
,
"GetLastError returned %d, expected ERROR_IO_INCOMPLETE
\n
"
,
ret
);
success
=
gCancelIPChangeNotify
(
&
overlapped
);
todo_wine
ok
(
success
==
TRUE
,
"CancelIPChangeNotify returned FALSE, expected TRUE
\n
"
);
...
...
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