Module: wine Branch: master Commit: c117f218765902019a2d29273a4bd5472c2bc6d8 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c117f218765902019a2d29273a...
Author: Jacek Caban jacek@codeweavers.com Date: Sat Jan 22 01:52:47 2011 +0100
urlmon: Fixed key name size and format in open_zone_key.
---
dlls/urlmon/sec_mgr.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/urlmon/sec_mgr.c b/dlls/urlmon/sec_mgr.c index 87b8fda..e3be8fe 100644 --- a/dlls/urlmon/sec_mgr.c +++ b/dlls/urlmon/sec_mgr.c @@ -221,9 +221,9 @@ static HRESULT map_url_to_zone(LPCWSTR url, DWORD *zone, LPWSTR *ret_url)
static HRESULT open_zone_key(HKEY parent_key, DWORD zone, HKEY *hkey) { - static const WCHAR wszFormat[] = {'%','s','%','l','d',0}; + static const WCHAR wszFormat[] = {'%','s','%','u',0};
- WCHAR key_name[sizeof(wszZonesKey)/sizeof(WCHAR)+8]; + WCHAR key_name[sizeof(wszZonesKey)/sizeof(WCHAR)+12]; DWORD res;
wsprintfW(key_name, wszFormat, wszZonesKey, zone);