Skip to content
Snippets Groups Projects
Commit 3899c021 authored by Lionel Ulmer's avatar Lionel Ulmer Committed by Alexandre Julliard
Browse files

Check if in depth-conversion mode before returning an error message

in IDirectDrawPaletteImpl_GetEntries.
parent ad725851
No related branches found
No related tags found
No related merge requests found
......@@ -2013,7 +2013,10 @@ static HRESULT WINAPI IDirectDrawPaletteImpl_GetEntries(
TRACE(ddraw,"(%p)->GetEntries(%08lx,%ld,%ld,%p)\n",
This,x,start,count,palent);
if (!This->cm) /* should not happen */ {
/* No palette created and not in depth-convertion mode -> BUG ! */
if ((This->cm == NULL) &&
(This->ddraw->d.palette_convert == NULL))
{
FIXME(ddraw,"app tried to read colormap for non-palettized mode\n");
return DDERR_GENERIC;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment