From f56cfa40da2b1dbadd87d6ebcd459dd155c2c052 Mon Sep 17 00:00:00 2001 From: Ianos Gnatiuc Date: Sun, 13 Aug 2006 17:03:02 +0000 Subject: [PATCH] Win32: Fixed often registry reading when MCI sounds are enabled. --- docs/notework.rus | 1 + docs/notework.txt | 2 ++ goldlib/gall/gsnd.cpp | 8 ++++++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/docs/notework.rus b/docs/notework.rus index e44bffa..898b42a 100644 --- a/docs/notework.rus +++ b/docs/notework.rus @@ -10,6 +10,7 @@ _____________________________________________________________________________ Заметки для GoldED+ 1.1.5, /snapshot/ _____________________________________________________________________________ +- Win32: Исправлено частое чтение реестра когда включен MCI звук. - Golded+ мог упасть в списке сообщений, если размер имени или темы слишком большие. - Исправлен меню удаления неотправленных сообщений, когда удалялось в корзину. diff --git a/docs/notework.txt b/docs/notework.txt index bc7b5be..0e9089a 100644 --- a/docs/notework.txt +++ b/docs/notework.txt @@ -10,6 +10,8 @@ ______________________________________________________________________ Notes for GoldED+ 1.1.5, /snapshot/ ______________________________________________________________________ +- Win32: Fixed often registry reading when MCI sounds are enabled. + - Golded+ can crash in message list if size of name or subject is too big. - Fixed delete menu dialog, when unsent message is to be deleted to recyclebin. diff --git a/goldlib/gall/gsnd.cpp b/goldlib/gall/gsnd.cpp index f7942bc..eb19362 100644 --- a/goldlib/gall/gsnd.cpp +++ b/goldlib/gall/gsnd.cpp @@ -481,8 +481,12 @@ int gsnd::is_playing() { char return_buffer[BUFFERSIZE]; - if(g_send_mci_string("status noise mode wait", return_buffer)) - return strieql(return_buffer, "playing") or strieql(return_buffer, "seeking"); + if (file_open) + { + if(g_send_mci_string("status noise mode wait", return_buffer)) + return strieql(return_buffer, "playing") or strieql(return_buffer, "seeking"); + } + return 0; #else