"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/runtime/os_windows.go" between
go1.12.16.src.tar.gz and go1.12.17.src.tar.gz

About: Google’s Go is a compiled, garbage-collected, concurrent programming language. Stable release (1.12).

os_windows.go  (go1.12.16.src):os_windows.go  (go1.12.17.src)
skipping to change at line 265 skipping to change at line 265
} }
if windowsFindfunc(n32, []byte("wine_get_version\000")) != nil { if windowsFindfunc(n32, []byte("wine_get_version\000")) != nil {
// running on Wine // running on Wine
initWine(k32) initWine(k32)
} }
} }
func monitorSuspendResume() { func monitorSuspendResume() {
const ( const (
_DEVICE_NOTIFY_CALLBACK = 2 _DEVICE_NOTIFY_CALLBACK = 2
_ERROR_FILE_NOT_FOUND = 2 _ERROR_FILE_NOT_FOUND = 2
_ERROR_INVALID_PARAMETERS = 87
) )
type _DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS struct { type _DEVICE_NOTIFY_SUBSCRIBE_PARAMETERS struct {
callback uintptr callback uintptr
context uintptr context uintptr
} }
powrprof := windowsLoadSystemLib([]byte("powrprof.dll\000")) powrprof := windowsLoadSystemLib([]byte("powrprof.dll\000"))
if powrprof == 0 { if powrprof == 0 {
return // Running on Windows 7, where we don't need it anyway. return // Running on Windows 7, where we don't need it anyway.
} }
skipping to change at line 304 skipping to change at line 305
uintptr(unsafe.Pointer(&params)), uintptr(unsafe.Pointer(&handle) )) uintptr(unsafe.Pointer(&params)), uintptr(unsafe.Pointer(&handle) ))
// This function doesn't use GetLastError(), so we use the return value d irectly. // This function doesn't use GetLastError(), so we use the return value d irectly.
switch ret { switch ret {
case 0: case 0:
return // Successful, nothing more to do. return // Successful, nothing more to do.
case _ERROR_FILE_NOT_FOUND: case _ERROR_FILE_NOT_FOUND:
// Systems without access to the suspend/resume notifier // Systems without access to the suspend/resume notifier
// also have their clock on "program time", and therefore // also have their clock on "program time", and therefore
// don't want or need this anyway. // don't want or need this anyway.
return return
case _ERROR_INVALID_PARAMETERS:
// This is seen when running in Windows Docker.
// See issue 36557.
return
default: default:
println("runtime: PowerRegisterSuspendResumeNotification failed w ith errno=", ret) println("runtime: PowerRegisterSuspendResumeNotification failed w ith errno=", ret)
throw("runtime: PowerRegisterSuspendResumeNotification failure") throw("runtime: PowerRegisterSuspendResumeNotification failure")
} }
} }
//go:nosplit //go:nosplit
func getLoadLibrary() uintptr { func getLoadLibrary() uintptr {
return uintptr(unsafe.Pointer(_LoadLibraryW)) return uintptr(unsafe.Pointer(_LoadLibraryW))
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 7 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)