diff options
-rw-r--r-- | updater/msirunner_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/updater/msirunner_windows.go b/updater/msirunner_windows.go index 62ec1cdf..6b8ae476 100644 --- a/updater/msirunner_windows.go +++ b/updater/msirunner_windows.go @@ -66,7 +66,7 @@ func msiTempFile() (*os.File, error) { return nil, err } sa := &windows.SecurityAttributes{ - Length: uint32(len(sd)), + Length: uint32(unsafe.Sizeof(windows.SecurityAttributes{})), SecurityDescriptor: uintptr(unsafe.Pointer(&sd[0])), } // TODO: os.TempDir() returns C:\windows\temp when calling from this context. Supposedly this is mostly secure |