emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/w32bdf.c [lexbind]


From: Miles Bader
Subject: [Emacs-diffs] Changes to emacs/src/w32bdf.c [lexbind]
Date: Thu, 20 Nov 2003 19:37:01 -0500

Index: emacs/src/w32bdf.c
diff -c emacs/src/w32bdf.c:1.16.4.2 emacs/src/w32bdf.c:1.16.4.3
*** emacs/src/w32bdf.c:1.16.4.2 Tue Oct 14 19:22:47 2003
--- emacs/src/w32bdf.c  Thu Nov 20 19:36:21 2003
***************
*** 247,253 ****
      hbdf_bmp_heap = HeapCreate(0, BDF_BITMAP_HEAP_INITIAL_SIZE, 0);
  
    if (!hbdf_cp_heap || !hbdf_bmp_heap)
!     error("Fail to create heap for BDF.");
  
    hfile = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ, NULL,
                     OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
--- 247,253 ----
      hbdf_bmp_heap = HeapCreate(0, BDF_BITMAP_HEAP_INITIAL_SIZE, 0);
  
    if (!hbdf_cp_heap || !hbdf_bmp_heap)
!     error("Fail to create heap for BDF");
  
    hfile = CreateFile(filename, GENERIC_READ, FILE_SHARE_READ, NULL,
                     OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
***************
*** 257,269 ****
        (fileinfo.nFileSizeLow > BDF_FILE_SIZE_MAX))
      {
        CloseHandle(hfile);
!       error("Fail to open BDF file.");
      }
    hfilemap = CreateFileMapping(hfile, NULL, PAGE_READONLY, 0, 0, NULL);
    if (hfilemap == INVALID_HANDLE_VALUE)
      {
        CloseHandle(hfile);
!       error("Can't map font.");
      }
  
    font = MapViewOfFile(hfilemap, FILE_MAP_READ, 0, 0, 0);
--- 257,269 ----
        (fileinfo.nFileSizeLow > BDF_FILE_SIZE_MAX))
      {
        CloseHandle(hfile);
!       error("Fail to open BDF file");
      }
    hfilemap = CreateFileMapping(hfile, NULL, PAGE_READONLY, 0, 0, NULL);
    if (hfilemap == INVALID_HANDLE_VALUE)
      {
        CloseHandle(hfile);
!       error("Can't map font");
      }
  
    font = MapViewOfFile(hfilemap, FILE_MAP_READ, 0, 0, 0);
***************
*** 272,278 ****
      {
        CloseHandle(hfile);
        CloseHandle(hfilemap);
!       error("Can't view font.");
      }
  
    bdffontp = (bdffont *) xmalloc(sizeof(bdffont));
--- 272,278 ----
      {
        CloseHandle(hfile);
        CloseHandle(hfilemap);
!       error("Can't view font");
      }
  
    bdffontp = (bdffont *) xmalloc(sizeof(bdffont));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]