Windows: Preserve GetLastError during WinTorture testing
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 6 Aug 2009 03:25:42 +0000 (23:25 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Thu, 6 Aug 2009 04:02:10 +0000 (21:02 -0700)
commit1c5dc25c0dae21265296d6b41f903efb116c7774
tree7af98325d5ae9ae6236503595abcc3a8b5234bb6
parentc3c8a3e2f912855addc2c430f909bdce912e3670
Windows: Preserve GetLastError during WinTorture testing

When an error occurs during the WinTorture scripts the
actual error was not always being preserved because
subsequent Win32 calls were executed before the value
was logged.

In at least one case, the variable used to store the
last error was not initialized nor assigned in all data
paths.

LICENSE MIT

Reviewed-on: http://gerrit.openafs.org/270
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/tests/torture/Source/nbio.c