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
e89bedb7
Commit
e89bedb7
authored
Jan 04, 2024
by
Nikolay Sivov
Committed by
Alexandre Julliard
Jan 17, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun/dictionary: Add support for hashing VT_NULL keys.
parent
92e2626e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
dictionary.c
dlls/scrrun/dictionary.c
+1
-0
dictionary.c
dlls/scrrun/tests/dictionary.c
+8
-0
No files found.
dlls/scrrun/dictionary.c
View file @
e89bedb7
...
@@ -910,6 +910,7 @@ static HRESULT WINAPI dictionary_get_HashVal(IDictionary *iface, VARIANT *key, V
...
@@ -910,6 +910,7 @@ static HRESULT WINAPI dictionary_get_HashVal(IDictionary *iface, VARIANT *key, V
case
VT_R8
:
case
VT_R8
:
return
get_flt_hash
(
V_VT
(
key
)
&
VT_BYREF
?
*
V_R8REF
(
key
)
:
V_R8
(
key
),
&
V_I4
(
hash
));
return
get_flt_hash
(
V_VT
(
key
)
&
VT_BYREF
?
*
V_R8REF
(
key
)
:
V_R8
(
key
),
&
V_I4
(
hash
));
case
VT_EMPTY
:
case
VT_EMPTY
:
case
VT_NULL
:
V_I4
(
hash
)
=
0
;
V_I4
(
hash
)
=
0
;
return
S_OK
;
return
S_OK
;
case
VT_INT
:
case
VT_INT
:
...
...
dlls/scrrun/tests/dictionary.c
View file @
e89bedb7
...
@@ -753,6 +753,14 @@ if (0) { /* crashes on native */
...
@@ -753,6 +753,14 @@ if (0) { /* crashes on native */
ok
(
V_VT
(
&
hash
)
==
VT_I4
,
"Unexpected hash type %d.
\n
"
,
V_VT
(
&
hash
));
ok
(
V_VT
(
&
hash
)
==
VT_I4
,
"Unexpected hash type %d.
\n
"
,
V_VT
(
&
hash
));
ok
(
V_I4
(
&
hash
)
==
0
,
"Unexpected hash value %ld.
\n
"
,
V_I4
(
&
hash
));
ok
(
V_I4
(
&
hash
)
==
0
,
"Unexpected hash value %ld.
\n
"
,
V_I4
(
&
hash
));
V_VT
(
&
key
)
=
VT_NULL
;
V_I4
(
&
key
)
=
1234
;
V_I4
(
&
hash
)
=
5678
;
hr
=
IDictionary_get_HashVal
(
dict
,
&
key
,
&
hash
);
ok
(
hr
==
S_OK
,
"Unexpected hr %#lx.
\n
"
,
hr
);
ok
(
V_VT
(
&
hash
)
==
VT_I4
,
"Unexpected hash type %d.
\n
"
,
V_VT
(
&
hash
));
ok
(
V_I4
(
&
hash
)
==
0
,
"Unexpected hash value %ld.
\n
"
,
V_I4
(
&
hash
));
IDictionary_Release
(
dict
);
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