]> git.cworth.org Git - apitrace/blobdiff - wrappers/d3dshader.cpp
Use SUCCEEDED macro.
[apitrace] / wrappers / d3dshader.cpp
index 7a1e5520796c0f7527c292aa1384180423530933..b0690dcc39e891e7f87526d30b35d7871733f4f9 100644 (file)
@@ -88,7 +88,7 @@ found:
         hr = pfnD3DXDisassembleShader(tokens, FALSE, NULL, &pDisassembly);
     }
 
-    if (hr == D3D_OK) {
+    if (SUCCEEDED(hr)) {
         writer.beginRepr();
         writer.writeString((const char *)pDisassembly->GetBufferPointer(), pDisassembly->GetBufferSize());
     }
@@ -99,7 +99,7 @@ found:
         pDisassembly->Release();
     }
     
-    if (hr == D3D_OK) {
+    if (SUCCEEDED(hr)) {
         writer.endRepr();
     }
 }