mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-14 20:48:00 +00:00
Enable LearningModel::LoadFromFilePath in UWP Apps (#9790)
Co-authored-by: Sheil Kumar <sheilk@microsoft.com>
This commit is contained in:
parent
3654a5d60e
commit
9fb3fac5a0
1 changed files with 2 additions and 2 deletions
|
|
@ -26,13 +26,13 @@ LearningModel::LearningModel(
|
|||
#if WINVER >= _WIN32_WINNT_WIN8
|
||||
CreateFile2(path.c_str(),
|
||||
GENERIC_READ,
|
||||
0,
|
||||
FILE_SHARE_READ,
|
||||
OPEN_EXISTING,
|
||||
NULL)};
|
||||
#else
|
||||
CreateFileW(path.c_str(),
|
||||
GENERIC_READ,
|
||||
0,
|
||||
FILE_SHARE_READ,
|
||||
NULL,
|
||||
OPEN_EXISTING,
|
||||
FILE_ATTRIBUTE_READONLY,
|
||||
|
|
|
|||
Loading…
Reference in a new issue