[grisbi-cvs] grisbi/win32 win32utils.c,1.11,1.12

Mickaƫl Remars mykeul at users.sourceforge.net
Mon Aug 24 00:04:52 CEST 2009


Update of /cvsroot/grisbi/grisbi/win32
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv12744

Modified Files:
	win32utils.c 
Log Message:
msvc needs all variable declarations at the begining of the blocs (C99)

Index: win32utils.c
===================================================================
RCS file: /cvsroot/grisbi/grisbi/win32/win32utils.c,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- win32utils.c	9 Dec 2007 15:13:42 -0000	1.11
+++ win32utils.c	23 Aug 2009 22:04:50 -0000	1.12
@@ -282,14 +282,17 @@
 win_version    win32_get_windows_version(void)                        /* {{{ */
 {
     win_version current_version = WIN_UNKNOWN;
+	DWORD dwPlatormId;
+	DWORD dwMajorVers;
+	DWORD dwMinorVers;
 
     OSVERSIONINFO VersInfos;
     VersInfos.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
     GetVersionEx(&VersInfos);
 
-    DWORD dwPlatormId = VersInfos.dwPlatformId;
-    DWORD dwMajorVers = VersInfos.dwMajorVersion;
-    DWORD dwMinorVers = VersInfos.dwMinorVersion;
+    dwPlatormId = VersInfos.dwPlatformId;
+    dwMajorVers = VersInfos.dwMajorVersion;
+    dwMinorVers = VersInfos.dwMinorVersion;
 
     switch (dwPlatormId)
     {
@@ -369,6 +372,7 @@
     STARTUPINFO si;
     PROCESS_INFORMATION pi;
     TCHAR arg[2*MAX_PATH];
+	HANDLE hStdError;
 
     gchar* syslocale_working_directory = NULL; 
       
@@ -387,7 +391,7 @@
         TCHAR stderr_path[MAX_PATH];
         strcpy(stderr_path,application_path);
         strcat(stderr_path,".err");
-        HANDLE hStdError = CreateFile(stderr_path,     // file to create
+        hStdError = CreateFile(stderr_path,     // file to create
                    GENERIC_WRITE,          // open for writing
                    0,                      // do not share
                    NULL,                   // default security



More information about the cvs mailing list