win32u: Build without -DWINE_NO_LONG_TYPES.

This commit is contained in:
Alexandre Julliard 2022-11-23 16:13:58 +01:00
parent 670033b2cb
commit 5084f4da2b
31 changed files with 181 additions and 171 deletions

View file

@ -1,4 +1,3 @@
EXTRADEFS = -DWINE_NO_LONG_TYPES
MODULE = win32u.dll
UNIXLIB = win32u.so
IMPORTLIB = win32u

View file

@ -557,7 +557,7 @@ BOOL WINAPI NtGdiPatBlt( HDC hdc, INT left, INT top, INT width, INT height, DWOR
TRACE("dst %p log=%d,%d %dx%d phys=%d,%d %dx%d vis=%s rop=%06x\n",
hdc, dst.log_x, dst.log_y, dst.log_width, dst.log_height,
dst.x, dst.y, dst.width, dst.height, wine_dbgstr_rect(&dst.visrect), rop );
dst.x, dst.y, dst.width, dst.height, wine_dbgstr_rect(&dst.visrect), (int)rop );
if (!ret)
{
@ -624,7 +624,7 @@ BOOL WINAPI NtGdiStretchBlt( HDC hdcDst, INT xDst, INT yDst, INT widthDst, INT h
hdcSrc, src.log_x, src.log_y, src.log_width, src.log_height,
src.x, src.y, src.width, src.height, wine_dbgstr_rect(&src.visrect),
hdcDst, dst.log_x, dst.log_y, dst.log_width, dst.log_height,
dst.x, dst.y, dst.width, dst.height, wine_dbgstr_rect(&dst.visrect), rop );
dst.x, dst.y, dst.width, dst.height, wine_dbgstr_rect(&dst.visrect), (int)rop );
if (!ret)
{
@ -1066,7 +1066,8 @@ BOOL WINAPI NtGdiPlgBlt( HDC hdcDest, const POINT *lpPoint, HDC hdcSrc, INT nXSr
}
TRACE("hdcSrc=%p %d,%d,%dx%d -> hdcDest=%p %d,%d,%d,%d,%d,%d\n",
hdcSrc, nXSrc, nYSrc, nWidth, nHeight, hdcDest, plg[0].x, plg[0].y, plg[1].x, plg[1].y, plg[2].x, plg[2].y);
hdcSrc, nXSrc, nYSrc, nWidth, nHeight, hdcDest,
(int)plg[0].x, (int)plg[0].y, (int)plg[1].x, (int)plg[1].y, (int)plg[2].x, (int)plg[2].y);
/* X components */
xf.eM11 = (plg[1].x*(rect[2].y - rect[0].y) - plg[2].x*(rect[1].y - rect[0].y) - plg[0].x*(rect[2].y - rect[1].y)) / det;

View file

@ -280,7 +280,7 @@ LONG WINAPI NtGdiSetBitmapBits(
if (!bmp) return 0;
if (count < 0) {
WARN("(%d): Negative number of bytes passed???\n", count );
WARN("(%d): Negative number of bytes passed???\n", (int)count );
count = -count;
}
@ -311,7 +311,7 @@ LONG WINAPI NtGdiSetBitmapBits(
}
TRACE("(%p, %d, %p) %dx%d %d bpp fetched height: %d\n",
hbitmap, count, bits, bmp->dib.dsBm.bmWidth, bmp->dib.dsBm.bmHeight,
hbitmap, (int)count, bits, bmp->dib.dsBm.bmWidth, bmp->dib.dsBm.bmHeight,
bmp->dib.dsBm.bmBitsPixel, src.height );
if (src_stride == dst_stride)

View file

@ -262,8 +262,8 @@ HBRUSH WINAPI NtGdiCreateDIBBrush( const void *data, UINT coloruse, UINT size,
if (!data)
return NULL;
TRACE( "%p %dx%d %dbpp\n", info, info->bmiHeader.biWidth,
info->bmiHeader.biHeight, info->bmiHeader.biBitCount );
TRACE( "%p %dx%d %dbpp\n", info, (int)info->bmiHeader.biWidth,
(int)info->bmiHeader.biHeight, (int)info->bmiHeader.biBitCount );
logbrush.lbStyle = BS_DIBPATTERNPT;
logbrush.lbColor = coloruse;

View file

@ -478,7 +478,7 @@ HCURSOR WINAPI NtUserGetCursorFrameInfo( HCURSOR cursor, DWORD istep, DWORD *rat
if (!(obj = get_icon_ptr( cursor ))) return 0;
TRACE( "%p => %d %p %p\n", cursor, istep, rate_jiffies, num_steps );
TRACE( "%p => %d %p %p\n", cursor, (int)istep, rate_jiffies, num_steps );
icon_steps = obj->is_ani ? obj->ani.num_steps : 1;
if (istep < icon_steps || !obj->is_ani)

View file

@ -510,7 +510,7 @@ static BOOL DC_DeleteObject( HGDIOBJ handle )
if (!(dc = get_dc_ptr( handle ))) return FALSE;
if (dc->refcount != 1)
{
FIXME( "not deleting busy DC %p refcount %u\n", dc->hSelf, dc->refcount );
FIXME( "not deleting busy DC %p refcount %u\n", dc->hSelf, (int)dc->refcount );
release_dc_ptr( dc );
return FALSE;
}
@ -1159,7 +1159,7 @@ BOOL WINAPI NtGdiGetTransform( HDC hdc, DWORD which, XFORM *xform )
break;
default:
FIXME("Unknown code %x\n", which);
FIXME("Unknown code %x\n", (int)which);
ret = FALSE;
}
@ -1466,7 +1466,7 @@ DWORD WINAPI NtGdiSetLayout( HDC hdc, LONG wox, DWORD layout )
release_dc_ptr( dc );
}
TRACE("hdc : %p, old layout : %08x, new layout : %08x\n", hdc, old_layout, layout);
TRACE("hdc : %p, old layout : %08x, new layout : %08x\n", hdc, old_layout, (int)layout);
return old_layout;
}

View file

@ -364,7 +364,7 @@ BOOL create_dib_surface( HDC hdc, const BITMAPINFO *info )
memcpy( &surface->info, info, surface->info_size );
TRACE( "created %p %ux%u for info %p bits %p\n",
surface, rect.right, rect.bottom, info, surface->bits );
surface, (int)rect.right, (int)rect.bottom, info, surface->bits );
region = NtGdiCreateRectRgn( rect.left, rect.top, rect.right, rect.bottom );
set_visible_region( hdc, region, &rect, &rect, &surface->header );
@ -890,7 +890,7 @@ HDC WINAPI NtUserGetDCEx( HWND hwnd, HRGN clip_rgn, DWORD flags )
if (!hwnd) hwnd = get_desktop_window();
else hwnd = get_full_window_handle( hwnd );
TRACE( "hwnd %p, clip_rgn %p, flags %08x\n", hwnd, clip_rgn, flags );
TRACE( "hwnd %p, clip_rgn %p, flags %08x\n", hwnd, clip_rgn, (int)flags );
if (!is_window(hwnd)) return 0;
@ -1016,7 +1016,7 @@ HDC WINAPI NtUserGetDCEx( HWND hwnd, HRGN clip_rgn, DWORD flags )
if (update_vis_rgn) update_visible_region( dce );
TRACE( "(%p,%p,0x%x): returning %p%s\n", hwnd, clip_rgn, flags, dce->hdc,
TRACE( "(%p,%p,0x%x): returning %p%s\n", hwnd, clip_rgn, (int)flags, dce->hdc,
update_vis_rgn ? " (updated)" : "" );
return dce->hdc;
}

View file

