+2006-10-31 MorganL <morganl.webkit@yahoo.com>
+
+ Reviewed by Maciej.
+
+ Fixes http://bugs.webkit.org/show_bug.cgi?id=11286
+ Includes some CRLF -> LF fixups.
+
+ * platform/win/CookieJarWin.cpp:
+ (WebCore::cookies):
+
2006-10-31 Adam Roben <aroben@apple.com>
Reviewed by Steve.
DeprecatedString str = url.url();
str.append((UChar)'\0');
- DWORD count;
- InternetGetCookie((UChar*)str.unicode(), 0, 0, &count);\r
- if (count <= 1) // Null terminator counts as 1.\r
- return String();\r
-\r
- UChar* buffer = new UChar[count];\r
- InternetGetCookie((UChar*)str.unicode(), 0, buffer, &count);\r
- String& result = String(buffer, count-1); // Ignore the null terminator.\r
- delete buffer;\r
- return result;\r
+ InternetGetCookie((UChar*)str.unicode(), 0, 0, &count);
+ if (count <= 1) // Null terminator counts as 1.
+ return String();
+
+ UChar* buffer = new UChar[count];
+ InternetGetCookie((UChar*)str.unicode(), 0, buffer, &count);
+ String& result = String(buffer, count-1); // Ignore the null terminator.
+ delete[] buffer;
+ return result;
}
bool cookiesEnabled()