| ... | ... | @@ -513,7 +513,8 @@ const WindowsThreadImpl = struct { |
| 513 | 513 | errdefer assert(windows.kernel32.HeapFree(heap_handle, 0, alloc_ptr) != 0); |
| 514 | 514 | |
| 515 | 515 | const instance_bytes = @ptrCast([*]u8, alloc_ptr)[0..alloc_bytes]; |
| 516 | | const instance = std.heap.FixedBufferAllocator.init(instance_bytes).allocator().create(Instance) catch unreachable; |
| 516 | var fba = std.heap.FixedBufferAllocator.init(instance_bytes); |
| 517 | const instance = fba.allocator().create(Instance) catch unreachable; |
| 517 | 518 | instance.* = .{ |
| 518 | 519 | .fn_args = args, |
| 519 | 520 | .thread = .{ |