mirror of
https://github.com/azerothcore/azerothcore-wotlk.git
synced 2025-12-05 18:20:24 -08:00
Fixed some variable/parameters type issues
This commit is contained in:
parent
353d90f256
commit
84d6011a3d
3 changed files with 7 additions and 6 deletions
|
|
@ -1080,7 +1080,7 @@ PVOID pAddress)
|
|||
switch (basicType)
|
||||
{
|
||||
case btChar:
|
||||
pszCurrBuffer += sprintf(pszCurrBuffer, " = \"%s\"", pAddress);
|
||||
pszCurrBuffer += sprintf(pszCurrBuffer, " = \"%s\"", (char*)pAddress);
|
||||
break;
|
||||
case btStdString:
|
||||
pszCurrBuffer += sprintf(pszCurrBuffer, " = \"%s\"", static_cast<std::string*>(pAddress)->c_str());
|
||||
|
|
@ -1125,9 +1125,9 @@ PVOID pAddress)
|
|||
else
|
||||
{
|
||||
#if _WIN64
|
||||
pszCurrBuffer += sprintf(pszCurrBuffer, " = %I64X", (DWORD64*)pAddress);
|
||||
pszCurrBuffer += sprintf(pszCurrBuffer, " = 0x%I64X", (DWORD64*)pAddress);
|
||||
#else
|
||||
pszCurrBuffer += sprintf(pszCurrBuffer, " = %X", (PDWORD)pAddress);
|
||||
pszCurrBuffer += sprintf(pszCurrBuffer, " = 0x%X", (DWORD)pAddress);
|
||||
#endif
|
||||
}
|
||||
break;
|
||||
|
|
@ -1138,7 +1138,7 @@ PVOID pAddress)
|
|||
#if _WIN64
|
||||
pszCurrBuffer += sprintf(pszCurrBuffer, " <Unable to read memory> = %I64X", (DWORD64*)pAddress);
|
||||
#else
|
||||
pszCurrBuffer += sprintf(pszCurrBuffer, " <Unable to read memory> = %X", (PDWORD)pAddress);
|
||||
pszCurrBuffer += sprintf(pszCurrBuffer, " <Unable to read memory> = %X", (DWORD)pAddress);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue