mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 02:46:57 +00:00
Fix compilation with GCC4.2. Please check changes in CreateProcessInternalW for correctness!
svn path=/trunk/; revision=25580
This commit is contained in:
parent
b4b32d74ee
commit
80513cb036
2 changed files with 8 additions and 8 deletions
|
@ -2765,10 +2765,10 @@ SetConsoleCursorInfo(
|
||||||
|
|
||||||
static BOOL
|
static BOOL
|
||||||
IntScrollConsoleScreenBuffer(HANDLE hConsoleOutput,
|
IntScrollConsoleScreenBuffer(HANDLE hConsoleOutput,
|
||||||
PSMALL_RECT lpScrollRectangle,
|
const SMALL_RECT *lpScrollRectangle,
|
||||||
PSMALL_RECT lpClipRectangle,
|
const SMALL_RECT *lpClipRectangle,
|
||||||
COORD dwDestinationOrigin,
|
COORD dwDestinationOrigin,
|
||||||
PCHAR_INFO lpFill,
|
const CHAR_INFO *lpFill,
|
||||||
BOOL bUnicode)
|
BOOL bUnicode)
|
||||||
{
|
{
|
||||||
CSR_API_MESSAGE Request; ULONG CsrRequest;
|
CSR_API_MESSAGE Request; ULONG CsrRequest;
|
||||||
|
@ -2846,10 +2846,10 @@ ScrollConsoleScreenBufferW(
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
return IntScrollConsoleScreenBuffer(hConsoleOutput,
|
return IntScrollConsoleScreenBuffer(hConsoleOutput,
|
||||||
(PSMALL_RECT)lpScrollRectangle,
|
lpScrollRectangle,
|
||||||
(PSMALL_RECT)lpClipRectangle,
|
lpClipRectangle,
|
||||||
dwDestinationOrigin,
|
dwDestinationOrigin,
|
||||||
(PCHAR_INFO)lpFill,
|
lpFill,
|
||||||
TRUE);
|
TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -981,7 +981,7 @@ GetAppName:
|
||||||
RtlFreeHeap(RtlGetProcessHeap(), 0, NameBuffer);
|
RtlFreeHeap(RtlGetProcessHeap(), 0, NameBuffer);
|
||||||
RtlFreeHeap(RtlGetProcessHeap(), 0, ApplicationName.Buffer);
|
RtlFreeHeap(RtlGetProcessHeap(), 0, ApplicationName.Buffer);
|
||||||
return CreateProcessW(L"ntvdm.exe",
|
return CreateProcessW(L"ntvdm.exe",
|
||||||
(LPWSTR)lpApplicationName,
|
(LPWSTR)((ULONG_PTR)lpApplicationName), /* FIXME: Buffer must be writable!!! */
|
||||||
lpProcessAttributes,
|
lpProcessAttributes,
|
||||||
lpThreadAttributes,
|
lpThreadAttributes,
|
||||||
bInheritHandles,
|
bInheritHandles,
|
||||||
|
@ -1052,7 +1052,7 @@ GetAppName:
|
||||||
RtlFreeHeap(RtlGetProcessHeap(), 0, NameBuffer);
|
RtlFreeHeap(RtlGetProcessHeap(), 0, NameBuffer);
|
||||||
RtlFreeHeap(RtlGetProcessHeap(), 0, ApplicationName.Buffer);
|
RtlFreeHeap(RtlGetProcessHeap(), 0, ApplicationName.Buffer);
|
||||||
return CreateProcessW(L"ntvdm.exe",
|
return CreateProcessW(L"ntvdm.exe",
|
||||||
(LPWSTR)lpApplicationName,
|
(LPWSTR)((ULONG_PTR)lpApplicationName), /* FIXME: Buffer must be writable!!! */
|
||||||
lpProcessAttributes,
|
lpProcessAttributes,
|
||||||
lpThreadAttributes,
|
lpThreadAttributes,
|
||||||
bInheritHandles,
|
bInheritHandles,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue