mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-05-11 01:38:25 +02:00
Slang und Newt gepatcht um den Installer endlich in UTF8 zu betreiben.
git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@543 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
This commit is contained in:
29
src/patches/newt-0.51.6-if1close.patch
Normal file
29
src/patches/newt-0.51.6-if1close.patch
Normal file
@@ -0,0 +1,29 @@
|
||||
--- newt-0.51.6/form.c.orig 2004-10-15 11:17:35.042333181 -0400
|
||||
+++ newt-0.51.6/form.c 2004-10-15 11:18:53.428533351 -0400
|
||||
@@ -889,6 +889,7 @@
|
||||
struct eventResult er;
|
||||
int key, i, max;
|
||||
int done = 0;
|
||||
+ int success;
|
||||
fd_set readSet, writeSet, exceptSet;
|
||||
struct timeval nextTimeout, now, timeout;
|
||||
#ifdef USE_GPM
|
||||
@@ -902,7 +903,7 @@
|
||||
conn.minMod = 0;
|
||||
conn.maxMod = 0;
|
||||
|
||||
- Gpm_Open(&conn, 0);
|
||||
+ success = Gpm_Open(&conn, 0);
|
||||
#endif
|
||||
|
||||
newtFormSetSize(co);
|
||||
@@ -1062,7 +1063,8 @@
|
||||
}
|
||||
newtRefresh();
|
||||
#ifdef USE_GPM
|
||||
- Gpm_Close();
|
||||
+ if (success > 0)
|
||||
+ Gpm_Close();
|
||||
#endif
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user