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
28e1b942
Commit
28e1b942
authored
Feb 24, 2011
by
Austin English
Committed by
Alexandre Julliard
Feb 25, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32/tests: Remove win9x hacks.
parent
d710056e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
olepicture.c
dlls/oleaut32/tests/olepicture.c
+16
-18
No files found.
dlls/oleaut32/tests/olepicture.c
View file @
28e1b942
...
...
@@ -798,9 +798,8 @@ static void test_OleLoadPicturePath(void)
hres
=
OleLoadPicturePath
(
emptyW
,
NULL
,
0
,
0
,
NULL
,
(
void
**
)
&
pic
);
todo_wine
ok
(
hres
==
INET_E_UNKNOWN_PROTOCOL
||
/* XP/Vista+ */
hres
==
E_UNEXPECTED
||
/* NT4/Win95 */
hres
==
E_FAIL
||
/* Win95 OSR2 */
hres
==
E_OUTOFMEMORY
,
/* Win98/Win2k/Win2k3 */
broken
(
hres
==
E_UNEXPECTED
)
||
/* NT4 */
broken
(
hres
==
E_OUTOFMEMORY
),
/* Win2k/Win2k3 */
"Expected OleLoadPicturePath to return INET_E_UNKNOWN_PROTOCOL, got 0x%08x
\n
"
,
hres
);
ok
(
pic
==
NULL
,
"Expected the output interface pointer to be NULL, got %p
\n
"
,
pic
);
...
...
@@ -809,9 +808,8 @@ static void test_OleLoadPicturePath(void)
hres
=
OleLoadPicturePath
(
emptyW
,
NULL
,
0
,
0
,
&
IID_IPicture
,
(
void
**
)
&
pic
);
todo_wine
ok
(
hres
==
INET_E_UNKNOWN_PROTOCOL
||
/* XP/Vista+ */
hres
==
E_UNEXPECTED
||
/* NT4/Win95 */
hres
==
E_FAIL
||
/* Win95 OSR2 */
hres
==
E_OUTOFMEMORY
,
/* Win98/Win2k/Win2k3 */
broken
(
hres
==
E_UNEXPECTED
)
||
/* NT4 */
broken
(
hres
==
E_OUTOFMEMORY
),
/* Win2k/Win2k3 */
"Expected OleLoadPicturePath to return INET_E_UNKNOWN_PROTOCOL, got 0x%08x
\n
"
,
hres
);
ok
(
pic
==
NULL
,
"Expected the output interface pointer to be NULL, got %p
\n
"
,
pic
);
...
...
@@ -829,7 +827,7 @@ static void test_OleLoadPicturePath(void)
/* Try a normal DOS path. */
hres
=
OleLoadPicturePath
(
temp_fileW
+
8
,
NULL
,
0
,
0
,
&
IID_IPicture
,
(
void
**
)
&
pic
);
ok
(
hres
==
S_OK
||
broken
(
hres
==
E_UNEXPECTED
),
/* NT4
/Win95
*/
broken
(
hres
==
E_UNEXPECTED
),
/* NT4 */
"Expected OleLoadPicturePath to return S_OK, got 0x%08x
\n
"
,
hres
);
if
(
pic
)
IPicture_Release
(
pic
);
...
...
@@ -837,7 +835,7 @@ static void test_OleLoadPicturePath(void)
/* Try a DOS path with tacked on "file:". */
hres
=
OleLoadPicturePath
(
temp_fileW
,
NULL
,
0
,
0
,
&
IID_IPicture
,
(
void
**
)
&
pic
);
ok
(
hres
==
S_OK
||
broken
(
hres
==
E_UNEXPECTED
),
/* NT4
/Win95
*/
broken
(
hres
==
E_UNEXPECTED
),
/* NT4 */
"Expected OleLoadPicturePath to return S_OK, got 0x%08x
\n
"
,
hres
);
if
(
pic
)
IPicture_Release
(
pic
);
...
...
@@ -846,15 +844,15 @@ static void test_OleLoadPicturePath(void)
/* Try with a nonexistent file. */
hres
=
OleLoadPicturePath
(
temp_fileW
+
8
,
NULL
,
0
,
0
,
&
IID_IPicture
,
(
void
**
)
&
pic
);
ok
(
hres
==
INET_E_RESOURCE_NOT_FOUND
||
/* XP+ */
hres
==
E_UNEXPECTED
||
/* NT4/Win95
*/
hres
==
E_FAIL
,
/* Win9x/
Win2k */
todo_wine
ok
(
hres
==
INET_E_RESOURCE_NOT_FOUND
||
/* XP+ */
broken
(
hres
==
E_UNEXPECTED
)
||
/* NT4
*/
broken
(
hres
==
E_FAIL
),
/*
Win2k */
"Expected OleLoadPicturePath to return INET_E_RESOURCE_NOT_FOUND, got 0x%08x
\n
"
,
hres
);
hres
=
OleLoadPicturePath
(
temp_fileW
,
NULL
,
0
,
0
,
&
IID_IPicture
,
(
void
**
)
&
pic
);
ok
(
hres
==
INET_E_RESOURCE_NOT_FOUND
||
/* XP+ */
hres
==
E_UNEXPECTED
||
/* NT4/Win95
*/
hres
==
E_FAIL
,
/* Win9x/
Win2k */
todo_wine
ok
(
hres
==
INET_E_RESOURCE_NOT_FOUND
||
/* XP+ */
broken
(
hres
==
E_UNEXPECTED
)
||
/* NT4
*/
broken
(
hres
==
E_FAIL
),
/*
Win2k */
"Expected OleLoadPicturePath to return INET_E_RESOURCE_NOT_FOUND, got 0x%08x
\n
"
,
hres
);
file
=
CreateFileA
(
temp_file
,
GENERIC_WRITE
,
0
,
NULL
,
CREATE_ALWAYS
,
...
...
@@ -873,7 +871,7 @@ static void test_OleLoadPicturePath(void)
hres
=
OleLoadPicturePath
(
temp_fileW
,
NULL
,
0
,
0
,
&
IID_IPicture
,
(
void
**
)
&
pic
);
ok
(
hres
==
S_OK
||
broken
(
hres
==
E_UNEXPECTED
),
/* NT4
/Win95
*/
broken
(
hres
==
E_UNEXPECTED
),
/* NT4 */
"Expected OleLoadPicturePath to return S_OK, got 0x%08x
\n
"
,
hres
);
if
(
pic
)
IPicture_Release
(
pic
);
...
...
@@ -882,9 +880,9 @@ static void test_OleLoadPicturePath(void)
/* Try with a nonexistent file. */
hres
=
OleLoadPicturePath
(
temp_fileW
,
NULL
,
0
,
0
,
&
IID_IPicture
,
(
void
**
)
&
pic
);
ok
(
hres
==
INET_E_RESOURCE_NOT_FOUND
||
/* XP+ */
hres
==
E_UNEXPECTED
||
/* NT4/Win95
*/
hres
==
E_FAIL
,
/* Win9x/
Win2k */
todo_wine
ok
(
hres
==
INET_E_RESOURCE_NOT_FOUND
||
/* XP+ */
broken
(
hres
==
E_UNEXPECTED
)
||
/* NT4
*/
broken
(
hres
==
E_FAIL
),
/*
Win2k */
"Expected OleLoadPicturePath to return INET_E_RESOURCE_NOT_FOUND, got 0x%08x
\n
"
,
hres
);
}
...
...
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