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

[MiNT] Wrong Getcookie() C_NOTFOUND



Hello.

In mint/cookie.h, the value of C_NOTFOUND is wrong.
It is incorrectly defined to 0 while the return value is actually -1 when the cookie is not found.

Here is a patch for the MiNTLib.
Alan, please commit.

--
Vincent Rivière
diff -aurN -x CVS mintlib.orig/include/mint/cookie.h mintlib/include/mint/cookie.h
--- mintlib.orig/include/mint/cookie.h	2004-09-14 14:32:08.000000000 +0200
+++ mintlib/include/mint/cookie.h	2010-09-30 23:11:29.687500000 +0200
@@ -562,7 +562,7 @@
 
 /* Return values of Getcookie() */
 #define C_FOUND		0
-#define C_NOTFOUND	1
+#define C_NOTFOUND	-1 /* EERROR */
 
 extern int 	Getcookie(long cookie, long *val);