mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-21 13:22:23 -08:00
fix clang build
This commit is contained in:
1 parent
213091cf75
commit
ab9885bc7d
10 files changed
+549
-267
No files matched your search
@@ -473,11 +473,11 @@ internal B32
|
||||
os_file_reserve_size(OS_Handle file, U64 size)
|
||||
{
|
||||
HANDLE handle = (HANDLE)file.u64[0];
|
||||
|
||||
|
||||
FILE_ALLOCATION_INFO alloc_info = {0};
|
||||
alloc_info.AllocationSize.LowPart = size & max_U32;
|
||||
alloc_info.AllocationSize.HighPart = (size >> 32) & max_U32;
|
||||
|
||||
|
||||
BOOL is_reserved = SetFileInformationByHandle(handle, FileAllocationInfo, &alloc_info, sizeof(alloc_info));
|
||||
return is_reserved;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user