equal
deleted
inserted
replaced
111 TString directoryName = FixPathForPlatform(DirectoryName); |
111 TString directoryName = FixPathForPlatform(DirectoryName); |
112 DynamicBuffer<TCHAR> lDirectoryName(directoryName.size() + 2); |
112 DynamicBuffer<TCHAR> lDirectoryName(directoryName.size() + 2); |
113 if (lDirectoryName.GetData() == NULL) { |
113 if (lDirectoryName.GetData() == NULL) { |
114 return false; |
114 return false; |
115 } |
115 } |
116 memcpy(lDirectoryName.GetData(), directoryName.data(), (directoryName.size() + 2) * sizeof(TCHAR)); |
116 memcpy(lDirectoryName.GetData(), directoryName.data(), |
|
117 (directoryName.size() + 2) * sizeof(TCHAR)); |
117 lDirectoryName[directoryName.size() + 1] = NULL; |
118 lDirectoryName[directoryName.size() + 1] = NULL; |
118 // Double null terminate for SHFileOperation. |
119 // Double null terminate for SHFileOperation. |
119 |
120 |
120 // Delete the folder and everything inside. |
121 // Delete the folder and everything inside. |
121 fos.wFunc = FO_DELETE; |
122 fos.wFunc = FO_DELETE; |