Commit 538ed06c authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Clearly indicate that ICCVID and MSVIDC32 do not support compression.

parent 75c43624
...@@ -765,7 +765,7 @@ static LRESULT ICCVID_DecompressQuery( ICCVID_Info *info, LPBITMAPINFO in, LPBIT ...@@ -765,7 +765,7 @@ static LRESULT ICCVID_DecompressQuery( ICCVID_Info *info, LPBITMAPINFO in, LPBIT
ICCVID_dump_BITMAPINFO(in); ICCVID_dump_BITMAPINFO(in);
if( in->bmiHeader.biCompression != ICCVID_MAGIC ) if( in->bmiHeader.biCompression != ICCVID_MAGIC )
return ICERR_UNSUPPORTED; return ICERR_BADFORMAT;
if( out ) if( out )
{ {
...@@ -773,11 +773,11 @@ static LRESULT ICCVID_DecompressQuery( ICCVID_Info *info, LPBITMAPINFO in, LPBIT ...@@ -773,11 +773,11 @@ static LRESULT ICCVID_DecompressQuery( ICCVID_Info *info, LPBITMAPINFO in, LPBIT
ICCVID_dump_BITMAPINFO(out); ICCVID_dump_BITMAPINFO(out);
if( in->bmiHeader.biPlanes != out->bmiHeader.biPlanes ) if( in->bmiHeader.biPlanes != out->bmiHeader.biPlanes )
return ICERR_UNSUPPORTED; return ICERR_BADFORMAT;
if( in->bmiHeader.biHeight != out->bmiHeader.biHeight ) if( in->bmiHeader.biHeight != out->bmiHeader.biHeight )
return ICERR_UNSUPPORTED; return ICERR_BADFORMAT;
if( in->bmiHeader.biWidth != out->bmiHeader.biWidth ) if( in->bmiHeader.biWidth != out->bmiHeader.biWidth )
return ICERR_UNSUPPORTED; return ICERR_BADFORMAT;
switch( out->bmiHeader.biBitCount ) switch( out->bmiHeader.biBitCount )
{ {
...@@ -788,7 +788,7 @@ static LRESULT ICCVID_DecompressQuery( ICCVID_Info *info, LPBITMAPINFO in, LPBIT ...@@ -788,7 +788,7 @@ static LRESULT ICCVID_DecompressQuery( ICCVID_Info *info, LPBITMAPINFO in, LPBIT
!ICCVID_CheckMask(out->bmiColors, 0xF800, 0x07E0, 0x001F) ) !ICCVID_CheckMask(out->bmiColors, 0xF800, 0x07E0, 0x001F) )
{ {
TRACE("unsupported output bit field(s) for 16-bit colors\n"); TRACE("unsupported output bit field(s) for 16-bit colors\n");
return ICERR_UNSUPPORTED; return ICERR_BADFORMAT;
} }
} }
break; break;
...@@ -797,7 +797,7 @@ static LRESULT ICCVID_DecompressQuery( ICCVID_Info *info, LPBITMAPINFO in, LPBIT ...@@ -797,7 +797,7 @@ static LRESULT ICCVID_DecompressQuery( ICCVID_Info *info, LPBITMAPINFO in, LPBIT
break; break;
default: default:
TRACE("unsupported output bitcount = %d\n", out->bmiHeader.biBitCount ); TRACE("unsupported output bitcount = %d\n", out->bmiHeader.biBitCount );
return ICERR_UNSUPPORTED; return ICERR_BADFORMAT;
} }
} }
...@@ -977,6 +977,9 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, ...@@ -977,6 +977,9 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
return (LRESULT) info; return (LRESULT) info;
} }
case DRV_CLOSE:
return ICCVID_Close( info );
case ICM_GETINFO: case ICM_GETINFO:
return ICCVID_GetInfo( info, (ICINFO *)lParam1, (DWORD)lParam2 ); return ICCVID_GetInfo( info, (ICINFO *)lParam1, (DWORD)lParam2 );
...@@ -999,8 +1002,9 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, ...@@ -999,8 +1002,9 @@ LRESULT WINAPI ICCVID_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
case ICM_DECOMPRESS_END: case ICM_DECOMPRESS_END:
return ICCVID_DecompressEnd( info ); return ICCVID_DecompressEnd( info );
case DRV_CLOSE: case ICM_COMPRESS_QUERY:
return ICCVID_Close( info ); FIXME("compression not implemented\n");
return ICERR_BADFORMAT;
default: default:
FIXME("Unknown message: %04x %ld %ld\n", msg, lParam1, lParam2); FIXME("Unknown message: %04x %ld %ld\n", msg, lParam1, lParam2);
......
...@@ -514,6 +514,16 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, ...@@ -514,6 +514,16 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
break; break;
} }
case DRV_CLOSE:
HeapFree( GetProcessHeap(), 0, info );
break;
case DRV_DISABLE:
break;
case DRV_FREE:
break;
case ICM_GETINFO: case ICM_GETINFO:
r = CRAM_GetInfo( info, (ICINFO *)lParam1, (DWORD)lParam2 ); r = CRAM_GetInfo( info, (ICINFO *)lParam1, (DWORD)lParam2 );
break; break;
...@@ -551,14 +561,9 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg, ...@@ -551,14 +561,9 @@ LRESULT WINAPI CRAM_DriverProc( DWORD_PTR dwDriverId, HDRVR hdrvr, UINT msg,
(DWORD) lParam2 ); (DWORD) lParam2 );
break; break;
case DRV_CLOSE: case ICM_COMPRESS_QUERY:
HeapFree( GetProcessHeap(), 0, info ); FIXME("compression not implemented\n");
break; r = ICERR_BADFORMAT;
case DRV_DISABLE:
break;
case DRV_FREE:
break; break;
default: default:
......
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