mirror of
https://github.com/rapid7/metasploit-payloads
synced 2025-04-06 01:16:37 +02:00

Fix issue where the railgun API was relyling on FormatMessage returning a valid pointer when the error is `ERROR_SUCCESS`. On some platforms, such as XP SP3, the function would return a NULL pointer for this case. This fix makes sure that in the case of a NULL pointer the error message is set to a value that matches that found on other platforms. [FixRM 8505]