Commit graph

60420 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto bf2b5fda05 [WIN32K]: Anecdotal formatting/renaming changes before reusing this code in other parts of wijn32k.
svn path=/trunk/; revision=65835
2014-12-26 12:06:43 +00:00
Pierre Schweitzer 5ad81a46e3 [DXDIAG]
Update French translation

svn path=/trunk/; revision=65834
2014-12-26 11:40:17 +00:00
Hervé Poussineau 6a3a03c719 [FREELDR] Support custom SystemPath and ramdisk in setup phase
We can now start ReactOS installation via PXE boot.

svn path=/trunk/; revision=65833
2014-12-26 11:38:43 +00:00
Hervé Poussineau 948e82af18 [FREELDR] Merge setupldr_pe and freeldr_pe
svn path=/trunk/; revision=65832
2014-12-26 11:38:39 +00:00
Hervé Poussineau d8fc6d0000 [NTFS] Be verbose only on unimplemented FSCTL requests we're supposed to handle
svn path=/trunk/; revision=65831
2014-12-26 11:38:35 +00:00
Hervé Poussineau 723f55af2c [NTOS:CC] Fix some debug prints
svn path=/trunk/; revision=65830
2014-12-26 11:38:31 +00:00
Pierre Schweitzer 373fb8c25c [CHARMAP]
Fix the following issues:
- Skip rotated font (font name starting with "@" char)
- Fix a comment (misspelled "Richedit")
- Fix enlarged preview font in font name is long (it truncated font name in 31 chars when copying)
- Fix 2 magic values (255 here is not meaningful, and it doesn't even entirely showing Unicode Plane 0) 

Patch by Roy Tam.

CORE-8966 #resolve #comment Thanks. Commited in r65829.

svn path=/trunk/; revision=65829
2014-12-26 11:02:47 +00:00
James Tabor 51cd3cccb9 - Patch by Aric Stewart : Pass WM_IME_CONTROL messages to the IME.
svn path=/trunk/; revision=65828
2014-12-26 00:44:36 +00:00
Thomas Faber fdc61d524b [WIN32K:NTUSER]
- Don't forget to ProbeForWrite in NtUserProcessConnect
- Use SEH in NtUserSetInformationThread:UserThreadCsrApiPort

svn path=/trunk/; revision=65827
2014-12-25 23:10:47 +00:00
Pierre Schweitzer 8783434e42 [WHOAMI]
Add French translation
It's totally broken though because the util directly writes Unicode to console. That should be fixed (see CORE-8965).

svn path=/trunk/; revision=65826
2014-12-25 22:01:29 +00:00
Hermès Bélusca-Maïto ea4e02fba0 [USER32]
- CreateSystemThreads' parameter is unused, and the parameter of ONEPARAM_ROUTINE_CREATESYSTEMTHREADS win32k system call is set to TRUE when creating system threads in "remote processes", i.e. not CSRSS.
- Few code formatting fixes.
CORE-8949

svn path=/trunk/; revision=65825
2014-12-25 15:50:07 +00:00
Hermès Bélusca-Maïto 5195c10036 [WIN32K]: Change the enum id name for something meaningful (here: PROC == process and not procedure).
svn path=/trunk/; revision=65824
2014-12-25 15:27:31 +00:00
Hermès Bélusca-Maïto 13a6f58a0a [USER32]: Fix whitespace. Everybody knows that our user32/win32k modules are the best examples of good programming, indentation rules and so on...
svn path=/trunk/; revision=65823
2014-12-25 15:03:48 +00:00
David Quintana fca4b3f636 [RSHELL]
* Add a copy of CBandSite to rshell, so we can debug it in windows with our explorer.

svn path=/trunk/; revision=65822
2014-12-24 17:00:53 +00:00
David Quintana 3b182d93b2 [BROWSEUI]
* Do not make browseui an NT6 dll just because it has a missing include and it needs a few previously undocumented constants. We can just define them in an undoc header.

svn path=/trunk/; revision=65821
2014-12-24 16:14:10 +00:00
Hermès Bélusca-Maïto 7afb72e9a2 [WIN32K]
Fix NtUserProcessConnect to use the process handle we give to it, instead of the "current process"... This should fix the user32 CSR connection that I was failing to fix in previous revisions...
CORE-8949

svn path=/trunk/; revision=65820
2014-12-24 15:48:37 +00:00
Hermès Bélusca-Maïto 84b91a7f5f [NETSHELL]
Fix flags usage for LoadImage / CopyImage, that made network tray applet icons uglily being downscaled from 32px versions instead of their 16px counterparts.

svn path=/trunk/; revision=65819
2014-12-24 15:25:42 +00:00
James Tabor e0bd16e270 - Fix, always something, thank you Thomas.
svn path=/trunk/; revision=65818
2014-12-24 00:18:03 +00:00
Hermès Bélusca-Maïto 56347a8b98 [WIN32K]
Reintroduce CSR support for kernel mode, based on code from Ge that was wiped out in revision 58770, and by ntdll CSR code. Is needed for kernel to user-mode CSR callbacks.

For readers, I remind you the big callback picture in the Win32 subsystem:
- In Windows NT 3.1 and 3.51, USER and GDI was modeled against client/server model (USER32.DLL and WINSRV.DLL, and GDI32.DLL and GDISRV.DLL), all running in user mode (using the CSR API).
- Starting Windows NT 4.0 (and up), some USER and GDI parts were moved into kernel mode (in the WIN32K.SYS driver) to speedup communication. We get:
  * GDI32.DLL as the client, doing win32k system calls (kernel-mode system calls to win32k),
  * and USER32.DLL, WINSRV.DLL and WIN32K.SYS working in tandem, USER32.DLL being the client and {WINSRV.DLL, WIN32K.SYS} being the server.
    USER32.DLL can do win32k system calls or CSR calls to WINSRV.DLL (client to server calls). For server-to-server calls, we have WINSRV.DLL
    doing win32k system calls, or WIN32K.SYS doing CSR calls back to WINSRV.DLL . Also, there is the possibility for WIN32K.SYS to make user-mode
    callbacks to USER32.DLL.

svn path=/trunk/; revision=65817
2014-12-23 21:17:24 +00:00
Hermès Bélusca-Maïto eacca6fe3e [NTDLL]: Whitespace fixes. No code changes.
svn path=/trunk/; revision=65816
2014-12-23 20:35:42 +00:00
James Tabor 4b6fb8acdf [NtUser]
- Crash while in recursion through hook calls. Move fast calls to api. Placed safe guards for removing message queue structures. Lock threads while calling hooks. Just add paranoid code to prevent recursion freeing that will crash the kernel at some point. Fixes OpenMPT crashes, see CORE-8819. This might improve the same issues with CORE-6734.

svn path=/trunk/; revision=65815
2014-12-23 19:05:44 +00:00
Amine Khaldi 117b0daf21 [KDVBOX] Properly handle the ASM source file.
svn path=/trunk/; revision=65814
2014-12-23 19:01:02 +00:00
Timo Kreuzer 69512e2d9b [KDVBOX]
Implement a virtualkd compatible kernel debugger transport DLL. I started this, because I didn't manage to get the original one working, but it turned out, the original one works, you only need to use the correct virtualkd version. Anyway, it's there now. A virtualkd version that works with VBox 4.3.16+ can be found here: http://forum.sysprogs.com/viewtopic.php?f=4&t=3370 or here: http://public.avast.com/~hnanicek/VirtualKd.zip
The folder is called kdvm, since I thought about adding support for VMWare as well, but here the original one probably works as well.
Also fix my email address in some files.

svn path=/trunk/; revision=65813
2014-12-23 17:48:16 +00:00
Hermès Bélusca-Maïto a9305dd7bb [SHORTCUTS]
Fix Explorer shortcut icon. Patch by Jared.
CORE-8955 #resolve #comment Fixed in r65812, thanks!

svn path=/trunk/; revision=65812
2014-12-23 17:11:00 +00:00
Hermès Bélusca-Maïto f743d127e7 [USER32]
Reenable some disabled tests, while disabling some other calls, namely:
- code in ClientThreadStartup (that was moved in ClientThreadSetupHelper that is hackilly now called in Init() from DllMain),
- code in User32CallClientThreadSetupFromKernel,
- add two flag manual resets in Init() and the forced call to ClientThreadSetupHelper,
- and moreover the whole CSR call in DllMain, that seems to sometimes cause some user32 internal global pointers to remain NULL where they should not (more specifically some "pdi" thing).

Obviously all these problems need to be understood (why some things do not become initialized when they should, etc...). See r65799, revert r65810, and CORE-8949.

svn path=/trunk/; revision=65811
2014-12-23 16:42:59 +00:00
Hermès Bélusca-Maïto 7385e6669c [USER32]: Add yet another magic hack to temporarily reenable bots (ofc. mention in the code that this is a hack). See r65799 for more details, and CORE-8949.
svn path=/trunk/; revision=65810
2014-12-23 14:31:28 +00:00
Amine Khaldi df6ec77084 [TRANSLATIONS] Russian translation update by Kudratov Olimjon. CORE-8947
svn path=/trunk/; revision=65809
2014-12-23 11:25:42 +00:00
Amine Khaldi 9149e05f38 [BOOTDATA] Add some default settings for crash control to hivesys.inf. By Ricardo Hanke. CORE-8953
svn path=/trunk/; revision=65808
2014-12-23 11:01:17 +00:00
Amine Khaldi 9e80977c0d [SHDOCVW] Bring exports closer to native.
CORE-8936 CORE-8174

svn path=/trunk/; revision=65807
2014-12-23 10:53:07 +00:00
Amine Khaldi 252f1971de [SHLWAPI] Fix inverted StopWatch forwards. Accepted upstream. CORE-8954
svn path=/trunk/; revision=65806
2014-12-23 10:50:10 +00:00
David Quintana c67d37f223 [EXPLORER]
* Fix count of visible buttons getting out of sync when removing buttons. Fixes empty space at the end of the notification toolbar.
CORE-8840 #resolve #comment This should be fixed as of r65805.

svn path=/trunk/; revision=65805
2014-12-23 01:55:48 +00:00
David Quintana b11d90c85f [EXPLORER]
* Improve an older change that I commited by mistake, with the improvbements based on a patch by Giannis.
* In Windows, fixes the taskbar having a size grip with the taskbar is themed and locked.
* In ReactOS, the size grip never seems to disappear, contrary to Giannis' concerns in the issue.
* Because of the above, I decided to commit the changes, and let the sizing edge inconsistency be a followup to the issue.
CORE-6966 #resolve #comment A modified version of the patch was commited in r65804. Thanks.

svn path=/trunk/; revision=65804
2014-12-23 01:31:36 +00:00
David Quintana d9a214e353 [EXPLORER]
* Handle WM_CONTEXTMENU in the notification area so it does not spread upwards to the taskbar window.
* In theory, only one of the two handlers would be necessary, and it is true when testing in Windows, but in ReactOS, the handler in CSysPagerWnd was not enough. This may be worth a look by the win32k experts to see if it's a bug, or Windows was correcting my error.
CORE-8870 #resolve #comment Should be fixed in r65803. Thanks for reporting.

svn path=/trunk/; revision=65803
2014-12-23 01:13:05 +00:00
Sylvain Petreolle 8222f8d654 [WHOAMI]
Fix warning into the russian file.

svn path=/trunk/; revision=65802
2014-12-22 23:44:25 +00:00
Pierre Schweitzer cc116aa826 [FASTFAT]
So far, totally disable VPB swapout on dismount. It appears to have brought more issues than it actually solves.
A more accurate implementation will be required.

CORE-8928 #comment Can you please retry with r65801

svn path=/trunk/; revision=65801
2014-12-22 23:00:22 +00:00
Pierre Schweitzer d34671697f [SHELL32]
Update French translation

svn path=/trunk/; revision=65800
2014-12-22 22:55:07 +00:00
Hermès Bélusca-Maïto 02a51a5dce In absence of patchbot, let's test patch directly on... trunk!! Yeah!! Let's break trunk! (or not, we'll see...)
[USER32][USERSRV][WIN32K]
- Flag CSRSS threads as such.
- Each time a win32 thread is "created" (or a win32k system call is done) a PsConvertToGuiThread call is done, that makes a Win32ThreadCallout which calls UserCreateThreadInfo. We should call back ClientThreadSetup to set client-side info.
- Introduce a ClientThreadSetupHelper function to try to understand what happens when doing direct calls to ClientThreadSetup and via win32k callbacks.
- Reenable CSR call in user32::DllMain but add shame hacks in Init(..) to force NtUserProcessConnect callbacks (yet they should not be done there): see the code comment associated for more details.
- Temporarily disable ClientThreadSetupHelper call in ClientThreadSetup because it makes things fail, like console input thread failing and so on...
- ... and in ClientThreadSetupHelper, some correct code is commented out because it currently breaks other things (like menu initialization etc...), and HACKS ARE ADDED!! (see especially the "if (gpsi)" one, that should not exist, but if removed we fail sometimes in MenuInit because gpsi becomes NULL for some reason, if some other code that makes redundant calls to NtUserProcessConnect, is uncommented).

To sum up I tried to scaffold the thing as it should be, but with disabled code to not break everything.

CORE-8949 #comment Revision 65799 committed the patch v1.

svn path=/trunk/; revision=65799
2014-12-22 21:23:00 +00:00
Hermès Bélusca-Maïto 4ccf6c6b75 [USERSRV]
- Reenable UserClientConnect callback, it's not the problematic code that made bots to fail at 3rd stage and caused r65716 to be committed.
- Put the system threads hack *after* having called NtUserInitialize (that really initializes user-kernel interface with win32k), and not before.

svn path=/trunk/; revision=65798
2014-12-22 19:50:00 +00:00
Hermès Bélusca-Maïto 61886223b4 [GDI32]
- Call NtGdiInit before initializing ourselves (ok, in ROS NtGdiInit does nothing interesting, but still do it to be call-compatible with win2k3 so everything initializes as it should).
- Do some cleanup on process detach.

svn path=/trunk/; revision=65797
2014-12-22 19:44:59 +00:00
Amine Khaldi e1ad312568 [SNDREC32] Update Chinese (zh-CN) translation. By Henry Tang Ih. CORE-8933
svn path=/trunk/; revision=65796
2014-12-22 19:29:44 +00:00
Amine Khaldi 6ab6e74922 [TRANSLATIONS] Russian translation update by Kudratov Olimjon. CORE-8947
svn path=/trunk/; revision=65795
2014-12-22 19:10:42 +00:00
Amine Khaldi 028cf3af76 [NOTEPAD] Uzbek translation by Kudratov Olimjon. CORE-8948
svn path=/trunk/; revision=65794
2014-12-22 19:01:03 +00:00
Amine Khaldi e9e0408e0a [MPLAY32] Fix some entries in the Chinese (zh-CN) translation. Spotted by Alexander Misel and fixed by Henry Tang Ih. CORE-8918
svn path=/trunk/; revision=65793
2014-12-22 18:52:25 +00:00
Amine Khaldi 55299d897c [SHELL32] Sync translations to the English one. Translators, you're on!
svn path=/trunk/; revision=65792
2014-12-22 18:48:47 +00:00
Amine Khaldi 4e00f10316 [SHELL32] Update Russian translation by Petr Akhlamov. CORE-8942
svn path=/trunk/; revision=65791
2014-12-22 18:38:27 +00:00
Hermès Bélusca-Maïto e880206827 [WHOAMI]
- In German translation, replace erroneous \" to "" for putting quotes inside strings. Fixes resource compilation in GCC/MSVC.
- Make proper help string indentation in resource files. NOTE FOR TRANSLATORS: Please keep the identation correct!

svn path=/trunk/; revision=65790
2014-12-22 12:28:05 +00:00
Daniel Reimer 4dceaa107a [WHOAMI]
German translation

svn path=/trunk/; revision=65789
2014-12-22 11:40:58 +00:00
Pierre Schweitzer 6de4a7e051 [WHOAMI]
Fix invalid memory usage, memory leaks, partial zeroes, big if blocks, ...

Would be nice also to check all the allocations which are not checked yet

CORE-8533

svn path=/trunk/; revision=65788
2014-12-22 09:53:24 +00:00
Amine Khaldi 4d592a5c29 [WHOAMI] Add preliminary version of whoami utility by Ismael Ferreras Morezuelas (with some changes by me). CORE-8533
svn path=/trunk/; revision=65787
2014-12-21 23:10:46 +00:00
Amine Khaldi b37505476c [TREE] Attempt to fix some style & formatting crimes. Improve header inclusions. CORE-8529
svn path=/trunk/; revision=65786
2014-12-21 18:48:33 +00:00