Mercurial > dwindows
diff winmain.c @ 2164:05dd5189099f
Win: Fix some warnings reported with -W3 in Visual C.
Can compile with -W3 by issuing: "set DEBUG=Y" before building.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 30 Sep 2020 22:56:59 +0000 |
parents | aedf5903db0a |
children |
line wrap: on
line diff
--- a/winmain.c Wed Sep 30 19:34:17 2020 +0000 +++ b/winmain.c Wed Sep 30 22:56:59 2020 +0000 @@ -74,7 +74,7 @@ else if(*tmp == ' ' && !inquotes) { *tmp = 0; - argv[loc] = strdup(argstart); + argv[loc] = _strdup(argstart); /* Push past any white space */ while(*(tmp+1) == ' ') @@ -92,12 +92,15 @@ tmp++; } if(*argstart) - argv[loc] = strdup(argstart); + argv[loc] = _strdup(argstart); } argv[loc+1] = NULL; return argv; } +/* Protoype for the application entrypoint */ +int main(int argc, char **argv); + /* Ok this is a really big hack but what the hell ;) */ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {