mirror of
https://github.com/reactos/wine.git
synced 2024-11-25 12:49:45 +00:00
mshtml: Fix the buffer length being passed into MultiByteToWideChar in set_registry.
This commit is contained in:
parent
a5d47baba4
commit
f07152d7b7
@ -113,7 +113,7 @@ static void set_registry(LPCSTR install_dir)
|
||||
|
||||
len = MultiByteToWideChar(CP_ACP, 0, install_dir, -1, NULL, 0)-1;
|
||||
gecko_path = heap_alloc((len+1)*sizeof(WCHAR)+sizeof(wszWineGecko));
|
||||
MultiByteToWideChar(CP_ACP, 0, install_dir, -1, gecko_path, (len+1)*sizeof(WCHAR));
|
||||
MultiByteToWideChar(CP_ACP, 0, install_dir, -1, gecko_path, len+1);
|
||||
|
||||
if (len && gecko_path[len-1] != '\\')
|
||||
gecko_path[len++] = '\\';
|
||||
|
Loading…
Reference in New Issue
Block a user