mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 683188 - nsISound should be used in Win32 widget code, not PlaySound. r=jimm
This commit is contained in:
parent
32220cf682
commit
951cf6f088
@ -158,6 +158,7 @@
|
||||
#include "Layers.h"
|
||||
#include "nsPrintfCString.h"
|
||||
#include "mozilla/Preferences.h"
|
||||
#include "nsISound.h"
|
||||
|
||||
#ifdef MOZ_ENABLE_D3D9_LAYER
|
||||
#include "LayerManagerD3D9.h"
|
||||
@ -6157,7 +6158,10 @@ void nsWindow::ActivateOtherWindowHelper(HWND aWnd)
|
||||
|
||||
// Play the minimize sound while we're here, since that is also
|
||||
// forgotten when we use SW_SHOWMINIMIZED.
|
||||
::PlaySoundW(L"Minimize", nsnull, SND_ALIAS | SND_NODEFAULT | SND_ASYNC);
|
||||
nsCOMPtr<nsISound> sound(do_CreateInstance("@mozilla.org/sound;1"));
|
||||
if (sound) {
|
||||
sound->PlaySystemSound(NS_LITERAL_STRING("Minimize"));
|
||||
}
|
||||
}
|
||||
|
||||
void nsWindow::OnWindowPosChanging(LPWINDOWPOS& info)
|
||||
|
Loading…
Reference in New Issue
Block a user