Skip to content

Commit

Permalink
fix: compatibility with German language system
Browse files Browse the repository at this point in the history
  • Loading branch information
buptczq committed May 17, 2021
1 parent 6519917 commit b56e529
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"golang.org/x/sys/windows/registry"
)

const agentTitle = "WinCrypt SSH Agent v1.1.8"
const agentTitle = "WinCrypt SSH Agent v1.1.9"

var applications = []app.Application{
new(app.PubKeyView),
Expand Down
6 changes: 3 additions & 3 deletions utils/mmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

func OpenFileMapping(dwDesiredAccess uint32, bInheritHandle uintptr, mapNamePtr uintptr) (windows.Handle, error) {
ptr, _, err := pOpenFileMapping.Call(uintptr(dwDesiredAccess), bInheritHandle, mapNamePtr)
if err != nil && err.Error() == "The operation completed successfully." {
err = nil
if ptr == 0 {
return 0, err
}
return windows.Handle(ptr), err
return windows.Handle(ptr), nil
}

type memoryMapConn struct {
Expand Down
6 changes: 3 additions & 3 deletions versioninfo.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
"FileVersion": {
"Major": 1,
"Minor": 1,
"Patch": 8,
"Patch": 9,
"Build": 0
},
"ProductVersion": {
"Major": 1,
"Minor": 1,
"Patch": 8,
"Patch": 9,
"Build": 0
},
"FileFlagsMask": "3f",
Expand All @@ -29,7 +29,7 @@
"OriginalFilename": "WinCryptSSHAgent.exe",
"PrivateBuild": "",
"ProductName": "WinCrypt SSH Agent",
"ProductVersion": "v1.1.8",
"ProductVersion": "v1.1.9",
"SpecialBuild": ""
},
"VarFileInfo": {
Expand Down

0 comments on commit b56e529

Please sign in to comment.