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
b1105d49
Commit
b1105d49
authored
Oct 08, 2008
by
Paul Vriens
Committed by
Alexandre Julliard
Oct 09, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Don't crash on NT4.
parent
3643d59d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
20 deletions
+32
-20
istream.c
dlls/shlwapi/tests/istream.c
+32
-20
No files found.
dlls/shlwapi/tests/istream.c
View file @
b1105d49
...
...
@@ -306,17 +306,23 @@ static void test_SHCreateStreamOnFileW(DWORD mode, DWORD stgm)
/* invalid arguments */
stream
=
NULL
;
ret
=
(
*
pSHCreateStreamOnFileW
)(
NULL
,
mode
|
stgm
,
&
stream
);
ok
(
ret
==
HRESULT_FROM_WIN32
(
ERROR_PATH_NOT_FOUND
)
||
/* XP */
ret
==
E_INVALIDARG
/* Vista */
,
"SHCreateStreamOnFileW: expected HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) or E_INVALIDARG, got 0x%08x
\n
"
,
ret
);
ok
(
stream
==
NULL
,
"SHCreateStreamOnFileW: expected a NULL IStream object, got %p
\n
"
,
stream
);
if
(
0
)
{
/* Crashes on NT4 */
stream
=
NULL
;
ret
=
(
*
pSHCreateStreamOnFileW
)(
NULL
,
mode
|
stgm
,
&
stream
);
ok
(
ret
==
HRESULT_FROM_WIN32
(
ERROR_PATH_NOT_FOUND
)
||
/* XP */
ret
==
E_INVALIDARG
/* Vista */
,
"SHCreateStreamOnFileW: expected HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) or E_INVALIDARG, got 0x%08x
\n
"
,
ret
);
ok
(
stream
==
NULL
,
"SHCreateStreamOnFileW: expected a NULL IStream object, got %p
\n
"
,
stream
);
}
#if 0 /* This test crashes on WinXP SP2 */
ret = (*pSHCreateStreamOnFileW)(test_file, mode | stgm, NULL);
ok(ret == E_INVALIDARG, "SHCreateStreamOnFileW: expected E_INVALIDARG, got 0x%08x\n", ret);
#endif
if
(
0
)
{
/* This test crashes on WinXP SP2 */
ret
=
(
*
pSHCreateStreamOnFileW
)(
test_file
,
mode
|
stgm
,
NULL
);
ok
(
ret
==
E_INVALIDARG
,
"SHCreateStreamOnFileW: expected E_INVALIDARG, got 0x%08x
\n
"
,
ret
);
}
stream
=
NULL
;
ret
=
(
*
pSHCreateStreamOnFileW
)(
test_file
,
mode
|
STGM_CONVERT
|
stgm
,
&
stream
);
...
...
@@ -405,12 +411,16 @@ static void test_SHCreateStreamOnFileEx(DWORD mode, DWORD stgm)
/* invalid arguments */
stream
=
NULL
;
ret
=
(
*
pSHCreateStreamOnFileEx
)(
NULL
,
mode
,
0
,
FALSE
,
NULL
,
&
stream
);
ok
(
ret
==
HRESULT_FROM_WIN32
(
ERROR_PATH_NOT_FOUND
)
||
/* XP */
ret
==
E_INVALIDARG
/* Vista */
,
"SHCreateStreamOnFileEx: expected HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) or E_INVALIDARG, got 0x%08x
\n
"
,
ret
);
ok
(
stream
==
NULL
,
"SHCreateStreamOnFileEx: expected a NULL IStream object, got %p
\n
"
,
stream
);
if
(
0
)
{
/* Crashes on NT4 */
stream
=
NULL
;
ret
=
(
*
pSHCreateStreamOnFileEx
)(
NULL
,
mode
,
0
,
FALSE
,
NULL
,
&
stream
);
ok
(
ret
==
HRESULT_FROM_WIN32
(
ERROR_PATH_NOT_FOUND
)
||
/* XP */
ret
==
E_INVALIDARG
/* Vista */
,
"SHCreateStreamOnFileEx: expected HRESULT_FROM_WIN32(ERROR_PATH_NOT_FOUND) or E_INVALIDARG, got 0x%08x
\n
"
,
ret
);
ok
(
stream
==
NULL
,
"SHCreateStreamOnFileEx: expected a NULL IStream object, got %p
\n
"
,
stream
);
}
stream
=
NULL
;
ret
=
(
*
pSHCreateStreamOnFileEx
)(
test_file
,
mode
,
0
,
FALSE
,
template
,
&
stream
);
...
...
@@ -421,10 +431,12 @@ static void test_SHCreateStreamOnFileEx(DWORD mode, DWORD stgm)
ok
(
stream
==
NULL
,
"SHCreateStreamOnFileEx: expected a NULL IStream object, got %p
\n
"
,
stream
);
#if 0 /* This test crashes on WinXP SP2 */
ret = (*pSHCreateStreamOnFileEx)(test_file, mode, 0, FALSE, NULL, NULL);
ok(ret == E_INVALIDARG, "SHCreateStreamOnFileEx: expected E_INVALIDARG, got 0x%08x\n", ret);
#endif
if
(
0
)
{
/* This test crashes on WinXP SP2 */
ret
=
(
*
pSHCreateStreamOnFileEx
)(
test_file
,
mode
,
0
,
FALSE
,
NULL
,
NULL
);
ok
(
ret
==
E_INVALIDARG
,
"SHCreateStreamOnFileEx: expected E_INVALIDARG, got 0x%08x
\n
"
,
ret
);
}
/* file does not exist */
...
...
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