Silence unneeded exception to allow easier ACM debugging.
This commit is contained in:
parent
bcf393a5e5
commit
23b320e6de
|
@ -147,7 +147,7 @@ PWINE_ACMOBJ MSACM_GetObj(HACMOBJ hObj, DWORD type)
|
|||
{
|
||||
PWINE_ACMOBJ pao = (PWINE_ACMOBJ)hObj;
|
||||
|
||||
if (IsBadReadPtr(pao, sizeof(WINE_ACMOBJ)) ||
|
||||
if (pao == NULL || IsBadReadPtr(pao, sizeof(WINE_ACMOBJ)) ||
|
||||
((type != WINE_ACMOBJ_DONTCARE) && (type != pao->dwType)))
|
||||
return NULL;
|
||||
return pao;
|
||||
|
|
Loading…
Reference in New Issue