PVS-Studio fix: Ensure that when the DbgPrintf macro is expanded that it doesn't interfere with the if() ... else structure.
This commit is contained in:
parent
b31e36c6dd
commit
20f68057fa
|
@ -4617,10 +4617,11 @@ HRESULT WINAPI XTL::EmuIDirect3DResource8_Register
|
|||
case X_D3DCOMMON_TYPE_SURFACE:
|
||||
case X_D3DCOMMON_TYPE_TEXTURE:
|
||||
{
|
||||
if(dwCommonType == X_D3DCOMMON_TYPE_SURFACE)
|
||||
if(dwCommonType == X_D3DCOMMON_TYPE_SURFACE) {
|
||||
DbgPrintf("EmuIDirect3DResource8_Register :-> Surface...\n");
|
||||
else
|
||||
} else {
|
||||
DbgPrintf("EmuIDirect3DResource8_Register :-> Texture...\n");
|
||||
}
|
||||
|
||||
X_D3DPixelContainer *pPixelContainer = (X_D3DPixelContainer*)pResource;
|
||||
|
||||
|
|
Loading…
Reference in New Issue