# HG changeset patch # User Daniel Atallah # Date 1252033473 0 # Node ID d6dff41a6d4ccd540894b34aeff692f64abf54da # Parent 224f9674a57e42b2279ad1fcaa301e9c25479080 Remove some win9x specific code. diff -r 224f9674a57e -r d6dff41a6d4c finch/gntsound.c --- a/finch/gntsound.c Fri Sep 04 02:57:26 2009 +0000 +++ b/finch/gntsound.c Fri Sep 04 03:04:33 2009 +0000 @@ -559,18 +559,12 @@ #else /* _WIN32 */ purple_debug_info("sound", "Playing %s\n", filename); - if (G_WIN32_HAVE_WIDECHAR_API ()) { + { wchar_t *wc_filename = g_utf8_to_utf16(filename, -1, NULL, NULL, NULL); if (!PlaySoundW(wc_filename, NULL, SND_ASYNC | SND_FILENAME)) purple_debug(PURPLE_DEBUG_ERROR, "sound", "Error playing sound.\n"); g_free(wc_filename); - } else { - char *l_filename = g_locale_from_utf8(filename, - -1, NULL, NULL, NULL); - if (!PlaySoundA(l_filename, NULL, SND_ASYNC | SND_FILENAME)) - purple_debug(PURPLE_DEBUG_ERROR, "sound", "Error playing sound.\n"); - g_free(l_filename); } #endif /* _WIN32 */ }