mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 13:07:52 +00:00
Fix stupid error.
This commit is contained in:
parent
4f7fbe58af
commit
9b48adc493
@ -77,7 +77,10 @@ NS_METHOD nsSound::Play(nsIFileSpec *filespec)
|
||||
filespec->GetNativePath(&filename);
|
||||
|
||||
delete mSound;
|
||||
mSound = new BSimpleGameSound(filename);
|
||||
entry_ref ref;
|
||||
BEntry e(filename);
|
||||
e.GetRef(&ref);
|
||||
mSound = new BSimpleGameSound(&ref);
|
||||
if(mSound->InitCheck() == B_OK)
|
||||
mSound->StartPlaying();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user