[commit] r1653 - trunk/GME/MgaUtil

GMESRC Repository Notifications gme-commit at list.isis.vanderbilt.edu
Thu Oct 27 17:50:27 CDT 2011


Author: ksmyth
Date: Thu Oct 27 17:50:27 2011
New Revision: 1653

Log:
Fix VersionFromGUID, broken since UNICODE

Modified:
   trunk/GME/MgaUtil/MgaRegistrar.cpp

Modified: trunk/GME/MgaUtil/MgaRegistrar.cpp
==============================================================================
--- trunk/GME/MgaUtil/MgaRegistrar.cpp	Thu Oct 27 17:50:16 2011	(r1652)
+++ trunk/GME/MgaUtil/MgaRegistrar.cpp	Thu Oct 27 17:50:27 2011	(r1653)
@@ -1543,11 +1543,11 @@
 				for(int index = 0;; ++index) {
 					TCHAR name[512];
 					DWORD namesize = sizeof(name) / sizeof(name[0]);
-					BYTE value[512];
+					TCHAR value[512];
 					DWORD valuesize = sizeof(value) / sizeof(value[0]);
 					DWORD valtype;
 
-					LONG err = RegEnumValue(par, index, name, &namesize, NULL, &valtype, value, &valuesize);
+					LONG err = RegEnumValue(par, index, name, &namesize, NULL, &valtype, (LPBYTE)value, &valuesize);
 					if( err == ERROR_NO_MORE_ITEMS )
 						break;
 					ERRTHROW( err );


More information about the gme-commit mailing list