We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6df4ab commit b5c3df5Copy full SHA for b5c3df5
vnext/Shared/OInstance.cpp
@@ -396,7 +396,7 @@ InstanceImpl::InstanceImpl(
396
std::unique_ptr<facebook::jsi::PreparedScriptStore> preparedScriptStore;
397
398
wchar_t tempPath[MAX_PATH];
399
- if (GetTempPathW(MAX_PATH, tempPath)) {
+ if (GetTempPath2W(std::size(tempPath), tempPath)) {
400
preparedScriptStore =
401
std::make_unique<facebook::react::BasePreparedScriptStoreImpl>(winrt::to_string(tempPath));
402
}
0 commit comments