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
af0c2177
Commit
af0c2177
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: Fix a couple of todo_wine's.
parent
28e1b942
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
olepicture.c
dlls/oleaut32/olepicture.c
+2
-2
olepicture.c
dlls/oleaut32/tests/olepicture.c
+3
-3
No files found.
dlls/oleaut32/olepicture.c
View file @
af0c2177
...
...
@@ -2299,7 +2299,7 @@ HRESULT WINAPI OleLoadPicturePath( LPOLESTR szURLorPath, LPUNKNOWN punkCaller,
hFile
=
CreateFileW
(
file_candidate
,
GENERIC_READ
,
0
,
NULL
,
OPEN_EXISTING
,
0
,
NULL
);
if
(
hFile
==
INVALID_HANDLE_VALUE
)
return
E_UNEXPECTE
D
;
return
INET_E_RESOURCE_NOT_FOUN
D
;
dwFileSize
=
GetFileSize
(
hFile
,
NULL
);
if
(
dwFileSize
!=
INVALID_FILE_SIZE
)
...
...
@@ -2318,7 +2318,7 @@ HRESULT WINAPI OleLoadPicturePath( LPOLESTR szURLorPath, LPUNKNOWN punkCaller,
CloseHandle
(
hFile
);
if
(
!
hGlobal
)
return
E_UNEXPECTE
D
;
return
INET_E_RESOURCE_NOT_FOUN
D
;
hRes
=
CreateStreamOnHGlobal
(
hGlobal
,
TRUE
,
&
stream
);
if
(
FAILED
(
hRes
))
...
...
dlls/oleaut32/tests/olepicture.c
View file @
af0c2177
...
...
@@ -844,13 +844,13 @@ static void test_OleLoadPicturePath(void)
/* Try with a nonexistent file. */
hres
=
OleLoadPicturePath
(
temp_fileW
+
8
,
NULL
,
0
,
0
,
&
IID_IPicture
,
(
void
**
)
&
pic
);
todo_wine
ok
(
hres
==
INET_E_RESOURCE_NOT_FOUND
||
/* XP+ */
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
);
todo_wine
ok
(
hres
==
INET_E_RESOURCE_NOT_FOUND
||
/* XP+ */
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
);
...
...
@@ -880,7 +880,7 @@ static void test_OleLoadPicturePath(void)
/* Try with a nonexistent file. */
hres
=
OleLoadPicturePath
(
temp_fileW
,
NULL
,
0
,
0
,
&
IID_IPicture
,
(
void
**
)
&
pic
);
todo_wine
ok
(
hres
==
INET_E_RESOURCE_NOT_FOUND
||
/* XP+ */
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