From 8e2c9c9ad4b126d51a99cfd840483c677ccd1fa2 Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 29 Mar 2004 23:20:48 +0000
Subject: [PATCH] Fixed bcc warning: Both return and return with a value used
 in function ugetstr

---
 src/uifc/uifc32.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/uifc/uifc32.c b/src/uifc/uifc32.c
index 35565a6f20..690962585a 100644
--- a/src/uifc/uifc32.c
+++ b/src/uifc/uifc32.c
@@ -1287,7 +1287,7 @@ int ugetstr(int left, int top, int width, char *outstr, int max, long mode, int
 		cprintf("UIFC line %d: error allocating %u bytes\r\n"
 			,__LINE__,(max+1));
 		_setcursortype(cursor);
-		return; 
+		return(-1); 
 	}
 	gotoxy(left,top);
 	cursor=_NORMALCURSOR;
-- 
GitLab