diff options
author | Jeffrey Stedfast <fejj@novell.com> | 2009-02-10 04:32:54 +0300 |
---|---|---|
committer | Jeffrey Stedfast <fejj@novell.com> | 2009-02-10 04:32:54 +0300 |
commit | afc88b11693c4e3e111e38664c958d39f625c3b8 (patch) | |
tree | ece46f9fb0cd67e02c39155b28087ffb9e344d70 /support | |
parent | 156c3308e848f47f66a010ad8abe1a2615c439cc (diff) |
2009-02-09 Jeffrey Stedfast <fejj@novell.com>
* supportw.c (SetWindowPos): Fixed compile warnings about
printf-style formatters.
(SendMessageA): Same.
svn path=/trunk/mono/; revision=126409
Diffstat (limited to 'support')
-rw-r--r-- | support/ChangeLog | 6 | ||||
-rw-r--r-- | support/supportw.c | 4 |
2 files changed, 8 insertions, 2 deletions
diff --git a/support/ChangeLog b/support/ChangeLog index 704b81ae9a4..a21ccfefbbe 100644 --- a/support/ChangeLog +++ b/support/ChangeLog @@ -1,3 +1,9 @@ +2009-02-09 Jeffrey Stedfast <fejj@novell.com> + + * supportw.c (SetWindowPos): Fixed compile warnings about + printf-style formatters. + (SendMessageA): Same. + 2009-01-14 Geoff Norton <gnorton@novell.com> * supportw.c: Use unsigned int instead of uint, as its more portable. diff --git a/support/supportw.c b/support/supportw.c index 1c8b70e8d0d..49ed549c5d2 100644 --- a/support/supportw.c +++ b/support/supportw.c @@ -161,14 +161,14 @@ FindWindowExW (gpointer hwndParent, gpointer hwndChildAfter, const char *classw, int SetWindowPos (gpointer hwnd, gpointer hwndInsertAfter, int x, int y, int cx, int cy, unsigned int flags) { - fprintf (stderr, "SetWindowPos 0x%x 0x%x to [%d,%dx%d,%d] %d\n", hwnd, hwndInsertAfter, x, y, cx, cy, flags); + fprintf (stderr, "SetWindowPos %p %p to [%d,%dx%d,%d] %d\n", hwnd, hwndInsertAfter, x, y, cx, cy, flags); return 1; } int SendMessageA (gpointer hwnd, unsigned int msg, gpointer wparam, gpointer lparam) { - fprintf (stderr, "SendMessage (%d, 0x%x, 0x%x, 0x%x)\n", hwnd, msg, wparam, lparam); + fprintf (stderr, "SendMessage (%d, 0x%x, %p, %p)\n", (int) GPOINTER_TO_INT (hwnd), msg, wparam, lparam); return 0; } |