Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
5c87552f
Commit
5c87552f
authored
Aug 30, 2005
by
Michael Jung
Committed by
Alexandre Julliard
Aug 30, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FIXME's in stubs instead of TRACE's.
Infer pathmode from CLSID in UnixFolderConstructor. Fail in IShellFolder::BindToObject, if folder does not initialize.
parent
4a5378ef
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
27 deletions
+26
-27
shfldr_unixfs.c
dlls/shell32/shfldr_unixfs.c
+26
-27
No files found.
dlls/shell32/shfldr_unixfs.c
View file @
5c87552f
...
@@ -590,15 +590,13 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_EnumObjects(IShellFolder2* iface,
...
@@ -590,15 +590,13 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_EnumObjects(IShellFolder2* iface,
return
hr
;
return
hr
;
}
}
static
HRESULT
CreateUnixFolder
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
,
DWORD
dwPathMode
,
static
HRESULT
CreateUnixFolder
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
,
const
CLSID
*
pCLSID
);
const
CLSID
*
pCLSID
);
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_BindToObject
(
IShellFolder2
*
iface
,
LPCITEMIDLIST
pidl
,
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_BindToObject
(
IShellFolder2
*
iface
,
LPCITEMIDLIST
pidl
,
LPBC
pbcReserved
,
REFIID
riid
,
void
**
ppvOut
)
LPBC
pbcReserved
,
REFIID
riid
,
void
**
ppvOut
)
{
{
UnixFolder
*
This
=
ADJUST_THIS
(
UnixFolder
,
IShellFolder2
,
iface
);
UnixFolder
*
This
=
ADJUST_THIS
(
UnixFolder
,
IShellFolder2
,
iface
);
IPersistFolder3
*
persistFolder
;
IPersistFolder3
*
persistFolder
;
LPITEMIDLIST
pidlSubFolder
;
HRESULT
hr
;
HRESULT
hr
;
TRACE
(
"(iface=%p, pidl=%p, pbcReserver=%p, riid=%p, ppvOut=%p)
\n
"
,
TRACE
(
"(iface=%p, pidl=%p, pbcReserver=%p, riid=%p, ppvOut=%p)
\n
"
,
...
@@ -607,23 +605,25 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_BindToObject(IShellFolder2* iface
...
@@ -607,23 +605,25 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_BindToObject(IShellFolder2* iface
if
(
!
pidl
||
!
pidl
->
mkid
.
cb
)
if
(
!
pidl
||
!
pidl
->
mkid
.
cb
)
return
E_INVALIDARG
;
return
E_INVALIDARG
;
hr
=
CreateUnixFolder
(
NULL
,
&
IID_IPersistFolder3
,
(
void
**
)
&
persistFolder
,
This
->
m_dwPathMode
,
hr
=
CreateUnixFolder
(
NULL
,
&
IID_IPersistFolder3
,
(
void
**
)
&
persistFolder
,
This
->
m_pCLSID
);
This
->
m_pCLSID
);
if
(
!
SUCCEEDED
(
hr
))
return
hr
;
if
(
!
SUCCEEDED
(
hr
))
return
hr
;
hr
=
IPersistFolder_QueryInterface
(
persistFolder
,
riid
,
(
void
**
)
ppvOut
);
hr
=
IPersistFolder_QueryInterface
(
persistFolder
,
riid
,
(
void
**
)
ppvOut
);
if
(
SUCCEEDED
(
hr
))
{
LPITEMIDLIST
pidlSubFolder
=
ILCombine
(
This
->
m_pidlLocation
,
pidl
);
hr
=
IPersistFolder3_Initialize
(
persistFolder
,
pidlSubFolder
);
ILFree
(
pidlSubFolder
);
}
pidlSubFolder
=
ILCombine
(
This
->
m_pidlLocation
,
pidl
);
IPersistFolder3_Initialize
(
persistFolder
,
pidlSubFolder
);
IPersistFolder3_Release
(
persistFolder
);
IPersistFolder3_Release
(
persistFolder
);
ILFree
(
pidlSubFolder
);
return
hr
;
return
hr
;
}
}
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_BindToStorage
(
IShellFolder2
*
This
,
LPCITEMIDLIST
pidl
,
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_BindToStorage
(
IShellFolder2
*
This
,
LPCITEMIDLIST
pidl
,
LPBC
pbcReserved
,
REFIID
riid
,
void
**
ppvObj
)
LPBC
pbcReserved
,
REFIID
riid
,
void
**
ppvObj
)
{
{
TRAC
E
(
"stub
\n
"
);
FIXM
E
(
"stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -914,35 +914,35 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_SetNameOf(IShellFolder2* iface, H
...
@@ -914,35 +914,35 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_SetNameOf(IShellFolder2* iface, H
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_EnumSearches
(
IShellFolder2
*
iface
,
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_EnumSearches
(
IShellFolder2
*
iface
,
IEnumExtraSearch
**
ppEnum
)
IEnumExtraSearch
**
ppEnum
)
{
{
TRAC
E
(
"stub
\n
"
);
FIXM
E
(
"stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_GetDefaultColumn
(
IShellFolder2
*
iface
,
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_GetDefaultColumn
(
IShellFolder2
*
iface
,
DWORD
dwReserved
,
ULONG
*
pSort
,
ULONG
*
pDisplay
)
DWORD
dwReserved
,
ULONG
*
pSort
,
ULONG
*
pDisplay
)
{
{
TRAC
E
(
"stub
\n
"
);
FIXM
E
(
"stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_GetDefaultColumnState
(
IShellFolder2
*
iface
,
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_GetDefaultColumnState
(
IShellFolder2
*
iface
,
UINT
iColumn
,
SHCOLSTATEF
*
pcsFlags
)
UINT
iColumn
,
SHCOLSTATEF
*
pcsFlags
)
{
{
TRAC
E
(
"stub
\n
"
);
FIXM
E
(
"stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_GetDefaultSearchGUID
(
IShellFolder2
*
iface
,
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_GetDefaultSearchGUID
(
IShellFolder2
*
iface
,
GUID
*
pguid
)
GUID
*
pguid
)
{
{
TRAC
E
(
"stub
\n
"
);
FIXM
E
(
"stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_GetDetailsEx
(
IShellFolder2
*
iface
,
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_GetDetailsEx
(
IShellFolder2
*
iface
,
LPCITEMIDLIST
pidl
,
const
SHCOLUMNID
*
pscid
,
VARIANT
*
pv
)
LPCITEMIDLIST
pidl
,
const
SHCOLUMNID
*
pscid
,
VARIANT
*
pv
)
{
{
TRAC
E
(
"stub
\n
"
);
FIXM
E
(
"stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1032,7 +1032,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_GetDetailsOf(IShellFolder2* iface
...
@@ -1032,7 +1032,7 @@ static HRESULT WINAPI UnixFolder_IShellFolder2_GetDetailsOf(IShellFolder2* iface
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_MapColumnToSCID
(
IShellFolder2
*
iface
,
UINT
iColumn
,
static
HRESULT
WINAPI
UnixFolder_IShellFolder2_MapColumnToSCID
(
IShellFolder2
*
iface
,
UINT
iColumn
,
SHCOLUMNID
*
pscid
)
SHCOLUMNID
*
pscid
)
{
{
TRAC
E
(
"stub
\n
"
);
FIXM
E
(
"stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1276,21 +1276,21 @@ static HRESULT WINAPI UnixFolder_IPersistPropertyBag_GetClassID(IPersistProperty
...
@@ -1276,21 +1276,21 @@ static HRESULT WINAPI UnixFolder_IPersistPropertyBag_GetClassID(IPersistProperty
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_InitNew
(
IPersistPropertyBag
*
iface
)
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_InitNew
(
IPersistPropertyBag
*
iface
)
{
{
TRAC
E
(
"() stub
\n
"
);
FIXM
E
(
"() stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_Load
(
IPersistPropertyBag
*
iface
,
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_Load
(
IPersistPropertyBag
*
iface
,
IPropertyBag
*
pPropertyBag
,
IErrorLog
*
pErrorLog
)
IPropertyBag
*
pPropertyBag
,
IErrorLog
*
pErrorLog
)
{
{
TRAC
E
(
"() stub
\n
"
);
FIXM
E
(
"() stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_Save
(
IPersistPropertyBag
*
iface
,
static
HRESULT
WINAPI
UnixFolder_IPersistPropertyBag_Save
(
IPersistPropertyBag
*
iface
,
IPropertyBag
*
pPropertyBag
,
BOOL
fClearDirty
,
BOOL
fSaveAllProperties
)
IPropertyBag
*
pPropertyBag
,
BOOL
fClearDirty
,
BOOL
fSaveAllProperties
)
{
{
TRAC
E
(
"() stub
\n
"
);
FIXM
E
(
"() stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
@@ -1512,8 +1512,7 @@ static const ISFHelperVtbl UnixFolder_ISFHelper_Vtbl = {
...
@@ -1512,8 +1512,7 @@ static const ISFHelperVtbl UnixFolder_ISFHelper_Vtbl = {
* The UnixDosFolder_Constructor sets the dwPathMode member to PATHMODE_DOS. This
* The UnixDosFolder_Constructor sets the dwPathMode member to PATHMODE_DOS. This
* means that paths are converted from dos to unix and back at the interfaces.
* means that paths are converted from dos to unix and back at the interfaces.
*/
*/
static
HRESULT
CreateUnixFolder
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
,
DWORD
dwPathMode
,
static
HRESULT
CreateUnixFolder
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
,
const
CLSID
*
pCLSID
)
const
CLSID
*
pCLSID
)
{
{
HRESULT
hr
=
E_FAIL
;
HRESULT
hr
=
E_FAIL
;
UnixFolder
*
pUnixFolder
=
SHAlloc
((
ULONG
)
sizeof
(
UnixFolder
));
UnixFolder
*
pUnixFolder
=
SHAlloc
((
ULONG
)
sizeof
(
UnixFolder
));
...
@@ -1526,7 +1525,7 @@ static HRESULT CreateUnixFolder(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, D
...
@@ -1526,7 +1525,7 @@ static HRESULT CreateUnixFolder(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, D
pUnixFolder
->
m_cRef
=
0
;
pUnixFolder
->
m_cRef
=
0
;
pUnixFolder
->
m_pszPath
=
NULL
;
pUnixFolder
->
m_pszPath
=
NULL
;
pUnixFolder
->
m_pidlLocation
=
NULL
;
pUnixFolder
->
m_pidlLocation
=
NULL
;
pUnixFolder
->
m_dwPathMode
=
dwPathMode
;
pUnixFolder
->
m_dwPathMode
=
IsEqualCLSID
(
&
CLSID_UnixFolder
,
pCLSID
)
?
PATHMODE_UNIX
:
PATHMODE_DOS
;
pUnixFolder
->
m_dwAttributes
=
0
;
pUnixFolder
->
m_dwAttributes
=
0
;
pUnixFolder
->
m_pCLSID
=
pCLSID
;
pUnixFolder
->
m_pCLSID
=
pCLSID
;
...
@@ -1539,22 +1538,22 @@ static HRESULT CreateUnixFolder(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, D
...
@@ -1539,22 +1538,22 @@ static HRESULT CreateUnixFolder(IUnknown *pUnkOuter, REFIID riid, LPVOID *ppv, D
HRESULT
WINAPI
UnixFolder_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
HRESULT
WINAPI
UnixFolder_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
TRACE
(
"(pUnkOuter=%p, riid=%p, ppv=%p)
\n
"
,
pUnkOuter
,
riid
,
ppv
);
TRACE
(
"(pUnkOuter=%p, riid=%p, ppv=%p)
\n
"
,
pUnkOuter
,
riid
,
ppv
);
return
CreateUnixFolder
(
pUnkOuter
,
riid
,
ppv
,
PATHMODE_UNIX
,
&
CLSID_UnixFolder
);
return
CreateUnixFolder
(
pUnkOuter
,
riid
,
ppv
,
&
CLSID_UnixFolder
);
}
}
HRESULT
WINAPI
UnixDosFolder_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
HRESULT
WINAPI
UnixDosFolder_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
TRACE
(
"(pUnkOuter=%p, riid=%p, ppv=%p)
\n
"
,
pUnkOuter
,
riid
,
ppv
);
TRACE
(
"(pUnkOuter=%p, riid=%p, ppv=%p)
\n
"
,
pUnkOuter
,
riid
,
ppv
);
return
CreateUnixFolder
(
pUnkOuter
,
riid
,
ppv
,
PATHMODE_DOS
,
&
CLSID_UnixDosFolder
);
return
CreateUnixFolder
(
pUnkOuter
,
riid
,
ppv
,
&
CLSID_UnixDosFolder
);
}
}
HRESULT
WINAPI
FolderShortcut_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
HRESULT
WINAPI
FolderShortcut_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
TRACE
(
"(pUnkOuter=%p, riid=%p, ppv=%p)
\n
"
,
pUnkOuter
,
riid
,
ppv
);
TRACE
(
"(pUnkOuter=%p, riid=%p, ppv=%p)
\n
"
,
pUnkOuter
,
riid
,
ppv
);
return
CreateUnixFolder
(
pUnkOuter
,
riid
,
ppv
,
PATHMODE_DOS
,
&
CLSID_FolderShortcut
);
return
CreateUnixFolder
(
pUnkOuter
,
riid
,
ppv
,
&
CLSID_FolderShortcut
);
}
}
HRESULT
WINAPI
MyDocuments_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
HRESULT
WINAPI
MyDocuments_Constructor
(
IUnknown
*
pUnkOuter
,
REFIID
riid
,
LPVOID
*
ppv
)
{
TRACE
(
"(pUnkOuter=%p, riid=%p, ppv=%p)
\n
"
,
pUnkOuter
,
riid
,
ppv
);
TRACE
(
"(pUnkOuter=%p, riid=%p, ppv=%p)
\n
"
,
pUnkOuter
,
riid
,
ppv
);
return
CreateUnixFolder
(
pUnkOuter
,
riid
,
ppv
,
PATHMODE_DOS
,
&
CLSID_MyDocuments
);
return
CreateUnixFolder
(
pUnkOuter
,
riid
,
ppv
,
&
CLSID_MyDocuments
);
}
}
/******************************************************************************
/******************************************************************************
...
@@ -1697,7 +1696,7 @@ static HRESULT WINAPI UnixSubFolderIterator_IEnumIDList_Reset(IEnumIDList* iface
...
@@ -1697,7 +1696,7 @@ static HRESULT WINAPI UnixSubFolderIterator_IEnumIDList_Reset(IEnumIDList* iface
static
HRESULT
WINAPI
UnixSubFolderIterator_IEnumIDList_Clone
(
IEnumIDList
*
This
,
static
HRESULT
WINAPI
UnixSubFolderIterator_IEnumIDList_Clone
(
IEnumIDList
*
This
,
IEnumIDList
**
ppenum
)
IEnumIDList
**
ppenum
)
{
{
TRAC
E
(
"stub
\n
"
);
FIXM
E
(
"stub
\n
"
);
return
E_NOTIMPL
;
return
E_NOTIMPL
;
}
}
...
...
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