# HG changeset patch # User Daniel Atallah # Date 1314198310 0 # Node ID 7b1cb7651609a59efc9789445ba898a7308b0ccd # Parent 8c6254c23e32f6e0157060154f9e29c5970c7e3e Fix parameter types passed to ShellExecuteW(). One of these is just a warning fix, the other is potentially a problem. I'm not sure what ShellExecuteW() will do with "OPEN" vs. L"OPEN" - probably execute the default action which is also L"OPEN". diff -r 8c6254c23e32 -r 7b1cb7651609 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);