[grisbi-cvs] grisbi/src main.c,1.161,1.162
Gunee
guneemwelloeux at users.sourceforge.net
Mon Jan 25 19:10:45 CET 2010
- Previous message: [grisbi-cvs] grisbi/src Makefile.am, 1.160, 1.161 balance_estimate_config.c, 1.1, 1.2 balance_estimate_tab.c, 1.33, 1.34 balance_estimate_tab.h, 1.4, 1.5 gsb_currency.c, 1.56, 1.57 parametres.c, 1.209, 1.210 parametres.h, 1.33, 1.34
- Next message: [grisbi-cvs] grisbi/src gsb_file_others.c,1.31,1.32
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/grisbi/grisbi/src
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv27514
Modified Files:
main.c
Log Message:
Win MSVC - Fixed argument passing to the main.
>> Fixes the "no icon problem" when grisbi is started with an empty working dir on Windows
Index: main.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/src/main.c,v
retrieving revision 1.161
retrieving revision 1.162
diff -u -d -r1.161 -r1.162
--- main.c 23 Jan 2010 23:29:27 -0000 1.161
+++ main.c 25 Jan 2010 18:10:42 -0000 1.162
@@ -87,9 +87,13 @@
LPTSTR lpCmdLine,
int nCmdShow)
{
- int argc;
- char ** argv;
- argv = CommandLineToArgvW(GetCommandLineW(), &(argc));
+ 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);
+ *argv = malloc((nLen + 1) * sizeof(char));
+ WideCharToMultiByte(CP_UTF8, NULL, argvP[0], -1, *argv, nLen, NULL, NULL);
return main(argc, argv);
}
#endif
- Previous message: [grisbi-cvs] grisbi/src Makefile.am, 1.160, 1.161 balance_estimate_config.c, 1.1, 1.2 balance_estimate_tab.c, 1.33, 1.34 balance_estimate_tab.h, 1.4, 1.5 gsb_currency.c, 1.56, 1.57 parametres.c, 1.209, 1.210 parametres.h, 1.33, 1.34
- Next message: [grisbi-cvs] grisbi/src gsb_file_others.c,1.31,1.32
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cvs
mailing list