VirtualBox

Changeset 92324 in vbox


Ignore:
Timestamp:
Nov 10, 2021 2:37:29 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10144: Runtime UI / Windows: Fix for Take Screenshot functionality.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r91759 r92324  
    20552055                          strFormat.toUtf8().constData());
    20562056#else /* !VBOX_WS_X11 */
    2057         tmpImage.save(QDir::toNativeSeparators(QFile::encodeName(strFilename)),
    2058                       strFormat.toUtf8().constData());
     2057        QFile file(strFilename);
     2058        if (file.open(QIODevice::WriteOnly))
     2059            tmpImage.save(&file, strFormat.toUtf8().constData());
    20592060#endif /* !VBOX_WS_X11 */
    20602061    }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette