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
612caa5d
Commit
612caa5d
authored
Feb 21, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Feb 21, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wmiutils: Implement IWbemPathKeyList::RemoveAllKeys.
parent
13974194
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
18 deletions
+36
-18
path.c
dlls/wmiutils/path.c
+36
-18
No files found.
dlls/wmiutils/path.c
View file @
612caa5d
...
...
@@ -39,6 +39,14 @@ struct keylist
LONG
refs
;
};
struct
key
{
WCHAR
*
name
;
int
len_name
;
WCHAR
*
value
;
int
len_value
;
};
struct
path
{
IWbemPath
IWbemPath_iface
;
...
...
@@ -191,12 +199,37 @@ static HRESULT WINAPI keylist_RemoveKey(
return
E_NOTIMPL
;
}
static
void
free_keys
(
struct
key
*
keys
,
unsigned
int
count
)
{
unsigned
int
i
;
for
(
i
=
0
;
i
<
count
;
i
++
)
{
heap_free
(
keys
[
i
].
name
);
heap_free
(
keys
[
i
].
value
);
}
heap_free
(
keys
);
}
static
HRESULT
WINAPI
keylist_RemoveAllKeys
(
IWbemPathKeyList
*
iface
,
ULONG
uFlags
)
{
FIXME
(
"%p, 0x%x
\n
"
,
iface
,
uFlags
);
return
E_NOTIMPL
;
struct
keylist
*
keylist
=
impl_from_IWbemPathKeyList
(
iface
);
struct
path
*
parent
=
impl_from_IWbemPath
(
keylist
->
parent
);
TRACE
(
"%p, 0x%x
\n
"
,
iface
,
uFlags
);
if
(
uFlags
)
return
WBEM_E_INVALID_PARAMETER
;
EnterCriticalSection
(
&
parent
->
cs
);
free_keys
(
parent
->
keys
,
parent
->
num_keys
);
parent
->
num_keys
=
0
;
parent
->
keys
=
NULL
;
LeaveCriticalSection
(
&
parent
->
cs
);
return
S_OK
;
}
static
HRESULT
WINAPI
keylist_MakeSingleton
(
...
...
@@ -262,14 +295,6 @@ static HRESULT WbemPathKeyList_create( IUnknown *pUnkOuter, IWbemPath *parent, L
return
S_OK
;
}
struct
key
{
WCHAR
*
name
;
int
len_name
;
WCHAR
*
value
;
int
len_value
;
};
static
void
init_path
(
struct
path
*
path
)
{
path
->
text
=
NULL
;
...
...
@@ -288,19 +313,12 @@ static void init_path( struct path *path )
static
void
clear_path
(
struct
path
*
path
)
{
unsigned
int
i
;
heap_free
(
path
->
text
);
heap_free
(
path
->
server
);
heap_free
(
path
->
namespaces
);
heap_free
(
path
->
len_namespaces
);
heap_free
(
path
->
class
);
for
(
i
=
0
;
i
<
path
->
num_keys
;
i
++
)
{
heap_free
(
path
->
keys
[
i
].
name
);
heap_free
(
path
->
keys
[
i
].
value
);
}
heap_free
(
path
->
keys
);
free_keys
(
path
->
keys
,
path
->
num_keys
);
init_path
(
path
);
}
...
...
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