]> git.eshelyaron.com Git - emacs.git/commitdiff
(w32_init_bdf_font, w32_BDF_to_x_font): CreateFileMapping
authorJason Rumney <jasonr@gnu.org>
Mon, 19 Nov 2007 09:14:38 +0000 (09:14 +0000)
committerJason Rumney <jasonr@gnu.org>
Mon, 19 Nov 2007 09:14:38 +0000 (09:14 +0000)
returns NULL on failure.

src/ChangeLog
src/w32bdf.c

index 0fb4f189fb969d5c1bb2841f85ed39a7601ec92e..5d3fdf4b9af0bf74b4e72cac85db9d6099af00fa 100644 (file)
@@ -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.
index 80ef098d8ded749eadd76445e0056db343cd7730..4a12b1f01900b75affeedab501a13b45fd3f6e32 100644 (file)
@@ -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;