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
3355f3d6
Commit
3355f3d6
authored
Jan 19, 2009
by
Ge van Geldorp
Committed by
Alexandre Julliard
Jan 19, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Double nul-terminate REG_MULTI_SZ values.
parent
349d8bd1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
msi.c
dlls/msi/tests/msi.c
+14
-8
No files found.
dlls/msi/tests/msi.c
View file @
3355f3d6
...
...
@@ -1275,7 +1275,8 @@ static void test_MsiQueryComponentState(void)
state
=
MAGIC_ERROR
;
r
=
pMsiQueryComponentStateA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_MACHINE
,
component
,
&
state
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_NOTUSED
,
"Expected INSTALLSTATE_NOTUSED, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_NOTUSED
||
state
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_NOTUSED or INSTALLSTATE_LOCAL, got %d
\n
"
,
state
);
res
=
RegSetValueExA
(
compkey
,
prod_squashed
,
0
,
REG_SZ
,
(
const
BYTE
*
)
"hi"
,
2
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
...
...
@@ -1390,7 +1391,8 @@ static void test_MsiQueryComponentState(void)
state
=
MAGIC_ERROR
;
r
=
pMsiQueryComponentStateA
(
prodcode
,
NULL
,
MSIINSTALLCONTEXT_USERUNMANAGED
,
component
,
&
state
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
ok
(
state
==
INSTALLSTATE_NOTUSED
,
"Expected INSTALLSTATE_NOTUSED, got %d
\n
"
,
state
);
ok
(
state
==
INSTALLSTATE_NOTUSED
||
state
==
INSTALLSTATE_LOCAL
,
"Expected INSTALLSTATE_NOTUSED or INSTALLSTATE_LOCAL, got %d
\n
"
,
state
);
res
=
RegSetValueExA
(
compkey
,
prod_squashed
,
0
,
REG_SZ
,
(
const
BYTE
*
)
"hi"
,
2
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
...
...
@@ -4023,7 +4025,6 @@ static void test_MsiGetProductInfoEx(void)
INSTALLPROPERTY_HELPTELEPHONE
,
buf
,
&
sz
);
ok
(
r
==
ERROR_MORE_DATA
,
"Expected ERROR_MORE_DATA, got %d
\n
"
,
r
);
ok
(
!
lstrcmpA
(
buf
,
""
),
"Expected
\"\"
, got
\"
%s
\"\n
"
,
buf
);
ok
(
sz
==
10
,
"Expected 10, got %d
\n
"
,
sz
);
/* szValue is NULL, pcchValue is exactly 5 */
...
...
@@ -7779,9 +7780,10 @@ static void test_MsiEnumPatchesEx(void)
"Expected targetsid to be unchanged, got %s
\n
"
,
targetsid
);
ok
(
size
==
MAX_PATH
,
"Expected size to be unchanged, got %d
\n
"
,
size
);
patch_squashed
[
lstrlenA
(
patch_squashed
)
+
1
]
=
'\0'
;
res
=
RegSetValueExA
(
patches
,
"Patches"
,
0
,
REG_MULTI_SZ
,
(
const
BYTE
*
)
patch_squashed
,
lstrlenA
(
patch_squashed
)
+
1
);
lstrlenA
(
patch_squashed
)
+
2
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
/* Patches value exists */
...
...
@@ -8780,9 +8782,10 @@ static void test_MsiEnumPatchesEx(void)
"Expected targetsid to be unchanged, got %s
\n
"
,
targetsid
);
ok
(
size
==
MAX_PATH
,
"Expected size to be unchanged, got %d
\n
"
,
size
);
patch_squashed
[
lstrlenA
(
patch_squashed
)
+
1
]
=
'\0'
;
res
=
RegSetValueExA
(
patches
,
"Patches"
,
0
,
REG_MULTI_SZ
,
(
const
BYTE
*
)
patch_squashed
,
lstrlenA
(
patch_squashed
)
+
1
);
lstrlenA
(
patch_squashed
)
+
2
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
/* Patches value exists */
...
...
@@ -9257,9 +9260,10 @@ static void test_MsiEnumPatches(void)
"Expected lpTransformsBuf to be unchanged, got
\"
%s
\"\n
"
,
transforms
);
ok
(
size
==
MAX_PATH
,
"Expected size to be unchanged, got %d
\n
"
,
size
);
patch_squashed
[
lstrlenA
(
patch_squashed
)
+
1
]
=
'\0'
;
res
=
RegSetValueExA
(
patches
,
"Patches"
,
0
,
REG_MULTI_SZ
,
(
const
BYTE
*
)
patch_squashed
,
lstrlenA
(
patch_squashed
)
+
1
);
lstrlenA
(
patch_squashed
)
+
2
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
/* Patches value exists */
...
...
@@ -9445,9 +9449,10 @@ static void test_MsiEnumPatches(void)
"Expected lpTransformsBuf to be unchanged, got
\"
%s
\"\n
"
,
transforms
);
ok
(
size
==
MAX_PATH
,
"Expected size to be unchanged, got %d
\n
"
,
size
);
patch_squashed
[
lstrlenA
(
patch_squashed
)
+
1
]
=
'\0'
;
res
=
RegSetValueExA
(
patches
,
"Patches"
,
0
,
REG_MULTI_SZ
,
(
const
BYTE
*
)
patch_squashed
,
lstrlenA
(
patch_squashed
)
+
1
);
lstrlenA
(
patch_squashed
)
+
2
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
/* Patches value exists */
...
...
@@ -9589,9 +9594,10 @@ static void test_MsiEnumPatches(void)
"Expected lpTransformsBuf to be unchanged, got
\"
%s
\"\n
"
,
transforms
);
ok
(
size
==
MAX_PATH
,
"Expected size to be unchanged, got %d
\n
"
,
size
);
patch_squashed
[
lstrlenA
(
patch_squashed
)
+
1
]
=
'\0'
;
res
=
RegSetValueExA
(
patches
,
"Patches"
,
0
,
REG_MULTI_SZ
,
(
const
BYTE
*
)
patch_squashed
,
lstrlenA
(
patch_squashed
)
+
1
);
lstrlenA
(
patch_squashed
)
+
2
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
/* Patches value exists */
...
...
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