mirror of
https://github.com/Xevion/easy7zip.git
synced 2026-02-01 02:24:22 -06:00
4.45 beta
This commit is contained in:
committed by
Kornel Lesiński
parent
d9666cf046
commit
a145bfc7cf
@@ -1,13 +1,17 @@
|
||||
// FAM.cpp
|
||||
// FM.cpp
|
||||
|
||||
#include "StdAfx.h"
|
||||
|
||||
#include "resource.h"
|
||||
#include "Panel.h"
|
||||
|
||||
extern "C"
|
||||
{
|
||||
#include "../../../C/Alloc.h"
|
||||
}
|
||||
|
||||
#include "Common/Defs.h"
|
||||
#include "Common/StringConvert.h"
|
||||
#include "Common/Alloc.h"
|
||||
// #include "Common/CommandLineParser.h"
|
||||
|
||||
#include "Windows/Control/Toolbar.h"
|
||||
@@ -33,8 +37,6 @@ using namespace NFile;
|
||||
using namespace NFind;
|
||||
// using namespace NCommandLineParser;
|
||||
|
||||
// NWindows::NCOM::CComInitializer aComInitializer;
|
||||
|
||||
#define MAX_LOADSTRING 100
|
||||
|
||||
#define MENU_HEIGHT 26
|
||||
@@ -602,8 +604,17 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||
g_App.CreateDragTarget();
|
||||
bool archiveIsOpened;
|
||||
bool encrypted;
|
||||
bool needOpenFile = false;
|
||||
if (!g_MainPath.IsEmpty() /* && g_OpenArchive */)
|
||||
{
|
||||
NFile::NFind::CFileInfoW fileInfo;
|
||||
if (NFile::NFind::FindFile(g_MainPath, fileInfo))
|
||||
if (!fileInfo.IsDirectory())
|
||||
needOpenFile = true;
|
||||
}
|
||||
g_App.Create(hWnd, g_MainPath, xSizes, archiveIsOpened, encrypted);
|
||||
if (!archiveIsOpened && g_OpenArchive)
|
||||
|
||||
if (needOpenFile && !archiveIsOpened)
|
||||
{
|
||||
UString message;
|
||||
if (encrypted)
|
||||
|
||||
Reference in New Issue
Block a user