krnl386.exe16: Constify a variable.

This commit is contained in:
Andrew Talbot 2013-03-30 22:41:53 +00:00 committed by Alexandre Julliard
parent 8c53b6fde4
commit 08254df316
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ static BOOL MZ_DoLoadImage( HANDLE hFile, LPCSTR filename, OverlayBlock *oblk, W
if ( !ReadFile(hFile,&mz_header,sizeof(mz_header),&len,NULL)
|| len != sizeof(mz_header)
|| mz_header.e_magic != IMAGE_DOS_SIGNATURE) {
char *p = strrchr( filename, '.' );
const char *p = strrchr( filename, '.' );
if (!p || strcasecmp( p, ".com" )) /* check for .COM extension */
{
SetLastError(ERROR_BAD_FORMAT);