diff --git a/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_wldap32.rb b/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_wldap32.rb index 7626f614b520..f6fd74440a53 100644 --- a/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_wldap32.rb +++ b/lib/rex/post/meterpreter/extensions/stdapi/railgun/def/windows/def_wldap32.rb @@ -32,7 +32,7 @@ def self.create_library(constant_manager, library_path = 'wldap32') ['PCHAR', 'filter', 'in'], ['PCHAR', 'attrs[]', 'in'], ['DWORD', 'attrsonly', 'in'], - ['PULONG_PTR', 'res', 'out'] + ['PLPVOID', 'res', 'out'] ], 'ldap_search_sA', "cdecl") dll.add_function('ldap_set_option', 'DWORD',[ @@ -50,9 +50,9 @@ def self.create_library(constant_manager, library_path = 'wldap32') ['DWORD', 'attrsonly', 'in'], ['PVOID', 'pServerControls', 'in'], ['PVOID', 'pClientControls', 'in'], - ['PLONGLONG', 'pTimeout', 'in'], + ['PBLOB', 'pTimeout', 'in'], ['DWORD', 'SizeLimit', 'in'], - ['PULONG_PTR', 'res', 'out'] + ['PLPVOID', 'res', 'out'] ], 'ldap_search_ext_sA', "cdecl") dll.add_function('ldap_count_entries', 'DWORD',[