mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-07 05:15:01 -06:00
16.01
This commit is contained in:
committed by
Kornel Lesiński
parent
66ac98bb02
commit
bec3b479dc
@@ -844,17 +844,17 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
|
||||
if (needOpenFile && !archiveIsOpened || res != S_OK)
|
||||
{
|
||||
UString message = L"Error";
|
||||
UString m = L"Error";
|
||||
if (res == S_FALSE || res == S_OK)
|
||||
{
|
||||
message = MyFormatNew(encrypted ?
|
||||
m = MyFormatNew(encrypted ?
|
||||
IDS_CANT_OPEN_ENCRYPTED_ARCHIVE :
|
||||
IDS_CANT_OPEN_ARCHIVE,
|
||||
fullPath);
|
||||
}
|
||||
else if (res != S_OK)
|
||||
message = HResultToMessage(res);
|
||||
ErrorMessage(message);
|
||||
m = HResultToMessage(res);
|
||||
ErrorMessage(m);
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
||||
@@ -504,10 +504,10 @@ bool CPanel::OnComboBoxCommand(UINT code, LPARAM /* param */, LRESULT &result)
|
||||
{
|
||||
FString s = driveStrings[i];
|
||||
ComboBoxPaths.Add(fs2us(s));
|
||||
int iconIndex = GetRealIconIndex(s, 0);
|
||||
int iconIndex2 = GetRealIconIndex(s, 0);
|
||||
if (s.Len() > 0 && s.Back() == FCHAR_PATH_SEPARATOR)
|
||||
s.DeleteBack();
|
||||
AddComboBoxItem(fs2us(s), iconIndex, 1, false);
|
||||
AddComboBoxItem(fs2us(s), iconIndex2, 1, false);
|
||||
}
|
||||
|
||||
name = RootFolder_GetName_Network(iconIndex);
|
||||
|
||||
@@ -189,9 +189,9 @@ void CPanel::Properties()
|
||||
}
|
||||
else
|
||||
{
|
||||
for (UInt32 i = 0; i < dataSize; i++)
|
||||
for (UInt32 k = 0; k < dataSize; k++)
|
||||
{
|
||||
Byte b = ((const Byte *)data)[i];
|
||||
Byte b = ((const Byte *)data)[k];
|
||||
s += GetHex((Byte)((b >> 4) & 0xF));
|
||||
s += GetHex((Byte)(b & 0xF));
|
||||
}
|
||||
@@ -245,8 +245,6 @@ void CPanel::Properties()
|
||||
}
|
||||
}
|
||||
|
||||
CMyComPtr<IGetFolderArcProps> getFolderArcProps;
|
||||
_folder.QueryInterface(IID_IGetFolderArcProps, &getFolderArcProps);
|
||||
if (getFolderArcProps)
|
||||
{
|
||||
CMyComPtr<IFolderArcProps> getProps;
|
||||
|
||||
@@ -939,8 +939,8 @@ INT_PTR CProgressDialog::Create(const UString &title, NWindows::CThread &thread,
|
||||
CWaitCursor waitCursor;
|
||||
HANDLE h[] = { thread, _createDialogEvent };
|
||||
|
||||
WRes res = WaitForMultipleObjects(ARRAY_SIZE(h), h, FALSE, kCreateDelay);
|
||||
if (res == WAIT_OBJECT_0 && !Sync.ThereIsMessage())
|
||||
WRes res2 = WaitForMultipleObjects(ARRAY_SIZE(h), h, FALSE, kCreateDelay);
|
||||
if (res2 == WAIT_OBJECT_0 && !Sync.ThereIsMessage())
|
||||
return 0;
|
||||
}
|
||||
_title = title;
|
||||
|
||||
Reference in New Issue
Block a user