Author: ekohl
Date: Mon May 23 18:49:03 2011
New Revision: 51869
URL:
http://svn.reactos.org/svn/reactos?rev=51869&view=rev
Log:
Real fix of the broken build.
Modified:
trunk/reactos/dll/win32/msports/comdb.c
Modified: trunk/reactos/dll/win32/msports/comdb.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/msports/comdb.c?…
==============================================================================
--- trunk/reactos/dll/win32/msports/comdb.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/msports/comdb.c [iso-8859-1] Mon May 23 18:49:03 2011
@@ -20,7 +20,6 @@
HKEY hKey;
DWORD dwSize;
PBYTE pBitmap;
- PBYTE pData;
} COMDB, *PCOMDB;
@@ -92,7 +91,7 @@
L"ComDB",
0,
REG_BINARY,
- pComDB->pData,
+ pComDB->pBitmap,
pComDB->dwSize);
}
@@ -171,10 +170,10 @@
{
/* Allocate a new bitmap */
pComDB->dwSize = COMDB_MIN_PORTS_ARBITRATED / BITS_PER_BYTE;
- pComDB->pData = HeapAlloc(GetProcessHeap(),
- HEAP_ZERO_MEMORY,
- pComDB->dwSize);
- if (pComDB->pData == NULL)
+ pComDB->pBitmap = HeapAlloc(GetProcessHeap(),
+ HEAP_ZERO_MEMORY,
+ pComDB->dwSize);
+ if (pComDB->pBitmap == NULL)
{
ERR("Failed to allocaete the bitmap!\n");
lError = ERROR_ACCESS_DENIED;
@@ -186,7 +185,7 @@
L"ComDB",
0,
REG_BINARY,
- pComDB->pData,
+ pComDB->pBitmap,
pComDB->dwSize);
}
@@ -197,8 +196,8 @@
if (pComDB->hKey != NULL)
RegCloseKey(pComDB->hKey);
- if (pComDB->pData != NULL)
- HeapFree(GetProcessHeap(), 0, pComDB->pData);
+ if (pComDB->pBitmap != NULL)
+ HeapFree(GetProcessHeap(), 0, pComDB->pBitmap);
HeapFree(GetProcessHeap(), 0, pComDB);