From c8861607f75b9552a7695bf5b11f163f4b1ec527 Mon Sep 17 00:00:00 2001 From: Philipp Lohmann Date: Thu, 10 Jan 2008 18:42:35 +0000 Subject: #i81093# make windows version work on 4nt shell --- icc/source/create_sRGB_profile/create_sRGB_profile.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'icc/source') diff --git a/icc/source/create_sRGB_profile/create_sRGB_profile.cpp b/icc/source/create_sRGB_profile/create_sRGB_profile.cpp index 61ef0c617a7e..5e4e93da3400 100644 --- a/icc/source/create_sRGB_profile/create_sRGB_profile.cpp +++ b/icc/source/create_sRGB_profile/create_sRGB_profile.cpp @@ -4,9 +4,9 @@ * * $RCSfile: create_sRGB_profile.cpp,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: pl $ $Date: 2008-01-10 16:17:14 $ + * last change: $Author: pl $ $Date: 2008-01-10 19:41:56 $ Derived by beppec56@openoffice.org from various examples in SampleICC library, the original copyright retained. @@ -481,7 +481,7 @@ int main(int argc, char* argv[]) // Out it goes CIccFileIO out; - out.Open(out_file_pathname, "w+"); + out.Open(out_file_pathname, "wb+"); profile.Write(&out); out.Close(); @@ -511,7 +511,7 @@ int main(int argc, char* argv[]) int achar, number = 1; - infile = fopen(out_file_pathname,"r"); + infile = fopen(out_file_pathname,"rb"); fseek(infile,0,SEEK_END); long int thesize= ftell(infile); -- cgit