Skip to content

Commit ed047f5

Browse files
committed
[ARWINSS]
- Update patch for trunk. Size--; - Thanks to Konstantin Shkil for spotting and fixing that dhcpsvc.dll overlap! svn path=/branches/arwinss/; revision=70342
1 parent 2751677 commit ed047f5

File tree

1 file changed

+28
-73
lines changed

1 file changed

+28
-73
lines changed

trunk.diff

Lines changed: 28 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Index: base/system/winlogon/winlogon.c
22
===================================================================
3-
--- base/system/winlogon/winlogon.c (revision 69795)
3+
--- base/system/winlogon/winlogon.c (revision 70340)
44
+++ base/system/winlogon/winlogon.c (working copy)
55
@@ -397,7 +397,7 @@
66
HandleShutdown(WLSession, WLX_SAS_ACTION_SHUTDOWN_REBOOT);
@@ -13,22 +13,24 @@ Index: base/system/winlogon/winlogon.c
1313
#if 0
1414
Index: cmake/baseaddress.cmake
1515
===================================================================
16-
--- cmake/baseaddress.cmake (revision 69795)
16+
--- cmake/baseaddress.cmake (revision 70340)
1717
+++ cmake/baseaddress.cmake (working copy)
18-
@@ -2,8 +2,8 @@
18+
@@ -2,9 +2,9 @@
1919
set(baseaddress_kernel32 0x7c750000)
2020
set(baseaddress_msvcrt 0x7c6b0000)
2121
set(baseaddress_advapi32 0x7c610000)
2222
-set(baseaddress_gdi32 0x7c570000)
2323
-set(baseaddress_user32 0x7c3d0000)
24+
-set(baseaddress_dhcpcsvc 0x7c380000)
2425
+set(baseaddress_gdi32 0x7c530000)
2526
+set(baseaddress_user32 0x7c380000)
26-
set(baseaddress_dhcpcsvc 0x7c380000)
27+
+set(baseaddress_dhcpcsvc 0x7cb80000)
2728
set(baseaddress_dnsapi 0x7c330000)
2829
set(baseaddress_icmp 0x7c300000)
30+
set(baseaddress_iphlpapi 0x7c2b0000)
2931
Index: cmake/config.cmake
3032
===================================================================
31-
--- cmake/config.cmake (revision 69795)
33+
--- cmake/config.cmake (revision 70340)
3234
+++ cmake/config.cmake (working copy)
3335
@@ -58,6 +58,9 @@
3436
"Whether to compile support for ELF files.
@@ -42,7 +44,7 @@ Index: cmake/config.cmake
4244
If you live in a country where software patents are valid/apply, don't
4345
Index: CMakeLists.txt
4446
===================================================================
45-
--- CMakeLists.txt (revision 69795)
47+
--- CMakeLists.txt (revision 70340)
4648
+++ CMakeLists.txt (working copy)
4749
@@ -165,6 +165,10 @@
4850
add_definitions(-D_WINKD_=1)
@@ -67,7 +69,7 @@ Index: CMakeLists.txt
6769
create_registry_hives()
6870
Index: dll/win32/kernel32/client/dllmain.c
6971
===================================================================
70-
--- dll/win32/kernel32/client/dllmain.c (revision 69795)
72+
--- dll/win32/kernel32/client/dllmain.c (revision 70340)
7173
+++ dll/win32/kernel32/client/dllmain.c (working copy)
7274
@@ -131,7 +131,7 @@
7375
SessionId,
@@ -80,7 +82,7 @@ Index: dll/win32/kernel32/client/dllmain.c
8082
BASESRV_SERVERDLL_INDEX,
8183
Index: dll/win32/msgina/gui.c
8284
===================================================================
83-
--- dll/win32/msgina/gui.c (revision 69795)
85+
--- dll/win32/msgina/gui.c (revision 70340)
8486
+++ dll/win32/msgina/gui.c (working copy)
8587
@@ -73,6 +73,7 @@
8688

