mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-03 03:58:54 +00:00
Scope CreateFileMapping2 to valid API partitions (#12374)
This commit is contained in:
parent
0e85af6990
commit
9c0fa65110
1 changed files with 1 additions and 1 deletions
|
|
@ -369,7 +369,7 @@ class WindowsEnv : public Env {
|
|||
" - ", std::system_category().message(error_code));
|
||||
}
|
||||
|
||||
#if NTDDI_VERSION >= NTDDI_WIN10_RS5
|
||||
#if NTDDI_VERSION >= NTDDI_WIN10_RS5 && WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP | WINAPI_PARTITION_SYSTEM)
|
||||
wil::unique_hfile file_mapping_handle{
|
||||
CreateFileMapping2(file_handle.get(),
|
||||
nullptr,
|
||||
|
|
|
|||
Loading…
Reference in a new issue