From 0200a36062386b937567265e3ea01f93eaa8f1f5 Mon Sep 17 00:00:00 2001
From: QuakeGod <quakegod@sina.com>
Date: 星期五, 20 十月 2023 22:10:19 +0800
Subject: [PATCH] dev1

---
 MTerm2/MainFrm.cpp |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/MTerm2/MainFrm.cpp b/MTerm2/MainFrm.cpp
index 9db7d0e..404559b 100644
--- a/MTerm2/MainFrm.cpp
+++ b/MTerm2/MainFrm.cpp
@@ -553,7 +553,7 @@
 
 	CMDIChildWnd  *pChild = (CMDIChildWnd   *)GetActiveFrame();
 	CView   *p1 = (CView*)pChild->GetActiveView();
-
+	if (p1 == NULL) return;
 	CMTerm2View * p2 = (CMTerm2View *)p1;
 	m_wndDlgBar_InputShow.SetDisplay(0x00140000);
 
@@ -593,10 +593,10 @@
 			strName = "TMR   ";
 		case OP_TML:
 			strName = "TML   ";
-		default:
+		default:
 			break;
 		}
-	default:
+	default:
 		break;		
 	}
 

--
Gitblit v1.9.1