pidgin/gtkutils.c

branch
release-2.x.y
changeset 32043
73c3b1db2364
parent 32036
4377067bda01
child 32229
f4aa2edf2735
child 33359
aba982dbb801
equal deleted inserted replaced
32042:95540e6ea463 32043:73c3b1db2364
3284 int code; 3284 int code;
3285 if (purple_str_has_prefix(uri, "file://")) 3285 if (purple_str_has_prefix(uri, "file://"))
3286 { 3286 {
3287 gchar *escaped = g_shell_quote(uri); 3287 gchar *escaped = g_shell_quote(uri);
3288 gchar *param = g_strconcat("/select,\"", uri, "\"", NULL); 3288 gchar *param = g_strconcat("/select,\"", uri, "\"", NULL);
3289 gchar *wc_param = g_utf8_to_utf16(param, -1, NULL, NULL, NULL); 3289 wchar_t *wc_param = g_utf8_to_utf16(param, -1, NULL, NULL, NULL);
3290 3290
3291 code = (int)ShellExecuteW(NULL, "OPEN", L"explorer.exe", wc_param, NULL, SW_NORMAL); 3291 code = (int)ShellExecuteW(NULL, L"OPEN", L"explorer.exe", wc_param, NULL, SW_NORMAL);
3292 3292
3293 g_free(wc_param); 3293 g_free(wc_param);
3294 g_free(param); 3294 g_free(param);
3295 g_free(escaped); 3295 g_free(escaped);
3296 } else { 3296 } else {

mercurial