浏览代码

Z991239-958 #comment fix:修复初始化崩溃的问题

雷志明80280620 5 年之前
父节点
当前提交
b0e4ec50a1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Module/mod_Initializer/mod_Initializer.cpp

+ 2 - 2
Module/mod_Initializer/mod_Initializer.cpp

@@ -1453,12 +1453,12 @@ void CInitializerEntity::EndGetKMCKey(DWORD rc, const char* pszErrMsg) {
 
 		//if (m_hGUIWindow == 0)
 		{
-			if (m_type == 0) {
+			if (m_type == 0 && m_ctx != NULL) {
 				m_ctx->Ans.Errcode = rc;
 				m_ctx->Ans.ErrMsg = pszErrMsg;
 				m_ctx->Answer(Error_Succeed);
 			}
-			else if (m_type == 1) {
+			else if (m_type == 1 && m_ctx_blue != NULL) {
 				m_ctx_blue->Ans.Errcode = rc;
 				m_ctx_blue->Ans.ErrMsg = pszErrMsg;
 				m_ctx_blue->Answer(Error_Succeed);