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:
Echelon9 2012-12-01 01:19:23 +11:00
parent b31e36c6dd
commit 20f68057fa
1 changed files with 3 additions and 2 deletions

View File

@ -4617,10 +4617,11 @@ HRESULT WINAPI XTL::EmuIDirect3DResource8_Register
case X_D3DCOMMON_TYPE_SURFACE: case X_D3DCOMMON_TYPE_SURFACE:
case X_D3DCOMMON_TYPE_TEXTURE: case X_D3DCOMMON_TYPE_TEXTURE:
{ {
if(dwCommonType == X_D3DCOMMON_TYPE_SURFACE) if(dwCommonType == X_D3DCOMMON_TYPE_SURFACE) {
DbgPrintf("EmuIDirect3DResource8_Register :-> Surface...\n"); DbgPrintf("EmuIDirect3DResource8_Register :-> Surface...\n");
else } else {
DbgPrintf("EmuIDirect3DResource8_Register :-> Texture...\n"); DbgPrintf("EmuIDirect3DResource8_Register :-> Texture...\n");
}
X_D3DPixelContainer *pPixelContainer = (X_D3DPixelContainer*)pResource; X_D3DPixelContainer *pPixelContainer = (X_D3DPixelContainer*)pResource;