mirror of
https://github.com/OpenVPN/openvpn.git
synced 2026-05-28 04:03:29 -04:00
Windows: fix unused variable in win32_get_arch
Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com> Acked-by: Lev Stipakov <lstipakov@gmail.com> Message-Id: <20230203191440.136050-5-frank@lichtenheld.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg26141.html Signed-off-by: Gert Doering <gert@greenie.muc.de>
This commit is contained in:
parent
a95705be85
commit
2dc2d16559
1 changed files with 3 additions and 4 deletions
|
|
@ -1358,7 +1358,6 @@ win32_get_arch(arch_t *process_arch, arch_t *host_arch)
|
|||
|
||||
USHORT process_machine = 0;
|
||||
USHORT native_machine = 0;
|
||||
BOOL is_wow64 = FALSE;
|
||||
|
||||
#ifdef _ARM64_
|
||||
*process_arch = ARCH_ARM64;
|
||||
|
|
@ -1380,8 +1379,8 @@ win32_get_arch(arch_t *process_arch, arch_t *host_arch)
|
|||
if (is_wow64_process2)
|
||||
{
|
||||
/* check if we're running on arm64 or amd64 machine */
|
||||
is_wow64 = is_wow64_process2(GetCurrentProcess(),
|
||||
&process_machine, &native_machine);
|
||||
BOOL is_wow64 = is_wow64_process2(GetCurrentProcess(),
|
||||
&process_machine, &native_machine);
|
||||
if (is_wow64)
|
||||
{
|
||||
switch (native_machine)
|
||||
|
|
@ -1403,7 +1402,7 @@ win32_get_arch(arch_t *process_arch, arch_t *host_arch)
|
|||
else
|
||||
{
|
||||
BOOL w64 = FALSE;
|
||||
is_wow64 = IsWow64Process(GetCurrentProcess(), &w64) && w64;
|
||||
BOOL is_wow64 = IsWow64Process(GetCurrentProcess(), &w64) && w64;
|
||||
if (is_wow64)
|
||||
{
|
||||
/* we are unable to differentiate between arm64 and amd64
|
||||
|
|
|
|||
Loading…
Reference in a new issue