vidc: Return error codes when a message isn't supported.

This commit is contained in:
Eric Pouech 2005-12-12 11:53:28 +01:00 committed by Alexandre Julliard
parent 9f1c6bf6bc
commit ed43709a38
2 changed files with 2 additions and 3 deletions

View File

@ -978,14 +978,13 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
case ICM_DECOMPRESSEX:
return ICCVID_DecompressEx( info, (ICDECOMPRESSEX*) lParam1,
(DWORD) lParam2 );
case DRV_CLOSE:
return ICCVID_Close( info );
default:
FIXME("Unknown message: %04x %ld %ld\n", msg, lParam1, lParam2);
}
return 0;
return ICERR_UNSUPPORTED;
}
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)

View File

@ -482,7 +482,7 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
LPARAM lParam1, LPARAM lParam2 )
{
Msvideo1Context *info = (Msvideo1Context *) dwDriverId;
LRESULT r = 0;
LRESULT r = ICERR_UNSUPPORTED;
TRACE("%ld %p %04x %08lx %08lx\n", dwDriverId, hdrvr, msg, lParam1, lParam2);