mirror of https://github.com/OpenRCT2/OpenRCT2.git
Use named casts on openrct2-win (#11138)
This commit is contained in:
parent
b4a763c751
commit
6f984a0a77
|
@ -48,7 +48,7 @@ int wmain(int argc, wchar_t** argvW, [[maybe_unused]] wchar_t* envp)
|
|||
static char** GetCommandLineArgs(int argc, wchar_t** argvW)
|
||||
{
|
||||
// Allocate UTF-8 strings
|
||||
auto argv = (char**)malloc(argc * sizeof(char*));
|
||||
auto argv = static_cast<char**>(malloc(argc * sizeof(char*)));
|
||||
if (argv != nullptr)
|
||||
{
|
||||
// Convert to UTF-8
|
||||
|
|
Loading…
Reference in New Issue