(w32_init_bdf_font, w32_BDF_to_x_font): CreateFileMapping
returns NULL on failure.
This commit is contained in:
parent
1030a7b3f8
commit
5f42a7eba2
2 changed files with 7 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2007-11-19 Jason Rumney <jasonr@gnu.org>
|
||||
|
||||
* w32bdf.c (w32_init_bdf_font, w32_BDF_to_x_font): CreateFileMapping
|
||||
returns NULL on failure.
|
||||
|
||||
2007-11-16 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* search.c (Fset_match_data): Remove the `evaporate' feature.
|
||||
|
|
|
@ -261,7 +261,7 @@ w32_init_bdf_font(char *filename)
|
|||
error("Fail to open BDF file");
|
||||
}
|
||||
hfilemap = CreateFileMapping(hfile, NULL, PAGE_READONLY, 0, 0, NULL);
|
||||
if (hfilemap == INVALID_HANDLE_VALUE)
|
||||
if (!hfilemap)
|
||||
{
|
||||
CloseHandle(hfile);
|
||||
error("Can't map font");
|
||||
|
@ -828,7 +828,7 @@ int w32_BDF_to_x_font (char *file, char* xstr, int len)
|
|||
size = fileinfo.nFileSizeLow;
|
||||
|
||||
hfilemap = CreateFileMapping (hfile, NULL, PAGE_READONLY, 0, 0, NULL);
|
||||
if (hfilemap == INVALID_HANDLE_VALUE)
|
||||
if (!hfilemap)
|
||||
{
|
||||
CloseHandle (hfile);
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue