OpenVPN / tap-windows6

Windows TAP driver (NDIS 6)
Other
765 stars 238 forks source link

MSM: Save last error code before overridden by PrintError() #124

Closed rozmansi closed 3 years ago

rozmansi commented 3 years ago

PrintError() calls FormatMessage() and LocalFree() both of which reset the GetLastError() code. Should the original error code be preserved, it must be saved before calling PrintError().