Use proper type.

This commit is contained in:
Bartosz Taudul 2019-10-10 20:30:08 +02:00
parent 707f113bda
commit c3870f8837

View File

@ -248,7 +248,7 @@ void SysTraceSendExternalName( uint64_t thread )
if( _EnumProcessModules( phnd, modules, 1024 * sizeof( HMODULE ), &needed ) != 0 )
{
const auto sz = std::min( DWORD( needed / sizeof( HMODULE ) ), DWORD( 1024 ) );
for( int i=0; i<sz; i++ )
for( DWORD i=0; i<sz; i++ )
{
MODULEINFO info;
if( _GetModuleInformation( phnd, modules[i], &info, sizeof( info ) ) != 0 )