Fix compilation with GCC4.2. Please check changes in CreateProcessInternalW for correctness!

svn path=/trunk/; revision=25580
This commit is contained in:
Thomas Bluemel 2007-01-21 23:29:10 +00:00
parent b4b32d74ee
commit 80513cb036
2 changed files with 8 additions and 8 deletions

View file

@ -2765,10 +2765,10 @@ SetConsoleCursorInfo(
static BOOL
IntScrollConsoleScreenBuffer(HANDLE hConsoleOutput,
PSMALL_RECT lpScrollRectangle,
PSMALL_RECT lpClipRectangle,
const SMALL_RECT *lpScrollRectangle,
const SMALL_RECT *lpClipRectangle,
COORD dwDestinationOrigin,
PCHAR_INFO lpFill,
const CHAR_INFO *lpFill,
BOOL bUnicode)
{
CSR_API_MESSAGE Request; ULONG CsrRequest;
@ -2846,10 +2846,10 @@ ScrollConsoleScreenBufferW(
)
{
return IntScrollConsoleScreenBuffer(hConsoleOutput,
(PSMALL_RECT)lpScrollRectangle,
(PSMALL_RECT)lpClipRectangle,
lpScrollRectangle,
lpClipRectangle,
dwDestinationOrigin,
(PCHAR_INFO)lpFill,
lpFill,
TRUE);
}

View file

@ -981,7 +981,7 @@ GetAppName:
RtlFreeHeap(RtlGetProcessHeap(), 0, NameBuffer);
RtlFreeHeap(RtlGetProcessHeap(), 0, ApplicationName.Buffer);
return CreateProcessW(L"ntvdm.exe",
(LPWSTR)lpApplicationName,
(LPWSTR)((ULONG_PTR)lpApplicationName), /* FIXME: Buffer must be writable!!! */
lpProcessAttributes,
lpThreadAttributes,
bInheritHandles,
@ -1052,7 +1052,7 @@ GetAppName:
RtlFreeHeap(RtlGetProcessHeap(), 0, NameBuffer);
RtlFreeHeap(RtlGetProcessHeap(), 0, ApplicationName.Buffer);
return CreateProcessW(L"ntvdm.exe",
(LPWSTR)lpApplicationName,
(LPWSTR)((ULONG_PTR)lpApplicationName), /* FIXME: Buffer must be writable!!! */
lpProcessAttributes,
lpThreadAttributes,
bInheritHandles,