< prev index next >
src/jdk.incubator.jpackage/windows/native/libapplauncher/FilePath.cpp
Print this page
*** 111,121 ****
TString directoryName = FixPathForPlatform(DirectoryName);
DynamicBuffer<TCHAR> lDirectoryName(directoryName.size() + 2);
if (lDirectoryName.GetData() == NULL) {
return false;
}
! memcpy(lDirectoryName.GetData(), directoryName.data(), (directoryName.size() + 2) * sizeof(TCHAR));
lDirectoryName[directoryName.size() + 1] = NULL;
// Double null terminate for SHFileOperation.
// Delete the folder and everything inside.
fos.wFunc = FO_DELETE;
--- 111,122 ----
TString directoryName = FixPathForPlatform(DirectoryName);
DynamicBuffer<TCHAR> lDirectoryName(directoryName.size() + 2);
if (lDirectoryName.GetData() == NULL) {
return false;
}
! memcpy(lDirectoryName.GetData(), directoryName.data(),
! (directoryName.size() + 2) * sizeof(TCHAR));
lDirectoryName[directoryName.size() + 1] = NULL;
// Double null terminate for SHFileOperation.
// Delete the folder and everything inside.
fos.wFunc = FO_DELETE;
*** 384,405 ****
FAttributes.push_back(faEncrypted);
}
if (attributes | FILE_ATTRIBUTE_HIDDEN) {
FAttributes.push_back(faHidden);
}
- // if (attributes | FILE_ATTRIBUTE_INTEGRITY_STREAM) {
- // FAttributes.push_back(faIntegrityStream);
- // }
if (attributes | FILE_ATTRIBUTE_NORMAL) {
FAttributes.push_back(faNormal);
}
if (attributes | FILE_ATTRIBUTE_NOT_CONTENT_INDEXED) {
FAttributes.push_back(faNotContentIndexed);
}
- // if (attributes | FILE_ATTRIBUTE_NO_SCRUB_DATA) {
- // FAttributes.push_back(faNoScrubData);
- // }
if (attributes | FILE_ATTRIBUTE_SYSTEM) {
FAttributes.push_back(faSystem);
}
if (attributes | FILE_ATTRIBUTE_OFFLINE) {
FAttributes.push_back(faOffline);
--- 385,400 ----
< prev index next >