mirror of
https://github.com/valinet/ExplorerPatcher.git
synced 2024-11-27 17:00:59 +01:00
Fixed #256
This commit is contained in:
parent
e167cfdc91
commit
e1570c84e9
@ -51,8 +51,8 @@ END
|
||||
//
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 22000,282,32,3
|
||||
PRODUCTVERSION 22000,282,32,3
|
||||
FILEVERSION 22000,282,32,4
|
||||
PRODUCTVERSION 22000,282,32,4
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
@ -69,12 +69,12 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "CompanyName", "VALINET Solutions SRL"
|
||||
VALUE "FileDescription", "ExplorerPatcher"
|
||||
VALUE "FileVersion", "22000.282.32.3"
|
||||
VALUE "FileVersion", "22000.282.32.4"
|
||||
VALUE "InternalName", "ExplorerPatcher.dll"
|
||||
VALUE "LegalCopyright", "Copyright (C) 2006-2021 VALINET Solutions SRL. All rights reserved."
|
||||
VALUE "OriginalFilename", "ExplorerPatcher.dll"
|
||||
VALUE "ProductName", "ExplorerPatcher"
|
||||
VALUE "ProductVersion", "22000.282.32.3"
|
||||
VALUE "ProductVersion", "22000.282.32.4"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
@ -25,7 +25,9 @@
|
||||
#ifdef _WIN64
|
||||
#include <valinet/pdb/pdb.h>
|
||||
#endif
|
||||
#if defined(DEBUG) | defined(_DEBUG)
|
||||
#define _LIBVALINET_DEBUG_HOOKING_IATPATCH
|
||||
#endif
|
||||
#include <valinet/hooking/iatpatch.h>
|
||||
|
||||
#define EP_CLSID "{D17F1E1A-5919-4427-8F89-A1A8503CA3EB}"
|
||||
@ -2790,20 +2792,23 @@ void WINAPI LoadSettings(BOOL bIsExplorer)
|
||||
&bSkinMenus,
|
||||
&dwSize
|
||||
);
|
||||
if (bAllocConsole)
|
||||
if (bIsExplorerProcess)
|
||||
{
|
||||
FILE* conout;
|
||||
AllocConsole();
|
||||
freopen_s(
|
||||
&conout,
|
||||
"CONOUT$",
|
||||
"w",
|
||||
stdout
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
FreeConsole();
|
||||
if (bAllocConsole)
|
||||
{
|
||||
FILE* conout;
|
||||
AllocConsole();
|
||||
freopen_s(
|
||||
&conout,
|
||||
"CONOUT$",
|
||||
"w",
|
||||
stdout
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
FreeConsole();
|
||||
}
|
||||
}
|
||||
if (!bIsExplorer)
|
||||
{
|
||||
@ -3950,7 +3955,7 @@ __declspec(dllexport) DWORD WINAPI main(
|
||||
_In_ LPVOID bIsExplorer
|
||||
)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if defined(DEBUG) | defined(_DEBUG)
|
||||
FILE* conout;
|
||||
AllocConsole();
|
||||
freopen_s(
|
||||
|
Loading…
Reference in New Issue
Block a user