[NTVDM]: Static'ify some local vars & functions.

svn path=/trunk/; revision=65434
This commit is contained in:
Hermès Bélusca-Maïto 2014-11-21 00:11:11 +00:00
parent b13a724042
commit 534adb371c

View file

@ -29,7 +29,7 @@ typedef struct _VDD_MODULE
// TODO: Maybe use a linked list.
// But the number of elements must be <= MAXUSHORT (MAXWORD)
#define MAX_VDD_MODULES 0xFF + 1
VDD_MODULE VDDList[MAX_VDD_MODULES] = {{NULL}};
static VDD_MODULE VDDList[MAX_VDD_MODULES] = {{NULL}};
// Valid handles of VDD DLLs start at 1 and finish at MAX_VDD_MODULES
#define ENTRY_TO_HANDLE(Entry) ((Entry) + 1)
@ -38,7 +38,7 @@ VDD_MODULE VDDList[MAX_VDD_MODULES] = {{NULL}};
/* PRIVATE FUNCTIONS **********************************************************/
USHORT GetNextFreeVDDEntry(VOID)
static USHORT GetNextFreeVDDEntry(VOID)
{
USHORT Entry = MAX_VDD_MODULES;
for (Entry = 0; Entry < sizeof(VDDList)/sizeof(VDDList[0]); ++Entry)
@ -48,7 +48,7 @@ USHORT GetNextFreeVDDEntry(VOID)
return Entry;
}
VOID WINAPI ThirdPartyVDDBop(LPWORD Stack)
static VOID WINAPI ThirdPartyVDDBop(LPWORD Stack)
{
/* Get the Function Number and skip it */
BYTE FuncNum = *(PBYTE)SEG_OFF_TO_PTR(getCS(), getIP());
@ -231,7 +231,7 @@ Quit:
}
}
BOOL LoadInstallableVDD(VOID)
static BOOL LoadInstallableVDD(VOID)
{
#define ERROR_MEMORYVDD L"Insufficient memory to load installable Virtual Device Drivers."
#define ERROR_REGVDD L"Virtual Device Driver format in the registry is invalid."