Author: pschweitzer
Date: Sun Nov 18 20:49:19 2007
New Revision: 30554
URL:
http://svn.reactos.org/svn/reactos?rev=30554&view=rev
Log:
Log directory is created if it doesn't exists.
Modified:
trunk/tools/RosBE/RosBE-Windows/Tools/config/options.c
Modified: trunk/tools/RosBE/RosBE-Windows/Tools/config/options.c
URL:
http://svn.reactos.org/svn/reactos/trunk/tools/RosBE/RosBE-Windows/Tools/co…
==============================================================================
--- trunk/tools/RosBE/RosBE-Windows/Tools/config/options.c (original)
+++ trunk/tools/RosBE/RosBE-Windows/Tools/config/options.c Sun Nov 18 20:49:19 2007
@@ -43,9 +43,12 @@
if (!SetCurrentDirectoryW(logdir))
{
SetCurrentDirectoryW(checklog);
- if (LoadStringW(hInstance, MSG_DIREFAILED, msgerror, 256))
- MessageBoxW(NULL, msgerror, NULL, MB_ICONERROR);
- return FALSE;
+ if (CreateDirectoryW(logdir, NULL) == 0)
+ {
+ if (LoadStringW(hInstance, MSG_DIREFAILED, msgerror, 256))
+ MessageBoxW(NULL, msgerror, NULL, MB_ICONERROR);
+ return FALSE;
+ }
}
}
}