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
94ee4096
Commit
94ee4096
authored
Oct 09, 2015
by
Huw Davies
Committed by
Alexandre Julliard
Oct 09, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ole32: Add a stub for OleCreateFromFileEx.
Signed-off-by:
Huw Davies
<
huw@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d340f09a
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
39 additions
and
14 deletions
+39
-14
compobj_private.h
dlls/ole32/compobj_private.h
+2
-0
datacache.c
dlls/ole32/datacache.c
+1
-1
ole2impl.c
dlls/ole32/ole2impl.c
+31
-0
ole2stubs.c
dlls/ole32/ole2stubs.c
+0
-11
ole32.spec
dlls/ole32/ole32.spec
+2
-2
ole2.h
include/ole2.h
+3
-0
No files found.
dlls/ole32/compobj_private.h
View file @
94ee4096
...
...
@@ -315,6 +315,8 @@ extern LSTATUS open_classes_key(HKEY, const WCHAR *, REGSAM, HKEY *) DECLSPEC_HI
extern
BOOL
actctx_get_miscstatus
(
const
CLSID
*
,
DWORD
,
DWORD
*
)
DECLSPEC_HIDDEN
;
extern
const
char
*
debugstr_formatetc
(
const
FORMATETC
*
formatetc
)
DECLSPEC_HIDDEN
;
static
inline
void
*
heap_alloc
(
size_t
len
)
{
return
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
...
...
dlls/ole32/datacache.c
View file @
94ee4096
...
...
@@ -216,7 +216,7 @@ static inline DataCache *impl_from_IAdviseSink( IAdviseSink *iface )
return
CONTAINING_RECORD
(
iface
,
DataCache
,
IAdviseSink_iface
);
}
static
const
char
*
debugstr_formatetc
(
const
FORMATETC
*
formatetc
)
const
char
*
debugstr_formatetc
(
const
FORMATETC
*
formatetc
)
{
return
wine_dbg_sprintf
(
"{ cfFormat = 0x%x, ptd = %p, dwAspect = %d, lindex = %d, tymed = %d }"
,
formatetc
->
cfFormat
,
formatetc
->
ptd
,
formatetc
->
dwAspect
,
...
...
dlls/ole32/ole2impl.c
View file @
94ee4096
...
...
@@ -233,6 +233,37 @@ HRESULT WINAPI OleCreateStaticFromData(IDataObject *data, REFIID iid,
}
/******************************************************************************
* OleCreateFromFileEx [OLE32.@]
*/
HRESULT
WINAPI
OleCreateFromFileEx
(
REFCLSID
clsid
,
const
OLECHAR
*
filename
,
REFIID
iid
,
DWORD
flags
,
DWORD
renderopt
,
ULONG
num_fmts
,
DWORD
*
adv_flags
,
FORMATETC
*
fmts
,
IAdviseSink
*
sink
,
DWORD
*
conns
,
IOleClientSite
*
client_site
,
IStorage
*
stg
,
void
**
obj
)
{
ULONG
i
;
FIXME
(
"%s: stub!
\n
"
,
debugstr_w
(
filename
));
TRACE
(
"cls %s, %s, iid %s, flags %d, render opts %d, num fmts %d, adv flags %p, fmts %p
\n
"
,
debugstr_guid
(
clsid
),
debugstr_w
(
filename
),
debugstr_guid
(
iid
),
flags
,
renderopt
,
num_fmts
,
adv_flags
,
fmts
);
TRACE
(
"sink %p, conns %p, client site %p, storage %p, obj %p
\n
"
,
sink
,
conns
,
client_site
,
stg
,
obj
);
for
(
i
=
0
;
i
<
num_fmts
;
i
++
)
TRACE
(
"
\t
%d: fmt %s adv flags %d
\n
"
,
i
,
debugstr_formatetc
(
fmts
+
i
),
adv_flags
[
i
]);
return
E_NOTIMPL
;
}
/******************************************************************************
* OleCreateFromFile [OLE32.@]
*/
HRESULT
WINAPI
OleCreateFromFile
(
REFCLSID
clsid
,
const
OLECHAR
*
filename
,
REFIID
iid
,
DWORD
renderopt
,
FORMATETC
*
fmt
,
IOleClientSite
*
client_site
,
IStorage
*
storage
,
void
**
obj
)
{
DWORD
advf
=
ADVF_PRIMEFIRST
;
return
OleCreateFromFileEx
(
clsid
,
filename
,
iid
,
0
,
renderopt
,
fmt
?
1
:
0
,
fmt
?
&
advf
:
NULL
,
fmt
,
NULL
,
NULL
,
client_site
,
storage
,
obj
);
}
/******************************************************************************
* OleDuplicateData [OLE32.@]
*
* Duplicates clipboard data.
...
...
dlls/ole32/ole2stubs.c
View file @
94ee4096
...
...
@@ -52,17 +52,6 @@ HRESULT WINAPI OleCreateLink(LPMONIKER pmkLinkSrc, REFIID riid, DWORD renderopt,
}
/******************************************************************************
* OleCreateFromFile [OLE32.@]
*/
HRESULT
WINAPI
OleCreateFromFile
(
REFCLSID
rclsid
,
LPCOLESTR
lpszFileName
,
REFIID
riid
,
DWORD
renderopt
,
LPFORMATETC
lpFormatEtc
,
LPOLECLIENTSITE
pClientSite
,
LPSTORAGE
pStg
,
LPVOID
*
ppvObj
)
{
FIXME
(
"(not shown), stub!
\n
"
);
return
E_NOTIMPL
;
}
/******************************************************************************
* OleGetIconOfClass [OLE32.@]
*/
HGLOBAL
WINAPI
OleGetIconOfClass
(
REFCLSID
rclsid
,
LPOLESTR
lpszLabel
,
BOOL
fUseTypeAsLabel
)
...
...
dlls/ole32/ole32.spec
View file @
94ee4096
...
...
@@ -188,8 +188,8 @@
@ stub OleCreateEx
@ stdcall OleCreateFromData(ptr ptr long ptr ptr ptr ptr)
@ stdcall OleCreateFromDataEx(ptr ptr long long long ptr ptr ptr ptr ptr ptr ptr)
@ stdcall OleCreateFromFile(ptr
p
tr ptr long ptr ptr ptr ptr)
@ st
ub OleCreateFromFileEx
@ stdcall OleCreateFromFile(ptr
ws
tr ptr long ptr ptr ptr ptr)
@ st
dcall OleCreateFromFileEx(ptr wstr ptr long long long ptr ptr ptr ptr ptr ptr ptr)
@ stdcall OleCreateLink(ptr ptr long ptr ptr ptr ptr)
@ stub OleCreateLinkEx
@ stdcall OleCreateLinkFromData(ptr ptr long ptr ptr ptr ptr)
...
...
include/ole2.h
View file @
94ee4096
...
...
@@ -107,6 +107,9 @@ HGLOBAL WINAPI OleMetafilePictFromIconAndLabel(HICON hIcon, LPOLESTR lpszLab
HRESULT
WINAPI
OleLockRunning
(
LPUNKNOWN
pUnknown
,
BOOL
fLock
,
BOOL
fLastUnlockCloses
);
HRESULT
WINAPI
OleCreateFromFile
(
REFCLSID
rclsid
,
LPCOLESTR
lpszFileName
,
REFIID
riid
,
DWORD
renderopt
,
LPFORMATETC
lpFormatEtc
,
LPOLECLIENTSITE
pClientSite
,
LPSTORAGE
pStg
,
LPVOID
*
ppvObj
);
HRESULT
WINAPI
OleCreateFromFileEx
(
REFCLSID
clsid
,
LPCOLESTR
filename
,
REFIID
iid
,
DWORD
flags
,
DWORD
renderopt
,
ULONG
num_fmts
,
DWORD
*
adv_flags
,
LPFORMATETC
fmts
,
IAdviseSink
*
sink
,
DWORD
*
conns
,
LPOLECLIENTSITE
client_site
,
LPSTORAGE
storage
,
LPVOID
*
obj
);
HRESULT
WINAPI
OleCreateLink
(
LPMONIKER
pmkLinkSrc
,
REFIID
riid
,
DWORD
renderopt
,
LPFORMATETC
lpFormatEtc
,
LPOLECLIENTSITE
pClientSite
,
LPSTORAGE
pStg
,
LPVOID
*
ppvObj
);
HRESULT
WINAPI
OleCreate
(
REFCLSID
rclsid
,
REFIID
riid
,
DWORD
renderopt
,
LPFORMATETC
pFormatEtc
,
LPOLECLIENTSITE
pClientSite
,
...
...
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