user32/tests: Fix some pointer conversion warnings on 64-bit.

This commit is contained in:
Alexandre Julliard 2009-05-28 15:24:31 +02:00
parent fb640601ea
commit 83cb24f9b4
1 changed files with 2 additions and 2 deletions

View File

@ -571,7 +571,7 @@ static void test_mbs_help( int ispop, int hassub, int mnuopt,
4 + (mnuopt != 1 ? GetSystemMetrics(SM_CXMENUCHECK) : 0)
: 0) +
arrowwidth + MOD_avec + (hbmp ?
((int)hbmp<0||(int)hbmp>12 ? bmpsize.cx + 2 : GetSystemMetrics( SM_CXMENUSIZE) + 2)
((INT_PTR)hbmp<0||(INT_PTR)hbmp>12 ? bmpsize.cx + 2 : GetSystemMetrics( SM_CXMENUSIZE) + 2)
: 0) +
(text && hastab ? /* TAB space */
MOD_avec + ( hastab==2 ? sc_size.cx : 0) : 0) +
@ -588,7 +588,7 @@ static void test_mbs_help( int ispop, int hassub, int mnuopt,
expect = max( ( !(text || hbmp) ? GetSystemMetrics( SM_CYMENUSIZE)/2 : 0),
max( (text ? max( 2 + size.cy, MOD_hic + 4) : 0),
(hbmp ?
((int)hbmp<0||(int)hbmp>12 ?
((INT_PTR)hbmp<0||(INT_PTR)hbmp>12 ?
bmpsize.cy + 2
: GetSystemMetrics( SM_CYMENUSIZE) + 2)
: 0)));