Ignore:
Timestamp:
Jul 10, 2000, 8:38:52 PM (25 years ago)
Author:
sandervl
Message:

check if module contains resources before searching for a resource object

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/winimgres.cpp

    r3765 r3815  
    1 /* $Id: winimgres.cpp,v 1.42 2000-06-28 18:08:36 sandervl Exp $ */
     1/* $Id: winimgres.cpp,v 1.43 2000-07-10 18:38:52 sandervl Exp $ */
    22
    33/*
     
    508508    int     idName = -1;
    509509
     510    if(pResDirToSearch == NULL) {
     511        return NULL;
     512    }
     513
    510514    /* lpszName */
    511515    if ((ULONG)lpszName != ID_GETFIRST && HIWORD(lpszName) != 0)
     
    578582    LPCWSTR                     lpszwName;
    579583
     584    if(pResDirToSearch == NULL) {
     585        return NULL;
     586    }
     587
    580588    /* lpszName */
    581589    if ((ULONG)lpszName != ID_GETFIRST && HIWORD(lpszName) != 0)
     
    614622    int     i;
    615623
     624    if(pResDirToSearch == NULL) {
     625        return NULL;
     626    }
     627
    616628    paResDirEntries = (PIMAGE_RESOURCE_DIRECTORY_ENTRY)((ULONG)pResDirToSearch + sizeof(*pResDirToSearch));
    617629
Note: See TracChangeset for help on using the changeset viewer.