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
ceeff119
Commit
ceeff119
authored
Oct 14, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 14, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winhttp/tests: Compile with -D__WINESRC__.
parent
8946346f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
5 deletions
+3
-5
Makefile.in
dlls/winhttp/tests/Makefile.in
+0
-1
notification.c
dlls/winhttp/tests/notification.c
+1
-1
winhttp.c
dlls/winhttp/tests/winhttp.c
+2
-3
No files found.
dlls/winhttp/tests/Makefile.in
View file @
ceeff119
TESTDLL
=
winhttp.dll
IMPORTS
=
winhttp oleaut32 ole32 crypt32 advapi32 ws2_32
EXTRADEFS
=
-U__WINESRC__
-DWINE_STRICT_PROTOTYPES
-DWINE_NO_NAMELESS_EXTENSION
-DWIDL_C_INLINE_WRAPPERS
C_SRCS
=
\
notification.c
\
...
...
dlls/winhttp/tests/notification.c
View file @
ceeff119
...
...
@@ -420,7 +420,7 @@ static void test_async( void )
info
.
test
=
async_test
;
info
.
count
=
sizeof
(
async_test
)
/
sizeof
(
async_test
[
0
]);
info
.
index
=
0
;
info
.
wait
=
CreateEvent
(
NULL
,
FALSE
,
FALSE
,
NULL
);
info
.
wait
=
CreateEvent
W
(
NULL
,
FALSE
,
FALSE
,
NULL
);
ses
=
WinHttpOpen
(
user_agent
,
0
,
NULL
,
NULL
,
WINHTTP_FLAG_ASYNC
);
ok
(
ses
!=
NULL
,
"failed to open session %u
\n
"
,
GetLastError
());
...
...
dlls/winhttp/tests/winhttp.c
View file @
ceeff119
...
...
@@ -28,7 +28,6 @@
#include <winhttp.h>
#include <wincrypt.h>
#include <winreg.h>
#include <winsock.h>
#include "initguid.h"
#include <httprequest.h>
...
...
@@ -350,7 +349,7 @@ static void test_SendRequest (void)
ret
=
WinHttpReadData
(
request
,
buffer
,
sizeof
(
buffer
)
-
1
,
&
bytes_rw
);
ok
(
ret
==
TRUE
,
"WinHttpReadData failed: %u.
\n
"
,
GetLastError
());
ok
(
bytes_rw
==
strlen
(
test_post
),
"Read %u bytes instead of %d.
\n
"
,
bytes_rw
,
lstrlen
(
test_post
));
ok
(
bytes_rw
==
strlen
(
test_post
),
"Read %u bytes instead of %d.
\n
"
,
bytes_rw
,
lstrlen
A
(
test_post
));
ok
(
strncmp
(
buffer
,
test_post
,
bytes_rw
)
==
0
,
"Data read did not match, got '%s'.
\n
"
,
buffer
);
ret
=
WinHttpCloseHandle
(
request
);
...
...
@@ -3023,7 +3022,7 @@ START_TEST (winhttp)
test_WinHttpGetProxyForUrl
();
test_chunked_read
();
si
.
event
=
CreateEvent
(
NULL
,
0
,
0
,
NULL
);
si
.
event
=
CreateEvent
W
(
NULL
,
0
,
0
,
NULL
);
si
.
port
=
7532
;
thread
=
CreateThread
(
NULL
,
0
,
server_thread
,
(
LPVOID
)
&
si
,
0
,
NULL
);
...
...
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