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
9c19b2e2
Commit
9c19b2e2
authored
Dec 26, 2018
by
Sebastian Lackner
Committed by
Alexandre Julliard
Dec 27, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
urlmon/tests: Add test for opening cache file with DELETE access.
Signed-off-by:
Zebediah Figura
<
z.figura12@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
fc358a82
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
url.c
dlls/urlmon/tests/url.c
+11
-0
No files found.
dlls/urlmon/tests/url.c
View file @
9c19b2e2
...
...
@@ -182,6 +182,7 @@ static HRESULT abort_hres;
static
BOOL
have_IHttpNegotiate2
,
use_bscex
,
is_async_prot
;
static
BOOL
test_redirect
,
use_cache_file
,
callback_read
,
no_callback
,
test_abort
;
static
WCHAR
cache_file_name
[
MAX_PATH
];
static
WCHAR
http_cache_file
[
MAX_PATH
];
static
BOOL
only_check_prot_args
=
FALSE
;
static
BOOL
invalid_cn_accepted
=
FALSE
;
static
BOOL
abort_start
=
FALSE
;
...
...
@@ -1927,6 +1928,14 @@ static HRESULT WINAPI statusclb_OnStopBinding(IBindStatusCallbackEx *iface, HRES
ok
(
WaitForSingleObject
(
complete_event2
,
90000
)
==
WAIT_OBJECT_0
,
"wait timed out
\n
"
);
}
if
(
test_protocol
==
HTTP_TEST
&&
!
emulate_protocol
&&
http_cache_file
[
0
])
{
HANDLE
file
=
CreateFileW
(
http_cache_file
,
DELETE
,
FILE_SHARE_READ
|
FILE_SHARE_WRITE
|
FILE_SHARE_DELETE
,
NULL
,
OPEN_EXISTING
,
FILE_ATTRIBUTE_NORMAL
,
NULL
);
ok
(
file
==
INVALID_HANDLE_VALUE
,
"expected INVALID_HANDLE_VALUE, got %p
\n
"
,
file
);
ok
(
GetLastError
()
==
ERROR_SHARING_VIOLATION
,
"expected ERROR_SHARING_VIOLATION, got %u
\n
"
,
GetLastError
());
http_cache_file
[
0
]
=
0
;
}
return
S_OK
;
}
...
...
@@ -2083,6 +2092,8 @@ static HRESULT WINAPI statusclb_OnDataAvailable(IBindStatusCallbackEx *iface, DW
else
if
(
emulate_protocol
)
ok
(
!
lstrcmpW
(
pstgmed
->
u
.
lpszFileName
,
cache_fileW
),
"unexpected file name %s
\n
"
,
wine_dbgstr_w
(
pstgmed
->
u
.
lpszFileName
));
else
if
(
test_protocol
==
HTTP_TEST
)
lstrcpyW
(
http_cache_file
,
pstgmed
->
u
.
lpszFileName
);
else
ok
(
pstgmed
->
u
.
lpszFileName
!=
NULL
,
"lpszFileName == NULL
\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