OSDN Git Service
(root)
/
winmerge-jp
/
winmerge-jp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
090cfec
)
Merge.cpp: Use ATTACH_PARENT_PROCESS instead of -1
author
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sat, 2 Mar 2019 23:12:02 +0000
(08:12 +0900)
committer
Takashi Sawanaka
<sdottaka@users.sourceforge.net>
Sat, 2 Mar 2019 23:12:02 +0000
(08:12 +0900)
Src/Merge.cpp
patch
|
blob
|
history
diff --git
a/Src/Merge.cpp
b/Src/Merge.cpp
index
1f39f2b
..
663bf8c
100644
(file)
--- a/
Src/Merge.cpp
+++ b/
Src/Merge.cpp
@@
-206,7
+206,7
@@
BOOL CMergeApp::InitInstance()
ApplyCommandLineConfigOptions(cmdInfo);
if (cmdInfo.m_sErrorMessages.size() > 0)
{
- if (AttachConsole(
static_cast<DWORD>(-1)
))
+ if (AttachConsole(
ATTACH_PARENT_PROCESS
))
{
DWORD dwWritten;
for (auto& msg : cmdInfo.m_sErrorMessages)
@@
-496,7
+496,7
@@
int CMergeApp::DoMessageBox(LPCTSTR lpszPrompt, UINT nType, UINT nIDPrompt)
if (m_bNonInteractive)
{
- if (AttachConsole(
static_cast<DWORD>(-1)
))
+ if (AttachConsole(
ATTACH_PARENT_PROCESS
))
{
DWORD dwWritten;
String line = _T("WinMerge: ") + String(lpszPrompt) + _T("\n");