[1/3] wininet: Return success from per connection option stubs. Fully initialize the value.
Hans Leidekker
hans at codeweavers.com
Thu Jan 29 07:32:16 CST 2009
Fixes http://bugs.winehq.org/show_bug.cgi?id=13967
-Hans
diff --git a/dlls/wininet/internet.c b/dlls/wininet/internet.c
index 6f67c3d..363f7a4 100644
--- a/dlls/wininet/internet.c
+++ b/dlls/wininet/internet.c
@@ -2154,8 +2154,7 @@ DWORD INET_QueryOption(DWORD option, void *buffer, DWORD *size, BOOL unicode)
case INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_TIME:
case INTERNET_PER_CONN_AUTOCONFIG_LAST_DETECT_URL:
FIXME("Unhandled dwOption %d\n", option->dwOption);
- option->Value.dwValue = 0;
- res = ERROR_INVALID_PARAMETER;
+ memset(&option->Value, 0, sizeof(option->Value));
break;
default:
More information about the wine-patches
mailing list