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
1c421d77
Commit
1c421d77
authored
Jan 02, 2003
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support DllGetClassObject of CLSID_StdPicture.
PICTYPE_NONE has width/height 0.
parent
0e162e46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
0 deletions
+75
-0
oleaut.c
dlls/oleaut32/oleaut.c
+8
-0
olepicture.c
dlls/oleaut32/olepicture.c
+67
-0
No files found.
dlls/oleaut32/oleaut.c
View file @
1c421d77
...
...
@@ -507,6 +507,7 @@ HRESULT WINAPI OLEAUT32_DllUnregisterServer() {
}
extern
void
_get_STDFONT_CF
(
LPVOID
);
extern
void
_get_STDPIC_CF
(
LPVOID
);
/***********************************************************************
* DllGetClassObject (OLEAUT32.1)
...
...
@@ -521,6 +522,13 @@ HRESULT WINAPI OLEAUT32_DllGetClassObject(REFCLSID rclsid, REFIID iid,LPVOID *pp
return
S_OK
;
}
}
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_StdPicture
))
{
if
(
IsEqualGUID
(
iid
,
&
IID_IClassFactory
))
{
_get_STDPIC_CF
(
ppv
);
IClassFactory_AddRef
((
IClassFactory
*
)
*
ppv
);
return
S_OK
;
}
}
if
(
IsEqualGUID
(
rclsid
,
&
CLSID_PSOAInterface
))
{
if
(
S_OK
==
TypeLibFac_DllGetClassObject
(
rclsid
,
iid
,
ppv
))
return
S_OK
;
...
...
dlls/oleaut32/olepicture.c
View file @
1c421d77
...
...
@@ -219,6 +219,11 @@ static OLEPictureImpl* OLEPictureImpl_Construct(LPPICTDESC pictDesc, BOOL fOwn)
newObject
->
himetricHeight
=
pictDesc
->
u
.
wmf
.
yExt
;
break
;
case
PICTYPE_NONE
:
/* not sure what to do here */
newObject
->
himetricWidth
=
newObject
->
himetricHeight
=
0
;
break
;
case
PICTYPE_ICON
:
case
PICTYPE_ENHMETAFILE
:
default:
...
...
@@ -997,6 +1002,8 @@ static HRESULT WINAPI OLEPictureImpl_Load(IPersistStream* iface,IStream*pStm) {
}
else
{
This
->
desc
.
picType
=
PICTYPE_ICON
;
This
->
desc
.
u
.
icon
.
hicon
=
hicon
;
This
->
himetricWidth
=
cifd
->
idEntries
[
i
].
bWidth
;
This
->
himetricHeight
=
cifd
->
idEntries
[
i
].
bHeight
;
hr
=
S_OK
;
}
break
;
...
...
@@ -1308,3 +1315,63 @@ HRESULT WINAPI OleLoadPictureEx( LPSTREAM lpstream, LONG lSize, BOOL fRunmode,
IPicture_Release
(
newpic
);
return
hr
;
}
/*******************************************************************************
* StdPic ClassFactory
*/
typedef
struct
{
/* IUnknown fields */
ICOM_VFIELD
(
IClassFactory
);
DWORD
ref
;
}
IClassFactoryImpl
;
static
HRESULT
WINAPI
SPCF_QueryInterface
(
LPCLASSFACTORY
iface
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
ICOM_THIS
(
IClassFactoryImpl
,
iface
);
FIXME
(
"(%p)->(%s,%p),stub!
\n
"
,
This
,
debugstr_guid
(
riid
),
ppobj
);
return
E_NOINTERFACE
;
}
static
ULONG
WINAPI
SPCF_AddRef
(
LPCLASSFACTORY
iface
)
{
ICOM_THIS
(
IClassFactoryImpl
,
iface
);
return
++
(
This
->
ref
);
}
static
ULONG
WINAPI
SPCF_Release
(
LPCLASSFACTORY
iface
)
{
ICOM_THIS
(
IClassFactoryImpl
,
iface
);
/* static class, won't be freed */
return
--
(
This
->
ref
);
}
static
HRESULT
WINAPI
SPCF_CreateInstance
(
LPCLASSFACTORY
iface
,
LPUNKNOWN
pOuter
,
REFIID
riid
,
LPVOID
*
ppobj
)
{
PICTDESC
pd
;
FIXME
(
"(%p,%p,%s,%p), creating stdpic with PICTYPE_NONE.
\n
"
,
iface
,
pOuter
,
debugstr_guid
(
riid
),
ppobj
);
pd
.
cbSizeofstruct
=
sizeof
(
pd
);
pd
.
picType
=
PICTYPE_NONE
;
return
OleCreatePictureIndirect
(
&
pd
,
riid
,
TRUE
,
ppobj
);
}
static
HRESULT
WINAPI
SPCF_LockServer
(
LPCLASSFACTORY
iface
,
BOOL
dolock
)
{
ICOM_THIS
(
IClassFactoryImpl
,
iface
);
FIXME
(
"(%p)->(%d),stub!
\n
"
,
This
,
dolock
);
return
S_OK
;
}
static
ICOM_VTABLE
(
IClassFactory
)
SPCF_Vtbl
=
{
ICOM_MSVTABLE_COMPAT_DummyRTTIVALUE
SPCF_QueryInterface
,
SPCF_AddRef
,
SPCF_Release
,
SPCF_CreateInstance
,
SPCF_LockServer
};
static
IClassFactoryImpl
STDPIC_CF
=
{
&
SPCF_Vtbl
,
1
};
void
_get_STDPIC_CF
(
LPVOID
*
ppv
)
{
*
ppv
=
(
LPVOID
)
&
STDPIC_CF
;
}
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