Author: peterw
Date: Mon Dec 3 22:37:20 2007
New Revision: 30987
URL:
http://svn.reactos.org/svn/reactos?rev=30987&view=rev
Log:
- Little cleanup in tee and force installation to Program Files instead of Program Files
(x86) on x64 systems to avoid yet more problems with ().
Modified:
trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
trunk/tools/RosBE/RosBE-Windows/Tools/tee.c
Modified: trunk/tools/RosBE/RosBE-Windows/RosBE.nsi
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/RosBE.ns…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/RosBE.nsi (original)
+++ trunk/tools/RosBE/RosBE-Windows/RosBE.nsi Mon Dec 3 22:37:20 2007
@@ -10,7 +10,7 @@
;;
Name "${PRODUCT_NAME} ${PRODUCT_VERSION}"
OutFile "RosBE-${PRODUCT_VERSION}.exe"
-InstallDir "$PROGRAMFILES\RosBE"
+InstallDir "$PROGRAMFILES64\RosBE"
InstallDirRegKey HKCU "${PRODUCT_DIR_REGKEY}" ""
ShowInstDetails show
ShowUnInstDetails show
Modified: trunk/tools/RosBE/RosBE-Windows/Tools/tee.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Tools/te…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Tools/tee.c (original)
+++ trunk/tools/RosBE/RosBE-Windows/Tools/tee.c Mon Dec 3 22:37:20 2007
@@ -12,7 +12,7 @@
int main(int argc, char* argv[])
{
- unsigned char charbuff;
+ int charbuff;
FILE *fp;
if (argc > 2)
@@ -37,14 +37,10 @@
fprintf(stderr, "%s: Error cannot create/open file
\"%s\".\n", argv[0], argv[1]);
return -1;
}
- while (!feof(stdin))
+ while ((charbuff = fgetc(stdin)) != EOF)
{
- charbuff = fgetc(stdin);
- if (!feof(stdin))
- {
- fputc(charbuff, stdout);
- fputc(charbuff, fp);
- }
+ fputc(charbuff, stdout);
+ fputc(charbuff, fp);
}
if (fclose(fp))
{