Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
dfbeea04
Commit
dfbeea04
authored
Mar 27, 2016
by
Dmitry Timoshkov
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
oleaut32: Do not reimplement OleLoadPicture in OleLoadPicturePath.
punkCaller is ignored by StdPicture ClassFactory implementation anyway.
parent
ae211425
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
olepicture.c
dlls/oleaut32/olepicture.c
+1
-25
No files found.
dlls/oleaut32/olepicture.c
View file @
dfbeea04
...
@@ -2419,9 +2419,7 @@ HRESULT WINAPI OleLoadPicturePath( LPOLESTR szURLorPath, LPUNKNOWN punkCaller,
...
@@ -2419,9 +2419,7 @@ HRESULT WINAPI OleLoadPicturePath( LPOLESTR szURLorPath, LPUNKNOWN punkCaller,
DWORD
dwBytesRead
;
DWORD
dwBytesRead
;
IStream
*
stream
;
IStream
*
stream
;
BOOL
bRead
;
BOOL
bRead
;
IPersistStream
*
pStream
;
HRESULT
hRes
;
HRESULT
hRes
;
HRESULT
init_res
;
WCHAR
*
file_candidate
;
WCHAR
*
file_candidate
;
WCHAR
path_buf
[
MAX_PATH
];
WCHAR
path_buf
[
MAX_PATH
];
...
@@ -2497,32 +2495,10 @@ HRESULT WINAPI OleLoadPicturePath( LPOLESTR szURLorPath, LPUNKNOWN punkCaller,
...
@@ -2497,32 +2495,10 @@ HRESULT WINAPI OleLoadPicturePath( LPOLESTR szURLorPath, LPUNKNOWN punkCaller,
return
hRes
;
return
hRes
;
}
}
init_res
=
CoInitialize
(
NULL
);
hRes
=
OleLoadPicture
(
stream
,
0
,
FALSE
,
riid
,
ppvRet
);
hRes
=
CoCreateInstance
(
&
CLSID_StdPicture
,
punkCaller
,
CLSCTX_INPROC_SERVER
,
&
IID_IPicture
,
(
LPVOID
*
)
&
ipicture
);
if
(
SUCCEEDED
(
hRes
))
{
hRes
=
IPicture_QueryInterface
(
ipicture
,
&
IID_IPersistStream
,
(
LPVOID
*
)
&
pStream
);
if
(
SUCCEEDED
(
hRes
))
{
hRes
=
IPersistStream_Load
(
pStream
,
stream
);
if
(
SUCCEEDED
(
hRes
))
{
hRes
=
IPicture_QueryInterface
(
ipicture
,
riid
,
ppvRet
);
if
(
FAILED
(
hRes
))
ERR
(
"Failed to get interface %s from IPicture.
\n
"
,
debugstr_guid
(
riid
));
}
IPersistStream_Release
(
pStream
);
}
IPicture_Release
(
ipicture
);
}
IStream_Release
(
stream
);
IStream_Release
(
stream
);
if
(
SUCCEEDED
(
init_res
))
CoUninitialize
();
return
hRes
;
return
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