[commit] r2563 - trunk/GME/MgaUtil

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Thu Nov 6 09:47:25 CST 2014


Author: ksmyth
Date: Thu Nov  6 09:47:25 2014
New Revision: 2563

Log:
Fix icon for C++ dlls compiled with VS2012+: path to dll was read from registry wrong

Modified:
   trunk/GME/MgaUtil/MgaRegistrar.cpp

Modified: trunk/GME/MgaUtil/MgaRegistrar.cpp
==============================================================================
--- trunk/GME/MgaUtil/MgaRegistrar.cpp	Wed Oct 29 14:38:43 2014	(r2562)
+++ trunk/GME/MgaUtil/MgaRegistrar.cpp	Thu Nov  6 09:47:25 2014	(r2563)
@@ -2092,6 +2092,14 @@
 						m_strPath += data;
 					}
 				}
+			} else {
+				// VS2012 puts quotes around the dll path
+				if (m_strPath[0] == L'\"') {
+					m_strPath = m_strPath.Right(m_strPath.GetLength() - 1);
+				}
+				if (m_strPath[m_strPath.GetLength() - 1] == L'\"') {
+					m_strPath = m_strPath.Left(m_strPath.GetLength() - 1);
+				}
 			}
 		}
 		CopyTo(m_strPath, pVal);


More information about the gme-commit mailing list