urlmon: Fixed key name size and format in open_zone_key.

This commit is contained in:
Jacek Caban 2011-01-22 01:52:47 +01:00 committed by Alexandre Julliard
parent 0c17a0b5bb
commit c117f21876
1 changed files with 2 additions and 2 deletions

View File

@ -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 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; DWORD res;
wsprintfW(key_name, wszFormat, wszZonesKey, zone); wsprintfW(key_name, wszFormat, wszZonesKey, zone);