KindDragon / vld

Visual Leak Detector for Visual C++ 2008-2015
https://kinddragon.github.io/vld/
GNU Lesser General Public License v2.1
1.02k stars 314 forks source link

enhancement: make vld preserve GetLastError/WSAGetLastError state #25

Open rglarix opened 7 years ago

rglarix commented 7 years ago

VLD calls TlsGetValue() and that resets both GetLastError and WSAGetLastError values. This patch preserves both values between getTls() calls

fixes also codeplex issue 10586 (http://vld.codeplex.com/workitem/10586)