Skip to content
Snippets Groups Projects
Commit efc1b44e authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't clear exit_flags.

This should ensure that once quit is used, everything exits, but
apparently, this never worked.
parent 9383c7fa
No related branches found
No related tags found
No related merge requests found
Pipeline #5121 failed
...@@ -362,6 +362,7 @@ int uifcini32(uifcapi_t* uifcapi) ...@@ -362,6 +362,7 @@ int uifcini32(uifcapi_t* uifcapi)
for(i=0; i<MAX_BUFS; i++) for(i=0; i<MAX_BUFS; i++)
sav[i].buf=NULL; sav[i].buf=NULL;
api->savnum=0; api->savnum=0;
api->exit_flags = 0;
api->initialized=TRUE; api->initialized=TRUE;
...@@ -650,7 +651,6 @@ int ulist(uifc_winmode_t mode, int left, int top, int width, int *cur, int *bar ...@@ -650,7 +651,6 @@ int ulist(uifc_winmode_t mode, int left, int top, int width, int *cur, int *bar
BOOL shadow = api->scrn_width >= 80; BOOL shadow = api->scrn_width >= 80;
if(cur==NULL) cur=&tmpcur; if(cur==NULL) cur=&tmpcur;
api->exit_flags = 0;
hclr=api->hclr; hclr=api->hclr;
lclr=api->lclr; lclr=api->lclr;
bclr=api->bclr; bclr=api->bclr;
...@@ -2144,7 +2144,6 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int ...@@ -2144,7 +2144,6 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
char *pastebuf=NULL; char *pastebuf=NULL;
unsigned char *pb=NULL; unsigned char *pb=NULL;
api->exit_flags = 0;
if((str=alloca(max+1))==NULL) { if((str=alloca(max+1))==NULL) {
cprintf("UIFC line %d: error allocating %u bytes\r\n" cprintf("UIFC line %d: error allocating %u bytes\r\n"
,__LINE__,(max+1)); ,__LINE__,(max+1));
...@@ -2751,7 +2750,6 @@ void showbuf(uifc_winmode_t mode, int left, int top, int width, int height, cons ...@@ -2751,7 +2750,6 @@ void showbuf(uifc_winmode_t mode, int left, int top, int width, int height, cons
uint title_len=0; uint title_len=0;
struct mouse_event mevnt; struct mouse_event mevnt;
api->exit_flags = 0;
_setcursortype(_NOCURSOR); _setcursortype(_NOCURSOR);
title_len=strlen(title); title_len=strlen(title);
...@@ -3059,7 +3057,6 @@ static void help(void) ...@@ -3059,7 +3057,6 @@ static void help(void)
long l; long l;
FILE *fp; FILE *fp;
api->exit_flags = 0;
if(api->helpbuf==NULL && api->helpixbfile[0]==0) if(api->helpbuf==NULL && api->helpixbfile[0]==0)
return; return;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment