mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-23 16:34:06 +00:00
isle main: Matched startDirectSound to Original
This commit is contained in:
@@ -19,7 +19,7 @@ BOOL findExistingInstance(void)
|
|||||||
|
|
||||||
BOOL startDirectSound(void)
|
BOOL startDirectSound(void)
|
||||||
{
|
{
|
||||||
LPDIRECTSOUND lpDS;
|
LPDIRECTSOUND lpDS = 0;
|
||||||
HRESULT ret = DirectSoundCreate(NULL, &lpDS, NULL);
|
HRESULT ret = DirectSoundCreate(NULL, &lpDS, NULL);
|
||||||
if (ret == DS_OK && lpDS != NULL) {
|
if (ret == DS_OK && lpDS != NULL) {
|
||||||
lpDS->Release();
|
lpDS->Release();
|
||||||
|
Reference in New Issue
Block a user