[USETUP]
authorCameron Gutman <aicommander@gmail.com>
Sat, 3 Mar 2012 23:04:10 +0000 (23:04 +0000)
committerCameron Gutman <aicommander@gmail.com>
Sat, 3 Mar 2012 23:04:10 +0000 (23:04 +0000)
- Turn off debugging
- Fix the checkpoint print so it doesn't happen anytime a usetup progress bar reaches 50%

svn path=/trunk/; revision=55979

reactos/base/setup/usetup/filequeue.c
reactos/base/setup/usetup/interface/usetup.c
reactos/base/setup/usetup/progress.c

index 760cc15..ce0b144 100644 (file)
@@ -382,7 +382,7 @@ SetupCommitFileQueueW(HWND Owner,
       }
 
     /* FIXME: Do it! */
-    DPRINT1("'%S' ==> '%S'\n",
+    DPRINT("'%S' ==> '%S'\n",
           FileSrcPath,
           FileDstPath);
 
index c7b99d0..f15efdf 100644 (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;
index bd6d490..5543381 100644 (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;