Commit f07152d7 authored by Rob Shearman's avatar Rob Shearman Committed by Alexandre Julliard

mshtml: Fix the buffer length being passed into MultiByteToWideChar in set_registry.

parent a5d47bab
......@@ -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++] = '\\';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment