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
a25f1931
Commit
a25f1931
authored
Feb 27, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Mar 03, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Implement put_Key() for dictionary.
parent
1c813d5b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
dictionary.c
dlls/scrrun/dictionary.c
+19
-3
No files found.
dlls/scrrun/dictionary.c
View file @
a25f1931
/*
* Copyright (C) 2012 Alistair Leslie-Hughes
* Copyright 2015 Nikolay Sivov for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
...
...
@@ -420,13 +421,28 @@ static HRESULT WINAPI dictionary_Items(IDictionary *iface, VARIANT *items)
return
S_OK
;
}
static
HRESULT
WINAPI
dictionary_put_Key
(
IDictionary
*
iface
,
VARIANT
*
Key
,
VARIANT
*
rhs
)
static
HRESULT
WINAPI
dictionary_put_Key
(
IDictionary
*
iface
,
VARIANT
*
key
,
VARIANT
*
newkey
)
{
dictionary
*
This
=
impl_from_IDictionary
(
iface
);
struct
keyitem_pair
*
pair
;
VARIANT
empty
;
HRESULT
hr
;
FIXME
(
"(%p)->(%p %p)
\n
"
,
This
,
Key
,
rhs
);
TRACE
(
"(%p)->(%s %s)
\n
"
,
This
,
debugstr_variant
(
key
),
debugstr_variant
(
newkey
)
);
return
E_NOTIMPL
;
if
((
pair
=
get_keyitem_pair
(
This
,
key
)))
{
/* found existing pair for a key, add new pair with new key
and old item and remove old pair after that */
hr
=
IDictionary_Add
(
iface
,
newkey
,
&
pair
->
item
);
if
(
FAILED
(
hr
))
return
hr
;
return
IDictionary_Remove
(
iface
,
key
);
}
VariantInit
(
&
empty
);
return
IDictionary_Add
(
iface
,
newkey
,
&
empty
);
}
static
HRESULT
WINAPI
dictionary_Keys
(
IDictionary
*
iface
,
VARIANT
*
keys
)
...
...
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