@ -29,6 +29,7 @@
# include <shlwapi.h>
# include <DbgHelp.h>
# include <algorithm>
# include <cinttypes>
# include "PluginsManager.h"
# include "resource.h"
@ -536,7 +537,7 @@ void PluginsManager::runPluginCommand(size_t i)
catch ( . . . )
{
TCHAR funcInfo [ 128 ] ;
generic_sprintf ( funcInfo , TEXT ( " runPluginCommand(size_t i : % d)" ) , i ) ;
generic_sprintf ( funcInfo , TEXT ( " runPluginCommand(size_t i : % z d)" ) , i ) ;
pluginCrashAlert ( _pluginsCommands [ i ] . _pluginName . c_str ( ) , funcInfo ) ;
}
}
@ -596,7 +597,7 @@ void PluginsManager::notify(const SCNotification *notification)
catch ( . . . )
{
TCHAR funcInfo [ 256 ] ;
generic_sprintf ( funcInfo , TEXT ( " notify(SCNotification *notification) : \r notification->nmhdr.code == %d \r notification->nmhdr.hwndFrom == %p \r notification->nmhdr.idFrom == % d " ) , \
generic_sprintf ( funcInfo , TEXT ( " notify(SCNotification *notification) : \r notification->nmhdr.code == %d \r notification->nmhdr.hwndFrom == %p \r notification->nmhdr.idFrom == % " PRIuPTR ) , \
scNotif . nmhdr . code , scNotif . nmhdr . hwndFrom , scNotif . nmhdr . idFrom ) ;
pluginCrashAlert ( _pluginInfos [ i ] - > _moduleName . c_str ( ) , funcInfo ) ;
}
@ -622,7 +623,7 @@ void PluginsManager::relayNppMessages(UINT Message, WPARAM wParam, LPARAM lParam
catch ( . . . )
{
TCHAR funcInfo [ 128 ] ;
generic_sprintf ( funcInfo , TEXT ( " relayNppMessages(UINT Message : % d, WPARAM wParam : %d, LPARAM lParam : %d )" ) , Message , wParam , lParam ) ;
generic_sprintf ( funcInfo , TEXT ( " relayNppMessages(UINT Message : % u, WPARAM wParam : %" PRIuPTR " , LPARAM lParam : % " PRIiPTR " )" ) , Message , wParam , lParam ) ;
pluginCrashAlert ( _pluginInfos [ i ] - > _moduleName . c_str ( ) , funcInfo ) ;
}
}
@ -653,7 +654,7 @@ bool PluginsManager::relayPluginMessages(UINT Message, WPARAM wParam, LPARAM lPa
catch ( . . . )
{
TCHAR funcInfo [ 128 ] ;
generic_sprintf ( funcInfo , TEXT ( " relayPluginMessages(UINT Message : % d, WPARAM wParam : %d, LPARAM lParam : %d )" ) , Message , wParam , lParam ) ;
generic_sprintf ( funcInfo , TEXT ( " relayPluginMessages(UINT Message : % u, WPARAM wParam : %" PRIuPTR " , LPARAM lParam : % " PRIiPTR " )" ) , Message , wParam , lParam ) ;
pluginCrashAlert ( _pluginInfos [ i ] - > _moduleName . c_str ( ) , funcInfo ) ;
}
return true ;