- Turn off debugging
- Fix the checkpoint print so it doesn't happen anytime a usetup progress bar reaches 50%

svn path=/trunk/; revision=55979
This commit is contained in:
Cameron Gutman 2012-03-03 23:04:10 +00:00
parent 6b93fbc2de
commit 2b71ec3e05
3 changed files with 6 additions and 9 deletions

View file

@ -382,7 +382,7 @@ SetupCommitFileQueueW(HWND Owner,
}
/* FIXME: Do it! */
DPRINT1("'%S' ==> '%S'\n",
DPRINT("'%S' ==> '%S'\n",
FileSrcPath,
FileDstPath);

View file

@ -3098,6 +3098,11 @@ FileCopyCallback(PVOID Context,
case SPFILENOTIFY_ENDCOPY:
CopyContext->CompletedOperations++;
/* SYSREG checkpoint */
if (CopyContext->TotalOperations >> 1 == CopyContext->CompletedOperations)
DPRINT1("CHECKPOINT:HALF_COPIED\n");
ProgressNextStep(CopyContext->ProgressBar);
SetupUpdateMemoryInfo(CopyContext, FALSE);
break;

View file

@ -317,14 +317,6 @@ ProgressSetStep (PPROGRESSBAR Bar,
{
Bar->Percent = NewPercent;
/* DO NOT REMOVE THOSE LINES
* This might be needed by sysreg
*/
if (NewPercent == 50)
{
DPRINT1("CHECKPOINT:HALF_COPIED\n");
}
sprintf(TextBuffer, "%-3lu%%", Bar->Percent);
coPos.X = Bar->Left + (Bar->Width - 2) / 2;