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
577d1e1f
Commit
577d1e1f
authored
Oct 12, 2006
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapi32/tests: Win64 printf format warning fixes.
parent
0a1f1a9c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
9 deletions
+8
-9
Makefile.in
dlls/mapi32/tests/Makefile.in
+0
-1
imalloc.c
dlls/mapi32/tests/imalloc.c
+4
-4
prop.c
dlls/mapi32/tests/prop.c
+0
-0
util.c
dlls/mapi32/tests/util.c
+4
-4
No files found.
dlls/mapi32/tests/Makefile.in
View file @
577d1e1f
...
...
@@ -5,7 +5,6 @@ VPATH = @srcdir@
TESTDLL
=
mapi32.dll
IMPORTS
=
kernel32
EXTRALIBS
=
-luuid
EXTRADEFS
=
-DWINE_NO_LONG_AS_INT
CTESTS
=
\
imalloc.c
\
...
...
dlls/mapi32/tests/imalloc.c
View file @
577d1e1f
...
...
@@ -55,13 +55,13 @@ static void test_IMalloc(void)
lpVoid
=
NULL
;
hRet
=
IMalloc_QueryInterface
(
lpMalloc
,
&
IID_IUnknown
,
&
lpVoid
);
ok
(
hRet
==
S_OK
&&
lpVoid
!=
NULL
,
"IID_IUnknown: exepected S_OK, non-null, got 0x%08
l
x, %p
\n
"
,
"IID_IUnknown: exepected S_OK, non-null, got 0x%08x, %p
\n
"
,
hRet
,
lpVoid
);
lpVoid
=
NULL
;
hRet
=
IMalloc_QueryInterface
(
lpMalloc
,
&
IID_IMalloc
,
&
lpVoid
);
ok
(
hRet
==
S_OK
&&
lpVoid
!=
NULL
,
"IID_IIMalloc: exepected S_OK, non-null, got 0x%08
l
x, %p
\n
"
,
"IID_IIMalloc: exepected S_OK, non-null, got 0x%08x, %p
\n
"
,
hRet
,
lpVoid
);
/* Prove that native mapi uses LocalAlloc/LocalFree */
...
...
@@ -79,10 +79,10 @@ static void test_IMalloc(void)
LocalFree
(
lpMem
);
ulRef
=
IMalloc_AddRef
(
lpMalloc
);
ok
(
ulRef
==
1u
,
"AddRef expected 1, returned %
l
d
\n
"
,
ulRef
);
ok
(
ulRef
==
1u
,
"AddRef expected 1, returned %d
\n
"
,
ulRef
);
ulRef
=
IMalloc_Release
(
lpMalloc
);
ok
(
ulRef
==
1u
,
"AddRef expected 1, returned %
l
d
\n
"
,
ulRef
);
ok
(
ulRef
==
1u
,
"AddRef expected 1, returned %d
\n
"
,
ulRef
);
IMalloc_Release
(
lpMalloc
);
}
...
...
dlls/mapi32/tests/prop.c
View file @
577d1e1f
This diff is collapsed.
Click to expand it.
dlls/mapi32/tests/util.c
View file @
577d1e1f
...
...
@@ -71,7 +71,7 @@ static void test_SwapPlong(void)
longs
[
2
]
=
0x20000001
;
pSwapPlong
(
longs
,
2
);
ok
(
longs
[
0
]
==
0x0100ffff
&&
longs
[
1
]
==
0xffff0010
&&
longs
[
2
]
==
0x20000001
,
"Expected {0x0100ffff,0xffff0010,0x20000001}, got {0x%08
lx,0x%08lx,0x%08l
x}
\n
"
,
"Expected {0x0100ffff,0xffff0010,0x20000001}, got {0x%08
x,0x%08x,0x%08
x}
\n
"
,
longs
[
0
],
longs
[
1
],
longs
[
2
]);
}
...
...
@@ -131,9 +131,9 @@ static void test_UlFromSzHex(void)
return
;
ok
(
pUlFromSzHex
(
"fF"
)
==
0xffu
,
"UlFromSzHex: expected 0xff, got 0x%
l
x
\n
"
,
pUlFromSzHex
(
"fF"
));
"UlFromSzHex: expected 0xff, got 0x%x
\n
"
,
pUlFromSzHex
(
"fF"
));
ok
(
pUlFromSzHex
(
" c"
)
==
0
,
"UlFromSzHex: exected 0x0. got 0x%
l
x
\n
"
,
ok
(
pUlFromSzHex
(
" c"
)
==
0
,
"UlFromSzHex: exected 0x0. got 0x%x
\n
"
,
pUlFromSzHex
(
" c"
));
}
...
...
@@ -153,7 +153,7 @@ static void test_CbOfEncoded(void)
memset
(
buff
,
'\0'
,
sizeof
(
buff
));
memset
(
buff
,
'?'
,
i
);
ulRet
=
pCbOfEncoded
(
buff
);
ok
(
ulRet
==
ulExpected
,
"CbOfEncoded(length %d): expected %
ld, got %l
d
\n
"
,
ok
(
ulRet
==
ulExpected
,
"CbOfEncoded(length %d): expected %
d, got %
d
\n
"
,
i
,
ulExpected
,
ulRet
);
}
}
...
...
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