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
acfde52f
Commit
acfde52f
authored
Feb 27, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement Remove() for dictionary.
parent
1bc4c57e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
5 deletions
+13
-5
dictionary.c
dlls/scrrun/dictionary.c
+13
-3
dictionary.c
dlls/scrrun/tests/dictionary.c
+0
-2
No files found.
dlls/scrrun/dictionary.c
View file @
acfde52f
...
...
@@ -404,13 +404,23 @@ static HRESULT WINAPI dictionary_Keys(IDictionary *iface, VARIANT *pKeysArray)
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
dictionary_Remove
(
IDictionary
*
iface
,
VARIANT
*
K
ey
)
static
HRESULT
WINAPI
dictionary_Remove
(
IDictionary
*
iface
,
VARIANT
*
k
ey
)
{
dictionary
*
This
=
impl_from_IDictionary
(
iface
);
struct
keyitem_pair
*
pair
;
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
Key
);
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
debugstr_variant
(
key
)
);
return
E_NOTIMPL
;
if
(
!
(
pair
=
get_keyitem_pair
(
This
,
key
)))
return
CTL_E_ELEMENT_NOT_FOUND
;
list_remove
(
&
pair
->
entry
);
if
(
This
->
buckets
[
pair
->
bucket
]
==
pair
)
This
->
buckets
[
pair
->
bucket
]
=
NULL
;
This
->
count
--
;
free_keyitem_pair
(
pair
);
return
S_OK
;
}
static
HRESULT
WINAPI
dictionary_RemoveAll
(
IDictionary
*
iface
)
...
...
dlls/scrrun/tests/dictionary.c
View file @
acfde52f
...
...
@@ -560,7 +560,6 @@ if (0)
V_VT
(
&
key
)
=
VT_R4
;
V_R4
(
&
key
)
=
0
.
0
;
hr
=
IDictionary_Remove
(
dict
,
&
key
);
todo_wine
ok
(
hr
==
CTL_E_ELEMENT_NOT_FOUND
,
"got 0x%08x
\n
"
,
hr
);
VariantInit
(
&
item
);
...
...
@@ -568,7 +567,6 @@ todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
hr
=
IDictionary_Remove
(
dict
,
&
key
);
todo_wine
ok
(
hr
==
S_OK
,
"got 0x%08x
\n
"
,
hr
);
IDictionary_Release
(
dict
);
...
...
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