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
6824cae6
Commit
6824cae6
authored
Feb 24, 2014
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Added a IEnumVARIANT stub for IDriveCollection.
parent
8a779540
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
91 additions
and
3 deletions
+91
-3
filesystem.c
dlls/scrrun/filesystem.c
+91
-3
No files found.
dlls/scrrun/filesystem.c
View file @
6824cae6
...
...
@@ -68,6 +68,10 @@ struct enumdata {
struct
filecollection
*
coll
;
HANDLE
find
;
}
filecoll
;
struct
{
struct
drivecollection
*
coll
;
}
drivecoll
;
}
u
;
};
...
...
@@ -799,6 +803,85 @@ static HRESULT create_filecoll_enum(struct filecollection *collection, IUnknown
return
S_OK
;
}
static
ULONG
WINAPI
drivecoll_enumvariant_Release
(
IEnumVARIANT
*
iface
)
{
struct
enumvariant
*
This
=
impl_from_IEnumVARIANT
(
iface
);
ULONG
ref
=
InterlockedDecrement
(
&
This
->
ref
);
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
ref
);
if
(
!
ref
)
{
IDriveCollection_Release
(
&
This
->
data
.
u
.
drivecoll
.
coll
->
IDriveCollection_iface
);
heap_free
(
This
);
}
return
ref
;
}
static
HRESULT
WINAPI
drivecoll_enumvariant_Next
(
IEnumVARIANT
*
iface
,
ULONG
celt
,
VARIANT
*
var
,
ULONG
*
fetched
)
{
struct
enumvariant
*
This
=
impl_from_IEnumVARIANT
(
iface
);
FIXME
(
"(%p)->(%d %p %p): stub
\n
"
,
This
,
celt
,
var
,
fetched
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
drivecoll_enumvariant_Skip
(
IEnumVARIANT
*
iface
,
ULONG
celt
)
{
struct
enumvariant
*
This
=
impl_from_IEnumVARIANT
(
iface
);
FIXME
(
"(%p)->(%d): stub
\n
"
,
This
,
celt
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
drivecoll_enumvariant_Reset
(
IEnumVARIANT
*
iface
)
{
struct
enumvariant
*
This
=
impl_from_IEnumVARIANT
(
iface
);
FIXME
(
"(%p): stub
\n
"
,
This
);
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
drivecoll_enumvariant_Clone
(
IEnumVARIANT
*
iface
,
IEnumVARIANT
**
pclone
)
{
struct
enumvariant
*
This
=
impl_from_IEnumVARIANT
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
pclone
);
return
E_NOTIMPL
;
}
static
const
IEnumVARIANTVtbl
drivecollenumvariantvtbl
=
{
enumvariant_QueryInterface
,
enumvariant_AddRef
,
drivecoll_enumvariant_Release
,
drivecoll_enumvariant_Next
,
drivecoll_enumvariant_Skip
,
drivecoll_enumvariant_Reset
,
drivecoll_enumvariant_Clone
};
static
HRESULT
create_drivecoll_enum
(
struct
drivecollection
*
collection
,
IUnknown
**
newenum
)
{
struct
enumvariant
*
This
;
*
newenum
=
NULL
;
This
=
heap_alloc
(
sizeof
(
*
This
));
if
(
!
This
)
return
E_OUTOFMEMORY
;
This
->
IEnumVARIANT_iface
.
lpVtbl
=
&
drivecollenumvariantvtbl
;
This
->
ref
=
1
;
This
->
data
.
u
.
drivecoll
.
coll
=
collection
;
IDriveCollection_AddRef
(
&
collection
->
IDriveCollection_iface
);
*
newenum
=
(
IUnknown
*
)
&
This
->
IEnumVARIANT_iface
;
return
S_OK
;
}
static
HRESULT
WINAPI
foldercoll_QueryInterface
(
IFolderCollection
*
iface
,
REFIID
riid
,
void
**
obj
)
{
struct
foldercollection
*
This
=
impl_from_IFolderCollection
(
iface
);
...
...
@@ -1267,11 +1350,16 @@ static HRESULT WINAPI drivecoll_get_Item(IDriveCollection *iface, VARIANT key, I
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
drivecoll_get__NewEnum
(
IDriveCollection
*
iface
,
IUnknown
**
penum
)
static
HRESULT
WINAPI
drivecoll_get__NewEnum
(
IDriveCollection
*
iface
,
IUnknown
**
p
p
enum
)
{
struct
drivecollection
*
This
=
impl_from_IDriveCollection
(
iface
);
FIXME
(
"(%p)->(%p): stub
\n
"
,
This
,
penum
);
return
E_NOTIMPL
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
ppenum
);
if
(
!
ppenum
)
return
E_POINTER
;
return
create_drivecoll_enum
(
This
,
ppenum
);
}
static
HRESULT
WINAPI
drivecoll_get_Count
(
IDriveCollection
*
iface
,
LONG
*
count
)
...
...
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