Skip to content

Commit

Permalink
Merge pull request #2 from joshcooper/master
Browse files Browse the repository at this point in the history
Can't configure jobs to run as SYSTEM
  • Loading branch information
djberg96 committed Oct 1, 2011
2 parents 978a1b3 + 0d75d9b commit ec5bba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/win32/taskscheduler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def set_account_information(user, password)
setAccountInformation = Win32::API::Function.new(table[30],'PPP','L')

if (user.nil? || user=="") && (password.nil? || password=="")
hr = setAccountInformation.call(@pITask, "", nil)
hr = setAccountInformation.call(@pITask, multi_to_wide(""), nil)
else
user = multi_to_wide(user)
password = multi_to_wide(password)
Expand Down

0 comments on commit ec5bba5

Please sign in to comment.