Use Bitstream Vera Sans when asked for Tahoma. Addresses bug 1188.
Modified: trunk/reactos/bootdata/hivesft.inf
_____
Modified: trunk/reactos/bootdata/hivesft.inf
--- trunk/reactos/bootdata/hivesft.inf 2005-12-29 01:59:55 UTC (rev
20412)
+++ trunk/reactos/bootdata/hivesft.inf 2005-12-29 05:18:21 UTC (rev
20413)
@@ -41,6 +41,7 @@
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\SysFontSubstitutes","Courier
New",0x00000000,"Bitstream Vera Sans Mono"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\SysFontSubstitutes","Marlett",0x00000000,"TGMarlett"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\SysFontSubstitutes","Times New
Roman",0x00000000,"Bitstream Vera Serif"
+HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\SysFontSubstitutes","Tahoma",0x00000000,"Bitstream
Vera Sans"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\SysFontSubstitutes","MS Sans
Serif",0x00000000,"Bitstream Vera Sans"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\SysFontSubstitutes","MS Shell
Dlg",0x00000000,"Bitstream Vera Sans"
HKLM,"SOFTWARE\Microsoft\Windows
NT\CurrentVersion\SysFontSubstitutes","MS Shell Dlg
2",0x00000000,"Bitstream Vera Sans"
DIB_CreateDIBSection fix do not zero out memmory if it is a null pointer
it got from ExAllocatePoolWithTag
DIB_MapPaletteColors do not try write to NULL pointer if
ExAllocatePoolWithTag do return a NULLL pointer.
Modified: trunk/reactos/subsys/win32k/objects/dib.c
_____
Modified: trunk/reactos/subsys/win32k/objects/dib.c
--- trunk/reactos/subsys/win32k/objects/dib.c 2005-12-29 00:04:34 UTC
(rev 20410)
+++ trunk/reactos/subsys/win32k/objects/dib.c 2005-12-29 01:57:50 UTC
(rev 20411)
@@ -866,7 +866,7 @@
if (bm.bmBits)
{
dib = ExAllocatePoolWithTag(PagedPool, sizeof(DIBSECTION),
TAG_DIB);
- RtlZeroMemory(dib, sizeof(DIBSECTION));
+ if (dib != NULL) RtlZeroMemory(dib, sizeof(DIBSECTION));
}
if (dib)
@@ -1125,6 +1125,12 @@
}
lpRGB = (RGBQUAD *)ExAllocatePoolWithTag(PagedPool, sizeof(RGBQUAD) *
nNumColors, TAG_COLORMAP);
+ if (lpRGB == NULL)
+ {
+ PALETTE_UnlockPalette(palGDI);
+ return NULL;
+ }
+
lpIndex = (USHORT *)&lpbmi->bmiColors[0];
for (i = 0; i < nNumColors; i++)