Commit fbb392e4 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

Return values from DRV_ENABLE should not be checked.

parent 31acbb4b
...@@ -186,11 +186,9 @@ HIC MSVIDEO_OpenFunc(DWORD fccType, DWORD fccHandler, UINT wMode, FARPROC lpfnHa ...@@ -186,11 +186,9 @@ HIC MSVIDEO_OpenFunc(DWORD fccType, DWORD fccHandler, UINT wMode, FARPROC lpfnHa
GlobalFree16(hic); GlobalFree16(hic);
return 0; return 0;
} }
if (MSVIDEO_SendMessage(hic,DRV_ENABLE,0L,0L,bFrom32) != DRV_SUCCESS) { /* return value is not checked */
WARN("DRV_ENABLE failed for hic 0x%08lx\n",(DWORD)hic); MSVIDEO_SendMessage(hic,DRV_ENABLE,0L,0L,bFrom32);
GlobalFree16(hic);
return 0;
}
whic->hdrv = MSVIDEO_SendMessage(hic,DRV_OPEN,0,(LPARAM)(SEGPTR_GET(icopen)),FALSE); whic->hdrv = MSVIDEO_SendMessage(hic,DRV_OPEN,0,(LPARAM)(SEGPTR_GET(icopen)),FALSE);
if (whic->hdrv == 0) { if (whic->hdrv == 0) {
WARN("DRV_OPEN failed for hic 0x%08lx\n",(DWORD)hic); WARN("DRV_OPEN failed for hic 0x%08lx\n",(DWORD)hic);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment