Changeset 3815 for trunk/src


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

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

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

    r3804 r3815  
    1 /* $Id: heapstring.cpp,v 1.29 2000-07-06 21:18:42 sandervl Exp $ */
     1/* $Id: heapstring.cpp,v 1.30 2000-07-10 18:38:51 sandervl Exp $ */
    22
    33/*
     
    55 *
    66 * Win32 compatibility string functions for OS/2
     7 *
     8 * NOTE: lstrcpyn* always appends a terminating 0 (unlike strncpy)!
    79 *
    810 * Copyright 1999 Patrick Haller
  • 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.