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

Chris Morgan cmorgan at
Mon Mar 29 21:32:37 CST 2004

* programs/winecfg/x11drvdlg.c:
Chris Morgan <cmorgan at>
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 :

More information about the wine-patches mailing list