|
|
@@ -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);
|