Skip to content

Commit 1205c00

Browse files
committed
using r['ErrorMessage']
1 parent f7d2e2a commit 1205c00

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/post/windows/gather/file_in_raw_ntfs.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def run
4949
nil, "OPEN_EXISTING", "FILE_FLAG_WRITE_THROUGH", 0)
5050

5151
if r['GetLastError'] != 0
52-
print_error("Error opening #{drive} GetLastError=#{r['GetLastError']}")
52+
print_error("Error opening #{drive} GetLastError=#{r['ErrorMessage']}")
5353
return nil
5454
end
5555
@handle = r['return']

0 commit comments

Comments
 (0)