Skip to content

Commit 1e586a6

Browse files
author
henrypp
committed
cosmetics
1 parent 2fbc437 commit 1e586a6

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

src/main.cpp

+4-6
Original file line numberDiff line numberDiff line change
@@ -666,7 +666,6 @@ bool _app_unpack_7zip (HWND hwnd, BROWSER_INFORMATION* pbi, LPCWSTR* pnames, siz
666666

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

671670
if (isDir)
672671
{
@@ -699,7 +698,7 @@ bool _app_unpack_7zip (HWND hwnd, BROWSER_INFORMATION* pbi, LPCWSTR* pnames, siz
699698
}
700699
else
701700
{
702-
res=OutFile_OpenW (&outFile, destPath);
701+
res = OutFile_OpenW (&outFile, destPath);
703702

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

880879
SetFileAttributes (fpath, ze.attr);
880+
881+
if (!result)
882+
result = true;
881883
}
882884
else
883885
{
@@ -886,12 +888,9 @@ bool _app_unpack_zip (HWND hwnd, BROWSER_INFORMATION* pbi, LPCWSTR* pnames, size
886888
}
887889
}
888890

889-
result = true;
890-
891891
CloseZip (hzip);
892892
}
893893

894-
895894
return result;
896895
}
897896

@@ -1040,7 +1039,6 @@ UINT WINAPI _app_thread_check (LPVOID lparam)
10401039
if (_app_installupdate (hwnd, pbi, &is_haveerror))
10411040
{
10421041
app.ConfigSet (L"ChromiumLastCheck", _r_unixtime_now ());
1043-
pbi->is_isinstalled = true;
10441042
}
10451043
}
10461044
else

src/main.hpp

+4-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ struct BROWSER_INFORMATION
4343
WCHAR name_full[64] = {0};
4444
WCHAR type[64] = {0};
4545

46-
WCHAR cache_path[512] = {0};
47-
WCHAR binary_dir[512] = {0};
48-
WCHAR binary_path[512] = {0};
46+
WCHAR cache_path[MAX_PATH] = {0};
47+
WCHAR binary_dir[MAX_PATH] = {0};
48+
WCHAR binary_path[MAX_PATH] = {0};
49+
4950
WCHAR download_url[512] = {0};
5051

5152
WCHAR urls[1024] = {0};

0 commit comments

Comments
 (0)