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
d002f5ce
Commit
d002f5ce
authored
Jun 14, 2005
by
Saulius Krasuckas
Committed by
Alexandre Julliard
Jun 14, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid accessing uninitialized data on WinME (based on an old patch by
Ferenc Wagner).
parent
ed12859a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
prop.c
dlls/mapi32/tests/prop.c
+8
-6
No files found.
dlls/mapi32/tests/prop.c
View file @
d002f5ce
...
...
@@ -812,13 +812,14 @@ static void test_ScCopyRelocProps(void)
ok
(
sc
==
S_OK
&&
lpResProp
->
ulPropTag
==
pvProp
.
ulPropTag
&&
lpResProp
->
Value
.
MVszA
.
cValues
==
1
&&
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
==
buffer
+
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
&&
!
strcmp
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
],
szTestA
)
&&
ulCount
==
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
+
5
,
ulCount
==
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
+
5
&&
!
strcmp
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
],
szTestA
)
,
"CopyProps(str): Expected 0 {1,%lx,%p,%s} %d got 0x%08lx {%ld,%lx,%p,%s} %ld
\n
"
,
pvProp
.
ulPropTag
,
buffer
+
sizeof
(
SPropValue
)
+
sizeof
(
char
*
),
szTestA
,
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
+
5
,
sc
,
lpResProp
->
Value
.
MVszA
.
cValues
,
lpResProp
->
ulPropTag
,
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
],
sc
==
S_OK
?
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
:
NULL
,
ulCount
);
sc
==
S_OK
?
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
:
NULL
,
sc
==
S_OK
?
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
:
NULL
,
ulCount
);
memcpy
(
buffer2
,
buffer
,
sizeof
(
buffer
));
...
...
@@ -834,17 +835,18 @@ static void test_ScCopyRelocProps(void)
ok
(
sc
==
S_OK
&&
lpResProp
->
ulPropTag
==
pvProp
.
ulPropTag
&&
lpResProp
->
Value
.
MVszA
.
cValues
==
1
&&
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
==
buffer2
+
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
&&
!
strcmp
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
],
szTestA
)
&&
/* Native has a bug whereby it calculates the size correctly when copying
* but when relocating does not (presumably it uses UlPropSize() which
* ignores multivalue pointers). Wine returns the correct value.
*/
(
ulCount
==
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
+
5
||
ulCount
==
sizeof
(
SPropValue
)
+
5
),
(
ulCount
==
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
+
5
||
ulCount
==
sizeof
(
SPropValue
)
+
5
)
&&
!
strcmp
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
],
szTestA
),
"RelocProps(str): Expected 0 {1,%lx,%p,%s} %d got 0x%08lx {%ld,%lx,%p,%s} %ld
\n
"
,
pvProp
.
ulPropTag
,
buffer2
+
sizeof
(
SPropValue
)
+
sizeof
(
char
*
),
szTestA
,
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
+
5
,
sc
,
lpResProp
->
Value
.
MVszA
.
cValues
,
lpResProp
->
ulPropTag
,
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
],
sc
==
S_OK
?
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
:
NULL
,
ulCount
);
sc
==
S_OK
?
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
:
NULL
,
sc
==
S_OK
?
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
:
NULL
,
ulCount
);
/* Native crashes with lpNew or lpOld set to NULL so skip testing this */
}
...
...
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