Additional fix for ETW failure in 32 process on 64 bit machines. (dotnet/coreclr...
authorVance Morrison <vancem@microsoft.com>
Sat, 3 Jun 2017 15:30:36 +0000 (08:30 -0700)
committerJan Kotas <jkotas@microsoft.com>
Sat, 3 Jun 2017 15:30:36 +0000 (08:30 -0700)
commit57711a4128d9cba7b26702fc43f2157b4fa62c2f
treeac9c1d05ccab4cb20fc476ec731ba86bb8289005
parentd3e48091d577da356c9f6070c3e68716476bf7c5
Additional fix for ETW failure in 32 process on 64 bit machines. (dotnet/coreclr#12022)

* Addtional fix for ETW failure in 32 process on 64 bit machines.

The commit associated with Pull Request
    Fix failures in ETW logging on 4GB aware 32 bit processes dotnet/coreclr#11941

Was incorrect.   Some long were changed to ulong, but the critical casting an IntPtr to ulong still does
sign extention and not zero extension.   Need to cast to a void* first.  This fixes this.

Commit migrated from https://github.com/dotnet/coreclr/commit/170c8257ea663d95f8ea61b146473be54090905e
src/coreclr/src/mscorlib/shared/System/Diagnostics/Tracing/EventSource.cs