pidgin/ljfisher-ssl-client-auth

73c3b1db2364
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".
--- 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);