mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 13:21:39 +00:00
check for NULL pointer
svn path=/trunk/; revision=34425
This commit is contained in:
parent
1fa1b4e184
commit
dfb10c4404
1 changed files with 5 additions and 0 deletions
|
@ -577,6 +577,11 @@ static HRESULT WINAPI IDirectSoundImpl_SetCooperativeLevel(
|
|||
IDirectSoundImpl *This = (IDirectSoundImpl *)iface;
|
||||
TRACE("(%p,%p,%s)\n",This,hwnd,dumpCooperativeLevel(level));
|
||||
|
||||
if (This->device == NULL) {
|
||||
WARN("not initialized\n");
|
||||
return DSERR_UNINITIALIZED;
|
||||
}
|
||||
|
||||
if (level==DSSCL_PRIORITY || level==DSSCL_EXCLUSIVE) {
|
||||
WARN("level=%s not fully supported\n",
|
||||
level==DSSCL_PRIORITY ? "DSSCL_PRIORITY" : "DSSCL_EXCLUSIVE");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue