Jacek Caban : appwiz.cpl: Include package version in request URL.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Mar 5 09:53:25 CST 2015
Module: wine
Branch: master
Commit: c769d6fe23561ce50d7149a61c1b475861df7786
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c769d6fe23561ce50d7149a61c1b475861df7786
Author: Jacek Caban <jacek at codeweavers.com>
Date: Wed Mar 4 12:45:13 2015 +0100
appwiz.cpl: Include package version in request URL.
---
dlls/appwiz.cpl/addons.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/dlls/appwiz.cpl/addons.c b/dlls/appwiz.cpl/addons.c
index f4edd02..ce128fe 100644
--- a/dlls/appwiz.cpl/addons.c
+++ b/dlls/appwiz.cpl/addons.c
@@ -629,6 +629,7 @@ static void append_url_params( WCHAR *url )
{
static const WCHAR arch_formatW[] = {'?','a','r','c','h','='};
static const WCHAR v_formatW[] = {'&','v','='};
+ static const WCHAR winevW[] = {'&','w','i','n','e','v','='};
DWORD size = INTERNET_MAX_URL_LENGTH * sizeof(WCHAR);
DWORD len = strlenW(url);
@@ -638,7 +639,10 @@ static void append_url_params( WCHAR *url )
url+len, size/sizeof(WCHAR)-len)-1;
memcpy(url+len, v_formatW, sizeof(v_formatW));
len += sizeof(v_formatW)/sizeof(WCHAR);
- MultiByteToWideChar(CP_ACP, 0, addon->version, -1, url+len, size/sizeof(WCHAR)-len);
+ len += MultiByteToWideChar(CP_ACP, 0, addon->version, -1, url+len, size/sizeof(WCHAR)-len)-1;
+ memcpy(url+len, winevW, sizeof(winevW));
+ len += sizeof(winevW)/sizeof(WCHAR);
+ MultiByteToWideChar(CP_ACP, 0, PACKAGE_VERSION, -1, url+len, size/sizeof(WCHAR)-len);
}
static LPWSTR get_url(void)
More information about the wine-cvs
mailing list