[ros-diffs] [dreimer] 29963: 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!

dreimer at svn.reactos.org dreimer at svn.reactos.org
Mon Oct 29 22:33:51 CET 2007


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/options.c?rev=29963&r1=29962&r2=29963&view=diff
==============================================================================
--- 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);




More information about the Ros-diffs mailing list