@@ -477,15 +477,15 @@ void kuhl_m_ts_mstsc_MemoryAnalysis_property(PKULL_M_MEMORY_HANDLE hMemory, PVOI
477
477
switch (pProperties [i ].dwType )
478
478
{
479
479
case 1 :
480
- kprintf (L"[ dword ] %u (0x%08x)" , (DWORD ) pProperties [i ].pvData , (DWORD ) pProperties [i ].pvData );
480
+ kprintf (L"[ dword ] %u (0x%08x)" , (DWORD )( DWORD_PTR ) pProperties [i ].pvData , (DWORD )( DWORD_PTR ) pProperties [i ].pvData );
481
481
break ;
482
482
483
483
case 2 :
484
- kprintf (L"[ word? ] %u (0x%04x)" , (WORD ) pProperties [i ].pvData , (WORD ) pProperties [i ].pvData );
484
+ kprintf (L"[ word? ] %u (0x%04x)" , (WORD )( DWORD_PTR ) pProperties [i ].pvData , (WORD )( DWORD_PTR ) pProperties [i ].pvData );
485
485
break ;
486
486
487
487
case 3 :
488
- kprintf (L"[ bool ] %s" , ((BOOL ) pProperties [i ].pvData ) ? L"TRUE" : L"FALSE" );
488
+ kprintf (L"[ bool ] %s" , ((BOOL )( DWORD_PTR ) pProperties [i ].pvData ) ? L"TRUE" : L"FALSE" );
489
489
break ;
490
490
491
491
case 4 :
@@ -501,26 +501,26 @@ void kuhl_m_ts_mstsc_MemoryAnalysis_property(PKULL_M_MEMORY_HANDLE hMemory, PVOI
501
501
502
502
case 6 :
503
503
kprintf (L"[protect] " );
504
- if (pProperties [i ].pvData && (DWORD ) pProperties [i ].unkp2 )
504
+ if (pProperties [i ].pvData && (DWORD )( DWORD_PTR ) pProperties [i ].unkp2 )
505
505
{
506
- aDataBuffer .address = (PBYTE ) LocalAlloc (LPTR , (DWORD ) pProperties [i ].unkp2 );
506
+ aDataBuffer .address = (PBYTE ) LocalAlloc (LPTR , (DWORD )( DWORD_PTR ) pProperties [i ].unkp2 );
507
507
508
508
if (aDataBuffer .address )
509
509
{
510
510
aProcess .address = pProperties [i ].pvData ;
511
- if (kull_m_memory_copy (& aDataBuffer , & aProcess , (DWORD ) pProperties [i ].unkp2 ))
511
+ if (kull_m_memory_copy (& aDataBuffer , & aProcess , (DWORD )( DWORD_PTR ) pProperties [i ].unkp2 ))
512
512
{
513
513
if (pProperties [i ].dwFlags & 0x800 )
514
514
{
515
- if (kull_m_crypto_remote_CryptUnprotectMemory (aProcess .hMemory , aDataBuffer .address , (DWORD ) pProperties [i ].unkp2 , CRYPTPROTECTMEMORY_SAME_PROCESS ))
515
+ if (kull_m_crypto_remote_CryptUnprotectMemory (aProcess .hMemory , aDataBuffer .address , (DWORD )( DWORD_PTR ) pProperties [i ].unkp2 , CRYPTPROTECTMEMORY_SAME_PROCESS ))
516
516
{
517
517
kprintf (L"\'%.*s\'" , * (PDWORD ) aDataBuffer .address / sizeof (wchar_t ), ((PBYTE ) aDataBuffer .address ) + sizeof (DWORD ));
518
518
}
519
519
else PRINT_ERROR (L"CryptUnprotectMemory" );
520
520
}
521
521
else
522
522
{
523
- kull_m_string_wprintf_hex (aDataBuffer .address , (DWORD ) pProperties [i ].unkp2 , 0 );
523
+ kull_m_string_wprintf_hex (aDataBuffer .address , (DWORD )( DWORD_PTR ) pProperties [i ].unkp2 , 0 );
524
524
}
525
525
}
526
526
LocalFree (aDataBuffer .address );
0 commit comments