Skip to content

Commit

Permalink
cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
henrypp committed Dec 20, 2018
1 parent 2fbc437 commit 1e586a6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
10 changes: 4 additions & 6 deletions src/main.cpp
Expand Up @@ -666,7 +666,6 @@ bool _app_unpack_7zip (HWND hwnd, BROWSER_INFORMATION* pbi, LPCWSTR* pnames, siz

rstring destPath;
destPath.Format (L"%s\\%s", pbi->binary_dir, (LPWSTR)temp + root_dir_name.GetLength ());
destPath.Replace (L"/", L"\\");

if (isDir)
{
Expand Down Expand Up @@ -699,7 +698,7 @@ bool _app_unpack_7zip (HWND hwnd, BROWSER_INFORMATION* pbi, LPCWSTR* pnames, siz
}
else
{
res=OutFile_OpenW (&outFile, destPath);
res = OutFile_OpenW (&outFile, destPath);

if (res != SZ_OK)
{
Expand Down Expand Up @@ -878,6 +877,9 @@ bool _app_unpack_zip (HWND hwnd, BROWSER_INFORMATION* pbi, LPCWSTR* pnames, size
CloseHandle (hfile);

SetFileAttributes (fpath, ze.attr);

if (!result)
result = true;
}
else
{
Expand All @@ -886,12 +888,9 @@ bool _app_unpack_zip (HWND hwnd, BROWSER_INFORMATION* pbi, LPCWSTR* pnames, size
}
}

result = true;

CloseZip (hzip);
}


return result;
}

Expand Down Expand Up @@ -1040,7 +1039,6 @@ UINT WINAPI _app_thread_check (LPVOID lparam)
if (_app_installupdate (hwnd, pbi, &is_haveerror))
{
app.ConfigSet (L"ChromiumLastCheck", _r_unixtime_now ());
pbi->is_isinstalled = true;
}
}
else
Expand Down
7 changes: 4 additions & 3 deletions src/main.hpp
Expand Up @@ -43,9 +43,10 @@ struct BROWSER_INFORMATION
WCHAR name_full[64] = {0};
WCHAR type[64] = {0};

WCHAR cache_path[512] = {0};
WCHAR binary_dir[512] = {0};
WCHAR binary_path[512] = {0};
WCHAR cache_path[MAX_PATH] = {0};
WCHAR binary_dir[MAX_PATH] = {0};
WCHAR binary_path[MAX_PATH] = {0};

WCHAR download_url[512] = {0};

WCHAR urls[1024] = {0};
Expand Down

0 comments on commit 1e586a6

Please sign in to comment.