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
b12a950c
Commit
b12a950c
authored
Jan 27, 2012
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 27, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: COM cleanup for IPersistFile.
parent
f4f9be6e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
34 deletions
+29
-34
folders.c
dlls/shell32/folders.c
+29
-34
No files found.
dlls/shell32/folders.c
View file @
b12a950c
...
@@ -50,8 +50,8 @@ typedef struct
...
@@ -50,8 +50,8 @@ typedef struct
{
{
IExtractIconW
IExtractIconW_iface
;
IExtractIconW
IExtractIconW_iface
;
IExtractIconA
IExtractIconA_iface
;
IExtractIconA
IExtractIconA_iface
;
IPersistFile
IPersistFile_iface
;
LONG
ref
;
LONG
ref
;
const
IPersistFileVtbl
*
lpvtblPersistFile
;
LPITEMIDLIST
pidl
;
LPITEMIDLIST
pidl
;
}
IExtractIconWImpl
;
}
IExtractIconWImpl
;
...
@@ -65,15 +65,15 @@ static inline IExtractIconWImpl *impl_from_IExtractIconA(IExtractIconA *iface)
...
@@ -65,15 +65,15 @@ static inline IExtractIconWImpl *impl_from_IExtractIconA(IExtractIconA *iface)
return
CONTAINING_RECORD
(
iface
,
IExtractIconWImpl
,
IExtractIconA_iface
);
return
CONTAINING_RECORD
(
iface
,
IExtractIconWImpl
,
IExtractIconA_iface
);
}
}
static
inline
IExtractIconWImpl
*
impl_from_IPersistFile
(
IPersistFile
*
iface
)
{
return
CONTAINING_RECORD
(
iface
,
IExtractIconWImpl
,
IPersistFile_iface
);
}
static
const
IExtractIconAVtbl
eiavt
;
static
const
IExtractIconAVtbl
eiavt
;
static
const
IExtractIconWVtbl
eivt
;
static
const
IExtractIconWVtbl
eivt
;
static
const
IPersistFileVtbl
pfvt
;
static
const
IPersistFileVtbl
pfvt
;
static
inline
IExtractIconW
*
impl_from_IPersistFile
(
IPersistFile
*
iface
)
{
return
(
IExtractIconW
*
)((
char
*
)
iface
-
FIELD_OFFSET
(
IExtractIconWImpl
,
lpvtblPersistFile
));
}
/**************************************************************************
/**************************************************************************
* IExtractIconW_Constructor
* IExtractIconW_Constructor
...
@@ -87,8 +87,8 @@ IExtractIconW* IExtractIconW_Constructor(LPCITEMIDLIST pidl)
...
@@ -87,8 +87,8 @@ IExtractIconW* IExtractIconW_Constructor(LPCITEMIDLIST pidl)
ei
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IExtractIconWImpl
));
ei
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
IExtractIconWImpl
));
ei
->
ref
=
1
;
ei
->
ref
=
1
;
ei
->
IExtractIconW_iface
.
lpVtbl
=
&
eivt
;
ei
->
IExtractIconW_iface
.
lpVtbl
=
&
eivt
;
ei
->
lpvtblPersistFile
=
&
pfvt
;
ei
->
IExtractIconA_iface
.
lpVtbl
=
&
eiavt
;
ei
->
IExtractIconA_iface
.
lpVtbl
=
&
eiavt
;
ei
->
IPersistFile_iface
.
lpVtbl
=
&
pfvt
;
ei
->
pidl
=
ILClone
(
pidl
);
ei
->
pidl
=
ILClone
(
pidl
);
pdump
(
pidl
);
pdump
(
pidl
);
...
@@ -110,7 +110,7 @@ static HRESULT WINAPI IExtractIconW_fnQueryInterface(IExtractIconW *iface, REFII
...
@@ -110,7 +110,7 @@ static HRESULT WINAPI IExtractIconW_fnQueryInterface(IExtractIconW *iface, REFII
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IExtractIconW
))
if
(
IsEqualIID
(
riid
,
&
IID_IUnknown
)
||
IsEqualIID
(
riid
,
&
IID_IExtractIconW
))
*
ppv
=
iface
;
*
ppv
=
iface
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistFile
))
else
if
(
IsEqualIID
(
riid
,
&
IID_IPersistFile
))
*
ppv
=
&
This
->
lpvtblPersistFil
e
;
*
ppv
=
&
This
->
IPersistFile_ifac
e
;
else
if
(
IsEqualIID
(
riid
,
&
IID_IExtractIconA
))
else
if
(
IsEqualIID
(
riid
,
&
IID_IExtractIconA
))
*
ppv
=
&
This
->
IExtractIconA_iface
;
*
ppv
=
&
This
->
IExtractIconA_iface
;
...
@@ -495,46 +495,40 @@ static const IExtractIconAVtbl eiavt =
...
@@ -495,46 +495,40 @@ static const IExtractIconAVtbl eiavt =
};
};
/************************************************************************
/************************************************************************
* IEIPersistFile
_QueryInterface (IUnknown)
* IEIPersistFile
::QueryInterface
*/
*/
static
HRESULT
WINAPI
IEIPersistFile_fnQueryInterface
(
static
HRESULT
WINAPI
IEIPersistFile_fnQueryInterface
(
IPersistFile
*
iface
,
REFIID
iid
,
IPersistFile
*
iface
,
void
**
ppv
)
REFIID
iid
,
LPVOID
*
ppvObj
)
{
{
IExtractIconW
*
This
=
impl_from_IPersistFile
(
iface
);
IExtractIconWImpl
*
This
=
impl_from_IPersistFile
(
iface
);
return
IExtractIconW_QueryInterface
(
This
,
iid
,
ppvObj
);
return
IExtractIconW_QueryInterface
(
&
This
->
IExtractIconW_iface
,
iid
,
ppv
);
}
}
/************************************************************************
/************************************************************************
* IEIPersistFile
_AddRef (IUnknown)
* IEIPersistFile
::AddRef
*/
*/
static
ULONG
WINAPI
IEIPersistFile_fnAddRef
(
static
ULONG
WINAPI
IEIPersistFile_fnAddRef
(
IPersistFile
*
iface
)
IPersistFile
*
iface
)
{
{
IExtractIconW
*
This
=
impl_from_IPersistFile
(
iface
);
IExtractIconWImpl
*
This
=
impl_from_IPersistFile
(
iface
);
return
IExtractIconW_AddRef
(
This
);
return
IExtractIconW_AddRef
(
&
This
->
IExtractIconW_iface
);
}
}
/************************************************************************
/************************************************************************
* IEIPersistFile
_Release (IUnknown)
* IEIPersistFile
::Release
*/
*/
static
ULONG
WINAPI
IEIPersistFile_fnRelease
(
static
ULONG
WINAPI
IEIPersistFile_fnRelease
(
IPersistFile
*
iface
)
IPersistFile
*
iface
)
{
{
IExtractIconW
*
This
=
impl_from_IPersistFile
(
iface
);
IExtractIconWImpl
*
This
=
impl_from_IPersistFile
(
iface
);
return
IExtractIconW_Release
(
This
);
return
IExtractIconW_Release
(
&
This
->
IExtractIconW_iface
);
}
}
/************************************************************************
/************************************************************************
* IEIPersistFile
_GetClassID (IPersist)
* IEIPersistFile
::GetClassID
*/
*/
static
HRESULT
WINAPI
IEIPersistFile_fnGetClassID
(
static
HRESULT
WINAPI
IEIPersistFile_fnGetClassID
(
IPersistFile
*
iface
,
LPCLSID
lpClassId
)
IPersistFile
*
iface
,
LPCLSID
lpClassId
)
{
{
CLSID
StdFolderID
=
{
0x00000000
,
0x0000
,
0x0000
,
{
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
}
};
CLSID
StdFolderID
=
{
0x00000000
,
0x0000
,
0x0000
,
{
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
}
};
...
@@ -547,14 +541,15 @@ static HRESULT WINAPI IEIPersistFile_fnGetClassID(
...
@@ -547,14 +541,15 @@ static HRESULT WINAPI IEIPersistFile_fnGetClassID(
}
}
/************************************************************************
/************************************************************************
* IEIPersistFile_Load
(IPersistFile)
* IEIPersistFile_Load
*/
*/
static
HRESULT
WINAPI
IEIPersistFile_fnLoad
(
IPersistFile
*
iface
,
LPCOLESTR
pszFileName
,
DWORD
dwMode
)
static
HRESULT
WINAPI
IEIPersistFile_fnLoad
(
IPersistFile
*
iface
,
LPCOLESTR
pszFileName
,
DWORD
dwMode
)
{
{
IExtractIconW
*
This
=
impl_from_IPersistFile
(
iface
);
IExtractIconWImpl
*
This
=
impl_from_IPersistFile
(
iface
);
FIXME
(
"%p
\n
"
,
This
);
return
E_NOTIMPL
;
FIXME
(
"%p
\n
"
,
This
);
return
E_NOTIMPL
;
}
}
static
const
IPersistFileVtbl
pfvt
=
static
const
IPersistFileVtbl
pfvt
=
...
...
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