svnno****@sourc*****
svnno****@sourc*****
2009年 6月 29日 (月) 18:50:34 JST
Revision: 3542 http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=3542 Author: doda Date: 2009-06-29 18:50:34 +0900 (Mon, 29 Jun 2009) Log Message: ----------- シリアル接続をクローズ後にウィンドウタイトルを空にしてしまうのを修正。 Modified Paths: -------------- trunk/TTXSamples/TTXttyrec/TTXttyplay.c -------------- next part -------------- Modified: trunk/TTXSamples/TTXttyrec/TTXttyplay.c =================================================================== --- trunk/TTXSamples/TTXttyrec/TTXttyplay.c 2009-06-27 07:50:29 UTC (rev 3541) +++ trunk/TTXSamples/TTXttyrec/TTXttyplay.c 2009-06-29 09:50:34 UTC (rev 3542) @@ -168,6 +168,7 @@ else if (rsize != sizeof(b)) { MessageBox(pvar->cv->HWin, "rsize != sizeof(b), Disabled.", "TTXttyplay", MB_ICONEXCLAMATION); pvar->enable = FALSE; + RestoreOLDTitle(); return FALSE; } h.tv.tv_sec = b[0]; @@ -311,8 +312,10 @@ if (pvar->origPWriteFile) { *hooks->PWriteFile = pvar->origPWriteFile; } - RestoreOLDTitle(); - pvar->enable = FALSE; + if (pvar->enable) { + RestoreOLDTitle(); + pvar->enable = FALSE; + } } static void PASCAL FAR TTXModifyMenu(HMENU menu) {