mirror of
https://github.com/tnodir/fort
synced 2024-11-15 10:35:10 +00:00
UI: AppInfoUtil: Use QVarLengthArray.
This commit is contained in:
parent
5a01c9bd79
commit
80ab7df81f
@ -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))
|
||||
|
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user