[ros-diffs] [weiden] 25580: Fix compilation with GCC4.2. Please check changes in CreateProcessInternalW for correctness!

weiden at svn.reactos.org weiden at svn.reactos.org
Mon Jan 22 00:29:11 CET 2007


Author: weiden
Date: Mon Jan 22 02:29:10 2007
New Revision: 25580

URL: http://svn.reactos.org/svn/reactos?rev=25580&view=rev
Log:
Fix compilation with GCC4.2. Please check changes in CreateProcessInternalW for correctness!

Modified:
    trunk/reactos/dll/win32/kernel32/misc/console.c
    trunk/reactos/dll/win32/kernel32/process/create.c

Modified: trunk/reactos/dll/win32/kernel32/misc/console.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/console.c?rev=25580&r1=25579&r2=25580&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/console.c (original)
+++ trunk/reactos/dll/win32/kernel32/misc/console.c Mon Jan 22 02:29:10 2007
@@ -2765,10 +2765,10 @@
 
 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 @@
 	)
 {
   return IntScrollConsoleScreenBuffer(hConsoleOutput,
-                                      (PSMALL_RECT)lpScrollRectangle,
-                                      (PSMALL_RECT)lpClipRectangle,
+                                      lpScrollRectangle,
+                                      lpClipRectangle,
                                       dwDestinationOrigin,
-                                      (PCHAR_INFO)lpFill,
+                                      lpFill,
                                       TRUE);
 }
 

Modified: trunk/reactos/dll/win32/kernel32/process/create.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/process/create.c?rev=25580&r1=25579&r2=25580&view=diff
==============================================================================
--- trunk/reactos/dll/win32/kernel32/process/create.c (original)
+++ trunk/reactos/dll/win32/kernel32/process/create.c Mon Jan 22 02:29:10 2007
@@ -981,7 +981,7 @@
                 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 @@
                 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,




More information about the Ros-diffs mailing list