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
120584d5
Commit
120584d5
authored
Jan 08, 2009
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Jan 08, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mapi32: Remove superfluous casts.
parent
68d5d8e9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
imalloc.c
dlls/mapi32/imalloc.c
+1
-1
imalloc.c
dlls/mapi32/tests/imalloc.c
+1
-2
prop.c
dlls/mapi32/tests/prop.c
+2
-2
No files found.
dlls/mapi32/imalloc.c
View file @
120584d5
...
...
@@ -78,7 +78,7 @@ static HRESULT WINAPI IMAPIMalloc_fnQueryInterface(LPMALLOC iface, REFIID refiid
if
(
IsEqualIID
(
refiid
,
&
IID_IUnknown
)
||
IsEqualIID
(
refiid
,
&
IID_IMalloc
))
{
*
ppvObj
=
(
LPMALLOC
)
&
MAPI_IMalloc
;
*
ppvObj
=
&
MAPI_IMalloc
;
TRACE
(
"Returning IMalloc (%p)
\n
"
,
*
ppvObj
);
return
S_OK
;
}
...
...
dlls/mapi32/tests/imalloc.c
View file @
120584d5
...
...
@@ -64,8 +64,7 @@ static void test_IMalloc(void)
/* Prove that native mapi uses LocalAlloc/LocalFree */
lpMem
=
IMalloc_Alloc
(
lpMalloc
,
61
);
ok
(
lpMem
&&
IMalloc_GetSize
(
lpMalloc
,
lpMem
)
==
LocalSize
((
HANDLE
)
lpMem
),
ok
(
lpMem
&&
IMalloc_GetSize
(
lpMalloc
,
lpMem
)
==
LocalSize
(
lpMem
),
"Expected non-null, same size, got %p, %s size
\n
"
,
lpMem
,
lpMem
?
"different"
:
"same"
);
...
...
dlls/mapi32/tests/prop.c
View file @
120584d5
...
...
@@ -93,11 +93,11 @@ static void test_PropCopyMore(void)
if
(
!
pPropCopyMore
)
return
;
scode
=
pMAPIAllocateBuffer
(
sizeof
(
LPSPropValue
),
(
LPVOID
*
)
lpDest
);
scode
=
pMAPIAllocateBuffer
(
sizeof
(
LPSPropValue
),
lpDest
);
if
(
FAILED
(
scode
))
return
;
scode
=
pMAPIAllocateMore
(
sizeof
(
LPSPropValue
),
lpDest
,
(
LPVOID
*
)
lpSrc
);
scode
=
pMAPIAllocateMore
(
sizeof
(
LPSPropValue
),
lpDest
,
lpSrc
);
if
(
FAILED
(
scode
))
return
;
...
...
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