Index: src/chext/chext.cpp =================================================================== diff -u -N -r6609ba39811176f4803f0556db3da30e9e457b9d -r3732b8ed8b65619c1000598c843c2c627186427c --- src/chext/chext.cpp (.../chext.cpp) (revision 6609ba39811176f4803f0556db3da30e9e457b9d) +++ src/chext/chext.cpp (.../chext.cpp) (revision 3732b8ed8b65619c1000598c843c2c627186427c) @@ -25,7 +25,8 @@ #include "../common/TRegistry.h" #include "DllRegistration.h" -LONG g_DllRefCount = 0; // Reference count of this DLL. +std::atomic g_DllRefCount = 0; + extern HINSTANCE g_hInstance; namespace