[ros-diffs] [peterw] 30987: - Little cleanup in tee and force installation to Program Files instead of Program Files (x86) on x64 systems to avoid yet more problems with ().
peterw at svn.reactos.org
peterw at svn.reactos.org
Mon Dec 3 20:37:21 CET 2007
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.nsi?rev=30987&r1=30986&r2=30987&view=diff
==============================================================================
--- 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/tee.c?rev=30987&r1=30986&r2=30987&view=diff
==============================================================================
--- 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))
{
More information about the Ros-diffs
mailing list