Starred Chats Sent Mail Drafts (2) All Mail Spam (2510) Trash
Contacts Labels battlezone class 05-06 facebook [email protected]
myself Summer of Code wine-appdb (16) wine-bugs wine-devel (10)
wine-patches (384) wtf-trafton Edit labels Invite a friend
Dimi Paun
dimi at lattica.com
Mon May 15 10:42:59 CDT 2006
On Mon, May 15, 2006 11:28 am, Matt Finnicum wrote:
> Hello!
>
> Patch updated w/ Dimi Paun's advice (using #define's for the default
> and max values), and slightly cleaned up.
Well, not quite (maybe you've sent the wrong patch):
+ case EM_SETUNDOLIMIT:
+ {
+ if ((int)wParam < 0)
+ editor->nUndoLimit = 100;
+ else if ((int)wParam > 10000)
+ /* This should be high enough. it keeps wine from getting killed
+ from hogging memory. Windows allocates all this memory at once, so
+ no program would realisticly set a value this high */
+ editor->nUndoLimit = 10000;
+ else
+ editor->nUndoLimit = wParam;
+
--
Dimi Paun <dimi at lattica.com>
Lattica, Inc.
More information about the wine-devel
mailing list