@@ -111,7 +113,7 @@ Index: dll/win32/msgina/gui.c
111113
/*
112114
Index: include/asm/syscalls.inc
113115
===================================================================
114-
--- include/asm/syscalls.inc (revision 69795)
116+
--- include/asm/syscalls.inc (revision 70340)
115117
+++ include/asm/syscalls.inc (working copy)
116118
@@ -1,4 +1,4 @@
117119
-
@@ -323,7 +325,7 @@ Index: include/asm/syscalls.inc
323325
-#endif
324326
Index: include/psdk/winddi.h
325327
===================================================================
326-
--- include/psdk/winddi.h (revision 69795)
328+
--- include/psdk/winddi.h (revision 70340)
327329
+++ include/psdk/winddi.h (working copy)
328330
@@ -2911,7 +2911,7 @@
329331
_In_ ULONG cjSize,
@@ -336,7 +338,7 @@ Index: include/psdk/winddi.h
336338
APIENTRY
337339
Index: include/reactos/wine/config.h
338340
===================================================================
339-
--- include/reactos/wine/config.h (revision 69795)
341+
--- include/reactos/wine/config.h (revision 70340)
340342
+++ include/reactos/wine/config.h (working copy)
341343
@@ -1,3 +1,5 @@
342344
+#include "reactos/buildno.h"
@@ -346,7 +348,7 @@ Index: include/reactos/wine/config.h
346348
/* Define to a function attribute for Microsoft hotpatch assembly prefix. */
347349
Index: lib/3rdparty/CMakeLists.txt
348350
===================================================================
349-
--- lib/3rdparty/CMakeLists.txt (revision 69795)
351+
--- lib/3rdparty/CMakeLists.txt (revision 70340)
350352
+++ lib/3rdparty/CMakeLists.txt (working copy)
351353
@@ -2,7 +2,9 @@
352354
add_subdirectory(adns)
@@ -360,7 +362,7 @@ Index: lib/3rdparty/CMakeLists.txt
360362
add_subdirectory(libsamplerate)
361363
Index: subsystems/win32/csrsrv/init.c
362364
===================================================================
363-
--- subsystems/win32/csrsrv/init.c (revision 69795)
365+
--- subsystems/win32/csrsrv/init.c (revision 70340)
364366
+++ subsystems/win32/csrsrv/init.c (working copy)
365367
@@ -20,7 +20,7 @@
366368
/* DATA ***********************************************************************/
@@ -373,7 +375,7 @@ Index: subsystems/win32/csrsrv/init.c
373375
HANDLE CsrObjectDirectory = NULL;
374376
Index: win32ss/CMakeLists.txt
375377
===================================================================
376-
--- win32ss/CMakeLists.txt (revision 69795)
378+
--- win32ss/CMakeLists.txt (revision 70340)
377379
+++ win32ss/CMakeLists.txt (working copy)
378380
@@ -10,7 +10,10 @@
379381
PROJECT(WIN32SS)
@@ -402,7 +404,7 @@ Index: win32ss/CMakeLists.txt
402404
\ No newline at end of file
403405
Index: win32ss/drivers/CMakeLists.txt
404406
===================================================================
405-
--- win32ss/drivers/CMakeLists.txt (revision 69795)
407+
--- win32ss/drivers/CMakeLists.txt (revision 70340)
406408
+++ win32ss/drivers/CMakeLists.txt (working copy)
407409
@@ -1,6 +1,8 @@
408410

@@ -415,7 +417,7 @@ Index: win32ss/drivers/CMakeLists.txt
415417
add_subdirectory(watchdog)
416418
Index: win32ss/include/ntgdihdl.h
417419
===================================================================
418-
--- win32ss/include/ntgdihdl.h (revision 69795)
420+
--- win32ss/include/ntgdihdl.h (revision 70340)
419421
+++ win32ss/include/ntgdihdl.h (working copy)
420422
@@ -260,6 +260,7 @@
421423
DWORD dwCFCount;
@@ -447,7 +449,7 @@ Index: win32ss/include/ntgdihdl.h
447449
FLONG AttrFlags;
448450
Index: win32ss/user/winsrv/consrv/conoutput.c
449451
===================================================================
450-
--- win32ss/user/winsrv/consrv/conoutput.c (revision 69795)
452+
--- win32ss/user/winsrv/consrv/conoutput.c (revision 70340)
451453
+++ win32ss/user/winsrv/consrv/conoutput.c (working copy)
452454
@@ -99,9 +99,13 @@
453455
* Indeed, the palette handle comes from a console app
@@ -465,7 +467,7 @@ Index: win32ss/user/winsrv/consrv/conoutput.c
465467
Buffer,
466468
Index: win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
467469
===================================================================
468-
--- win32ss/user/winsrv/consrv/frontends/gui/conwnd.c (revision 69795)
470+
--- win32ss/user/winsrv/consrv/frontends/gui/conwnd.c (revision 70340)
469471
+++ win32ss/user/winsrv/consrv/frontends/gui/conwnd.c (working copy)
470472
@@ -159,7 +159,11 @@
471473
}
@@ -481,9 +483,9 @@ Index: win32ss/user/winsrv/consrv/frontends/gui/conwnd.c
481483
return (WndClassAtom != 0);
482484
Index: win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
483485
===================================================================
484-
--- win32ss/user/winsrv/consrv/frontends/gui/guiterm.c (revision 69795)
486+
--- win32ss/user/winsrv/consrv/frontends/gui/guiterm.c (revision 70340)
485487
+++ win32ss/user/winsrv/consrv/frontends/gui/guiterm.c (working copy)
486-
@@ -160,9 +160,14 @@
488+
@@ -161,9 +161,14 @@
487489
/* Assign this console input thread to this desktop */
488490
DesktopConsoleThreadInfo.DesktopHandle = GuiInitInfo->Desktop; // Duplicated desktop handle
489491
DesktopConsoleThreadInfo.ThreadId = InputThreadId;
@@ -498,7 +500,7 @@ Index: win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
498500
if (!NT_SUCCESS(Status)) goto Quit;
499501

