Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-10305

QLibrary getFileName method returns "DLL" on Windows7 and "dll" on Vista

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.0
    • 4.6.2
    • Core: Plugins
    • None
    • Windows Vista 64 and Windows 7 64 when running 32-bit Qt app
    • 9c419f945f1644e1bb66f4b5216a3d3adddb75b9

    Description

      Following code fragment executes differently (in release mode) on Windows Vista 64 and Windows 7 64 when running 32-bit Qt app.

      // full filename has "dll" extension. Example: c:/project/test.dll
      QString filename = "c:/project/test";
      QLibrary lib(filename);
      if (! lib.load())
            return false;
      QString fname = lib.fileName();
      lib.unload();
      
      // in Windows Vista returned fname has "dll" extenstion; in Windows 7 it has "DLL" extension. Therefore subsequent call "isLibrary" fails because it checks for lower-case "dll";
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            albisser Zeno Albisser
            toran Michael B
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes