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
33b45cf9
Commit
33b45cf9
authored
Mar 16, 2010
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 17, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Fix some test failures on XP/Vista.
parent
3a5c9252
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
istream.c
dlls/shlwapi/tests/istream.c
+15
-0
No files found.
dlls/shlwapi/tests/istream.c
View file @
33b45cf9
...
...
@@ -432,6 +432,11 @@ static void test_SHCreateStreamOnFileEx(DWORD mode, DWORD stgm)
stream
=
NULL
;
ret
=
(
*
pSHCreateStreamOnFileEx
)(
test_file
,
mode
,
0
,
FALSE
,
template
,
&
stream
);
if
(
ret
==
HRESULT_FROM_WIN32
(
ERROR_ACCESS_DENIED
))
{
win_skip
(
"File probably locked by Anti-Virus/Spam software, trying again
\n
"
);
Sleep
(
1000
);
ret
=
(
*
pSHCreateStreamOnFileEx
)(
test_file
,
mode
,
0
,
FALSE
,
template
,
&
stream
);
}
ok
(
ret
==
HRESULT_FROM_WIN32
(
ERROR_FILE_NOT_FOUND
)
||
ret
==
HRESULT_FROM_WIN32
(
ERROR_INVALID_PARAMETER
),
"SHCreateStreamOnFileEx: expected HRESULT_FROM_WIN32(ERROR_FILE_NOT_FOUND) or "
...
...
@@ -491,6 +496,11 @@ static void test_SHCreateStreamOnFileEx(DWORD mode, DWORD stgm)
stream
=
NULL
;
ret
=
(
*
pSHCreateStreamOnFileEx
)(
test_file
,
mode
|
STGM_CREATE
|
stgm
,
0
,
FALSE
,
NULL
,
&
stream
);
if
(
ret
==
HRESULT_FROM_WIN32
(
ERROR_ACCESS_DENIED
))
{
win_skip
(
"File probably locked by Anti-Virus/Spam software, trying again
\n
"
);
Sleep
(
1000
);
ret
=
(
*
pSHCreateStreamOnFileEx
)(
test_file
,
mode
|
STGM_CREATE
|
stgm
,
0
,
FALSE
,
NULL
,
&
stream
);
}
ok
(
ret
==
S_OK
,
"SHCreateStreamOnFileEx: expected S_OK, got 0x%08x
\n
"
,
ret
);
ok
(
stream
!=
NULL
,
"SHCreateStreamOnFileEx: expected a valid IStream object, got NULL
\n
"
);
...
...
@@ -507,6 +517,11 @@ static void test_SHCreateStreamOnFileEx(DWORD mode, DWORD stgm)
stream
=
NULL
;
ret
=
(
*
pSHCreateStreamOnFileEx
)(
test_file
,
mode
|
STGM_CREATE
|
stgm
,
0
,
TRUE
,
NULL
,
&
stream
);
if
(
ret
==
HRESULT_FROM_WIN32
(
ERROR_ACCESS_DENIED
))
{
win_skip
(
"File probably locked by Anti-Virus/Spam software, trying again
\n
"
);
Sleep
(
1000
);
ret
=
(
*
pSHCreateStreamOnFileEx
)(
test_file
,
mode
|
STGM_CREATE
|
stgm
,
0
,
TRUE
,
NULL
,
&
stream
);
}
ok
(
ret
==
S_OK
,
"SHCreateStreamOnFileEx: expected S_OK, got 0x%08x
\n
"
,
ret
);
ok
(
stream
!=
NULL
,
"SHCreateStreamOnFileEx: expected a valid IStream object, got 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