diff -r 95540e6ea463 -r 73c3b1db2364 pidgin/gtkutils.c --- a/pidgin/gtkutils.c Sun Aug 21 23:45:07 2011 +0000 +++ b/pidgin/gtkutils.c Wed Aug 24 15:05:10 2011 +0000 @@ -3286,9 +3286,9 @@ { gchar *escaped = g_shell_quote(uri); gchar *param = g_strconcat("/select,\"", uri, "\"", NULL); - gchar *wc_param = g_utf8_to_utf16(param, -1, NULL, NULL, NULL); - - code = (int)ShellExecuteW(NULL, "OPEN", L"explorer.exe", wc_param, NULL, SW_NORMAL); + wchar_t *wc_param = g_utf8_to_utf16(param, -1, NULL, NULL, NULL); + + code = (int)ShellExecuteW(NULL, L"OPEN", L"explorer.exe", wc_param, NULL, SW_NORMAL); g_free(wc_param); g_free(param);