Return values from DRV_ENABLE should not be checked.

This commit is contained in:
Eric Pouech 2000-12-13 01:51:04 +00:00 committed by Alexandre Julliard
parent 31acbb4b9c
commit fbb392e405
1 changed files with 3 additions and 5 deletions

View File

@ -186,11 +186,9 @@ HIC MSVIDEO_OpenFunc(DWORD fccType, DWORD fccHandler, UINT wMode, FARPROC lpfnHa
GlobalFree16(hic);
return 0;
}
if (MSVIDEO_SendMessage(hic,DRV_ENABLE,0L,0L,bFrom32) != DRV_SUCCESS) {
WARN("DRV_ENABLE failed for hic 0x%08lx\n",(DWORD)hic);
GlobalFree16(hic);
return 0;
}
/* return value is not checked */
MSVIDEO_SendMessage(hic,DRV_ENABLE,0L,0L,bFrom32);
whic->hdrv = MSVIDEO_SendMessage(hic,DRV_OPEN,0,(LPARAM)(SEGPTR_GET(icopen)),FALSE);
if (whic->hdrv == 0) {
WARN("DRV_OPEN failed for hic 0x%08lx\n",(DWORD)hic);