docker_windows.go 428 B

123456789101112131415161718
  1. package main
  2. import (
  3. "sync/atomic"
  4. _ "github.com/docker/docker/autogen/winresources/docker"
  5. )
  6. //go:cgo_import_dynamic main.dummy CommandLineToArgvW%2 "shell32.dll"
  7. var dummy uintptr
  8. func init() {
  9. // Ensure that this import is not removed by the linker. This is used to
  10. // ensure that shell32.dll is loaded by the system loader, preventing
  11. // go#15286 from triggering on Nano Server TP5.
  12. atomic.LoadUintptr(&dummy)
  13. }