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
b1839561
Commit
b1839561
authored
Aug 29, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Aug 29, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Properties are case sensitive.
parent
95bb9032
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
+23
-2
package.c
dlls/msi/package.c
+2
-2
package.c
dlls/msi/tests/package.c
+21
-0
No files found.
dlls/msi/package.c
View file @
b1839561
...
...
@@ -852,7 +852,7 @@ static UINT msi_prop_makehash( const WCHAR *str )
while
(
*
str
)
{
hash
^=
tolowerW
(
*
str
++
)
;
hash
^=
*
str
++
;
hash
*=
53
;
hash
=
(
hash
<<
5
)
|
(
hash
>>
27
);
}
...
...
@@ -865,7 +865,7 @@ static msi_property *msi_prop_find( MSIPACKAGE *package, LPCWSTR key )
msi_property
*
prop
;
LIST_FOR_EACH_ENTRY
(
prop
,
&
package
->
props
[
hash
],
msi_property
,
entry
)
if
(
!
lstrcmp
i
W
(
prop
->
key
,
key
))
if
(
!
lstrcmpW
(
prop
->
key
,
key
))
return
prop
;
return
NULL
;
}
...
...
dlls/msi/tests/package.c
View file @
b1839561
...
...
@@ -1354,6 +1354,27 @@ static void test_props(void)
ok
(
!
strcmp
(
buffer
,
"xy"
),
"buffer was not changed
\n
"
);
ok
(
sz
==
3
,
"wrong size returned
\n
"
);
r
=
MsiSetProperty
(
hpkg
,
"SourceDir"
,
"foo"
);
ok
(
r
==
ERROR_SUCCESS
,
"wrong return val
\n
"
);
sz
=
4
;
r
=
MsiGetProperty
(
hpkg
,
"SOURCEDIR"
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"wrong return val
\n
"
);
ok
(
!
strcmp
(
buffer
,
""
),
"buffer wrong
\n
"
);
ok
(
sz
==
0
,
"wrong size returned
\n
"
);
sz
=
4
;
r
=
MsiGetProperty
(
hpkg
,
"SOMERANDOMNAME"
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"wrong return val
\n
"
);
ok
(
!
strcmp
(
buffer
,
""
),
"buffer wrong
\n
"
);
ok
(
sz
==
0
,
"wrong size returned
\n
"
);
sz
=
4
;
r
=
MsiGetProperty
(
hpkg
,
"SourceDir"
,
buffer
,
&
sz
);
ok
(
r
==
ERROR_SUCCESS
,
"wrong return val
\n
"
);
ok
(
!
strcmp
(
buffer
,
"foo"
),
"buffer wrong
\n
"
);
ok
(
sz
==
3
,
"wrong size returned
\n
"
);
MsiCloseHandle
(
hpkg
);
DeleteFile
(
msifile
);
}
...
...
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