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
bb4d6f88
Commit
bb4d6f88
authored
May 23, 2005
by
Kevin Koltzau
Committed by
Alexandre Julliard
May 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Implement Hash function on composite moniker.
parent
29a70954
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
2 deletions
+29
-2
compositemoniker.c
dlls/ole32/compositemoniker.c
+29
-2
No files found.
dlls/ole32/compositemoniker.c
View file @
bb4d6f88
...
...
@@ -616,9 +616,36 @@ CompositeMonikerImpl_IsEqual(IMoniker* iface,IMoniker* pmkOtherMoniker)
static
HRESULT
WINAPI
CompositeMonikerImpl_Hash
(
IMoniker
*
iface
,
DWORD
*
pdwHash
)
{
FIXME
(
"(),stub!
\n
"
);
IEnumMoniker
*
enumMoniker
;
IMoniker
*
tempMk
;
HRESULT
res
;
DWORD
tempHash
;
return
E_NOTIMPL
;
TRACE
(
"(%p,%p)
\n
"
,
iface
,
pdwHash
);
if
(
pdwHash
==
NULL
)
return
E_POINTER
;
res
=
IMoniker_Enum
(
iface
,
TRUE
,
&
enumMoniker
);
if
(
FAILED
(
res
))
return
res
;
while
(
1
){
res
=
IEnumMoniker_Next
(
enumMoniker
,
1
,
&
tempMk
,
NULL
);
if
(
FAILED
(
res
))
break
;
res
=
IMoniker_Hash
(
tempMk
,
&
tempHash
);
if
(
FAILED
(
res
))
break
;
*
pdwHash
=
(
*
pdwHash
*
37
)
+
tempHash
;
IMoniker_Release
(
tempMk
);
}
IEnumMoniker_Release
(
enumMoniker
);
return
res
;
}
/******************************************************************************
...
...
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