Skip to content

Commit 28952a1

Browse files
committed
fixed mingw warning windows
1 parent e2f06a7 commit 28952a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

AutoUpdaterWidgets/adminauthorization_win.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ bool AdminAuthorization::executeAsAdmin(const QString &program, const QStringLis
9595
const QString file = QDir::toNativeSeparators(program);
9696
const QString args = qt_create_commandline(arguments);
9797

98-
SHELLEXECUTEINFOW shellExecuteInfo = { 0 };
98+
SHELLEXECUTEINFOW shellExecuteInfo;
99+
ZeroMemory(&shellExecuteInfo, sizeof(SHELLEXECUTEINFOW));
99100
shellExecuteInfo.cbSize = sizeof(SHELLEXECUTEINFOW);
100101
shellExecuteInfo.lpVerb = L"runas";
101102
shellExecuteInfo.lpFile = (wchar_t *)file.utf16();

0 commit comments

Comments
 (0)