[ros-kernel] NtGdiExtTextOut patch for review
jasonfilby at yahoo.com
Sun May 30 03:32:00 CEST 2004
If anyone wants to review this patch (actually a diff) please go ahead.
This fixes a bug observed with NSIS 2.0 Beta 3a when testing executable
from the InstallOptions.nsi script.
The incoming Count is zero and ends with the kernel crashing (!)
because PagedPool of zero is requested for allocation (should this
crash the kernel??). I would think that any text its copying from
should be NULL terminated anyway, and the +1 seems to do the trick.
< Dx = ExAllocatePoolWithTag(PagedPool, Count * sizeof(INT),
> Dx = ExAllocatePoolWithTag(PagedPool, (Count+1) * sizeof(INT),
< Status = MmCopyFromCaller(Dx, UnsafeDx, Count * sizeof(INT));
> Status = MmCopyFromCaller(Dx, UnsafeDx, (Count+1) * sizeof(INT));
Do you Yahoo!?
Friends. Fun. Try the all-new Yahoo! Messenger.
More information about the Ros-kernel