1
0
mirror of https://github.com/wine-mirror/wine synced 2024-07-01 07:14:31 +00:00

winemac: Fix remaining printf format warnings.

This commit is contained in:
Huw Davies 2022-12-12 16:22:56 +00:00 committed by Alexandre Julliard
parent abec83e509
commit 027bd21b0c
3 changed files with 8 additions and 8 deletions

View File

@ -132,12 +132,12 @@ HKEY open_hkcu_key(const char *name)
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]),
MAKEWORD(sid->IdentifierAuthority.Value[3],
sid->IdentifierAuthority.Value[2])));
(unsigned 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", (unsigned int)sid->SubAuthority[i]);
ascii_to_unicode(bufferW, buffer, len);
hkcu = reg_open_key(NULL, bufferW, len * sizeof(WCHAR));

View File

@ -76,7 +76,7 @@ struct wgl_context
BOOL sharing;
LONG update_swap_interval;
LONG view_moved;
DWORD last_flush_time;
unsigned int last_flush_time;
UINT major;
};
@ -2222,7 +2222,7 @@ static void macdrv_glFlush(void)
if (skip_single_buffer_flushes)
{
const pixel_format *pf = &pixel_formats[context->format - 1];
DWORD now = NtGetTickCount();
unsigned int now = NtGetTickCount();
TRACE("double buffer %d last flush time %d now %d\n", (int)pf->double_buffer,
context->last_flush_time, now);

View File

@ -87,7 +87,7 @@
/* macdrv_notify_icon params */
struct notify_icon_params
{
DWORD msg;
unsigned int msg;
struct _NOTIFYICONDATAW *data;
};