Skip to content

Commit

Permalink
Make PULONG_PTR definitions PLPVOID to be more accurate, and correctl…
Browse files Browse the repository at this point in the history
…y define some structures as PBLOB so they be handled correctly
  • Loading branch information
gwillcox-r7 committed Feb 23, 2023
1 parent d16905c commit 59eb419
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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',[
Expand All @@ -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',[
Expand Down

0 comments on commit 59eb419

Please sign in to comment.