mirror of
https://git.code.sf.net/p/quake/newtree
synced 2025-01-22 07:51:20 +00:00
Lockbuffer, return null when fails.
This commit is contained in:
parent
5ba9c66816
commit
587ed5cc3f
1 changed files with 2 additions and 2 deletions
|
@ -714,7 +714,7 @@ DSOUND_LockBuffer(qboolean lockit)
|
|||
("S_TransferStereo16: DS::Lock Sound Buffer Failed\n");
|
||||
S_Shutdown ();
|
||||
S_Startup ();
|
||||
return;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (++reps > 10000) {
|
||||
|
@ -722,7 +722,7 @@ DSOUND_LockBuffer(qboolean lockit)
|
|||
("S_TransferStereo16: DS: couldn't restore buffer\n");
|
||||
S_Shutdown ();
|
||||
S_Startup ();
|
||||
return;
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue