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
1124555a
Commit
1124555a
authored
Jun 25, 2008
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Jun 25, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapi32: Skip tests on error.
parent
6de37643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
19 deletions
+25
-19
prop.c
dlls/mapi32/tests/prop.c
+25
-19
No files found.
dlls/mapi32/tests/prop.c
View file @
1124555a
...
@@ -824,13 +824,16 @@ static void test_ScCopyRelocProps(void)
...
@@ -824,13 +824,16 @@ static void test_ScCopyRelocProps(void)
sc
=
pScCopyProps
(
1
,
&
pvProp
,
buffer
,
&
ulCount
);
sc
=
pScCopyProps
(
1
,
&
pvProp
,
buffer
,
&
ulCount
);
ok
(
sc
==
S_OK
,
"wrong ret %d
\n
"
,
sc
);
ok
(
sc
==
S_OK
,
"wrong ret %d
\n
"
,
sc
);
ok
(
lpResProp
->
ulPropTag
==
pvProp
.
ulPropTag
,
"wrong tag %x
\n
"
,
lpResProp
->
ulPropTag
);
if
(
sc
==
S_OK
)
ok
(
lpResProp
->
Value
.
MVszA
.
cValues
==
1
,
"wrong cValues %d
\n
"
,
lpResProp
->
Value
.
MVszA
.
cValues
);
{
ok
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
==
buffer
+
sizeof
(
SPropValue
)
+
sizeof
(
char
*
),
ok
(
lpResProp
->
ulPropTag
==
pvProp
.
ulPropTag
,
"wrong tag %x
\n
"
,
lpResProp
->
ulPropTag
);
"wrong lppszA[0] %p
\n
"
,
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]);
ok
(
lpResProp
->
Value
.
MVszA
.
cValues
==
1
,
"wrong cValues %d
\n
"
,
lpResProp
->
Value
.
MVszA
.
cValues
);
ok
(
ulCount
==
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
+
5
,
"wrong count %d
\n
"
,
ulCount
);
ok
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
==
buffer
+
sizeof
(
SPropValue
)
+
sizeof
(
char
*
),
ok
(
!
strcmp
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
],
szTestA
),
"wrong lppszA[0] %p
\n
"
,
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]);
"wrong string '%s'
\n
"
,
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]);
ok
(
ulCount
==
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
+
5
,
"wrong count %d
\n
"
,
ulCount
);
ok
(
!
strcmp
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
],
szTestA
),
"wrong string '%s'
\n
"
,
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]);
}
memcpy
(
buffer2
,
buffer
,
sizeof
(
buffer
));
memcpy
(
buffer2
,
buffer
,
sizeof
(
buffer
));
...
@@ -845,18 +848,21 @@ static void test_ScCopyRelocProps(void)
...
@@ -845,18 +848,21 @@ static void test_ScCopyRelocProps(void)
lpResProp
=
(
LPSPropValue
)
buffer2
;
lpResProp
=
(
LPSPropValue
)
buffer2
;
ok
(
sc
==
S_OK
,
"wrong ret %d
\n
"
,
sc
);
ok
(
sc
==
S_OK
,
"wrong ret %d
\n
"
,
sc
);
ok
(
lpResProp
->
ulPropTag
==
pvProp
.
ulPropTag
,
"wrong tag %x
\n
"
,
lpResProp
->
ulPropTag
);
if
(
sc
==
S_OK
)
ok
(
lpResProp
->
Value
.
MVszA
.
cValues
==
1
,
"wrong cValues %d
\n
"
,
lpResProp
->
Value
.
MVszA
.
cValues
);
{
ok
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
==
buffer2
+
sizeof
(
SPropValue
)
+
sizeof
(
char
*
),
ok
(
lpResProp
->
ulPropTag
==
pvProp
.
ulPropTag
,
"wrong tag %x
\n
"
,
lpResProp
->
ulPropTag
);
"wrong lppszA[0] %p
\n
"
,
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]);
ok
(
lpResProp
->
Value
.
MVszA
.
cValues
==
1
,
"wrong cValues %d
\n
"
,
lpResProp
->
Value
.
MVszA
.
cValues
);
/* Native has a bug whereby it calculates the size correctly when copying
ok
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]
==
buffer2
+
sizeof
(
SPropValue
)
+
sizeof
(
char
*
),
* but when relocating does not (presumably it uses UlPropSize() which
"wrong lppszA[0] %p
\n
"
,
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]);
* ignores multivalue pointers). Wine returns the correct value.
/* Native has a bug whereby it calculates the size correctly when copying
*/
* but when relocating does not (presumably it uses UlPropSize() which
ok
(
ulCount
==
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
+
5
||
ulCount
==
sizeof
(
SPropValue
)
+
5
,
* ignores multivalue pointers). Wine returns the correct value.
"wrong count %d
\n
"
,
ulCount
);
*/
ok
(
!
strcmp
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
],
szTestA
),
ok
(
ulCount
==
sizeof
(
SPropValue
)
+
sizeof
(
char
*
)
+
5
||
ulCount
==
sizeof
(
SPropValue
)
+
5
,
"wrong string '%s'
\n
"
,
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]);
"wrong count %d
\n
"
,
ulCount
);
ok
(
!
strcmp
(
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
],
szTestA
),
"wrong string '%s'
\n
"
,
lpResProp
->
Value
.
MVszA
.
lppszA
[
0
]);
}
/* Native crashes with lpNew or lpOld set to NULL so skip testing this */
/* 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