@@ -49,13 +49,12 @@ ApiHelper::ApiHelper() :
4949
5050 this ->_PrjMarkDirectoryAsPlaceholder = reinterpret_cast <t_PrjMarkDirectoryAsPlaceholder>(::GetProcAddress (projFsLib,
5151 " PrjMarkDirectoryAsPlaceholder" ));
52- bool environmentSupportsSymlinks = false ;
5352 if (::GetProcAddress (projFsLib, " PrjWritePlaceholderInfo2" ) != nullptr )
5453 {
5554 // We have the API introduced in Windows 10 version 2004.
5655 this ->_PrjWritePlaceholderInfo2 = reinterpret_cast <t_PrjWritePlaceholderInfo2>(::GetProcAddress (projFsLib,
5756 " PrjWritePlaceholderInfo2" ));
58- environmentSupportsSymlinks = true ;
57+ this -> useSymlinkApi = true ;
5958 }
6059
6160 ::FreeLibrary (projFsLib);
@@ -64,7 +63,7 @@ ApiHelper::ApiHelper() :
6463 !this ->_PrjStopVirtualizing ||
6564 !this ->_PrjWriteFileData ||
6665 !this ->_PrjWritePlaceholderInfo ||
67- (environmentSupportsSymlinks && !this ->_PrjWritePlaceholderInfo2 ) ||
66+ (this -> useSymlinkApi && !this ->_PrjWritePlaceholderInfo2 ) ||
6867 !this ->_PrjAllocateAlignedBuffer ||
6968 !this ->_PrjFreeAlignedBuffer ||
7069 !this ->_PrjGetVirtualizationInstanceInfo ||
@@ -139,4 +138,4 @@ ApiHelper::ApiHelper() :
139138bool ApiHelper::UseRS5Api::get (void )
140139{
141140 return this ->useRS5Api ;
142- }
141+ }
0 commit comments