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

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

parent 9f1c6bf6
...@@ -978,14 +978,13 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, ...@@ -978,14 +978,13 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
case ICM_DECOMPRESSEX: case ICM_DECOMPRESSEX:
return ICCVID_DecompressEx( info, (ICDECOMPRESSEX*) lParam1, return ICCVID_DecompressEx( info, (ICDECOMPRESSEX*) lParam1,
(DWORD) lParam2 ); (DWORD) lParam2 );
case DRV_CLOSE: case DRV_CLOSE:
return ICCVID_Close( info ); return ICCVID_Close( info );
default: default:
FIXME("Unknown message: %04x %ld %ld\n", msg, lParam1, lParam2); FIXME("Unknown message: %04x %ld %ld\n", msg, lParam1, lParam2);
} }
return 0; return ICERR_UNSUPPORTED;
} }
BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved) BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpReserved)
......
...@@ -482,7 +482,7 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, ...@@ -482,7 +482,7 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
LPARAM lParam1, LPARAM lParam2 ) LPARAM lParam1, LPARAM lParam2 )
{ {
Msvideo1Context *info = (Msvideo1Context *) dwDriverId; Msvideo1Context *info = (Msvideo1Context *) dwDriverId;
LRESULT r = 0; LRESULT r = ICERR_UNSUPPORTED;
TRACE("%ld %p %04x %08lx %08lx\n", dwDriverId, hdrvr, msg, lParam1, lParam2); TRACE("%ld %p %04x %08lx %08lx\n", dwDriverId, hdrvr, msg, lParam1, lParam2);
......
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