rapid7/metasploit-framework — pull request #1463 by Meatballs1 (2013-02-08 22:35:41+00:00)
Title: Railgun CDECL Fix

This addresses: https://dev.metasploit.com/redmine/issues/7639
Meterpreter pull: https://github.com/rapid7/meterpreter/pull/4

I have added a CALLCONV Railgun TLV value, which should default to "stdcall" for all existing railgun calls (except those in wldap32).

I have modified wldap32 to use cdecl and removed the x64 restrictions.

This worked fine for enum_ad_computers (cdecl) and enum_domains (stdcall).

Not tested this in x64 as I cannot recompile but shouldn't affect it...