[grisbi-cvs] grisbi/src main.c,1.162,1.163
Gunee
guneemwelloeux at users.sourceforge.net
Wed Jan 27 23:46:28 CET 2010
Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv16811
Modified Files:
main.c
Log Message:
Win MSVC - Fixed argument passing to the main.With no warnings
Index: main.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/main.c,v
retrieving revision 1.162
retrieving revision 1.163
diff -u -d -r1.162 -r1.163
--- main.c 25 Jan 2010 18:10:42 -0000 1.162
+++ main.c 27 Jan 2010 22:46:26 -0000 1.163
@@ -84,16 +84,16 @@
#ifdef _MSC_VER
int APIENTRY wWinMain(HINSTANCE hInstance,
HINSTANCE hPrevInstance,
- LPTSTR lpCmdLine,
+ LPWSTR lpCmdLine,
int nCmdShow)
{
int argc, nLen;
LPWSTR * argvP;
char ** argv = malloc(sizeof(char**));
argvP = CommandLineToArgvW(GetCommandLineW(), &(argc));
- nLen = WideCharToMultiByte(CP_UTF8, 0,argvP[0], -1, NULL, NULL, NULL, NULL);
+ nLen = WideCharToMultiByte(CP_UTF8, 0,argvP[0], -1, NULL, 0, NULL, NULL);
*argv = malloc((nLen + 1) * sizeof(char));
- WideCharToMultiByte(CP_UTF8, NULL, argvP[0], -1, *argv, nLen, NULL, NULL);
+ WideCharToMultiByte(CP_UTF8, 0, argvP[0], -1, *argv, nLen, NULL, NULL);
return main(argc, argv);
}
#endif
More information about the cvs
mailing list