fix crash in winecfg's x11 dialog due to invalid "Desktop" settings

Chris Morgan cmorgan at alum.wpi.edu
Mon Mar 29 21:32:37 CST 2004


* programs/winecfg/x11drvdlg.c:
Chris Morgan <cmorgan at alum.wpi.edu>
Invalid "Desktop" values would crash winecfg, use the default value instead.


Fixed the two issues that Mike pointed out.

On Monday 29 March 2004 12:57 pm, Mike Hearn wrote:
> On Mon, 29 Mar 2004 10:11:56 -0500, chmorgan wrote:
> > Yes, my bad.  I'll send in a fixed patch.  I still don't like the way the
> > code looks with the duplication of the default string to use but I
> > couldn't think of any way to fix it more elegantly.  Ideas?
>
> Why not just have  static char *desktop_default = "640x480" at the top of
> the function?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: x11drvdlg.patch
Type: text/x-diff
Size: 952 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20040329/d9e99a1f/x11drvdlg.bin


More information about the wine-patches mailing list