Fixed windows compile problems.

This commit is contained in:
Juan Carlos Luciani 2007-05-30 05:03:36 +00:00
parent 3cc4067ab1
commit 386fd61efc
2 changed files with 7 additions and 3 deletions

View File

@ -661,8 +661,8 @@ ObtainAuthTokenInt(
bool setupHostEntries = true;
char *pHostNameAnd443 = NULL;
char *pHostNameAnd2645 = NULL;
ATSHostEntry serviceHostEntry443 = {};
ATSHostEntry serviceHostEntry2645 = {};
ATSHostEntry serviceHostEntry443 = {NULL, NULL, NULL, NULL, 0};
ATSHostEntry serviceHostEntry2645 = {NULL, NULL, NULL, NULL, 0};
LIST_ENTRY *pListEntry;
ATSHostEntry *pHostEntryInUse;
@ -1050,10 +1050,12 @@ CreateATSHostEntry(
// L2
//=======================================================================--
{
ATSHostEntry *pHostEntry;
DbgTrace(1, "-CreateATSHostEntry- Start\n", 0);
// Create host entry
ATSHostEntry *pHostEntry = malloc(sizeof(ATSHostEntry));
pHostEntry = malloc(sizeof(ATSHostEntry));
if (pHostEntry != NULL)
{
// Allocate buffers to keep copies of the strings provided

View File

@ -100,6 +100,8 @@ typedef struct _RpcSession
#define AcquireModuleMutex WaitForSingleObjectEx(g_hModuleMutex, INFINITE, FALSE)
#define ReleaseModuleMutex ReleaseMutex(g_hModuleMutex)
#define strtok_r strtok_s
//===[ Inlines functions ]===============================================
//===[ Function prototypes ]===============================================