mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-18 11:42:36 +00:00
Merge pull request #6422 from sepalani/nullptr-blank
HLE: Improve format string detection heuristic
This commit is contained in:
commit
1eae5fe790
@ -47,8 +47,10 @@ void HLE_GeneralDebugPrint(ParameterType parameter_type)
|
|||||||
{
|
{
|
||||||
std::string report_message;
|
std::string report_message;
|
||||||
|
|
||||||
// Is gpr3 pointing to a pointer rather than an ASCII string
|
// Is gpr3 pointing to a pointer (including nullptr) rather than an ASCII string
|
||||||
if (PowerPC::HostIsRAMAddress(GPR(3)) && PowerPC::HostIsRAMAddress(PowerPC::HostRead_U32(GPR(3))))
|
if (PowerPC::HostIsRAMAddress(GPR(3)) &&
|
||||||
|
(PowerPC::HostIsRAMAddress(PowerPC::HostRead_U32(GPR(3))) ||
|
||||||
|
PowerPC::HostRead_U32(GPR(3)) == 0))
|
||||||
{
|
{
|
||||||
if (PowerPC::HostIsRAMAddress(GPR(4)))
|
if (PowerPC::HostIsRAMAddress(GPR(4)))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user