[commit] r1341 - trunk/GME/Gme

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Wed Jun 1 17:01:33 CDT 2011


Author: ksmyth
Date: Wed Jun  1 17:01:32 2011
New Revision: 1341

Log:
Refactor

Modified:
   trunk/GME/Gme/GMEApp.h

Modified: trunk/GME/Gme/GMEApp.h
==============================================================================
--- trunk/GME/Gme/GMEApp.h	Wed Jun  1 17:00:24 2011	(r1340)
+++ trunk/GME/Gme/GMEApp.h	Wed Jun  1 17:01:32 2011	(r1341)
@@ -77,14 +77,7 @@
 		CString conn = connString();
 		const TCHAR* zsConn = conn;
 		zsConn += 4; // skip MGA=
-		TCHAR currentMgaPath[MAX_PATH];
-		TCHAR* tcfilename;
-		if (!GetFullPathName(zsConn, MAX_PATH, currentMgaPath, &tcfilename) || tcfilename == 0) {
-		} else {
-			filename = tcfilename;
-			*(tcfilename-1) = '\0';
-			dirname = currentMgaPath;
-		}
+		GetFullPathName(zsConn, filename, dirname);
 	}
 
 


More information about the gme-commit mailing list