krnl386.exe16: Constify a variable.
This commit is contained in:
parent
8c53b6fde4
commit
08254df316
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue