Changeset 749
- Timestamp:
 - Aug 2, 2007, 6:47:07 PM (18 years ago)
 - File:
 - 
      
- 1 edited
 
- 
          
  trunk/dll/droplist.c (modified) (10 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
trunk/dll/droplist.c
r730 r749 7 7 8 8 Copyright (c) 1993-98 M. Kimes 9 Copyright (c) 2003, 200 6Steven H.Levine9 Copyright (c) 2003, 2007 Steven H.Levine 10 10 11 11 22 Nov 02 SHL Baseline … … 19 19 21 Apr 07 SHL Add debug code to track down reason for PMERR_SOURCE_SAME_AS_TARGET 20 20 10 Jun 07 GKY Add CheckPmDrgLimit including IsFm2Window as part of work around PM drag limit 21 02 Aug 07 SHL Lock in DoFileDrop sanity checks 21 22 22 23 ***********************************************************************/ … … 50 51 if (!DrgAccessDraginfo(pDInfo)) { 51 52 Win_Error(HWND_DESKTOP, HWND_DESKTOP, pszSrcFile, __LINE__, 52 "DrgAccessDraginfo");53 return FALSE;53 "DrgAccessDraginfo"); 54 return FALSE; 54 55 } 55 56 else if (IsFm2Window(pDInfo->hwndSource, FALSE)) { 56 57 DIRCNRDATA *dcdsrc = INSTDATA(pDInfo->hwndSource); 57 58 if (dcdsrc->ulItemsToUnHilite) { 58 saymsg(MB_OK | MB_INFORMATION,59 HWND_DESKTOP,60 GetPString(IDS_ERRORTEXT),61 GetPString(IDS_EXCEEDPMDRGLMT));59 saymsg(MB_OK | MB_INFORMATION, 60 HWND_DESKTOP, 61 GetPString(IDS_ERRORTEXT), 62 GetPString(IDS_EXCEEDPMDRGLMT)); 62 63 } 63 64 DrgFreeDraginfo(pDInfo); 64 }65 return TRUE;65 } 66 return TRUE; 66 67 } 67 68 … … 278 279 MPARAM mp1, MPARAM mp2) 279 280 { 280 281 281 /* builds a list from the dropped files */ 282 282 … … 287 287 CHAR szFrom[CCHMAXPATH + 1], szArc[CCHMAXPATH + 1]; 288 288 CHAR **files = NULL; 289 INT numfiles = 0, numalloc = 0;289 UINT numfiles = 0, numalloc = 0; 290 290 ULONG curitem, numitems, *cbFile = NULL, *ulitemID = NULL; 291 291 LISTINFO *li = NULL; 292 292 ARC_TYPE *arcinfo = NULL; 293 293 USHORT Operation; 294 295 UINT numok = 0; // 02 Aug 07 SHL fixme to be gone someday 296 UINT numfail = 0; 294 297 295 298 *szArc = 0; … … 361 364 MPFROMLONG(pDItem->ulItemID), 362 365 MPFROMLONG(DMFL_TARGETFAIL)); 366 numfail++; 363 367 continue; 364 368 } … … 377 381 MPFROMLONG(pDItem->ulItemID), 378 382 MPFROMLONG(DMFL_TARGETFAIL)); 383 numfail++; 379 384 continue; 380 385 } … … 405 410 MPFROMLONG(pDItem->ulItemID), 406 411 MPFROMLONG(DMFL_TARGETFAIL)); 412 numfail++; 407 413 continue; 408 414 } … … 448 454 MPFROMLONG(pDItem->ulItemID), 449 455 MPFROMLONG(DMFL_TARGETSUCCESSFUL)); 450 } 451 else 456 numok++; 457 } 458 else { 452 459 DrgSendTransferMsg(pDItem->hwndItem, 453 460 DM_ENDCONVERSATION, 454 461 MPFROMLONG(pDItem->ulItemID), 455 462 MPFROMLONG(DMFL_TARGETFAIL)); 463 numfail++; 464 } 456 465 } // for curitem 457 466 … … 493 502 } 494 503 495 // fixme to know why PM thinks drop not done496 // this will avoid DrgFreeDraginfo complaints from FreeDragInfoData497 DbgMsg(pszSrcFile, __LINE__, "calling FreeDragInfoData");498 504 FreeDragInfoData(hwndCnr, pDInfo); 499 505 506 // 02 Aug 07 SHL fixme to be gone someday or use Runtime_Error is really an error 507 if (numfail || numok == 0) 508 DbgMsg(pszSrcFile, __LINE__, "calling FreeDragInfoData with %u ok, %u failed", numok, numfail); 509 500 510 return li; 501 511 }  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.
  