Incorrect parameter order found by PVS-Studio (dotnet/coreclr#10497)
authorIlya <DieselMachine84@users.noreply.github.com>
Mon, 10 Apr 2017 17:21:41 +0000 (20:21 +0300)
committerJan Kotas <jkotas@microsoft.com>
Mon, 10 Apr 2017 17:21:41 +0000 (10:21 -0700)
commita8f53d262bbcc49f14be6f526fc4da5731ce7ac2
tree168931cd85a9550fd72d906ffc8b5c34a2750b08
parent6b2d0175d98d3853b51d90c760630cbac1fad556
Incorrect parameter order found by PVS-Studio (dotnet/coreclr#10497)

* Incorrect parameter order found by PVS-Studio
I used PVS-Studio static analyzer to check this project. I would like to suggest a variant of the way to fix the error, detected with the help of V3066 diagnostic https://www.viva64.com/en/w/V3066/

Commit migrated from https://github.com/dotnet/coreclr/commit/0ca41bc62319c16dfafab2767abe623bb4be4547
src/coreclr/src/mscorlib/src/System/Reflection/RuntimeModule.cs