Author: dreimer
Date: Tue Oct 30 17:34:27 2007
New Revision: 29978
URL:
http://svn.reactos.org/svn/reactos?rev=29978&view=rev
Log:
Cleanup Code. (Thx to Ged Murphy)
Update Info.txt
Modified:
trunk/tools/RosBE-Windows/Tools/config/options.c
trunk/tools/RosBE-Windows/Tools/info.txt
Modified: trunk/tools/RosBE-Windows/Tools/config/options.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Tools/config/o…
==============================================================================
--- trunk/tools/RosBE-Windows/Tools/config/options.c (original)
+++ trunk/tools/RosBE-Windows/Tools/config/options.c Tue Oct 30 17:34:27 2007
@@ -68,23 +68,18 @@
if (writelog)
{
- GetCurrentDirectory(MAX_PATH, checklog);
- if (SetCurrentDirectory(logdir))
- {
- SetCurrentDirectory(checklog);
- }
- else
- {
- wcscpy(checklog, logdir);
- if (wcslen(checklog) < 1)
- {
- SetCurrentDirectory(checklog);
- }
- else if (!CreateDirectory(logdir, NULL))
- {
- LoadString(hInstance, MSG_DIREFAILED, msgerror, 256);
- MessageBox(NULL, msgerror, NULL, MB_ICONERROR);
- return FALSE;
+ if (logdir[0] != 0)
+ {
+ DWORD ret = GetCurrentDirectoryW(MAX_PATH, checklog);
+ if (ret != 0 && ret < MAX_PATH)
+ {
+ if (!SetCurrentDirectoryW(logdir))
+ {
+ SetCurrentDirectoryW(checklog);
+ if (LoadStringW(hInstance, MSG_DIREFAILED, msgerror, 256))
+ MessageBoxW(NULL, msgerror, NULL, MB_ICONERROR);
+ return FALSE;
+ }
}
}
}
Modified: trunk/tools/RosBE-Windows/Tools/info.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE-Windows/Tools/info.txt…
==============================================================================
--- trunk/tools/RosBE-Windows/Tools/info.txt (original)
+++ trunk/tools/RosBE-Windows/Tools/info.txt Tue Oct 30 17:34:27 2007
@@ -3,7 +3,6 @@
sed:
http://gnuwin32.sourceforge.net/packages/sed.htm
grep:
http://gnuwin32.sourceforge.net/packages/grep.htm
svn:
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
-svnversion:
http://subversion.tigris.org/servlets/ProjectDocumentList?folderID=91
Additional Libs needed:
LibIntl:
http://gnuwin32.sourceforge.net/packages/libintl.htm