mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-01-02 06:20:14 +01:00
On win32 too, return null when dict not found.
This commit is contained in:
parent
1b447272b2
commit
6687984bf0
1 changed files with 18 additions and 17 deletions
|
@ -466,7 +466,7 @@ openMappedFile( MPFORMAL const wchar_t* name, HANDLE* mappedFileP,
|
|||
OPEN_EXISTING,
|
||||
FILE_FLAG_RANDOM_ACCESS,
|
||||
NULL );
|
||||
XP_ASSERT( hFile != INVALID_HANDLE_VALUE );
|
||||
if ( hFile != INVALID_HANDLE_VALUE ) {
|
||||
|
||||
DWORD size = GetFileSize( hFile, NULL );
|
||||
XP_LOGF( "file size: %d", size );
|
||||
|
@ -489,6 +489,7 @@ openMappedFile( MPFORMAL const wchar_t* name, HANDLE* mappedFileP,
|
|||
*sizep = GetFileSize( hFile, NULL );
|
||||
}
|
||||
*mappedFileP = (HANDLE)ptr;
|
||||
}
|
||||
#endif
|
||||
return ptr;
|
||||
} /* openMappedFile */
|
||||
|
|
Loading…
Reference in a new issue