Urlmon obtainuseragentstring stub
Maarten Lankhorst
m.b.lankhorst at gmail.com
Thu May 19 03:39:32 CDT 2005
Current stub doesn't work properly, crashes msn on signing in.
Changelog
Improved stub for obtainuseragentstring
-------------- next part --------------
? useragent.patch
Index: urlmon_main.c
===================================================================
RCS file: /home/wine/wine/dlls/urlmon/urlmon_main.c,v
retrieving revision 1.24
diff -u -p -r1.24 urlmon_main.c
--- urlmon_main.c 6 May 2005 14:32:48 -0000 1.24
+++ urlmon_main.c 19 May 2005 08:36:42 -0000
@@ -269,6 +269,8 @@ HRESULT WINAPI UrlMkGetSessionOption(DWO
return S_OK;
}
+WCHAR string[] = { 'B','r','o','w','s','e','r',0 };
+
/**************************************************************************
* ObtainUserAgentString (URLMON.@)
*/
@@ -279,7 +281,10 @@ HRESULT WINAPI ObtainUserAgentString(DWO
if(dwOption) {
ERR("dwOption: %ld, must be zero\n", dwOption);
}
-
+
+ lstrcpynW((WCHAR *)pcszUAOut, string, *cbSize);
+ if (sizeof(string) / sizeof(WCHAR) < *cbSize)
+ *cbSize = sizeof(string) / sizeof(WCHAR);
return S_OK;
}
More information about the wine-patches
mailing list