From 25e56fe374478a2266ac25f22a07bb3c6a423c83 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 28 Dec 2020 22:04:46 +0200 Subject: [PATCH] [ruby/fiddle] Fix Win32Types for Windows 64-bit (#63) https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types https://github.com/ruby/fiddle/commit/28ee5b1608 --- ext/fiddle/lib/fiddle/types.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ext/fiddle/lib/fiddle/types.rb b/ext/fiddle/lib/fiddle/types.rb index 8dc811d3e4..298a5e1797 100644 --- a/ext/fiddle/lib/fiddle/types.rb +++ b/ext/fiddle/lib/fiddle/types.rb @@ -44,11 +44,11 @@ module Fiddle typealias "HANDLE", "uintptr_t" typealias "PHANDLE", "void*" typealias "PVOID", "void*" - typealias "LPCSTR", "char*" + typealias "LPCSTR", "const char*" typealias "LPSTR", "char*" - typealias "HINSTANCE", "unsigned int" - typealias "HDC", "unsigned int" - typealias "HWND", "unsigned int" + typealias "HINSTANCE", "HANDLE" + typealias "HDC", "HANDLE" + typealias "HWND", "HANDLE" } end module_function :included