500502
/* Connect this CSR thread to the USER subsystem */
501-
@@ -299,9 +304,13 @@
503+
@@ -301,9 +306,13 @@
502504
/* Remove this console input thread from this desktop */
503505
// DesktopConsoleThreadInfo.DesktopHandle;
504506
DesktopConsoleThreadInfo.ThreadId = 0;
@@ -512,7 +514,7 @@ Index: win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
512514

513515
/* Close the duplicated desktop handle */
514516
CloseDesktop(DesktopConsoleThreadInfo.DesktopHandle); // NtUserCloseDesktop
515-
@@ -358,11 +367,16 @@
517+
@@ -366,11 +375,16 @@
516518
{
517519
RtlInitUnicodeString(&DesktopPath, L"Default");
518520
}
@@ -532,27 +534,9 @@ Index: win32ss/user/winsrv/consrv/frontends/gui/guiterm.c
532534

533535
Index: win32ss/user/winsrv/usersrv/init.c
534536
===================================================================
535-
--- win32ss/user/winsrv/usersrv/init.c (revision 69795)
537+
--- win32ss/user/winsrv/usersrv/init.c (revision 70340)
536538
+++ win32ss/user/winsrv/usersrv/init.c (working copy)
537-
@@ -173,6 +173,7 @@
538-
CsrApiPort = CsrQueryApiPort();
539-
540-
/* Inform win32k about the API port */
541-
+#ifndef _ARWINSS_
542-
Status = NtUserSetInformationThread(NtCurrentThread(),
543-
UserThreadCsrApiPort,
544-
&CsrApiPort,
545-
@@ -181,6 +182,9 @@
546-
{
547-
return Status;
548-
}
549-
+#else
550-
+ UNIMPLEMENTED
551-
+#endif
552-
}
553-
554-
/* Check connection info validity */
555-
@@ -199,9 +203,14 @@
539+
@@ -199,9 +199,14 @@
556540

557541
/* Pass the request to win32k */
558542
ConnectInfo->dwDispatchCount = 0; // gDispatchTableValues;
@@ -567,7 +551,7 @@ Index: win32ss/user/winsrv/usersrv/init.c
567551

568552
return Status;
569553
}
570-
@@ -254,7 +263,11 @@
554+
@@ -254,7 +259,11 @@
571555
}
572556

573557
/* Set the process creation notify routine for BASE */
@@ -581,7 +565,7 @@ Index: win32ss/user/winsrv/usersrv/init.c
581565
Status = NtUserInitialize(USER_VERSION,
582566
Index: win32ss/user/winsrv/usersrv/shutdown.c
583567
===================================================================
584-
--- win32ss/user/winsrv/usersrv/shutdown.c (revision 69795)
568+
--- win32ss/user/winsrv/usersrv/shutdown.c (revision 70340)
585569
+++ win32ss/user/winsrv/usersrv/shutdown.c (working copy)
586570
@@ -381,7 +381,12 @@
587571
static BOOLEAN
@@ -596,32 +580,3 @@ Index: win32ss/user/winsrv/usersrv/shutdown.c
596580
}
597581

598582

599-
@@ -678,9 +683,14 @@
600-
while (TRUE)
601-
{
602-
/* Notify Win32k and potentially Winlogon of the shutdown */
603-
+#ifndef _ARWINSS_
604-
Status = NtUserSetInformationThread(CsrThread->ThreadHandle,
605-
UserThreadInitiateShutdown,
606-
&Flags, sizeof(Flags));
607-
+#else
608-
+ Status = STATUS_SUCCESS;
609-
+ UNIMPLEMENTED
610-
+#endif
611-
DPRINT1("Win32k says: %lx\n", Status);
612-
switch (Status)
613-
{
614-
@@ -736,9 +746,13 @@
615-
// FIXME: If Status == STATUS_CANCELLED, call RecordShutdownReason
616-
617-
/* Tell Win32k and potentially Winlogon that we're done */
618-
+#ifndef _ARWINSS_
619-
NtUserSetInformationThread(CsrThread->ThreadHandle,
620-
UserThreadEndShutdown,
621-
&Status, sizeof(Status));
622-
+#else
623-
+ UNIMPLEMENTED
624-
+#endif
625-
626-
DPRINT1("SrvExitWindowsEx returned 0x%08x\n", Status);
627-

0 commit comments

Comments
 (0)