Re: Segfault in X11DRV_DIB_BuildColorTable (DIB_PAL_COLORS)

2005-03-23 Thread Jesse D Zbikowski
The patch worked like a charm. I guess it's true about arrays being evil :) Thanks, Jesse Z. > I have attached a patch below which may fix the problem. Index is a > WORD but yet we only have 256 entries in the palette that we get from > GetPaletteEntries - if any of the values is more, we jump

Segfault in X11DRV_DIB_BuildColorTable (DIB_PAL_COLORS)

2005-03-22 Thread Jesse D Zbikowski
I am experiencing a crash during startup of an application (The Rosetta Stone 2.0.7a) under Wine. I reported this earlier on wine-users and after some debugging was advised to move to this list. The line causing a problem is dlls/x11drv/dib.c:425 417 HPALETTE hpal = GetCurrentObject(