Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Refs #10479 fixed broken windows platform class

  • Loading branch information...
commit 4b5b72d369bcc03f76d931c03279f5f584eb41a6 1 parent c3cf51f
@smessier smessier authored
View
4 lib/right_agent/platform/windows.rb
@@ -46,7 +46,7 @@ class Platform
# TODO Initialize flavor and release (need to run on windows to finalize)
def init
- GetVersionEx = Win32API.new("kernel32", "GetVersionEx", 'P', 'L')
+ getversionex = Win32API.new("kernel32", "GetVersionEx", 'P', 'L')
osversioninfo = [
148, # size of this struct (IN)
0, # major version (OUT)
@@ -56,7 +56,7 @@ def init
"\0" * 128 # additional info (OUT)
].pack('LLLLLa128')
- raise 'Failed to detect Windows version' unless GetVersionEx.call(osversioninfo) == 1 # => 1, means succeeded
+ raise 'Failed to detect Windows version' if 0 == getversionex.call(osversioninfo) # zero is failure
version = osversioninfo.unpack('LLLLLZ128') # 'Z' means ASCIIZ string
end
View
BIN  pkg/right_agent-0.4.1.gem
Binary file not shown
View
BIN  pkg/right_agent-0.4.2.gem
Binary file not shown
View
2  right_agent.gemspec
@@ -24,7 +24,7 @@ require 'rubygems'
Gem::Specification.new do |spec|
spec.name = 'right_agent'
- spec.version = '0.4.1'
+ spec.version = '0.4.2'
spec.authors = ['Lee Kirchhoff', 'Raphael Simon', 'Tony Spataro']
spec.email = 'lee@rightscale.com'
spec.homepage = 'https://github.com/rightscale/right_agent'
Please sign in to comment.
Something went wrong with that request. Please try again.