mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
Fix HDB buffer creation using raw instead of calculated result size
This commit is contained in:
parent
5a48c7e867
commit
db22e06746
1 changed files with 1 additions and 1 deletions
|
|
@ -2170,7 +2170,7 @@ function start_emulation(profile, query_args)
|
|||
if(hdb_empty_size)
|
||||
{
|
||||
const size = Math.max(1, Math.min(MAX_ARRAY_BUFFER_SIZE_MB, hdb_empty_size)) * 1024 * 1024;
|
||||
settings.hdb = { buffer: new ArrayBuffer(hdb_empty_size) };
|
||||
settings.hdb = { buffer: new ArrayBuffer(size) };
|
||||
new_query_args.set("hdb.empty", String(size));
|
||||
}
|
||||
const multiboot = $("multiboot_image")?.files[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue