Revision: 10000 https://osdn.net/projects/ttssh2/scm/svn/commits/10000 Author: zmatsuo Date: 2022-06-16 22:49:38 +0900 (Thu, 16 Jun 2022) Log Message: ----------- Shell_NotifyIconW() の後に GetLastError() を行わないようにした - MSDNには GetLastError() でエラーを取得できるとの記述はない Modified Paths: -------------- branches/adjust_icon/teraterm/ttpcmn/ttcmn_notify.cpp -------------- next part -------------- Modified: branches/adjust_icon/teraterm/ttpcmn/ttcmn_notify.cpp =================================================================== --- branches/adjust_icon/teraterm/ttpcmn/ttcmn_notify.cpp 2022-06-15 15:36:00 UTC (rev 9999) +++ branches/adjust_icon/teraterm/ttpcmn/ttcmn_notify.cpp 2022-06-16 13:49:38 UTC (rev 10000) @@ -66,8 +66,6 @@ WORD CustomIconID; } NotifyIcon; -// https://nyaruru.hatenablog.com/entry/20071008/p3 - /** * Shell_NotifyIconW() wrapper * - TT_NOTIFYICONDATAW_V2 \x82\xCD Windows 2000 \x88ȍ~\x82Ŏg\x97p\x89\ @@ -81,10 +79,7 @@ static BOOL Shell_NotifyIconW(DWORD dwMessage, TT_NOTIFYICONDATAW_V2 *lpData) { BOOL r = Shell_NotifyIconW(dwMessage, (NOTIFYICONDATAW*)lpData); -#if _DEBUG - DWORD e = GetLastError(); - assert(r != FALSE && e == 0); -#endif + assert(r != FALSE); return r; }