Skip to content

Commit 3e3a3dd

Browse files
committed
[ARWINSS]
- Update the patch to trunk. CSR stuff is still missing, however other necessary changes are in. 7kb -> 10kb size increase (temporary, I hope). svn path=/branches/arwinss/; revision=62845
1 parent 441eb0f commit 3e3a3dd

File tree

1 file changed

+124
-28
lines changed

1 file changed

+124
-28
lines changed

trunk.diff

Lines changed: 124 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Index: base/shell/explorer/desktop/desktop.cpp
22
===================================================================
3-
--- base/shell/explorer/desktop/desktop.cpp (revision 62316)
3+
--- base/shell/explorer/desktop/desktop.cpp (revision 62758)
44
+++ base/shell/explorer/desktop/desktop.cpp (working copy)
55
@@ -326,8 +326,8 @@
66
HWND DesktopWindow::Create()
@@ -15,8 +15,17 @@ Index: base/shell/explorer/desktop/desktop.cpp
1515
int height = GetSystemMetrics(SM_CYSCREEN);
1616
Index: cmake/baseaddress.cmake
1717
===================================================================
18-
--- cmake/baseaddress.cmake (revision 62316)
18+
--- cmake/baseaddress.cmake (revision 62758)
1919
+++ cmake/baseaddress.cmake (working copy)
20+
@@ -1,7 +1,7 @@
21+
set(baseaddress_ntdll 0x7c920000) # should be above 0x7c920000
22+
set(baseaddress_kernel32 0x77d80000)
23+
set(baseaddress_msvcrt 0x77cd0000)
24+
-set(baseaddress_advapi32 0x77c20000)
25+
+set(baseaddress_advapi32 0x77c70000)
26+
set(baseaddress_gdi32 0x77bb0000)
27+
set(baseaddress_user32 0x77a20000)
28+
set(baseaddress_dhcpcsvc 0x779d0000)
2029
@@ -272,6 +272,7 @@
2130
set(baseaddress_wbemprox 0x70c70000)
2231
set(baseaddress_windowscodecs 0x70b60000)
@@ -27,7 +36,7 @@ Index: cmake/baseaddress.cmake
2736
set(baseaddress_wing32 0x70900000)
2837
Index: cmake/config.cmake
2938
===================================================================
30-
--- cmake/config.cmake (revision 62316)
39+
--- cmake/config.cmake (revision 62758)
3140
+++ cmake/config.cmake (working copy)
3241
@@ -58,6 +58,9 @@
3342
"Whether to compile support for ELF files.
@@ -37,11 +46,11 @@ Index: cmake/config.cmake
3746
+"Whether to build and use Wine-based Win32 subsystem.")
3847
+
3948
set(NSWPAT FALSE CACHE BOOL
40-
"Whether to compile apps/libs with features covered software patents or not.
49+
"Whether to build apps/libs with features covered by software patents.
4150
If you live in a country where software patents are valid/apply, don't
4251
Index: CMakeLists.txt
4352
===================================================================
44-
--- CMakeLists.txt (revision 62316)
53+
--- CMakeLists.txt (revision 62758)
4554
+++ CMakeLists.txt (working copy)
4655
@@ -134,6 +134,10 @@
4756
add_definitions(-D_WINKD_=1)
@@ -51,7 +60,7 @@ Index: CMakeLists.txt
5160
+ add_definitions(-D_ARWINSS_=1)
5261
+ endif()
5362
+
54-
if((NOT DEFINED PCH) AND (CMAKE_VERSION STREQUAL "2.8.12.1-ReactOS"))
63+
if((NOT DEFINED PCH) AND (CMAKE_VERSION STREQUAL "2.8.12.1-ReactOS") AND (NOT CMAKE_C_COMPILER_ID STREQUAL "Clang"))
5564
set(PCH 1)
5665
else()
5766
@@ -236,6 +240,9 @@
@@ -66,7 +75,7 @@ Index: CMakeLists.txt
6675
create_iso_lists()
6776
Index: include/asm/syscalls.inc
6877
===================================================================
69-
--- include/asm/syscalls.inc (revision 62316)
78+
--- include/asm/syscalls.inc (revision 62758)
7079
+++ include/asm/syscalls.inc (working copy)
7180
@@ -95,6 +95,7 @@
7281

@@ -86,7 +95,7 @@ Index: include/asm/syscalls.inc
8695
.ENDP
8796
Index: include/psdk/winddi.h
8897
===================================================================
89-
--- include/psdk/winddi.h (revision 62316)
98+
--- include/psdk/winddi.h (revision 62758)
9099
+++ include/psdk/winddi.h (working copy)
91100
@@ -2683,7 +2683,7 @@
92101
_In_ ULONG cjSize,
@@ -99,7 +108,7 @@ Index: include/psdk/winddi.h
99108
FONTOBJ_pGetGammaTables(
100109
Index: include/reactos/wine/config.h
101110
===================================================================
102-
--- include/reactos/wine/config.h (revision 62316)
111+
--- include/reactos/wine/config.h (revision 62758)
103112
+++ include/reactos/wine/config.h (working copy)
104113
@@ -1,3 +1,5 @@
105114
+#include "reactos/buildno.h"
@@ -109,7 +118,7 @@ Index: include/reactos/wine/config.h
109118
/* Define to a function attribute for Microsoft hotpatch assembly prefix. */
110119
Index: lib/3rdparty/CMakeLists.txt
111120
===================================================================
112-
--- lib/3rdparty/CMakeLists.txt (revision 62316)
121+
--- lib/3rdparty/CMakeLists.txt (revision 62758)
113122
+++ lib/3rdparty/CMakeLists.txt (working copy)
114123
@@ -2,7 +2,9 @@
115124
add_subdirectory(adns)
@@ -121,33 +130,42 @@ Index: lib/3rdparty/CMakeLists.txt
121130
add_subdirectory(fullfat)
122131
add_subdirectory(libmpg123)
123132
add_subdirectory(libsamplerate)
124-
Index: lib/3rdparty/freetype/CMakeLists.txt
125-
===================================================================
126-
--- lib/3rdparty/freetype/CMakeLists.txt (revision 62316)
127-
+++ lib/3rdparty/freetype/CMakeLists.txt (working copy)
128-
@@ -11,7 +11,9 @@
129-
src/base/ftbbox.c
130-
src/base/ftbdf.c
131-
src/base/ftbitmap.c
132-
+ src/base/ftcid.c
133-
src/base/ftdebug.c
134-
+ src/base/ftfstype.c
135-
src/base/ftgasp.c
136-
src/base/ftglyph.c
137-
src/base/ftgxval.c
133+
Index: subsystems/win32/csrsrv/init.c
134+
===================================================================
135+
--- subsystems/win32/csrsrv/init.c (revision 62758)
136+
+++ subsystems/win32/csrsrv/init.c (working copy)
137+
@@ -20,7 +20,7 @@
138+
/* DATA ***********************************************************************/
139+
140+
// Debug Flag
141+
-ULONG CsrDebug = 0; // 0xFFFFFFFF;
142+
+ULONG CsrDebug = 0xFFFFFFFF;
143+
144+
HANDLE CsrHeap = NULL;
145+
HANDLE CsrObjectDirectory = NULL;
138146
Index: win32ss/CMakeLists.txt
139147
===================================================================
140-
--- win32ss/CMakeLists.txt (revision 62316)
148+
--- win32ss/CMakeLists.txt (revision 62758)
141149
+++ win32ss/CMakeLists.txt (working copy)
142-
@@ -7,6 +7,8 @@
150+
@@ -6,7 +6,10 @@
151+
PROJECT(WIN32SS)
143152

144153
add_subdirectory(drivers)
154+
+add_subdirectory(user/winsrv)
145155

146156
+if (NOT _ARWINSS_)
147157
+
148158
if(USE_DIBLIB)
149159
add_subdirectory(gdi/diblib)
150160
endif()
161+
@@ -18,7 +21,6 @@
162+
add_subdirectory(gdi/gdi32)
163+
add_subdirectory(reactx)
164+
add_subdirectory(user/user32)
165+
-add_subdirectory(user/winsrv)
166+
167+
spec2def(win32k.sys win32k.spec ADD_IMPORTLIB)
168+
151169
@@ -243,3 +245,4 @@
152170
add_asm_files(win32ksys_asm sys-stubs.S)
153171
add_library(win32ksys ${win32ksys_asm})
@@ -156,7 +174,7 @@ Index: win32ss/CMakeLists.txt
156174
\ No newline at end of file
157175
Index: win32ss/drivers/CMakeLists.txt
158176
===================================================================
159-
--- win32ss/drivers/CMakeLists.txt (revision 62316)
177+
--- win32ss/drivers/CMakeLists.txt (revision 62758)
160178
+++ win32ss/drivers/CMakeLists.txt (working copy)
161179
@@ -1,6 +1,8 @@
162180

@@ -169,7 +187,7 @@ Index: win32ss/drivers/CMakeLists.txt
169187
add_subdirectory(watchdog)
170188
Index: win32ss/include/ntgdihdl.h
171189
===================================================================
172-
--- win32ss/include/ntgdihdl.h (revision 62316)
190+
--- win32ss/include/ntgdihdl.h (revision 62758)
173191
+++ win32ss/include/ntgdihdl.h (working copy)
174192
@@ -270,6 +270,7 @@
175193
DWORD dwCFCount;
@@ -199,3 +217,81 @@ Index: win32ss/include/ntgdihdl.h
199217
typedef struct _BRUSH_ATTR /* Used with pen too. */
200218
{
201219
FLONG AttrFlags;
220+
Index: win32ss/user/winsrv/consrv/conoutput.c
221+
===================================================================
222+
--- win32ss/user/winsrv/consrv/conoutput.c (revision 62758)
223+
+++ win32ss/user/winsrv/consrv/conoutput.c (working copy)
224+
@@ -77,9 +77,13 @@
225+
* Indeed, the palette handle comes from a console app
226+
* calling ourselves, running in CSRSS.
227+
*/
228+
+#ifndef _ARWINSS_
229+
NtUserConsoleControl(ConsoleMakePalettePublic,
230+
&SetPaletteRequest->PaletteHandle,
231+
sizeof(SetPaletteRequest->PaletteHandle));
232+
+#else
233+
+ UNIMPLEMENTED;
234+
+#endif
235+
236+
Status = ConDrvSetConsolePalette(Buffer->Header.Console,
237+
Buffer,
238+
Index: win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
239+
===================================================================
240+
--- win32ss/user/winsrv/consrv/frontends/gui/conwnd.c (revision 62758)
241+
+++ win32ss/user/winsrv/consrv/frontends/gui/conwnd.c (working copy)
242+
@@ -161,7 +161,11 @@
243+
}
244+
else
245+
{
246+
+#ifndef _ARWINSS_
247+
NtUserConsoleControl(GuiConsoleWndClassAtom, &WndClassAtom, sizeof(ATOM));
248+
+#else
249+
+ UNIMPLEMENTED;
250+
+#endif
251+
}
252+
253+
return (WndClassAtom != 0);
254+
Index: win32ss/user/winsrv/usersrv/init.c
255+
===================================================================
256+
--- win32ss/user/winsrv/usersrv/init.c (revision 62758)
257+
+++ win32ss/user/winsrv/usersrv/init.c (working copy)
258+
@@ -95,7 +95,9 @@
259+
WINAPI
260+
PrivateCsrssManualGuiCheck(LONG Check)
261+
{
262+
+#ifndef _ARWINSS_
263+
NtUserCallOneParam(Check, ONEPARAM_ROUTINE_CSRSS_GUICHECK);
264+
+#endif
265+
}
266+
267+
ULONG
268+
@@ -102,7 +104,13 @@
269+
NTAPI
270+
CreateSystemThreads(PVOID pParam)
271+
{
272+
+#ifndef _ARWINSS_
273+
NtUserCallOneParam((DWORD)pParam, ONEPARAM_ROUTINE_CREATESYSTEMTHREADS);
274+
+#else
275+
+ while (TRUE)
276+
+ {
277+
+ }
278+
+#endif
279+
DPRINT1("This thread should not terminate!\n");
280+
return 0;
281+
}
282+
Index: win32ss/user/winsrv/usersrv/shutdown.c
283+
===================================================================
284+
--- win32ss/user/winsrv/usersrv/shutdown.c (revision 62758)
285+
+++ win32ss/user/winsrv/usersrv/shutdown.c (working copy)
286+
@@ -901,7 +901,11 @@
287+
NTSTATUS Status;
288+
289+
/* FIXME Inside 2000 says we should impersonate the caller here */
290+
+#ifndef _ARWINSS_
291+
Status = NtUserCallTwoParam(UserProcessId, Flags, TWOPARAM_ROUTINE_EXITREACTOS);
292+
+#else
293+
+ Status = 0;
294+
+#endif
295+
296+
/* If the message isn't handled, the return value is 0, so 0 doesn't indicate
297+
success. Success is indicated by a 1 return value, if anything besides 0

0 commit comments

Comments
 (0)