diff --git a/robotgo.go b/robotgo.go index 1705b21..f41335c 100644 --- a/robotgo.go +++ b/robotgo.go @@ -70,7 +70,7 @@ import ( const ( // Version get the robotgo version - Version string = "v0.50.0.647, The Appalachian Mountains!" + Version string = "v0.50.0.666, The Appalachian Mountains!" ) // GetVersion get the robotgo version diff --git a/window/win_sys.h b/window/win_sys.h index de4b020..1c853cd 100644 --- a/window/win_sys.h +++ b/window/win_sys.h @@ -30,7 +30,7 @@ Bounds get_bounds(uintptr pid, uintptr isHwnd){ CGPoint p; CGSize s; // Attempt to convert both values into atomic types if (AXValueGetValue(axp, kAXValueCGPointType, &p) && - AXValueGetValue(axs, kAXValueCGSizeType, &s)){ + AXValueGetValue(axs, kAXValueCGSizeType, &s)){ bounds.X = p.x; bounds.Y = p.y; bounds.W = s.width; @@ -38,8 +38,8 @@ Bounds get_bounds(uintptr pid, uintptr isHwnd){ } exit: - if (axp != NULL) { CFRelease(axp); } - if (axs != NULL) { CFRelease(axs); } + if (axp != NULL) { CFRelease(axp); } + if (axs != NULL) { CFRelease(axs); } return bounds;