changeset 32403:7b1cb7651609

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".
author Daniel Atallah <daniel.atallah@gmail.com>
date Wed, 24 Aug 2011 15:05:10 +0000
parents 8c6254c23e32
children fbbb9edb1d4c 88a46649de3d
files pidgin/gtkutils.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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);