Opened 7 years ago

Closed 7 years ago

#206 closed defect (fixed)

QLibrary::load() may give invalid error string

Reported by: rudi Owned by:
Priority: major Milestone: Qt 4.7
Component: QtCore Version: 4.6.3
Severity: medium Keywords:
Cc:

Description

When loading a DLL fails because a dependent module of the requested one is missing, QLibray::errorString() is wrong.

The reason for that is, that in this case DosLoadModule? returns ERROR_FILE_NOT_FOUND. QLibraryPivate::load_sys() then appends ".DLL" and retries the load. It should not do that, if the failing module is different from the one that was attempted to load.

Attachments (1)

qlibrary_os2.diff (544 bytes) - added by rudi 7 years ago.
Fix for the above problem

Download all attachments as: .zip

Change History (3)

Changed 7 years ago by rudi

Fix for the above problem

comment:1 Changed 7 years ago by dmik

  • Milestone changed from Qt Enhanced to Qt 4.7

comment:2 Changed 7 years ago by dmik

  • Resolution set to fixed
  • Status changed from new to closed

Done in r877. Thanks.

Note: See TracTickets for help on using tickets.