Author: cgutman
Date: Sat Mar 3 23:04:10 2012
New Revision: 55979
URL:
http://svn.reactos.org/svn/reactos?rev=55979&view=rev
Log:
[USETUP]
- Turn off debugging
- Fix the checkpoint print so it doesn't happen anytime a usetup progress bar reaches
50%
Modified:
trunk/reactos/base/setup/usetup/filequeue.c
trunk/reactos/base/setup/usetup/interface/usetup.c
trunk/reactos/base/setup/usetup/progress.c
Modified: trunk/reactos/base/setup/usetup/filequeue.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/filequeu…
==============================================================================
--- trunk/reactos/base/setup/usetup/filequeue.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/filequeue.c [iso-8859-1] Sat Mar 3 23:04:10 2012
@@ -382,7 +382,7 @@
}
/* FIXME: Do it! */
- DPRINT1("'%S' ==> '%S'\n",
+ DPRINT("'%S' ==> '%S'\n",
FileSrcPath,
FileDstPath);
Modified: trunk/reactos/base/setup/usetup/interface/usetup.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/interfac…
==============================================================================
--- trunk/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/interface/usetup.c [iso-8859-1] Sat Mar 3 23:04:10
2012
@@ -3098,6 +3098,11 @@
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;
Modified: trunk/reactos/base/setup/usetup/progress.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/setup/usetup/progress…
==============================================================================
--- trunk/reactos/base/setup/usetup/progress.c [iso-8859-1] (original)
+++ trunk/reactos/base/setup/usetup/progress.c [iso-8859-1] Sat Mar 3 23:04:10 2012
@@ -317,14 +317,6 @@
{
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;