[APPHELP_APITEST] Fix build, addendum to commit a8755711b

This commit is contained in:
Hermès Bélusca-Maïto 2023-10-05 21:32:26 +02:00
parent a8755711b9
commit 2a5fd78f1b
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
3 changed files with 5 additions and 6 deletions

View file

@ -21,9 +21,9 @@ void silence_debug_output(void); // Silence output if the environment var
#define test_create_ne (winetest_set_location(__FILE__, __LINE__), 0) ? (void)0 : test_create_ne_imp
/* register.cpp */
BOOL IsUserAdmin();
BOOL IsUserAdmin(VOID);
static DWORD g_WinVersion;
extern DWORD g_WinVersion;
#define WINVER_ANY 0
#define WINVER_WINXP 0x0501

View file

@ -792,7 +792,7 @@ void test_create_db_imp(const WCHAR* name, int win10)
}
}
static DWORD g_WinVersion;
DWORD g_WinVersion;
DWORD get_host_winver(void)
{
if (!g_WinVersion)

View file

@ -13,8 +13,6 @@
#include <strsafe.h>
#include "wine/test.h"
#include "apphelp_apitest.h"
static const unsigned char rawDB[] =
{
/* Header: Major, Minor, 'sdbf' */
@ -79,7 +77,8 @@ BOOL (WINAPI *pSdbRegisterDatabaseEx)(LPCWSTR pszDatabasePath, DWORD dwDatabaseT
BOOL (WINAPI *pSdbUnregisterDatabase)(REFGUID pguidDB);
BOOL IsUserAdmin()
extern "C"
BOOL IsUserAdmin(VOID)
{
BOOL Result;
SID_IDENTIFIER_AUTHORITY NtAuthority = { SECURITY_NT_AUTHORITY };