Ignore:
Timestamp:
Nov 4, 1999, 2:02:49 PM (26 years ago)
Author:
phaller
Message:

Fix: incorrect return code of VIRTUAL_MapFileA checked

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/user32/loadres.cpp

    r1499 r1592  
    1 /* $Id: loadres.cpp,v 1.11 1999-10-28 19:09:16 sandervl Exp $ */
     1/* $Id: loadres.cpp,v 1.12 1999-11-04 13:02:49 phaller Exp $ */
    22
    33/*
     
    254254    else
    255255    {
    256         if (!(hMapping = VIRTUAL_MapFileA( lpszName, (LPVOID *)&ptr ))) return 0;
     256        hMapping = VIRTUAL_MapFileA( lpszName, (LPVOID *)&ptr);
     257        if (hMapping == INVALID_HANDLE_VALUE) return 0;
    257258        info = (BITMAPINFO *)(ptr + sizeof(BITMAPFILEHEADER));
    258259    }
Note: See TracChangeset for help on using the changeset viewer.