瀏覽代碼

Fixed OOB bug indxcdia.cpp (#293)

yurido1 8 年之前
父節點
當前提交
8e029bce40
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tools/clang/tools/dxcompiler/dxcdia.cpp

+ 2 - 2
tools/clang/tools/dxcompiler/dxcdia.cpp

@@ -678,8 +678,8 @@ public:
     /* [in] */ DWORD index,
     /* [retval][out] */ TItem **ppItem) {
     if (index >= m_count)
-      return GetItem(index, ppItem);
-    return E_INVALIDARG;
+      return E_INVALIDARG;
+    return GetItem(index, ppItem);
   }
 
   virtual HRESULT GetItem(DWORD index, TItem **ppItem) {