Changeset 877


Ignore:
Timestamp:
Jun 30, 2011, 4:46:41 PM (9 years ago)
Author:
Dmitry A. Kuminov
Message:

corelib: Fixed QLibrary::load() error message when the DLL to load is not found. Closes #206 [patch by rudi].

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/corelib/plugin/qlibrary_os2.cpp

    r659 r877  
    103103    char errModule[CCHMAXPATH] = { '\0' };
    104104    rc = DosLoadModule(errModule, sizeof(errModule), attempt, &pHnd);
    105     if (rc == ERROR_FILE_NOT_FOUND) {
     105    if (rc == ERROR_FILE_NOT_FOUND && qstricmp(attempt, errModule) == 0) {
     106        // only retry with .DLL appended if the failed module is the tried one
    106107        attempt += ".DLL";
    107108        rc = DosLoadModule(errModule, sizeof(errModule), attempt, &pHnd);
Note: See TracChangeset for help on using the changeset viewer.