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
f69bb9d6
Commit
f69bb9d6
authored
Sep 01, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
scrrun: Fix pointer hashing on 64-bit.
parent
863c57e9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
dictionary.c
dlls/scrrun/dictionary.c
+5
-1
dictionary.c
dlls/scrrun/tests/dictionary.c
+5
-1
No files found.
dlls/scrrun/dictionary.c
View file @
f69bb9d6
...
...
@@ -846,7 +846,11 @@ static HRESULT get_flt_hash(FLOAT flt, LONG *hash)
static
DWORD
get_ptr_hash
(
void
*
ptr
)
{
return
PtrToUlong
(
ptr
)
%
DICT_HASH_MOD
;
DWORD
hash
=
PtrToUlong
(
ptr
);
#ifdef _WIN64
hash
^=
(
ULONG_PTR
)
ptr
>>
32
;
#endif
return
hash
%
1201
;
}
static
HRESULT
WINAPI
dictionary_get_HashVal
(
IDictionary
*
iface
,
VARIANT
*
key
,
VARIANT
*
hash
)
...
...
dlls/scrrun/tests/dictionary.c
View file @
f69bb9d6
...
...
@@ -193,7 +193,11 @@ static DWORD get_num_hash(FLOAT num)
static
DWORD
get_ptr_hash
(
void
*
ptr
)
{
return
PtrToUlong
(
ptr
)
%
1201
;
DWORD
hash
=
PtrToUlong
(
ptr
);
#ifdef _WIN64
hash
^=
(
ULONG_PTR
)
ptr
>>
32
;
#endif
return
hash
%
1201
;
}
typedef
union
...
...
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