Opened 14 years ago

Closed 13 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 14 years ago.
Fix for the above problem

Download all attachments as: .zip

Change History (3)

by rudi, 14 years ago

Attachment: qlibrary_os2.diff added

Fix for the above problem

comment:1 by Dmitry A. Kuminov, 14 years ago

Milestone: Qt EnhancedQt 4.7

comment:2 by Dmitry A. Kuminov, 13 years ago

Resolution: fixed
Status: newclosed

Done in r877. Thanks.

Note: See TracTickets for help on using tickets.