Ignore:
Timestamp:
Oct 25, 2012, 12:39:39 PM (13 years ago)
Author:
dmik
Message:

kernel32: Fix Win32ImageBase::matchModName().

As opposed to the declared functionality, it was comparing the name part
of the argument with the full path of the stored module name and this would
obviously not work if the module name were a full path.

One of the failig cases was a frequent attempt to retrieve the resources of the
current executable by doing LoadLibraryEx() with the full executable name.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibmisc.h

    r21308 r22040  
    1818#endif
    1919
    20 char *OSLibStripPath(char *path);
     20const char *OSLibStripPath(const char *path);
    2121
    2222ULONG OSLibiGetModuleHandleA(char *pszModule);
     
    109109#endif
    110110
     111#ifdef __cplusplus
     112inline char *OSLibStripPath(char *path)
     113{
     114    return (char *)OSLibStripPath((const char *)path);
     115}
    111116#endif
     117
     118#endif
Note: See TracChangeset for help on using the changeset viewer.