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
778d4da2
Commit
778d4da2
authored
Feb 26, 2015
by
Nikolay Sivov
Committed by
Alexandre Julliard
Feb 27, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: It's not allowed to change compare mode when dictionary is not empty.
parent
94e5353f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
dictionary.c
dlls/scrrun/dictionary.c
+8
-4
No files found.
dlls/scrrun/dictionary.c
View file @
778d4da2
...
...
@@ -41,6 +41,7 @@ typedef struct
LONG
ref
;
CompareMethod
method
;
LONG
count
;
}
dictionary
;
static
inline
dictionary
*
impl_from_IDictionary
(
IDictionary
*
iface
)
...
...
@@ -200,14 +201,13 @@ static HRESULT WINAPI dictionary_Add(IDictionary *iface, VARIANT *Key, VARIANT *
return
E_NOTIMPL
;
}
static
HRESULT
WINAPI
dictionary_get_Count
(
IDictionary
*
iface
,
LONG
*
pC
ount
)
static
HRESULT
WINAPI
dictionary_get_Count
(
IDictionary
*
iface
,
LONG
*
c
ount
)
{
dictionary
*
This
=
impl_from_IDictionary
(
iface
);
FIXME
(
"(%p)->(%p)
\n
"
,
This
,
pCount
);
*
pCount
=
0
;
TRACE
(
"(%p)->(%p)
\n
"
,
This
,
count
);
*
count
=
This
->
count
;
return
S_OK
;
}
...
...
@@ -271,6 +271,9 @@ static HRESULT WINAPI dictionary_put_CompareMode(IDictionary *iface, CompareMeth
TRACE
(
"(%p)->(%d)
\n
"
,
This
,
method
);
if
(
This
->
count
)
return
CTL_E_ILLEGALFUNCTIONCALL
;
This
->
method
=
method
;
return
S_OK
;
}
...
...
@@ -411,6 +414,7 @@ HRESULT WINAPI Dictionary_CreateInstance(IClassFactory *factory,IUnknown *outer,
This
->
IDictionary_iface
.
lpVtbl
=
&
dictionary_vtbl
;
This
->
ref
=
1
;
This
->
method
=
BinaryCompare
;
This
->
count
=
0
;
*
obj
=
&
This
->
IDictionary_iface
;
...
...
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