PATCH: wininet cookie stubs

Marcus Meissner marcus at jet.franken.de
Sun Sep 9 04:19:04 CDT 2001


Hi,

This fixes the stub for InternetGetCookie and adds one for InternetSetCookie.

Ciao, Marcus

Changelog:
	More debugoutput for InternetGetCookie, added stub for
	InternetSetCookie.

Index: internet.c
===================================================================
RCS file: /home/wine/wine/dlls/wininet/internet.c,v
retrieving revision 1.22
diff -u -r1.22 internet.c
--- internet.c	2001/08/24 19:13:36	1.22
+++ internet.c	2001/09/09 08:08:40
@@ -932,10 +932,27 @@
 BOOL WINAPI InternetGetCookieA(LPCSTR lpszUrl, LPCSTR lpszCookieName, 
 		LPSTR lpCookieData, LPDWORD lpdwSize)
 {
-    FIXME("Stub\n");
-	return FALSE;
+    FIXME("(%s,%s,%p), stub!\n",debugstr_a(lpszUrl),debugstr_a(lpszCookieName),
+	    lpCookieData
+    );
+    return FALSE;
 }
-
+/***********************************************************************
+ *           InternetSetCookieA (WININET.@)
+ *
+ * Sets cookie for the specified url
+ *
+ * RETURNS
+ *    TRUE  on success
+ *    FALSE on failure
+ *
+ */
+BOOL WINAPI InternetSetCookieA(
+	LPCSTR lpszUrl, LPCSTR lpszCookieName, LPCSTR lpCookieData
+) {
+    FIXME("(%s,%s,%s), stub!\n",debugstr_a(lpszUrl),debugstr_a(lpszCookieName),debugstr_a(lpCookieData));
+    return FALSE;
+}
 
 /***********************************************************************
  *           GetInternetScheme (internal)
Index: wininet.spec
===================================================================
RCS file: /home/wine/wine/dlls/wininet/wininet.spec,v
retrieving revision 1.11
diff -u -r1.11 wininet.spec
--- wininet.spec	2001/06/14 19:24:50	1.11
+++ wininet.spec	2001/09/09 08:08:40
@@ -114,7 +114,7 @@
 @ stub InternetFindNextFileW
 @ stub InternetGetCertByURL
 @ stdcall InternetGetConnectedState(ptr long) InternetGetConnectedState
-@ stdcall InternetGetCookieA(str str str long) InternetGetCookieA
+@ stdcall InternetGetCookieA(str str ptr long) InternetGetCookieA
 @ stub InternetGetCookieW
 @ stdcall InternetGetLastResponseInfoA(ptr str ptr) InternetGetLastResponseInfoA
 @ stub InternetGetLastResponseInfoW
@@ -133,7 +133,7 @@
 @ stub InternetReadFileExA
 @ stub InternetReadFileExW
 @ stub InternetServerPushParse
-@ stub InternetSetCookieA
+@ stdcall InternetSetCookieA(str str str) InternetSetCookieA
 @ stub InternetSetCookieW
 @ stub InternetSetDialState
 @ stub InternetSetFilePointer




More information about the wine-patches mailing list