Cast GetProcAddress() ptr to const void*.

This commit is contained in:
Bartosz Taudul 2022-01-05 20:03:20 +01:00
parent 199b6ba798
commit 4731bb9ec1
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -3215,7 +3215,7 @@ void Profiler::HandleSymbolQueueItem( const SymbolQueueItem& si )
auto hnd = LoadLibraryExA( mod, nullptr, DONT_RESOLVE_DLL_REFERENCES );
if( hnd )
{
auto ptr = GetProcAddress( hnd, fn );
auto ptr = (const void*)GetProcAddress( hnd, fn );
if( ptr )
{
auto buf = (char*)tracy_malloc( si.extra );