- Timestamp:
- Sep 15, 2002, 6:49:38 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/shlfileop.c
r8614 r9244 1 1 /* 2 2 * SHFileOperation 3 * Copyright 2000 Juergen Schmied 4 * Copyright 2002 Andriy Palamarchuk 5 * Copyright 2002 Dietrich Teickner (from Odin) 6 * 7 * This library is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU Lesser General Public 9 * License as published by the Free Software Foundation; either 10 * version 2.1 of the License, or (at your option) any later version. 11 * 12 * This library is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * Lesser General Public License for more details. 16 * 17 * You should have received a copy of the GNU Lesser General Public 18 * License along with this library; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 3 20 */ 4 21 #ifdef __WIN32OS2__ … … 195 212 LPSTR pFrom = (LPSTR)lpFileOp->pFrom; 196 213 LPSTR pTo = (LPSTR)lpFileOp->pTo; 214 LPSTR pTempTo; 197 215 #ifdef __WIN32OS2__ 198 216 DWORD FromAttr; 199 217 DWORD ToAttr; 200 218 LPSTR pTempFrom = NULL; 201 LPSTR pTempTo;202 219 LPSTR pFromFile; 203 220 LPSTR pToFile; … … 205 222 FILEOP_FLAGS OFl = ((FILEOP_FLAGS)lpFileOp->fFlags & 0x7ff); 206 223 BOOL Multi = TRUE; 207 BOOL withFileName ;224 BOOL withFileName = TRUE; 208 225 BOOL not_overwrite; 209 226 BOOL ToSingle; … … 228 245 level++; 229 246 nlpFileOp.wFunc = (level<<4) + (lpFileOp->wFunc & 15); 230 #else 231 LPSTR pTempTo; 247 if (level == 1) 232 248 #endif 249 TRACE("flags (0x%04x) : %s%s%s%s%s%s%s%s%s%s%s%s \n", lpFileOp->fFlags, 250 lpFileOp->fFlags & FOF_MULTIDESTFILES ? "FOF_MULTIDESTFILES " : "", 251 lpFileOp->fFlags & FOF_CONFIRMMOUSE ? "FOF_CONFIRMMOUSE " : "", 252 lpFileOp->fFlags & FOF_SILENT ? "FOF_SILENT " : "", 253 lpFileOp->fFlags & FOF_RENAMEONCOLLISION ? "FOF_RENAMEONCOLLISION " : "", 254 lpFileOp->fFlags & FOF_NOCONFIRMATION ? "FOF_NOCONFIRMATION " : "", 255 lpFileOp->fFlags & FOF_WANTMAPPINGHANDLE ? "FOF_WANTMAPPINGHANDLE " : "", 256 lpFileOp->fFlags & FOF_ALLOWUNDO ? "FOF_ALLOWUNDO " : "", 257 lpFileOp->fFlags & FOF_FILESONLY ? "FOF_FILESONLY " : "", 258 lpFileOp->fFlags & FOF_SIMPLEPROGRESS ? "FOF_SIMPLEPROGRESS " : "", 259 lpFileOp->fFlags & FOF_NOCONFIRMMKDIR ? "FOF_NOCONFIRMMKDIR " : "", 260 lpFileOp->fFlags & FOF_NOERRORUI ? "FOF_NOERRORUI " : "", 261 lpFileOp->fFlags & 0xf800 ? "MORE-UNKNOWN-Flags" : ""); 233 262 #ifdef __WIN32OS2__ 234 263 switch(lpFileOp->wFunc & 15) { … … 237 266 #endif 238 267 case FO_COPY: 268 /* establish when pTo is interpreted as the name of the destination file 269 * or the directory where the Fromfile should be copied to. 270 * This depends on: 271 * (1) pTo points to the name of an existing directory; 272 * (2) the flag FOF_MULTIDESTFILES is present; 273 * (3) whether pFrom point to multiple filenames. 274 * 275 * Some experiments: 276 * 277 * destisdir 1 1 1 1 0 0 0 0 278 * FOF_MULTIDESTFILES 1 1 0 0 1 1 0 0 279 * multiple from filenames 1 0 1 0 1 0 1 0 280 * --------------- 281 * copy files to dir 1 0 1 1 0 0 1 0 282 * create dir 0 0 0 0 0 0 1 0 283 */ 239 284 #ifdef __WIN32OS2__ 240 285 pTempFrom = HeapAlloc(GetProcessHeap(), 0, 3 * MAX_PATH+6); … … 743 788 744 789 790
Note:
See TracChangeset
for help on using the changeset viewer.