Changeset 531 for trunk/Packages/Common/Common.pas
- Timestamp:
- Mar 27, 2024, 12:31:14 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Packages/Common/Common.pas
r456 r531 184 184 (*function DelTree(DirName : string): Boolean; 185 185 var 186 SHFileOpStruct 187 DirBuf 186 SHFileOpStruct: TSHFileOpStruct; 187 DirBuf: array [0..255] of char; 188 188 begin 189 189 DirName := UTF8Decode(DirName); 190 190 try 191 Fill char(SHFileOpStruct,Sizeof(SHFileOpStruct),0);192 FillChar(DirBuf, Sizeof(DirBuf), 0 ) 193 StrPCopy(DirBuf, DirName) 191 FillChar(SHFileOpStruct, Sizeof(SHFileOpStruct), 0); 192 FillChar(DirBuf, Sizeof(DirBuf), 0 ); 193 StrPCopy(DirBuf, DirName); 194 194 with SHFileOpStruct do begin 195 195 Wnd := 0; … … 200 200 fFlags := fFlags or FOF_SILENT; 201 201 end; 202 Result := (SHFileOperation(SHFileOpStruct) = 0) 202 Result := (SHFileOperation(SHFileOpStruct) = 0); 203 203 except 204 204 Result := False; 205 205 end; 206 206 end;*)
Note:
See TracChangeset
for help on using the changeset viewer.