]> Cypherpunks repositories - gostls13.git/commit
runtime: support nil libcall.args when calling stdcall on Windows
authorqmuntal <quimmuntal@gmail.com>
Thu, 7 Sep 2023 09:09:10 +0000 (11:09 +0200)
committerQuim Muntal <quimmuntal@gmail.com>
Thu, 7 Sep 2023 21:16:03 +0000 (21:16 +0000)
commit1d538f198dd3da072d00e3dca70c28c40bbde87e
tree35b05306df50c533475d2ee83bb966b3ab9a080c
parent3a124de515e0e5043294604c95aee99c4e4d2ada
runtime: support nil libcall.args when calling stdcall on Windows

Having to pass a dummy pointer to the libcall.args field is a bit
annoying. This change allows nil to be passed instead.

windows/arm and windows/arm64 already support nil libcall.args.

Change-Id: I07a2bdb7d1f76b13d125397ff5177337c43536a3
Reviewed-on: https://go-review.googlesource.com/c/go/+/526016
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/runtime/os_windows.go
src/runtime/sys_windows_386.s
src/runtime/sys_windows_amd64.s