Cosmetics

This commit is contained in:
Birunthan Mohanathas 2013-06-12 23:08:45 +03:00
parent cd4bf6d17a
commit fed4b080b0
2 changed files with 3 additions and 4 deletions

View File

@ -80,7 +80,7 @@ echo * Updated Version.h
:: Set vcbuild environment variables and begin build
echo * Starting build for %VERSION%
for /F "tokens=1-4 delims=:.," %%a in ("%TIME%") do (
set /A "BUILD_BEGIN_TIMESTAMP=(((%%a * 60) + 1%%b %% 100)* 60+1%%c %% 100) * 100 + 1%%d %% 100"
set /A "BUILD_BEGIN_TIMESTAMP=(((%%a * 60) + 1%%b %% 100)* 60 + 1%%c %% 100) * 100 + 1%%d %% 100"
)
:: Build Library
@ -158,7 +158,7 @@ if not "%CERTFILE%" == "" (
if exist "BuildLog.txt" del "BuildLog.txt"
for /F "tokens=1-4 delims=:.," %%a in ("%TIME%") do (
set /A "BUILD_END_TIMESTAMP=(((%%a * 60) + 1%%b %% 100)* 60+1%%c %% 100) * 100 + 1%%d %% 100"
set /A "BUILD_END_TIMESTAMP=(((%%a * 60) + 1%%b %% 100)* 60 + %%c %% 100) * 100 + 1%%d %% 100"
)
set /A "BUILD_ELAPSED_TIME=(%BUILD_END_TIMESTAMP% - %BUILD_BEGIN_TIMESTAMP%) / 100"
echo * Build complete. Elapsed time: %BUILD_ELAPSED_TIME% sec

View File

@ -102,7 +102,7 @@ void ExpandEnvironmentVariables(std::wstring& path)
DWORD bufSize = 4096;
WCHAR* buffer = new WCHAR[bufSize];
// %APPDATA% is a special casem
// %APPDATA% is a special case.
pos = path.find(L"%APPDATA%", pos);
if (pos != std::wstring::npos)
{
@ -146,5 +146,4 @@ void ExpandEnvironmentVariables(std::wstring& path)
}
}
} // namespace PathUtil