[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] Getcookie in mintlib pl49



Here is a patch for Getcookie. This will also fix some problems with the
time functions if the CLOK cookie is missing. However, I do not understand
why the Getcookie should return E_OK (=0) if a cookie is found?


--- lib/getcooki.c	Sun Oct 25 13:06:48 1998
+++ lib-49b/getcooki.c	Thu Mar  4 22:09:34 1999
@@ -33,6 +33,7 @@
 		/* old method */
 		
 		long *cookieptr = (long *) Supexec (getcookieptr);
+		*p_value = 0L;
 		
 		if (cookieptr)
 		{


-- 
CU Tommy

+----------------------------------------------------------------------+
     Tommy Andersen              email: tommya@post3.tele.dk
     Rydevaenget 1, 2tv
     DK 8210 Aarhus V
     Denmark                     http://home3.inet.tele.dk/tommya/
+----------------------------------------------------------------------+