Mercurial > pidgin.yaz
changeset 29494:d6dff41a6d4c
Remove some win9x specific code.
author | Daniel Atallah <daniel.atallah@gmail.com> |
---|---|
date | Fri, 04 Sep 2009 03:04:33 +0000 |
parents | 224f9674a57e |
children | 02f6f49da454 |
files | finch/gntsound.c |
diffstat | 1 files changed, 1 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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 */ }