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
8d81d671
Commit
8d81d671
authored
Jul 29, 2004
by
Aric Stewart
Committed by
Alexandre Julliard
Jul 29, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make the msistring_makehash return something other than just 1 or
0. Also handle the case where the string or stored string is null.
parent
06e9945f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
string.c
dlls/msi/string.c
+7
-3
No files found.
dlls/msi/string.c
View file @
8d81d671
...
...
@@ -56,11 +56,14 @@ static int msistring_makehash( const WCHAR *str )
{
int
hash
=
0
;
if
(
str
==
NULL
)
return
hash
;
while
(
*
str
)
{
hash
^=
*
str
++
;
hash
*=
53
;
hash
=
(
hash
<<
5
)
|
|
(
hash
>>
27
);
hash
=
(
hash
<<
5
)
|
(
hash
>>
27
);
}
return
hash
;
}
...
...
@@ -354,8 +357,9 @@ UINT msi_string2idW( string_table *st, LPCWSTR str, UINT *id )
hash
=
msistring_makehash
(
str
);
for
(
i
=
0
;
i
<
st
->
maxcount
;
i
++
)
{
if
(
(
st
->
strings
[
i
].
hash
==
hash
)
&&
!
strcmpW
(
st
->
strings
[
i
].
str
,
str
)
)
if
(
(
str
==
NULL
&&
st
->
strings
[
i
].
str
==
NULL
)
||
(
(
st
->
strings
[
i
].
hash
==
hash
)
&&
!
strcmpW
(
st
->
strings
[
i
].
str
,
str
)
))
{
r
=
ERROR_SUCCESS
;
*
id
=
i
;
...
...
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