Fix EnumMemberRefs always returning NULL (#54805)
authorTom Deseyn <tom.deseyn@gmail.com>
Mon, 28 Jun 2021 12:57:30 +0000 (14:57 +0200)
committerGitHub <noreply@github.com>
Mon, 28 Jun 2021 12:57:30 +0000 (05:57 -0700)
src/coreclr/md/compiler/import.cpp

index 6559b2b..ac5472c 100644 (file)
@@ -762,7 +762,7 @@ STDMETHODIMP RegMeta::EnumMemberRefs(         // S_OK, S_FALSE, or error.
 
         // set the output parameter
         *ppmdEnum = pEnum;
-        *ppmdEnum = 0;
+        pEnum = NULL;
     }
 
     // fill the output token buffer