Descriptionpkg/syscall: document that the Windows DLL call methods call SetLastError(0)
A common question when diagnosing problems with the Windows API is whether the programmer is sure the error return came from that function or not, as not all Windows API functions are guaranteed to set the last error code in all cases. The runtime already calls SetLastError(0) (for instance, http://tip.golang.org/src/pkg/runtime/sys_windows_amd64.s#L8), but it would help if this behavior was documented explicitly.
Patch Set 1 #Patch Set 2 : diff -r 087e446f2c41 https://code.google.com/p/go #Patch Set 3 : diff -r 087e446f2c41 https://code.google.com/p/go #MessagesTotal messages: 7
|