From 418699b85d0bbe5497ca0570f3c15ae9274460ed Mon Sep 17 00:00:00 2001 From: Kovarththanan Rajaratnam Date: Mon, 31 Aug 2009 18:16:16 +0000 Subject: Add utf_8to16_snprintf() which creates a UTF16 string according to the given format string. The format string + arguments are expected to be in UTF-8 format. This change effectively removes the only place where we use PRIu64. svn path=/trunk/; revision=29635 --- gtk/file_dlg_win32.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/file_dlg_win32.c') diff --git a/gtk/file_dlg_win32.c b/gtk/file_dlg_win32.c index fbe2f64577..65f41ce9b5 100644 --- a/gtk/file_dlg_win32.c +++ b/gtk/file_dlg_win32.c @@ -947,7 +947,7 @@ preview_set_filename(HWND of_hwnd, gchar *preview_file) { TCHAR string_buff[PREVIEW_STR_MAX]; gint64 data_offset; guint packet = 0; - guint64 filesize; + gint64 filesize; time_t ti_time; struct tm *ti_tm; guint elapsed_time; @@ -993,7 +993,7 @@ preview_set_filename(HWND of_hwnd, gchar *preview_file) { /* size */ filesize = wtap_file_size(wth, &err); - _snwprintf(string_buff, PREVIEW_STR_MAX, _T("%") _T(PRIu64) _T(" bytes"), filesize); + utf_8to16_snprintf(string_buff, PREVIEW_STR_MAX, "%" G_GINT64_FORMAT " bytes", filesize); cur_ctrl = GetDlgItem(of_hwnd, EWFD_PTX_SIZE); SetWindowText(cur_ctrl, string_buff); -- cgit v1.2.3