better error message

This commit is contained in:
Glenn Maynard
2006-02-14 05:54:40 +00:00
parent fc2028b997
commit 718bbd3ada
@@ -109,7 +109,7 @@ namespace VDDebugInfo
HANDLE h = CreateFile( pctx->sFilename, GENERIC_READ, 0, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL );
if( h == INVALID_HANDLE_VALUE )
{
pctx->sError = "CreateFile failed";
pctx->sError = werr_ssprintf( GetLastError(), "CreateFile failed" );
return false;
}