Commit bd52a2ee authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

iccvid: Add support for ICM_DECOMPRESS_END message.

parent 105450db
...@@ -931,6 +931,16 @@ static LRESULT ICCVID_GetInfo( ICCVID_Info *info, ICINFO *icinfo, DWORD dwSize ) ...@@ -931,6 +931,16 @@ static LRESULT ICCVID_GetInfo( ICCVID_Info *info, ICINFO *icinfo, DWORD dwSize )
return sizeof(ICINFO); return sizeof(ICINFO);
} }
static LRESULT ICCVID_DecompressEnd( ICCVID_Info *info )
{
if( info->cvinfo )
{
free_cvinfo( info->cvinfo );
info->cvinfo = NULL;
}
return ICERR_OK;
}
LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
LPARAM lParam1, LPARAM lParam2) LPARAM lParam1, LPARAM lParam2)
{ {
...@@ -978,6 +988,10 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, ...@@ -978,6 +988,10 @@ 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 ICM_DECOMPRESS_END:
return ICCVID_DecompressEnd( info );
case DRV_CLOSE: case DRV_CLOSE:
return ICCVID_Close( info ); return ICCVID_Close( info );
......
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