mirror of
https://github.com/reactos/RosBE.git
synced 2024-11-24 03:49:45 +00:00
Cleanup Code. (Thx to Ged Murphy)
Update Info.txt svn path=/trunk/tools/RosBE-Windows/; revision=474
This commit is contained in:
parent
ecf182a9d7
commit
e4d51ba47f
@ -68,23 +68,18 @@ WriteSettings(HWND hwnd)
|
||||
|
||||
if (writelog)
|
||||
{
|
||||
GetCurrentDirectory(MAX_PATH, checklog);
|
||||
if (SetCurrentDirectory(logdir))
|
||||
if (logdir[0] != 0)
|
||||
{
|
||||
SetCurrentDirectory(checklog);
|
||||
}
|
||||
else
|
||||
{
|
||||
wcscpy(checklog, logdir);
|
||||
if (wcslen(checklog) < 1)
|
||||
DWORD ret = GetCurrentDirectoryW(MAX_PATH, checklog);
|
||||
if (ret != 0 && ret < MAX_PATH)
|
||||
{
|
||||
SetCurrentDirectory(checklog);
|
||||
}
|
||||
else if (!CreateDirectory(logdir, NULL))
|
||||
{
|
||||
LoadString(hInstance, MSG_DIREFAILED, msgerror, 256);
|
||||
MessageBox(NULL, msgerror, NULL, MB_ICONERROR);
|
||||
return FALSE;
|
||||
if (!SetCurrentDirectoryW(logdir))
|
||||
{
|
||||
SetCurrentDirectoryW(checklog);
|
||||
if (LoadStringW(hInstance, MSG_DIREFAILED, msgerror, 256))
|
||||
MessageBoxW(NULL, msgerror, NULL, MB_ICONERROR);
|
||||
return FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,6 @@ cut: http://www.ltr-data.se/files/cut.zip
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user