fix the signature of wWinMain (no bug). r=timeless

This commit is contained in:
ted.mielczarek@gmail.com 2007-07-09 11:36:26 -07:00
parent f1e59567b8
commit 078165780e

View File

@ -467,7 +467,7 @@ int main(int argc, char** argv)
#if defined(XP_WIN) && !defined(__GNUC__) #if defined(XP_WIN) && !defined(__GNUC__)
// We need WinMain in order to not be a console app. This function is unused // We need WinMain in order to not be a console app. This function is unused
// if we are a console application. // if we are a console application.
int WINAPI wWinMain( HINSTANCE, HINSTANCE, LPSTR args, int ) int WINAPI wWinMain( HINSTANCE, HINSTANCE, LPWSTR args, int )
{ {
char** argv = static_cast<char**>(malloc(__argc * sizeof(char*))); char** argv = static_cast<char**>(malloc(__argc * sizeof(char*)));
for (int i = 0; i < __argc; i++) { for (int i = 0; i < __argc; i++) {