@ -689,7 +689,7 @@ static void sys_command_size_move( HWND hwnd, WPARAM wparam )
NtUserClipCursor( NULL );
TRACE( "hwnd %p command %04x, hittest %d, pos %d,%d\n",
hwnd, syscommand, hittest, pt.x, pt.y );
hwnd, syscommand, hittest, (int)pt.x, (int)pt.y );
if (syscommand == SC_MOVE)
{
@ -946,7 +946,7 @@ static void track_nc_scroll_bar( HWND hwnd, WPARAM wparam, POINT pt )
static LRESULT handle_sys_command( HWND hwnd, WPARAM wparam, LPARAM lparam )
{
TRACE( "hwnd %p WM_SYSCOMMAND %lx %lx\n", hwnd, wparam, lparam );
TRACE( "hwnd %p WM_SYSCOMMAND %lx %lx\n", hwnd, (long)wparam, lparam );
if (!is_window_enabled( hwnd )) return 0;
@ -1007,7 +1007,7 @@ static LRESULT handle_sys_command( HWND hwnd, WPARAM wparam, LPARAM lparam )
case SC_ARRANGE:
case SC_NEXTWINDOW:
case SC_PREVWINDOW:
FIXME( "unimplemented WM_SYSCOMMAND %04lx\n", wparam );
FIXME( "unimplemented WM_SYSCOMMAND %04lx\n", (long)wparam );
break;
default:
@ -1856,7 +1856,7 @@ static void handle_nc_calc_size( HWND hwnd, WPARAM wparam, RECT *win_rect )
if (((style & (WS_CHILD | WS_POPUP)) != WS_CHILD) && get_menu( hwnd ))
{
TRACE( "getting menu bar height with hwnd %p, width %d, at (%d, %d)\n",
hwnd, win_rect->right - win_rect->left, -rect.left, -rect.top );
hwnd, (int)(win_rect->right - win_rect->left), (int)-rect.left, (int)-rect.top );
win_rect->top += get_menu_bar_height( hwnd, win_rect->right - win_rect->left,
-rect.left, -rect.top );
@ -1901,7 +1901,7 @@ LRESULT handle_nc_hit_test( HWND hwnd, POINT pt )
RECT rect, client_rect;
DWORD style, ex_style;
TRACE( "hwnd %p pt %d,%d\n", hwnd, pt.x, pt.y );
TRACE( "hwnd %p pt %d,%d\n", hwnd, (int)pt.x, (int)pt.y );
get_window_rects( hwnd, COORDS_SCREEN, &rect, &client_rect, get_thread_dpi() );
if (!PtInRect( &rect, pt )) return HTNOWHERE;
@ -2343,7 +2343,7 @@ static LRESULT handle_nc_mouse_move( HWND hwnd, WPARAM wparam, LPARAM lparam )
RECT rect;
POINT pt;
TRACE( "hwnd=%p wparam=%#lx lparam=%#lx\n", hwnd, wparam, lparam );
TRACE( "hwnd=%p wparam=%#lx lparam=%#lx\n", hwnd, (long)wparam, lparam );
if (wparam != HTHSCROLL && wparam != HTVSCROLL)
return 0;
@ -2996,7 +2996,7 @@ BOOL WINAPI NtUserGetTitleBarInfo( HWND hwnd, TITLEBARINFO *info )
if (info->cbSize != sizeof(TITLEBARINFO))
{
TRACE( "Invalid TITLEBARINFO size: %d\n", info->cbSize );
TRACE( "Invalid TITLEBARINFO size: %d\n", (int)info->cbSize );
RtlSetLastWin32Error( ERROR_INVALID_PARAMETER );
return FALSE;
}

View file

@ -181,7 +181,7 @@ static BOOL bitmapinfoheader_from_user_bitmapinfo( BITMAPINFOHEADER *dst, const
}
else
{
WARN( "(%u): unknown/wrong size for header\n", info->biSize );
WARN( "(%u): unknown/wrong size for header\n", (int)info->biSize );
return FALSE;
}
@ -479,7 +479,7 @@ INT CDECL nulldrv_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst,
RECT rect;
TRACE("%d %d %d %d <- %d %d %d %d rop %08x\n", xDst, yDst, widthDst, heightDst,
xSrc, ySrc, widthSrc, heightSrc, rop);
xSrc, ySrc, widthSrc, heightSrc, (int)rop);
src_bits.ptr = (void*)bits;
src_bits.is_copy = FALSE;
@ -1441,7 +1441,7 @@ HBITMAP WINAPI NtGdiCreateDIBitmapInternal( HDC hdc, INT width, INT height, DWOR
height = abs( height );
TRACE( "hdc=%p, init=%u, bits=%p, data=%p, coloruse=%u (bitmap: width=%d, height=%d)\n",
hdc, init, bits, data, coloruse, width, height );
hdc, (int)init, bits, data, coloruse, width, height );
if (hdc == NULL)
handle = NtGdiCreateBitmap( width, height, 1, 1, NULL );
@ -1489,10 +1489,10 @@ HBITMAP WINAPI NtGdiCreateDIBSection( HDC hdc, HANDLE section, DWORD offset, con
if (!(bmp = calloc( 1, sizeof(*bmp) ))) return 0;
TRACE("format (%d,%d), planes %d, bpp %d, %s, size %d %s\n",
info->bmiHeader.biWidth, info->bmiHeader.biHeight,
(int)info->bmiHeader.biWidth, (int)info->bmiHeader.biHeight,
info->bmiHeader.biPlanes, info->bmiHeader.biBitCount,
info->bmiHeader.biCompression == BI_BITFIELDS? "BI_BITFIELDS" : "BI_RGB",
info->bmiHeader.biSizeImage, usage == DIB_PAL_COLORS? "PAL" : "RGB");
(int)info->bmiHeader.biSizeImage, usage == DIB_PAL_COLORS? "PAL" : "RGB");
bmp->dib.dsBm.bmType = 0;
bmp->dib.dsBm.bmWidth = info->bmiHeader.biWidth;

View file

@ -1241,8 +1241,8 @@ DWORD stretch_bitmapinfo( const BITMAPINFO *src_info, void *src_bits, struct bit
if (ret) return ret;
TRACE("got dst start %d, %d inc %d, %d. src start %d, %d inc %d, %d len %d x %d\n",
dst_start.x, dst_start.y, h_params.dst_inc, v_params.dst_inc,
src_start.x, src_start.y, h_params.src_inc, v_params.src_inc,
(int)dst_start.x, (int)dst_start.y, h_params.dst_inc, v_params.dst_inc,
(int)src_start.x, (int)src_start.y, h_params.src_inc, v_params.src_inc,
h_params.length, v_params.length);
get_bounding_rect( &rect, dst_start.x, dst_start.y, dst_end.x - dst_start.x, dst_end.y - dst_start.y );

View file

@ -612,7 +612,7 @@ static struct cached_font *add_cached_font( DC *dc, HFONT hfont, UINT aa_flags )
done:
list_add_head( &font_cache, &ptr->entry );
pthread_mutex_unlock( &font_cache_lock );
TRACE( "%d %s -> %p\n", ptr->lf.lfHeight, debugstr_w(ptr->lf.lfFaceName), ptr );
TRACE( "%d %s -> %p\n", (int)ptr->lf.lfHeight, debugstr_w(ptr->lf.lfFaceName), ptr );
return ptr;
}
@ -1185,7 +1185,7 @@ BOOL CDECL dibdrv_PatBlt( PHYSDEV dev, struct bitblt_coords *dst, DWORD rop )
DWORD and = 0, xor = 0;
BOOL ret = TRUE;
TRACE("(%p, %d, %d, %d, %d, %06x)\n", dev, dst->x, dst->y, dst->width, dst->height, rop);
TRACE("(%p, %d, %d, %d, %d, %06x)\n", dev, dst->x, dst->y, dst->width, dst->height, (int)rop);
add_clipped_bounds( pdev, &dst->visrect, 0 );
if (!get_clipped_rects( &pdev->dib, &dst->visrect, pdev->clip, &clipped_rects )) return TRUE;

View file

@ -987,7 +987,7 @@ static void dump_gdi_font_list(void)
LIST_FOR_EACH_ENTRY( face, &family->faces, struct gdi_font_face, entry )
{
TRACE( "\t%s\t%s\t%08x", debugstr_w(face->style_name), debugstr_w(face->full_name),
face->fs.fsCsb[0] );
(int)face->fs.fsCsb[0] );
if (!face->scalable) TRACE(" %d", face->size.height );
TRACE("\n");
}
@ -1288,9 +1288,9 @@ static void load_face_from_cache( HKEY hkey_family, struct gdi_font_family *fami
face->size.x_ppem >> 6, face->size.y_ppem >> 6);
TRACE("fsCsb = %08x %08x/%08x %08x %08x %08x\n",
face->fs.fsCsb[0], face->fs.fsCsb[1],
face->fs.fsUsb[0], face->fs.fsUsb[1],
face->fs.fsUsb[2], face->fs.fsUsb[3]);
(int)face->fs.fsCsb[0], (int)face->fs.fsCsb[1],
(int)face->fs.fsUsb[0], (int)face->fs.fsUsb[1],
(int)face->fs.fsUsb[2], (int)face->fs.fsUsb[3]);
release_face( face );
}
@ -3506,7 +3506,7 @@ static BOOL enum_face_charsets( const struct gdi_font_family *family, struct gdi
TRACE( "face %s full %s style %s charset = %d type %d script %s it %d weight %d ntmflags %08x\n",
debugstr_w(elf.elfLogFont.lfFaceName), debugstr_w(elf.elfFullName), debugstr_w(elf.elfStyle),
elf.elfLogFont.lfCharSet, type, debugstr_w(elf.elfScript),
elf.elfLogFont.lfItalic, elf.elfLogFont.lfWeight, ntm.ntmTm.ntmFlags );
elf.elfLogFont.lfItalic, (int)elf.elfLogFont.lfWeight, (int)ntm.ntmTm.ntmFlags );
/* release section before callback (FIXME) */
pthread_mutex_unlock( &font_lock );
if (!proc( &elf.elfLogFont, (TEXTMETRICW *)&ntm, type, lparam )) return FALSE;
@ -4407,12 +4407,12 @@ static void get_nearest_charset( const WCHAR *family_name, struct gdi_font_face
if (face->fs.fsCsb[0] & fs0)
{
if (translate_charset_info(&fs0, csi, TCI_SRCFONTSIG)) return;
FIXME("TCI failing on %x\n", fs0);
FIXME("TCI failing on %x\n", (int)fs0);
}
}
FIXME("returning DEFAULT_CHARSET face->fs.fsCsb[0] = %08x file = %s\n",
face->fs.fsCsb[0], debugstr_w(face->file));
(int)face->fs.fsCsb[0], debugstr_w(face->file));
csi->ciACP = ansi_cp.CodePage;
csi->ciCharset = DEFAULT_CHARSET;
}
@ -4543,9 +4543,9 @@ static HFONT CDECL font_SelectFont( PHYSDEV dev, HFONT hfont, UINT *aa_flags )
lf.lfWidth = abs(lf.lfWidth);
TRACE( "%s, h=%d, it=%d, weight=%d, PandF=%02x, charset=%d orient %d escapement %d\n",
debugstr_w(lf.lfFaceName), lf.lfHeight, lf.lfItalic,
lf.lfWeight, lf.lfPitchAndFamily, lf.lfCharSet, lf.lfOrientation,
lf.lfEscapement );
debugstr_w(lf.lfFaceName), (int)lf.lfHeight, lf.lfItalic,
(int)lf.lfWeight, lf.lfPitchAndFamily, lf.lfCharSet, (int)lf.lfOrientation,
(int)lf.lfEscapement );
if (dc->attr->graphics_mode == GM_ADVANCED)
{
@ -4590,7 +4590,7 @@ static HFONT CDECL font_SelectFont( PHYSDEV dev, HFONT hfont, UINT *aa_flags )
}
*aa_flags = font_funcs->get_aa_flags( font, *aa_flags, antialias_fakes );
}
TRACE( "%p %s %d aa %x\n", hfont, debugstr_w(lf.lfFaceName), lf.lfHeight, *aa_flags );
TRACE( "%p %s %d aa %x\n", hfont, debugstr_w(lf.lfFaceName), (int)lf.lfHeight, *aa_flags );
pthread_mutex_unlock( &font_lock );
}
physdev->font = font;
@ -4941,8 +4941,8 @@ HFONT WINAPI NtGdiHfontCreate( const void *logfont, ULONG size, ULONG type,
}
TRACE("(%d %d %d %d %x %d %x %d %d) %s %s %s %s => %p\n",
plf->lfHeight, plf->lfWidth,
plf->lfEscapement, plf->lfOrientation,
(int)plf->lfHeight, (int)plf->lfWidth,
(int)plf->lfEscapement, (int)plf->lfOrientation,
plf->lfPitchAndFamily,
plf->lfOutPrecision, plf->lfClipPrecision,
plf->lfQuality, plf->lfCharSet,
@ -5279,7 +5279,8 @@ BOOL WINAPI NtGdiGetTextExtentExW( HDC hdc, const WCHAR *str, INT count, INT max
if (pos != buffer && pos != dxs) free( pos );
release_dc_ptr( dc );
TRACE("(%p, %s, %d) returning %dx%d\n", hdc, debugstr_wn(str,count), max_ext, size->cx, size->cy );
TRACE("(%p, %s, %d) returning %dx%d\n", hdc, debugstr_wn(str,count),
max_ext, (int)size->cx, (int)size->cy );
return ret;
}
@ -5324,15 +5325,15 @@ BOOL WINAPI NtGdiGetTextMetricsW( HDC hdc, TEXTMETRICW *metrics, ULONG flags )
" Ascent = %i\n"
" Descent = %i\n"
" Height = %i\n",
metrics->tmWeight, metrics->tmFirstChar, metrics->tmAveCharWidth,
metrics->tmItalic, metrics->tmLastChar, metrics->tmMaxCharWidth,
metrics->tmUnderlined, metrics->tmDefaultChar, metrics->tmOverhang,
(int)metrics->tmWeight, metrics->tmFirstChar, (int)metrics->tmAveCharWidth,
metrics->tmItalic, metrics->tmLastChar, (int)metrics->tmMaxCharWidth,
metrics->tmUnderlined, metrics->tmDefaultChar, (int)metrics->tmOverhang,
metrics->tmStruckOut, metrics->tmBreakChar, metrics->tmCharSet,
metrics->tmPitchAndFamily,
metrics->tmInternalLeading,
metrics->tmAscent,
metrics->tmDescent,
metrics->tmHeight );
(int)metrics->tmInternalLeading,
(int)metrics->tmAscent,
(int)metrics->tmDescent,
(int)metrics->tmHeight );
}
release_dc_ptr( dc );
return ret;
@ -6238,7 +6239,7 @@ DWORD WINAPI NtGdiGetGlyphOutline( HDC hdc, UINT ch, UINT format, GLYPHMETRICS *
DWORD ret;
PHYSDEV dev;
TRACE( "(%p, %04x, %04x, %p, %d, %p, %p)\n", hdc, ch, format, metrics, size, buffer, mat2 );
TRACE( "(%p, %04x, %04x, %p, %d, %p, %p)\n", hdc, ch, format, metrics, (int)size, buffer, mat2 );
if (!mat2) return GDI_ERROR;
@ -6284,7 +6285,7 @@ DWORD WINAPI NtGdiGetKerningPairs( HDC hdc, DWORD count, KERNINGPAIR *kern_pair
DWORD ret;
PHYSDEV dev;
TRACE( "(%p,%d,%p)\n", hdc, count, kern_pair );
TRACE( "(%p,%d,%p)\n", hdc, (int)count, kern_pair );
if (!count && kern_pair)
{
@ -6340,7 +6341,7 @@ DWORD WINAPI NtGdiGetGlyphIndicesW( HDC hdc, const WCHAR *str, INT count,
PHYSDEV dev;
DWORD ret;
TRACE( "(%p, %s, %d, %p, 0x%x)\n", hdc, debugstr_wn(str, count), count, indices, flags );
TRACE( "(%p, %s, %d, %p, 0x%x)\n", hdc, debugstr_wn(str, count), count, indices, (int)flags );
if(!dc) return GDI_ERROR;
@ -6686,11 +6687,11 @@ static HKEY open_hkcu(void)
return 0;
sid = ((TOKEN_USER *)sid_data)->User.Sid;
len = sprintf( buffer, "\\Registry\\User\\S-%u-%u", sid->Revision,
MAKELONG( MAKEWORD( sid->IdentifierAuthority.Value[5], sid->IdentifierAuthority.Value[4] ),
len = sprintf( buffer, "\\Registry\\User\\S-%u-%u", (int)sid->Revision,
(int)MAKELONG( MAKEWORD( sid->IdentifierAuthority.Value[5], sid->IdentifierAuthority.Value[4] ),
MAKEWORD( sid->IdentifierAuthority.Value[3], sid->IdentifierAuthority.Value[2] )));
for (i = 0; i < sid->SubAuthorityCount; i++)
len += sprintf( buffer + len, "-%u", sid->SubAuthority[i] );
len += sprintf( buffer + len, "-%u", (int)sid->SubAuthority[i] );
ascii_to_unicode( bufferW, buffer, len + 1 );
return reg_open_key( NULL, bufferW, len * sizeof(WCHAR) );

View file

@ -1316,8 +1316,10 @@ static int add_unix_face( const char *unix_name, const WCHAR *file, void *data_p
file, data_ptr, data_size, face_index, unix_face->fs, unix_face->ntm_flags,
unix_face->font_version, flags, unix_face->scalable ? NULL : &unix_face->size );
TRACE("fsCsb = %08x %08x/%08x %08x %08x %08x\n", unix_face->fs.fsCsb[0], unix_face->fs.fsCsb[1],
unix_face->fs.fsUsb[0], unix_face->fs.fsUsb[1], unix_face->fs.fsUsb[2], unix_face->fs.fsUsb[3]);
TRACE("fsCsb = %08x %08x/%08x %08x %08x %08x\n",
(int)unix_face->fs.fsCsb[0], (int)unix_face->fs.fsCsb[1],
(int)unix_face->fs.fsUsb[0], (int)unix_face->fs.fsUsb[1],
(int)unix_face->fs.fsUsb[2], (int)unix_face->fs.fsUsb[3]);
if (num_faces) *num_faces = unix_face->num_faces;
unix_face_destroy( unix_face );
@ -2436,7 +2438,7 @@ static BOOL freetype_load_font( struct gdi_font *font )
/* load the VDMX table if we have one */
font->ppem = load_VDMX( font, font->lf.lfHeight );
if (font->ppem == 0) font->ppem = calc_ppem_for_height( ft_face, font->lf.lfHeight );
TRACE( "height %d => ppem %d\n", font->lf.lfHeight, font->ppem );
TRACE( "height %d => ppem %d\n", (int)font->lf.lfHeight, font->ppem );
height = font->ppem;
font->ttc_item_offset = get_ttc_offset( ft_face, font->face_index );
font->otm.otmEMSquare = ft_face->units_per_EM;
@ -2482,7 +2484,7 @@ static UINT freetype_get_aa_flags( struct gdi_font *font, UINT aa_flags, BOOL an
if (get_gasp_flags( font, &gasp_flags ) && !(gasp_flags & GASP_DOGRAY))
{
TRACE( "font %s %d aa disabled by GASP\n",
debugstr_w(font->lf.lfFaceName), font->lf.lfHeight );
debugstr_w(font->lf.lfFaceName), (int)font->lf.lfHeight );
aa_flags = GGO_BITMAP;
}
}

View file

@ -747,7 +747,7 @@ HGDIOBJ alloc_gdi_handle( struct gdi_obj_header *obj, DWORD type, const struct g
ret = entry_to_handle( entry );
pthread_mutex_unlock( &gdi_lock );
TRACE( "allocated %s %p %u/%u\n", gdi_obj_type(type), ret,
InterlockedIncrement( &debug_count ), GDI_MAX_HANDLE_COUNT );
(int)InterlockedIncrement( &debug_count ), GDI_MAX_HANDLE_COUNT );
return ret;
}
@ -766,7 +766,7 @@ void *free_gdi_handle( HGDIOBJ handle )
if ((entry = handle_entry( handle )))
{
TRACE( "freed %s %p %u/%u\n", gdi_obj_type( entry->ExtType << NTGDI_HANDLE_TYPE_SHIFT ),
handle, InterlockedDecrement( &debug_count ) + 1, GDI_MAX_HANDLE_COUNT );
handle, (int)InterlockedDecrement( &debug_count ) + 1, GDI_MAX_HANDLE_COUNT );
object = entry_obj( entry );
entry->Type = 0;
entry->Object = (UINT_PTR)next_free;

View file

@ -129,7 +129,7 @@ HHOOK WINAPI NtUserSetWindowsHookEx( HINSTANCE inst, UNICODE_STRING *module, DWO
}
SERVER_END_REQ;
TRACE( "%s %p %x -> %p\n", debugstr_hook_id(id), proc, tid, handle );
TRACE( "%s %p %x -> %p\n", debugstr_hook_id(id), proc, (int)tid, handle );
return handle;
}
@ -206,7 +206,8 @@ static LRESULT call_hook( struct win_hook_params *info, const WCHAR *module )
h_extra.lparam = info->lparam;
TRACE( "calling hook in thread %04x %s code %x wp %lx lp %lx\n",
info->tid, hook_names[info->id-WH_MINHOOK], info->code, info->wparam, info->lparam );
(int)info->tid, hook_names[info->id-WH_MINHOOK],
info->code, (long)info->wparam, info->lparam );
switch(info->id)
{
@ -307,7 +308,7 @@ static LRESULT call_hook( struct win_hook_params *info, const WCHAR *module )
}
TRACE( "calling hook %p %s code %x wp %lx lp %lx module %s\n",
params->proc, hook_names[params->id-WH_MINHOOK], params->code, params->wparam,
params->proc, hook_names[params->id-WH_MINHOOK], params->code, (long)params->wparam,
params->lparam, debugstr_w(module) );
thread_info->hook = params->handle;
@ -532,7 +533,7 @@ void WINAPI NtUserNotifyWinEvent( DWORD event, HWND hwnd, LONG object_id, LONG c
ULONG ret_len;
BOOL ret;
TRACE( "%04x, %p, %d, %d\n", event, hwnd, object_id, child_id );
TRACE( "%04x, %p, %d, %d\n", (int)event, hwnd, (int)object_id, (int)child_id );
user_check_not_lock();
@ -577,7 +578,7 @@ void WINAPI NtUserNotifyWinEvent( DWORD event, HWND hwnd, LONG object_id, LONG c
do
{
TRACE( "calling WH_WINEVENT hook %p event %x hwnd %p %x %x module %s\n",
info.proc, event, hwnd, object_id, child_id, debugstr_w(info.module) );
info.proc, (int)event, hwnd, (int)object_id, (int)child_id, debugstr_w(info.module) );
info.time = NtGetTickCount();
KeUserModeCallback( NtUserCallWinEventHook, &info,

View file

@ -84,7 +84,7 @@ HIMC WINAPI NtUserCreateInputContext( UINT_PTR client_ptr )
return 0;
}
TRACE( "%lx returning %p\n", client_ptr, handle );
TRACE( "%lx returning %p\n", (long)client_ptr, handle );
return handle;
}
@ -115,7 +115,7 @@ BOOL WINAPI NtUserUpdateInputContext( HIMC handle, UINT attr, UINT_PTR value )
struct imc *imc;
BOOL ret = TRUE;
TRACE( "%p %u %lx\n", handle, attr, value );
TRACE( "%p %u %lx\n", handle, attr, (long)value );
if (!(imc = get_imc_ptr( handle ))) return FALSE;
@ -171,7 +171,7 @@ UINT WINAPI NtUserAssociateInputContext( HWND hwnd, HIMC ctx, ULONG flags )
WND *win;
UINT ret = AICR_OK;
TRACE( "%p %p %x\n", hwnd, ctx, flags );
TRACE( "%p %p %x\n", hwnd, ctx, (int)flags );
switch (flags)
{
@ -181,7 +181,7 @@ UINT WINAPI NtUserAssociateInputContext( HWND hwnd, HIMC ctx, ULONG flags )
break;
default:
FIXME( "unknown flags 0x%x\n", flags );
FIXME( "unknown flags 0x%x\n", (int)flags );
return AICR_FAILED;
}

View file

@ -423,7 +423,7 @@ HKL WINAPI NtUserGetKeyboardLayout( DWORD thread_id )
HKL layout = thread->kbd_layout;
if (thread_id && thread_id != GetCurrentThreadId())
FIXME( "couldn't return keyboard layout for thread %04x\n", thread_id );
FIXME( "couldn't return keyboard layout for thread %04x\n", (int)thread_id );
if (!layout) return get_locale_kbd_layout();
return layout;
@ -756,7 +756,7 @@ INT WINAPI NtUserGetKeyNameText( LONG lparam, WCHAR *buffer, INT size )
const char *const *vscname;
const UINT *vsc2vk;
TRACE_(keyboard)( "lparam %d, buffer %p, size %d.\n", lparam, buffer, size );
TRACE_(keyboard)( "lparam %d, buffer %p, size %d.\n", (int)lparam, buffer, size );
if (!buffer || !size) return 0;
if ((len = user_driver->pGetKeyNameText( lparam, buffer, size )) >= 0) return len;
@ -1124,7 +1124,7 @@ int WINAPI NtUserGetMouseMovePointsEx( UINT size, MOUSEMOVEPOINT *ptin, MOUSEMOV
unsigned int i;
TRACE( "%d, %p, %p, %d, %d\n", size, ptin, ptout, count, resolution );
TRACE( "%d, %p, %p, %d, %d\n", size, ptin, ptout, count, (int)resolution );
if ((size != sizeof(MOUSEMOVEPOINT)) || (count < 0) || (count > ARRAY_SIZE( positions )))
{
@ -1316,11 +1316,11 @@ BOOL WINAPI NtUserTrackMouseEvent( TRACKMOUSEEVENT *info )
POINT pos;
TRACE( "size %u, flags %#x, hwnd %p, time %u\n",
info->cbSize, info->dwFlags, info->hwndTrack, info->dwHoverTime );
(int)info->cbSize, (int)info->dwFlags, info->hwndTrack, (int)info->dwHoverTime );
if (info->cbSize != sizeof(TRACKMOUSEEVENT))
{
WARN( "wrong size %u\n", info->cbSize );
WARN( "wrong size %u\n", (int)info->cbSize );
RtlSetLastWin32Error( ERROR_INVALID_PARAMETER );
return FALSE;
}
@ -1348,7 +1348,7 @@ BOOL WINAPI NtUserTrackMouseEvent( TRACKMOUSEEVENT *info )
TRACE( "point %s hwnd %p hittest %d\n", wine_dbgstr_point(&pos), hwnd, hittest );
if (info->dwFlags & ~(TME_CANCEL | TME_HOVER | TME_LEAVE | TME_NONCLIENT))
FIXME( "ignoring flags %#x\n", info->dwFlags & ~(TME_CANCEL | TME_HOVER | TME_LEAVE | TME_NONCLIENT) );
FIXME( "ignoring flags %#x\n", (int)info->dwFlags & ~(TME_CANCEL | TME_HOVER | TME_LEAVE | TME_NONCLIENT) );
if (info->dwFlags & TME_CANCEL)
{

View file

@ -433,7 +433,7 @@ BOOL WINAPI NtGdiSetVirtualResolution( HDC hdc, DWORD horz_res, DWORD vert_res,
DWORD horz_size, DWORD vert_size )
{
DC * dc;
TRACE("(%p %d %d %d %d)\n", hdc, horz_res, vert_res, horz_size, vert_size);
TRACE("(%p %d %d %d %d)\n", hdc, (int)horz_res, (int)vert_res, (int)horz_size, (int)vert_size);
if (!horz_res || !vert_res || !horz_size || !vert_size)
{

View file

@ -246,7 +246,7 @@ static const char *debugstr_menuitem( const struct menu_item *item )
if (!item) return "NULL";
sprintf( buf, "{ ID=0x%lx", item->wID );
sprintf( buf, "{ ID=0x%lx", (long)item->wID );
if (item->hSubMenu) sprintf( buf + strlen(buf), ", Sub=%p", item->hSubMenu );
flags = item->fType;
@ -1415,7 +1415,7 @@ BOOL WINAPI NtUserSetMenuContextHelpId( HMENU handle, DWORD id )
{
struct menu *menu;
TRACE( "(%p 0x%08x)\n", handle, id );
TRACE( "(%p 0x%08x)\n", handle, (int)id );
if (!(menu = grab_menu_ptr( handle ))) return FALSE;
menu->dwContextHelpID = id;
@ -1705,8 +1705,8 @@ static BOOL translate_accelerator( HWND hwnd, UINT message, WPARAM wparam, LPARA
{
if (virt & FVIRTKEY)
{
TRACE_(accel)( "found accel for virt_key %04lx (scan %04x)\n",
wparam, 0xff & HIWORD(lparam) );
TRACE_(accel)( "found accel for virt_key %04x (scan %04x)\n",
key, 0xff & HIWORD(lparam) );
if (mask == (virt & (FSHIFT | FCONTROL | FALT))) goto found;
TRACE_(accel)( ", but incorrect SHIFT/CTRL/ALT-state\n" );
@ -1861,7 +1861,7 @@ INT WINAPI NtUserTranslateAccelerator( HWND hwnd, HACCEL accel, MSG *msg )
return 0;
TRACE_(accel)("accel %p, hwnd %p, msg->hwnd %p, msg->message %04x, wParam %08lx, lParam %08lx\n",
accel,hwnd,msg->hwnd,msg->message,msg->wParam,msg->lParam);
accel, hwnd, msg->hwnd, msg->message, (long)msg->wParam, msg->lParam);
if (!(count = NtUserCopyAcceleratorTable( accel, NULL, 0 ))) return 0;
if (count > ARRAY_SIZE( data ))
@ -2026,8 +2026,8 @@ static void calc_menu_item_size( HDC hdc, struct menu_item *item, HWND owner, IN
else
item->rect.bottom += mis.itemHeight;
TRACE( "id=%04lx size=%dx%d\n", item->wID, item->rect.right-item->rect.left,
item->rect.bottom-item->rect.top );
TRACE( "id=%04lx size=%dx%d\n", (long)item->wID, (int)(item->rect.right - item->rect.left),
(int)(item->rect.bottom - item->rect.top) );
return;
}
@ -2327,7 +2327,7 @@ static void draw_bitmap_item( HWND hwnd, HDC hdc, struct menu_item *item, const
LOGFONTW logfont = { 0, 0, 0, 0, FW_NORMAL, 0, 0, 0, SYMBOL_CHARSET, 0, 0, 0, 0,
{'M','a','r','l','e','t','t'}};
logfont.lfHeight = min( h, w) - 5 ;
TRACE( " height %d rect %s\n", logfont.lfHeight, wine_dbgstr_rect( rect ));
TRACE( " height %d rect %s\n", (int)logfont.lfHeight, wine_dbgstr_rect( rect ));
hfont = NtGdiHfontCreate( &logfont, sizeof(logfont), 0, 0, NULL );
prev_font = NtGdiSelectFont( hdc, hfont );
NtGdiExtTextOutW( hdc, rect->left, rect->top + 2, 0, NULL, &bmchr, 1, NULL, 0 );
@ -2883,7 +2883,7 @@ static void draw_popup_menu( HWND hwnd, HDC hdc, HMENU hmenu )
LRESULT popup_menu_window_proc( HWND hwnd, UINT message, WPARAM wparam, LPARAM lparam )
{
TRACE( "hwnd=%p msg=0x%04x wp=0x%04lx lp=0x%08lx\n", hwnd, message, wparam, lparam );
TRACE( "hwnd=%p msg=0x%04x wp=0x%04lx lp=0x%08lx\n", hwnd, message, (long)wparam, lparam );
switch(message)
{
@ -3454,7 +3454,7 @@ static INT exec_focused_item( MTRACKER *pmt, HMENU handle, UINT flags )
if (!menu || !menu->nItems || menu->FocusedItem == NO_SELECTED_ITEM) return -1;
item = &menu->items[menu->FocusedItem];
TRACE( "handle %p ID %08lx submenu %p type %04x\n", handle, item->wID,
TRACE( "handle %p ID %08lx submenu %p type %04x\n", handle, (long)item->wID,
item->hSubMenu, item->fType );
if ((item->fType & MF_POPUP))
@ -4568,7 +4568,7 @@ BOOL WINAPI NtUserGetMenuBarInfo( HWND hwnd, LONG id, LONG item, MENUBARINFO *in
struct menu *menu;
ATOM class_atom;
TRACE( "(%p,0x%08x,0x%08x,%p)\n", hwnd, id, item, info );
TRACE( "(%p,0x%08x,0x%08x,%p)\n", hwnd, (int)id, (int)item, info );
switch (id)
{

View file

@ -1859,7 +1859,7 @@ static int peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags,
TRACE( "got type %d msg %x (%s) hwnd %p wp %lx lp %lx\n",
info.type, info.msg.message,
(info.type == MSG_WINEVENT) ? "MSG_WINEVENT" : debugstr_msg_name(info.msg.message, info.msg.hwnd),
info.msg.hwnd, info.msg.wParam, info.msg.lParam );
info.msg.hwnd, (long)info.msg.wParam, info.msg.lParam );
switch(info.type)
{
@ -1924,7 +1924,8 @@ static int peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags,
hook.time = info.msg.time;
hook.dwExtraInfo = msg_data->hardware.info;
TRACE( "calling keyboard LL hook vk %x scan %x flags %x time %u info %lx\n",
hook.vkCode, hook.scanCode, hook.flags, hook.time, hook.dwExtraInfo );
(int)hook.vkCode, (int)hook.scanCode, (int)hook.flags,
(int)hook.time, (long)hook.dwExtraInfo );
result = call_hooks( WH_KEYBOARD_LL, HC_ACTION, info.msg.wParam,
(LPARAM)&hook, sizeof(hook) );
}
@ -1938,7 +1939,8 @@ static int peek_message( MSG *msg, HWND hwnd, UINT first, UINT last, UINT flags,
hook.time = info.msg.time;
hook.dwExtraInfo = msg_data->hardware.info;
TRACE( "calling mouse LL hook pos %d,%d data %x flags %x time %u info %lx\n",
hook.pt.x, hook.pt.y, hook.mouseData, hook.flags, hook.time, hook.dwExtraInfo );
(int)hook.pt.x, (int)hook.pt.y, (int)hook.mouseData, (int)hook.flags,
(int)hook.time, (long)hook.dwExtraInfo );
result = call_hooks( WH_MOUSE_LL, HC_ACTION, info.msg.wParam,
(LPARAM)&hook, sizeof(hook) );
}
@ -2483,7 +2485,7 @@ static LRESULT retrieve_reply( const struct send_message_info *info,
free( reply_data );
TRACE( "hwnd %p msg %x (%s) wp %lx lp %lx got reply %lx (err=%d)\n",
info->hwnd, info->msg, debugstr_msg_name(info->msg, info->hwnd), info->wparam,
info->hwnd, info->msg, debugstr_msg_name(info->msg, info->hwnd), (long)info->wparam,
info->lparam, *result, status );
/* MSDN states that last error is 0 on timeout, but at least NT4 returns ERROR_TIMEOUT */
@ -2499,7 +2501,8 @@ static LRESULT send_inter_thread_message( const struct send_message_info *info,
size_t reply_size = 0;
TRACE( "hwnd %p msg %x (%s) wp %lx lp %lx\n",
info->hwnd, info->msg, debugstr_msg_name(info->msg, info->hwnd), info->wparam, info->lparam );
info->hwnd, info->msg, debugstr_msg_name(info->msg, info->hwnd),
(long)info->wparam, info->lparam );
user_check_not_lock();
@ -2911,7 +2914,7 @@ UINT_PTR WINAPI NtUserSetTimer( HWND hwnd, UINT_PTR id, UINT timeout, TIMERPROC
}
SERVER_END_REQ;
TRACE( "Added %p %lx %p timeout %d\n", hwnd, id, winproc, timeout );
TRACE( "Added %p %lx %p timeout %d\n", hwnd, (long)id, winproc, timeout );
return ret;
}
@ -2922,7 +2925,7 @@ UINT_PTR WINAPI NtUserSetSystemTimer( HWND hwnd, UINT_PTR id, UINT timeout )
{
UINT_PTR ret;
TRACE( "window %p, id %#lx, timeout %u\n", hwnd, id, timeout );
TRACE( "window %p, id %#lx, timeout %u\n", hwnd, (long)id, timeout );
timeout = min( max( USER_TIMER_MINIMUM, timeout ), USER_TIMER_MAXIMUM );
@ -3113,7 +3116,7 @@ BOOL WINAPI NtUserPostMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam
}
TRACE( "hwnd %p msg %x (%s) wp %lx lp %lx\n",
hwnd, msg, debugstr_msg_name(msg, hwnd), wparam, lparam );
hwnd, msg, debugstr_msg_name(msg, hwnd), (long)wparam, lparam );
info.type = MSG_POSTED;
info.hwnd = hwnd;
@ -3230,7 +3233,7 @@ LRESULT WINAPI NtUserMessageCall( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpa
return 0;
default:
FIXME( "%p %x %lx %lx %p %x %x\n", hwnd, msg, wparam, lparam, result_info, type, ansi );
FIXME( "%p %x %lx %lx %p %x %x\n", hwnd, msg, (long)wparam, lparam, result_info, (int)type, ansi );
}
return 0;
}
@ -3250,8 +3253,8 @@ BOOL WINAPI NtUserTranslateMessage( const MSG *msg, UINT flags )
if (msg->message < WM_KEYFIRST || msg->message > WM_KEYLAST) return FALSE;
if (msg->message != WM_KEYDOWN && msg->message != WM_SYSKEYDOWN) return TRUE;
TRACE_(key)( "Translating key %s (%04lX), scancode %04x\n",
debugstr_vkey_name( msg->wParam ), msg->wParam, HIWORD(msg->lParam) );
TRACE_(key)( "Translating key %s (%04x), scancode %04x\n",
debugstr_vkey_name( msg->wParam ), LOWORD(msg->wParam), HIWORD(msg->lParam) );
switch (msg->wParam)
{

View file

@ -910,7 +910,7 @@ BOOL WINAPI NtGdiGradientFill( HDC hdc, TRIVERTEX *vert_array, ULONG nvert,
*/
BOOL WINAPI NtGdiDrawStream( HDC hdc, ULONG in, void *pvin )
{
FIXME("stub: %p, %d, %p\n", hdc, in, pvin);
FIXME("stub: %p, %d, %p\n", hdc, (int)in, pvin);
return FALSE;
}

View file

@ -616,7 +616,7 @@ BOOL WINAPI NtGdiUpdateColors( HDC hDC )
*/
BOOL WINAPI NtGdiSetMagicColors( HDC hdc, DWORD magic, ULONG index )
{
FIXME( "(%p 0x%08x 0x%08x): stub\n", hdc, magic, index );
FIXME( "(%p 0x%08x 0x%08x): stub\n", hdc, (int)magic, (int)index );
return TRUE;
}
@ -641,7 +641,7 @@ LONG WINAPI NtGdiDoPalette( HGDIOBJ handle, WORD start, WORD count, void *entrie
case NtGdiGetDIBColorTable:
return get_dib_dc_color_table( handle, start, count, entries );
default:
WARN( "invalid func %u\n", func );
WARN( "invalid func %u\n", (int)func );
return 0;
}
}

View file

@ -234,7 +234,7 @@ static BOOL PATH_AddEntry(struct gdi_path *pPath, const POINT *pPoint, BYTE flag
/* FIXME: If newStroke is true, perhaps we want to check that we're
* getting a PT_MOVETO
*/
TRACE("(%d,%d) - %d\n", pPoint->x, pPoint->y, flags);
TRACE("(%d,%d) - %d\n", (int)pPoint->x, (int)pPoint->y, flags);
/* Reserve enough memory for an extra path entry */
if(!PATH_ReserveEntries(pPath, pPath->count+1))
@ -1448,7 +1448,7 @@ static BOOL PATH_add_outline(struct path_physdev *physdev, INT x, INT y,
if (header->dwType != TT_POLYGON_TYPE)
{
FIXME("Unknown header type %d\n", header->dwType);
FIXME("Unknown header type %d\n", (int)header->dwType);
return FALSE;
}

View file

@ -45,7 +45,7 @@ DWORD WINAPI NtGdiGetSpoolMessage( void *ptr1, DWORD data2, void *ptr3, DWORD da
{
LARGE_INTEGER time;
TRACE( "(%p 0x%x %p 0x%x) stub\n", ptr1, data2, ptr3, data4 );
TRACE( "(%p 0x%x %p 0x%x) stub\n", ptr1, (int)data2, ptr3, (int)data4 );
/* avoid 100% cpu usage with spoolsv.exe from w2k
(spoolsv.exe from xp does Sleep 1000/1500/2000 in a loop) */
@ -73,7 +73,7 @@ INT WINAPI NtGdiStartDoc( HDC hdc, const DOCINFOW *doc, BOOL *banding, INT job )
TRACE("DocName %s, Output %s, Datatype %s, fwType %#x\n",
debugstr_w(doc->lpszDocName), debugstr_w(doc->lpszOutput),
debugstr_w(doc->lpszDatatype), doc->fwType);
debugstr_w(doc->lpszDatatype), (int)doc->fwType);
if (dc)
{

View file

@ -837,7 +837,7 @@ BOOL WINAPI NtUserRegisterRawInputDevices( const RAWINPUTDEVICE *devices, UINT d
for (i = 0; i < device_count; ++i)
{
TRACE( "device %u: page %#x, usage %#x, flags %#x, target %p.\n", i, devices[i].usUsagePage,
devices[i].usUsage, devices[i].dwFlags, devices[i].hwndTarget );
devices[i].usUsage, (int)devices[i].dwFlags, devices[i].hwndTarget );
if ((devices[i].dwFlags & RIDEV_INPUTSINK) && !devices[i].hwndTarget)
{
@ -852,7 +852,7 @@ BOOL WINAPI NtUserRegisterRawInputDevices( const RAWINPUTDEVICE *devices, UINT d
}
if (devices[i].dwFlags & ~(RIDEV_REMOVE|RIDEV_NOLEGACY|RIDEV_INPUTSINK|RIDEV_DEVNOTIFY))
FIXME( "Unhandled flags %#x for device %u.\n", devices[i].dwFlags, i );
FIXME( "Unhandled flags %#x for device %u.\n", (int)devices[i].dwFlags, i );
}
pthread_mutex_lock( &rawinput_mutex );

View file

@ -830,7 +830,7 @@ DWORD WINAPI NtGdiGetRegionData( HRGN hrgn, DWORD count, RGNDATA *rgndata )
DWORD size;
WINEREGION *obj = GDI_GetObjPtr( hrgn, NTGDI_OBJ_REGION );
TRACE(" %p count = %d, rgndata = %p\n", hrgn, count, rgndata);
TRACE(" %p count = %d, rgndata = %p\n", hrgn, (int)count, rgndata);
if(!obj) return 0;
@ -901,7 +901,7 @@ HRGN WINAPI NtGdiExtCreateRegion( const XFORM *xform, DWORD count, const RGNDATA
/* XP doesn't care about the type */
if( rgndata->rdh.iType != RDH_RECTANGLES )
WARN("(Unsupported region data type: %u)\n", rgndata->rdh.iType);
WARN("(Unsupported region data type: %u)\n", (int)rgndata->rdh.iType);
if (xform)
{
@ -948,7 +948,7 @@ HRGN WINAPI NtGdiExtCreateRegion( const XFORM *xform, DWORD count, const RGNDATA
done:
if (!hrgn) free_region( obj );
TRACE("%p %d %p returning %p\n", xform, count, rgndata, hrgn );
TRACE("%p %d %p returning %p\n", xform, (int)count, rgndata, hrgn );
return hrgn;
}

View file

@ -663,7 +663,7 @@ void handle_scroll_event( HWND hwnd, int bar, UINT msg, POINT pt )
}
TRACE( "Event: hwnd=%p bar=%d msg=%s pt=%d,%d hit=%d\n",
hwnd, bar, debugstr_msg_name( msg, hwnd ), pt.x, pt.y, hittest );
hwnd, bar, debugstr_msg_name( msg, hwnd ), (int)pt.x, (int)pt.y, hittest );
switch (g_tracking_info.hit_test)
{
@ -1188,7 +1188,7 @@ static void create_scroll_bar( HWND hwnd, CREATESTRUCTW *create )
static void handle_kbd_event( HWND hwnd, WPARAM wparam, LPARAM lparam )
{
TRACE( "hwnd=%p wparam=%ld lparam=%ld\n", hwnd, wparam, lparam );
TRACE( "hwnd=%p wparam=%ld lparam=%ld\n", hwnd, (long)wparam, lparam );
/* hide caret on first KEYDOWN to prevent flicker */
if ((lparam & PFD_DOUBLEBUFFER_DONTCARE) == 0)
@ -1420,12 +1420,12 @@ LRESULT scroll_bar_window_proc( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpara
case 0x00ed:
case 0x00ee:
case 0x00ef:
ERR( "unknown Win32 msg %04x wp=%08lx lp=%08lx\n", msg, wparam, lparam );
ERR( "unknown Win32 msg %04x wp=%08lx lp=%08lx\n", msg, (long)wparam, lparam );
return 0;
default:
if (msg >= WM_USER)
WARN( "unknown msg %04x wp=%08lx lp=%08lx\n", msg, wparam, lparam );
WARN( "unknown msg %04x wp=%08lx lp=%08lx\n", msg, (long)wparam, lparam );
return default_window_proc( hwnd, msg, wparam, lparam, ansi );
}
}
@ -1460,7 +1460,7 @@ BOOL WINAPI NtUserShowScrollBar( HWND hwnd, INT bar, BOOL show )
*/
BOOL WINAPI NtUserGetScrollBarInfo( HWND hwnd, LONG id, SCROLLBARINFO *info )
{
TRACE( "hwnd=%p id=%d info=%p\n", hwnd, id, info );
TRACE( "hwnd=%p id=%d info=%p\n", hwnd, (int)id, info );
/* Refer OBJID_CLIENT requests to the window */
if (id == OBJID_CLIENT)

View file

@ -2344,7 +2344,7 @@ static void SPY_DumpStructure(const SPY_INSTANCE *sp_e, BOOL enter)
{
LPPOINT point = (LPPOINT) sp_e->lParam;
if (point) {
TRACE("lParam point x=%d, y=%d\n", point->x, point->y);
TRACE("lParam point x=%d, y=%d\n", (int)point->x, (int)point->y);
}
break;
}
@ -2370,14 +2370,14 @@ static void SPY_DumpStructure(const SPY_INSTANCE *sp_e, BOOL enter)
if (enter && sp_e->lParam)
{
CHARRANGE *cr = (CHARRANGE *) sp_e->lParam;
TRACE("CHARRANGE: cpMin=%d cpMax=%d\n", cr->cpMin, cr->cpMax);
TRACE("CHARRANGE: cpMin=%d cpMax=%d\n", (int)cr->cpMin, (int)cr->cpMax);
}
break;
case EM_SETCHARFORMAT:
if (enter && sp_e->lParam)
{
CHARFORMATW *cf = (CHARFORMATW *) sp_e->lParam;
TRACE("CHARFORMAT: dwMask=0x%08x dwEffects=", cf->dwMask);
TRACE("CHARFORMAT: dwMask=0x%08x dwEffects=", (int)cf->dwMask);
if ((cf->dwMask & CFM_BOLD) && (cf->dwEffects & CFE_BOLD))
TRACE(" CFE_BOLD");
if ((cf->dwMask & CFM_COLOR) && (cf->dwEffects & CFE_AUTOCOLOR))
@ -2392,11 +2392,11 @@ static void SPY_DumpStructure(const SPY_INSTANCE *sp_e, BOOL enter)
TRACE(" CFE_UNDERLINE");
TRACE("\n");
if (cf->dwMask & CFM_SIZE)
TRACE("yHeight=%d\n", cf->yHeight);
TRACE("yHeight=%d\n", (int)cf->yHeight);
if (cf->dwMask & CFM_OFFSET)
TRACE("yOffset=%d\n", cf->yOffset);
TRACE("yOffset=%d\n", (int)cf->yOffset);
if ((cf->dwMask & CFM_COLOR) && !(cf->dwEffects & CFE_AUTOCOLOR))
TRACE("crTextColor=%x\n", cf->crTextColor);
TRACE("crTextColor=%x\n", (int)cf->crTextColor);
TRACE("bCharSet=%x bPitchAndFamily=%x\n", cf->bCharSet, cf->bPitchAndFamily);
/* FIXME: we should try to be a bit more intelligent about
* whether this is in ANSI or Unicode (it could be either) */
@ -2441,7 +2441,7 @@ static void SPY_DumpStructure(const SPY_INSTANCE *sp_e, BOOL enter)
TRACE("%s %s ex=%08x style=%08x %d,%d %dx%d parent=%p menu=%p inst=%p params=%p\n",
unicode ? debugstr_w((LPCWSTR)cs->lpszName) : debugstr_a(cs->lpszName),
unicode ? debugstr_w((LPCWSTR)cs->lpszClass) : debugstr_a(cs->lpszClass),
cs->dwExStyle, cs->style, cs->x, cs->y, cs->cx, cs->cy,
(int)cs->dwExStyle, (int)cs->style, cs->x, cs->y, cs->cx, cs->cy,
cs->hwndParent, cs->hMenu, cs->hInstance, cs->lpCreateParams);
break;
}
@ -2465,7 +2465,7 @@ static void SPY_DumpStructure(const SPY_INSTANCE *sp_e, BOOL enter)
{
LPSTYLESTRUCT ss = (LPSTYLESTRUCT) sp_e->lParam;
TRACE("STYLESTRUCT: StyleOld=0x%08x, StyleNew=0x%08x\n",
ss->styleOld, ss->styleNew);
(int)ss->styleOld, (int)ss->styleNew);
}
break;
case WM_NCCALCSIZE:
@ -2498,7 +2498,7 @@ static void SPY_DumpStructure(const SPY_INSTANCE *sp_e, BOOL enter)
p = SPY_Bsearch_Notify( pnmh->code );
if (p) {
TRACE("NMHDR hwndFrom=%p idFrom=0x%08lx code=%s<0x%08x>, extra=0x%x\n",
pnmh->hwndFrom, pnmh->idFrom, p->name, pnmh->code, p->len);
pnmh->hwndFrom, (long)pnmh->idFrom, p->name, pnmh->code, p->len);
dumplen = p->len;
/* for CUSTOMDRAW, dump all the data for TOOLBARs */
@ -2520,7 +2520,7 @@ static void SPY_DumpStructure(const SPY_INSTANCE *sp_e, BOOL enter)
}
else
TRACE("NMHDR hwndFrom=%p idFrom=0x%08lx code=0x%08x\n",
pnmh->hwndFrom, pnmh->idFrom, pnmh->code);
pnmh->hwndFrom, (long)pnmh->idFrom, pnmh->code);
}
break;
default:
@ -2614,8 +2614,8 @@ void spy_enter_message( INT iFlag, HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
{
case SPY_DISPATCHMESSAGE:
TRACE("%*s(%p) %-16s [%04x] %s dispatched wp=%08lx lp=%08lx\n",
indent, "", hWnd, debugstr_w(sp_e.wnd_name), msg,
sp_e.msg_name, wParam, lParam);
indent, "", hWnd, debugstr_w(sp_e.wnd_name), msg,
sp_e.msg_name, (long)wParam, lParam);
break;
case SPY_SENDMESSAGE:
@ -2624,11 +2624,11 @@ void spy_enter_message( INT iFlag, HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
DWORD tid = get_window_thread( hWnd, NULL );
if (tid == GetCurrentThreadId()) strcpy( taskName, "self" );
else sprintf( taskName, "tid %04x", GetCurrentThreadId() );
else sprintf( taskName, "tid %04x", (int)GetCurrentThreadId() );
TRACE("%*s(%p) %-16s [%04x] %s sent from %s wp=%08lx lp=%08lx\n",
indent, "", hWnd, debugstr_w(sp_e.wnd_name), msg,
sp_e.msg_name, taskName, wParam, lParam );
sp_e.msg_name, taskName, (long)wParam, lParam );
SPY_DumpStructure(&sp_e, TRUE);
}
break;
@ -2636,7 +2636,7 @@ void spy_enter_message( INT iFlag, HWND hWnd, UINT msg, WPARAM wParam, LPARAM lP
case SPY_DEFWNDPROC:
if (exclude_dwp()) return;
TRACE("%*s(%p) DefWindowProc:[%04x] %s wp=%08lx lp=%08lx\n",
indent, "", hWnd, msg, sp_e.msg_name, wParam, lParam );
indent, "", hWnd, msg, sp_e.msg_name, (long)wParam, lParam );
break;
}
set_indent_level( indent + SPY_INDENT_UNIT );

View file

@ -406,7 +406,7 @@ static HANDLE get_display_device_init_mutex( void )
HANDLE mutex;
snprintf( buffer, ARRAY_SIZE(buffer), "\\Sessions\\%u\\BaseNamedObjects\\display_device_init",
NtCurrentTeb()->Peb->SessionId );
(int)NtCurrentTeb()->Peb->SessionId );
name.Length = name.MaximumLength = asciiz_to_unicode( bufferW, buffer );
InitializeObjectAttributes( &attr, &name, OBJ_OPENIF, NULL, NULL );
@ -1202,14 +1202,14 @@ static void add_gpu( const struct gdi_gpu *gpu, void *param )
if (query_reg_value( subkey, NULL, value, sizeof(buffer) ) != sizeof(LUID))
{
NtAllocateLocallyUniqueId( &ctx->gpu_luid );
TRACE("allocated luid %08x%08x\n", ctx->gpu_luid.HighPart, ctx->gpu_luid.LowPart );
TRACE("allocated luid %08x%08x\n", (int)ctx->gpu_luid.HighPart, (int)ctx->gpu_luid.LowPart );
set_reg_value( subkey, NULL, 0xffff0000 | DEVPROP_TYPE_UINT64,
&ctx->gpu_luid, sizeof(ctx->gpu_luid) );
}
else
{
memcpy( &ctx->gpu_luid, value->Data, sizeof(ctx->gpu_luid) );
TRACE("got luid %08x%08x\n", ctx->gpu_luid.HighPart, ctx->gpu_luid.LowPart );
TRACE("got luid %08x%08x\n", (int)ctx->gpu_luid.HighPart, (int)ctx->gpu_luid.LowPart );
}
NtClose( subkey );
}
@ -2064,7 +2064,7 @@ NTSTATUS WINAPI NtUserEnumDisplayDevices( UNICODE_STRING *device, DWORD index,
{
struct display_device *found = NULL;
TRACE( "%s %u %p %#x\n", debugstr_us( device ), index, info, flags );
TRACE( "%s %u %p %#x\n", debugstr_us( device ), (int)index, info, (int)flags );
if (!info || !info->cb) return STATUS_UNSUCCESSFUL;
@ -2144,19 +2144,19 @@ static void trace_devmode( const DEVMODEW *devmode )
{
TRACE( "dmFields=%s ", _DM_fields(devmode->dmFields) );
if (devmode->dmFields & DM_BITSPERPEL)
TRACE( "dmBitsPerPel=%u ", devmode->dmBitsPerPel );
TRACE( "dmBitsPerPel=%u ", (int)devmode->dmBitsPerPel );
if (devmode->dmFields & DM_PELSWIDTH)
TRACE( "dmPelsWidth=%u ", devmode->dmPelsWidth );
TRACE( "dmPelsWidth=%u ", (int)devmode->dmPelsWidth );
if (devmode->dmFields & DM_PELSHEIGHT)
TRACE( "dmPelsHeight=%u ", devmode->dmPelsHeight );
TRACE( "dmPelsHeight=%u ", (int)devmode->dmPelsHeight );
if (devmode->dmFields & DM_DISPLAYFREQUENCY)
TRACE( "dmDisplayFrequency=%u ", devmode->dmDisplayFrequency );
TRACE( "dmDisplayFrequency=%u ", (int)devmode->dmDisplayFrequency );
if (devmode->dmFields & DM_POSITION)
TRACE( "dmPosition=(%d,%d) ", devmode->dmPosition.x, devmode->dmPosition.y );
TRACE( "dmPosition=(%d,%d) ", (int)devmode->dmPosition.x, (int)devmode->dmPosition.y );
if (devmode->dmFields & DM_DISPLAYFLAGS)
TRACE( "dmDisplayFlags=%#x ", devmode->dmDisplayFlags );
TRACE( "dmDisplayFlags=%#x ", (int)devmode->dmDisplayFlags );
if (devmode->dmFields & DM_DISPLAYORIENTATION)
TRACE( "dmDisplayOrientation=%u ", devmode->dmDisplayOrientation );
TRACE( "dmDisplayOrientation=%u ", (int)devmode->dmDisplayOrientation );
TRACE("\n");
}
@ -2229,7 +2229,7 @@ static BOOL adapter_get_full_mode( const struct adapter *adapter, const DEVMODEW
if ((full_mode->dmFields & (DM_PELSWIDTH | DM_PELSHEIGHT)) != (DM_PELSWIDTH | DM_PELSHEIGHT))
{
WARN( "devmode doesn't specify the resolution: %#x\n", full_mode->dmFields );
WARN( "devmode doesn't specify the resolution: %#x\n", (int)full_mode->dmFields );
return FALSE;
}
@ -2554,7 +2554,7 @@ LONG WINAPI NtUserChangeDisplaySettings( UNICODE_STRING *devname, DEVMODEW *devm
int ret = DISP_CHANGE_SUCCESSFUL;
struct adapter *adapter;
TRACE( "%s %p %p %#x %p\n", debugstr_us(devname), devmode, hwnd, flags, lparam );
TRACE( "%s %p %p %#x %p\n", debugstr_us(devname), devmode, hwnd, (int)flags, lparam );
TRACE( "flags=%s\n", _CDS_flags(flags) );
if ((!devname || !devname->Length) && !devmode) return apply_display_settings( NULL, NULL, hwnd, flags, lparam );
@ -2613,7 +2613,8 @@ BOOL WINAPI NtUserEnumDisplaySettings( UNICODE_STRING *device, DWORD index, DEVM
struct adapter *adapter;
BOOL ret;
TRACE( "device %s, index %#x, devmode %p, flags %#x\n", debugstr_us(device), index, devmode, flags );
TRACE( "device %s, index %#x, devmode %p, flags %#x\n",
debugstr_us(device), (int)index, devmode, (int)flags );
if (!(adapter = find_adapter( device ))) return FALSE;
@ -2630,8 +2631,9 @@ BOOL WINAPI NtUserEnumDisplaySettings( UNICODE_STRING *device, DWORD index, DEVM
if (!ret) WARN( "Failed to query %s display settings.\n", debugstr_us(device) );
else TRACE( "position %dx%d, resolution %ux%u, frequency %u, depth %u, orientation %#x.\n",
devmode->dmPosition.x, devmode->dmPosition.y, devmode->dmPelsWidth, devmode->dmPelsHeight,
devmode->dmDisplayFrequency, devmode->dmBitsPerPel, devmode->dmDisplayOrientation );
(int)devmode->dmPosition.x, (int)devmode->dmPosition.y, (int)devmode->dmPelsWidth,
(int)devmode->dmPelsHeight, (int)devmode->dmDisplayFrequency,
(int)devmode->dmBitsPerPel, (int)devmode->dmDisplayOrientation );
return ret;
}
@ -2766,7 +2768,7 @@ BOOL get_monitor_info( HMONITOR handle, MONITORINFO *info )
info->rcMonitor = map_dpi_rect( info->rcMonitor, dpi_from, dpi_to );
info->rcWork = map_dpi_rect( info->rcWork, dpi_from, dpi_to );
}
TRACE( "flags %04x, monitor %s, work %s\n", info->dwFlags,
TRACE( "flags %04x, monitor %s, work %s\n", (int)info->dwFlags,
wine_dbgstr_rect(&info->rcMonitor), wine_dbgstr_rect(&info->rcWork));
return TRUE;
}
@ -5448,7 +5450,7 @@ ULONG_PTR WINAPI NtUserCallNoParam( ULONG code )
return 0;
default:
FIXME( "invalid code %u\n", code );
FIXME( "invalid code %u\n", (int)code );
return 0;
}
}
@ -5535,7 +5537,7 @@ ULONG_PTR WINAPI NtUserCallOneParam( ULONG_PTR arg, ULONG code )
return get_entry( &entry_DESKPATTERN, 256, (WCHAR *)arg );
default:
FIXME( "invalid code %u\n", code );
FIXME( "invalid code %u\n", (int)code );
return 0;
}
}
@ -5576,7 +5578,7 @@ ULONG_PTR WINAPI NtUserCallTwoParam( ULONG_PTR arg1, ULONG_PTR arg2, ULONG code
return (UINT_PTR)alloc_winproc( (WNDPROC)arg1, arg2 );
default:
FIXME( "invalid code %u\n", code );
FIXME( "invalid code %u\n", (int)code );
return 0;
}
}

View file

@ -2066,7 +2066,7 @@ BOOL WINAPI NtUserSetLayeredWindowAttributes( HWND hwnd, COLORREF key, BYTE alph
{
BOOL ret;
TRACE( "(%p,%s,%d,%x)\n", hwnd, debugstr_color(key), alpha, flags );
TRACE( "(%p,%s,%d,%x)\n", hwnd, debugstr_color(key), alpha, (int)flags );
SERVER_START_REQ( set_window_layered_info )
{
@ -2245,7 +2245,7 @@ HWND window_from_point( HWND hwnd, POINT pt, INT *hittest )
}
ret = list[i];
free( list );
TRACE( "scope %p (%d,%d) returning %p\n", hwnd, pt.x, pt.y, ret );
TRACE( "scope %p (%d,%d) returning %p\n", hwnd, (int)pt.x, (int)pt.y, ret );
return ret;
}
@ -2450,8 +2450,8 @@ BOOL WINAPI NtUserGetWindowPlacement( HWND hwnd, WINDOWPLACEMENT *placement )
release_win_ptr( win );
TRACE( "%p: returning min %d,%d max %d,%d normal %s\n",
hwnd, placement->ptMinPosition.x, placement->ptMinPosition.y,
placement->ptMaxPosition.x, placement->ptMaxPosition.y,
hwnd, (int)placement->ptMinPosition.x, (int)placement->ptMinPosition.y,
(int)placement->ptMaxPosition.x, (int)placement->ptMaxPosition.y,
wine_dbgstr_rect(&placement->rcNormalPosition) );
return TRUE;
}
@ -2510,10 +2510,11 @@ static BOOL set_window_placement( HWND hwnd, const WINDOWPLACEMENT *wndpl, UINT
if (flags & PLACE_RECT) make_rect_onscreen( &wp.rcNormalPosition );
TRACE( "%p: setting min %d,%d max %d,%d normal %s flags %x adjusted to min %d,%d max %d,%d normal %s\n",
hwnd, wndpl->ptMinPosition.x, wndpl->ptMinPosition.y,
wndpl->ptMaxPosition.x, wndpl->ptMaxPosition.y,
hwnd, (int)wndpl->ptMinPosition.x, (int)wndpl->ptMinPosition.y,
(int)wndpl->ptMaxPosition.x, (int)wndpl->ptMaxPosition.y,
wine_dbgstr_rect(&wndpl->rcNormalPosition), flags,
wp.ptMinPosition.x, wp.ptMinPosition.y, wp.ptMaxPosition.x, wp.ptMaxPosition.y,
(int)wp.ptMinPosition.x, (int)wp.ptMinPosition.y,
(int)wp.ptMaxPosition.x, (int)wp.ptMaxPosition.y,
wine_dbgstr_rect(&wp.rcNormalPosition) );
if (!win || win == WND_OTHER_PROCESS || win == WND_DESKTOP) return FALSE;
@ -3850,10 +3851,10 @@ MINMAXINFO get_min_max_info( HWND hwnd )
}
TRACE( "%d %d / %d %d / %d %d / %d %d\n",
minmax.ptMaxSize.x, minmax.ptMaxSize.y,
minmax.ptMaxPosition.x, minmax.ptMaxPosition.y,
minmax.ptMaxTrackSize.x, minmax.ptMaxTrackSize.y,
minmax.ptMinTrackSize.x, minmax.ptMinTrackSize.y );
(int)minmax.ptMaxSize.x, (int)minmax.ptMaxSize.y,
(int)minmax.ptMaxPosition.x, (int)minmax.ptMaxPosition.y,
(int)minmax.ptMaxTrackSize.x, (int)minmax.ptMaxTrackSize.y,
(int)minmax.ptMinTrackSize.x, (int)minmax.ptMinTrackSize.y );
minmax.ptMaxTrackSize.x = max( minmax.ptMaxTrackSize.x, minmax.ptMinTrackSize.x );
minmax.ptMaxTrackSize.y = max( minmax.ptMaxTrackSize.y, minmax.ptMinTrackSize.y );
@ -4879,7 +4880,7 @@ static WND *create_window_handle( HWND parent, HWND owner, UNICODE_STRING *name,
if (!handle)
{
WARN( "error %d creating window\n", RtlGetLastWin32Error() );
WARN( "error %d creating window\n", (int)RtlGetLastWin32Error() );
return NULL;
}
@ -5417,7 +5418,7 @@ ULONG_PTR WINAPI NtUserCallHwnd( HWND hwnd, DWORD code )
return HandleToUlong( is_current_thread_window( hwnd ));
default:
FIXME( "invalid code %u\n", code );
FIXME( "invalid code %u\n", (int)code );
return 0;
}
}
@ -5535,7 +5536,7 @@ ULONG_PTR WINAPI NtUserCallHwndParam( HWND hwnd, DWORD_PTR param, DWORD code )
}
default:
FIXME( "invalid code %u\n", code );
FIXME( "invalid code %u\n", (int)code );
return 0;
}
}

View file

@ -253,10 +253,10 @@ HDESK WINAPI NtUserOpenInputDesktop( DWORD flags, BOOL inherit, ACCESS_MASK acce
{
HANDLE ret = 0;
TRACE( "(%x,%i,%x)\n", flags, inherit, access );
TRACE( "(%x,%i,%x)\n", (int)flags, inherit, (int)access );
if (flags)
FIXME( "partial stub flags %08x\n", flags );
FIXME( "partial stub flags %08x\n", (int)flags );
SERVER_START_REQ( open_input_desktop )
{
@ -513,7 +513,7 @@ static HANDLE get_winstations_dir_handle(void)
NTSTATUS status;
HANDLE dir;
sprintf( bufferA, "\\Sessions\\%u\\Windows\\WindowStations", NtCurrentTeb()->Peb->SessionId );
sprintf( bufferA, "\\Sessions\\%u\\Windows\\WindowStations", (int)NtCurrentTeb()->Peb->SessionId );
str.Buffer = buffer;
str.Length = str.MaximumLength = asciiz_to_unicode( buffer, bufferA ) - sizeof(WCHAR);
InitializeObjectAttributes( &attr, &str, 0, 0, NULL );