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
47abba02
Commit
47abba02
authored
Mar 31, 2008
by
Reece Dunn
Committed by
Alexandre Julliard
Apr 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/tests: Loop over the STGM access modes when testing the SHCreateStreamOnFile methods.
parent
ebec0a96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
20 deletions
+22
-20
istream.c
dlls/shlwapi/tests/istream.c
+22
-20
No files found.
dlls/shlwapi/tests/istream.c
View file @
47abba02
...
...
@@ -529,6 +529,12 @@ static void test_SHCreateStreamOnFileEx(DWORD mode, DWORD stgm)
START_TEST
(
istream
)
{
static
const
DWORD
stgm_access
[]
=
{
STGM_READ
,
STGM_WRITE
,
STGM_READWRITE
};
static
const
DWORD
stgm_flags
[]
=
{
0
,
STGM_CONVERT
,
...
...
@@ -539,6 +545,8 @@ START_TEST(istream)
STGM_TRANSACTED
|
STGM_CONVERT
|
STGM_DELETEONRELEASE
};
int
i
,
j
;
hShlwapi
=
GetModuleHandleA
(
"shlwapi.dll"
);
pSHCreateStreamOnFileA
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"SHCreateStreamOnFileA"
);
...
...
@@ -546,30 +554,24 @@ START_TEST(istream)
pSHCreateStreamOnFileEx
=
(
void
*
)
GetProcAddress
(
hShlwapi
,
"SHCreateStreamOnFileEx"
);
if
(
!
pSHCreateStreamOnFileA
)
printf
(
"SHCreateStreamOnFileA not found... skipping tests.
\n
"
);
else
{
test_SHCreateStreamOnFileA
(
STGM_READ
);
test_SHCreateStreamOnFileA
(
STGM_WRITE
);
test_SHCreateStreamOnFileA
(
STGM_READWRITE
);
}
printf
(
"SHCreateStreamOnFileA not found... those tests will be skipped.
\n
"
);
if
(
!
pSHCreateStreamOnFileW
)
printf
(
"SHCreateStreamOnFileW not found... skipping tests.
\n
"
);
else
{
test_SHCreateStreamOnFileW
(
STGM_READ
);
test_SHCreateStreamOnFileW
(
STGM_WRITE
);
test_SHCreateStreamOnFileW
(
STGM_READWRITE
);
}
printf
(
"SHCreateStreamOnFileW not found... those tests will be skipped.
\n
"
);
if
(
!
pSHCreateStreamOnFileEx
)
printf
(
"SHCreateStreamOnFileEx not found... skipping tests.
\n
"
);
else
{
int
i
;
for
(
i
=
0
;
i
!=
sizeof
(
stgm_flags
)
/
sizeof
(
stgm_flags
[
0
]);
i
++
)
{
test_SHCreateStreamOnFileEx
(
STGM_READ
,
stgm_flags
[
i
]);
test_SHCreateStreamOnFileEx
(
STGM_WRITE
,
stgm_flags
[
i
]);
test_SHCreateStreamOnFileEx
(
STGM_READWRITE
,
stgm_flags
[
i
]);
printf
(
"SHCreateStreamOnFileEx not found... those tests will be skipped.
\n
"
);
for
(
i
=
0
;
i
!=
sizeof
(
stgm_access
)
/
sizeof
(
stgm_access
[
0
]);
i
++
)
{
if
(
pSHCreateStreamOnFileA
)
test_SHCreateStreamOnFileA
(
stgm_access
[
i
]);
if
(
pSHCreateStreamOnFileW
)
test_SHCreateStreamOnFileW
(
stgm_access
[
i
]);
if
(
pSHCreateStreamOnFileEx
)
{
for
(
j
=
0
;
j
!=
sizeof
(
stgm_flags
)
/
sizeof
(
stgm_flags
[
0
]);
j
++
)
test_SHCreateStreamOnFileEx
(
stgm_access
[
i
],
stgm_flags
[
j
]);
}
}
}
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