From: <ped...@us...> - 2007-09-02 23:23:31
|
Revision: 1056 http://cegcc.svn.sourceforge.net/cegcc/?rev=1056&view=rev Author: pedroalves Date: 2007-09-02 16:23:28 -0700 (Sun, 02 Sep 2007) Log Message: ----------- * mingwex/wince/stat.c (_stat): Set last error to ERROR_FILE_NOT_FOUND when file is not found. Fix indenting. Modified Paths: -------------- trunk/cegcc/src/mingw/ChangeLog.mingw32ce trunk/cegcc/src/mingw/mingwex/wince/stat.c Modified: trunk/cegcc/src/mingw/ChangeLog.mingw32ce =================================================================== --- trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-09-02 23:20:11 UTC (rev 1055) +++ trunk/cegcc/src/mingw/ChangeLog.mingw32ce 2007-09-02 23:23:28 UTC (rev 1056) @@ -1,5 +1,10 @@ 2007-09-03 Pedro Alves <ped...@po...> + * mingwex/wince/stat.c (_stat): Set last error to + ERROR_FILE_NOT_FOUND when file is not found. Fix indenting. + +2007-09-03 Pedro Alves <ped...@po...> + * include/stdio.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Define as fileno(stdin), fileno(stdout) and fileno(stderr). Modified: trunk/cegcc/src/mingw/mingwex/wince/stat.c =================================================================== --- trunk/cegcc/src/mingw/mingwex/wince/stat.c 2007-09-02 23:20:11 UTC (rev 1055) +++ trunk/cegcc/src/mingw/mingwex/wince/stat.c 2007-09-02 23:23:28 UTC (rev 1056) @@ -123,8 +123,8 @@ { DWORD dwError = GetLastError (); if(dwError == ERROR_NO_MORE_FILES) - /* Convert error to something more sensible. */ - SetLastError (ERROR_FILE_NOT_FOUND); + /* Convert error to something more sensible. */ + SetLastError (ERROR_FILE_NOT_FOUND); return -1; } @@ -132,7 +132,7 @@ len = strlen (path); exec = (len >= 4 - && strcasecmp (path + len - 4, ".exe") == 0); + && strcasecmp (path + len - 4, ".exe") == 0); ret = __stat_by_file_info (&sfi, st, exec); FindClose (h); return ret; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |