lib/pdk/util/windows/file.rb in pdk-akerl-1.9.1.1 vs lib/pdk/util/windows/file.rb in pdk-akerl-1.14.0.1
- old
+ new
@@ -9,10 +9,10 @@
converted = ''
FFI::Pointer.from_string_to_wide_string(path) do |path_ptr|
# includes terminating NULL
buffer_size = GetLongPathNameW(path_ptr, FFI::Pointer::NULL, 0)
FFI::MemoryPointer.new(:wchar, buffer_size) do |converted_ptr|
- if GetLongPathNameW(path_ptr, converted_ptr, buffer_size) == FFI::WIN32_FALSE
+ if GetLongPathNameW(path_ptr, converted_ptr, buffer_size) == PDK::Util::Windows::WIN32_FALSE
raise _('Failed to call GetLongPathName')
end
converted = converted_ptr.read_wide_string(buffer_size - 1)
end