github.com/olljanat/moby@v1.13.1/cmd/dockerd/docker_windows.go (about)

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