VC6 workaround

This commit is contained in:
Glenn Maynard
2005-11-25 02:33:50 +00:00
parent 30c9ed36e6
commit 78dd08df43
@@ -13,8 +13,9 @@
bool GetFileVersion( CString sFile, CString &sOut )
{
do {
/* Cast away const to work around header bug in VC6. */
DWORD ignore;
DWORD iSize = GetFileVersionInfoSize( sFile, &ignore );
DWORD iSize = GetFileVersionInfoSize( const_cast<char *>(sFile.c_str()), &ignore );
if( !iSize )
break;