Silence unneeded exception to allow easier ACM debugging.

This commit is contained in:
James Hatheway 2000-10-02 03:33:20 +00:00 committed by Alexandre Julliard
parent bcf393a5e5
commit 23b320e6de
1 changed files with 1 additions and 1 deletions

View File

@ -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;