Author: dreimer
Date: Tue Oct 30 00:33:50 2007
New Revision: 29963
URL:
http://svn.reactos.org/svn/reactos?rev=29963&view=rev
Log:
My try to make RosBE Configurator using Default LogDir on a Empty TextBox and the Path in
the Box if not empty. DANGER: N00b Code. Plz Check!
Modified:
trunk/tools/RosBE-Windows/Tools/config/options.c
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 00:33:50 2007
@@ -75,7 +75,12 @@
}
else
{
- if (!CreateDirectory(logdir, NULL))
+ 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);