Author: jgardou
Date: Thu Oct 11 13:33:09 2012
New Revision: 57537
URL: http://svn.reactos.org/svn/reactos?rev=57537&view=rev
Log:
[WIN32K]
- Accept to fill a BITMAPCOREINFO structure in NtGdiGetDIBitsInternal
Modified:
trunk/reactos/win32ss/gdi/ntgdi/dibobj.c
Modified: trunk/reactos/win32ss/gdi/ntgdi/dibobj.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/gdi/ntgdi/dibobj.c…
==============================================================================
--- trunk/reactos/win32ss/gdi/ntgdi/dibobj.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/gdi/ntgdi/dibobj.c [iso-8859-1] Thu Oct 11 13:33:09 2012
@@ -1014,7 +1014,7 @@
if (iUsage > 2) return 0;
/* Check if the size of the bitmap info is large enough */
- if (cjMaxInfo < sizeof(BITMAPINFOHEADER))
+ if (cjMaxInfo < sizeof(BITMAPCOREHEADER))
{
return 0;
}
@@ -1048,7 +1048,7 @@
_SEH2_END;
/* Check if the header size is large enough */
- if ((pbmi->bmiHeader.biSize < sizeof(BITMAPINFOHEADER)) ||
+ if ((pbmi->bmiHeader.biSize < sizeof(BITMAPCOREHEADER)) ||
(pbmi->bmiHeader.biSize > cjMaxInfo))
{
goto cleanup;
Author: hbelusca
Date: Wed Oct 10 21:23:49 2012
New Revision: 57533
URL: http://svn.reactos.org/svn/reactos?rev=57533&view=rev
Log:
[MSVCRT:APITEST]
Update a comment. No code changes.
Modified:
trunk/rostests/apitests/msvcrt/CommandLine.c
Modified: trunk/rostests/apitests/msvcrt/CommandLine.c
URL: http://svn.reactos.org/svn/reactos/trunk/rostests/apitests/msvcrt/CommandLi…
==============================================================================
--- trunk/rostests/apitests/msvcrt/CommandLine.c [iso-8859-1] (original)
+++ trunk/rostests/apitests/msvcrt/CommandLine.c [iso-8859-1] Wed Oct 10 21:23:49 2012
@@ -135,6 +135,7 @@
if (TestCase->bEncloseProgramNameInQuotes && bWasntInQuotes)
wcscat(CmdLine, L"\"");
+ /* Add a separating space and copy the tested command line parameters. */
wcscat(CmdLine, L" ");
wcscat(CmdLine, TestCase->CmdLine);
@@ -306,7 +307,7 @@
wcscat(UtilityProgramDirectory, L"data\\CmdLineUtil.exe");
- /* Close the opened quote if needed, and add a separating space */
+ /* Close the opened quote if needed. */
if (UtilityProgramDirectory[0] == L'"') wcscat(UtilityProgramDirectory, L"\"");