UI: AppInfoUtil: Use QVarLengthArray.

This commit is contained in:
Nodir Temirkhodjaev 2021-06-02 15:30:28 +03:00
parent 5a01c9bd79
commit 80ab7df81f
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,7 @@
#include "appinfoutil.h"
#include <QImage>
#include <QVarLengthArray>
#include <comdef.h>
#include <commctrl.h>
@ -83,7 +84,7 @@ bool extractVersionInfo(const QString &appPath, AppInfo &appInfo)
if (infoSize == 0)
return false;
QScopedArrayPointer<BYTE> infoBuf(new BYTE[infoSize]);
QVarLengthArray<BYTE, 4096> infoBuf(infoSize);
LPVOID infoData = infoBuf.data();
if (!GetFileVersionInfoExW(flags, appPathW, 0, infoSize, infoData))

View File

@ -12,7 +12,6 @@
#include <fort_version.h>
#include "appinfo/appinfocache.h"
#include "appinfo/appinfomanager.h"
#include "conf/firewallconf.h"
#include "control/controlmanager.h"
#include "form/controls/mainwindow.h"