Commit graph

60078 commits

Author SHA1 Message Date
Timo Kreuzer 556eadf871 [WIN32K]
- Implement FLOATOBJ_bConvertToLong inline function that converts a FLOATOBJ to a long or returns FALSE if the value would overflow a LONG
- Remove underscore prefixes from inline FLOATOBJ functions and use it only on those that already exist as non-inline versions.
- Remove duplicated FLOATOBJ defines for non-x86
- Fail on integer overflow in XFORMOBJ_bXformFixPoints to avoid creating bogus coordinates.

svn path=/trunk/; revision=65490
2014-11-25 23:44:59 +00:00
Hermès Bélusca-Maïto fc2043573c Forgot this include...
svn path=/trunk/; revision=65489
2014-11-25 23:36:56 +00:00
Hermès Bélusca-Maïto 8b95166d91 [LSASS][SERVICES][WINLOGON]: As CSRSS and SMSS already, those apps should be marked as critical for the system. See http://www.geoffchappell.com/studies/windows/win32/ntdll/api/rtl/peb/setprocessiscritical.htm for more details.
svn path=/trunk/; revision=65488
2014-11-25 23:34:14 +00:00
James Tabor d1f8d55254 [Win32k]
- Fixes wine win.c:test_SetParent last ShowWindow test after popup dies.

svn path=/trunk/; revision=65487
2014-11-25 23:03:43 +00:00
Pierre Schweitzer fb11517f41 [NTFS]
Make the bound check more consistent and more accurate

svn path=/trunk/; revision=65486
2014-11-25 21:03:17 +00:00
Timo Kreuzer 3b807b3629 [FREELDR]
Move down MEMORY_MARGIN to 0x9A00 to fix boot on BIOSes with even larger EBDAs (see also r64945 and r65127), still leaving 48KB for the DISKREADBUFFER
CORE-8830 #resolve

svn path=/trunk/; revision=65485
2014-11-25 20:21:16 +00:00
James Tabor 6cabec82f6 [Win32k]
- Fix wine win.c:test_mouse_input:WM_COMMAND tests.

svn path=/trunk/; revision=65484
2014-11-25 19:56:40 +00:00
Amine Khaldi 861d261971 [EXPLORER][EXPLORER_NEW]
* Revert the renames (r65476 => r65478).
* We'll do these after we merge.

svn path=/branches/shell-experiments/; revision=65483
2014-11-25 16:17:58 +00:00
Amine Khaldi 9bdc095371 * Sync up to trunk head (r65481).
svn path=/branches/shell-experiments/; revision=65482
2014-11-25 12:43:36 +00:00
Timo Kreuzer 2e4fc079dc [PSDK/XDK]
Add back definitions that go lost in the last commit.
winnt.h is autogenerated, please do not modify it directly, but instead modify the related file in XDK and regenerate the headers from XDK.

svn path=/trunk/; revision=65481
2014-11-25 09:46:18 +00:00
Timo Kreuzer c6f12ff6ba [PSDK]
When I wrote "the compiler can optimize this better" I was obviously referring to a sane compiler like MSVC. Optimize (U)Int32x32To64 on x86 GCC builds by using __emul(u), since the native math results in horribly inefficient code doing 3 multiplications and some shifts.

svn path=/trunk/; revision=65480
2014-11-25 09:08:34 +00:00
David Quintana e047c09545 [EXPLORER-NEW]
* Top-Level windows have no parent background so it makes no sense to try to draw it.

svn path=/branches/shell-experiments/; revision=65479
2014-11-25 01:19:32 +00:00
David Quintana fd5c4836ad Oops. My bad.
svn path=/branches/shell-experiments/; revision=65478
2014-11-24 23:53:28 +00:00
David Quintana ff807f43d0 [EXPLORER-NEW]
* Rename the new explorer to take the now-vacant folder name, to match the output filename. Change 2/2

svn path=/branches/shell-experiments/; revision=65477
2014-11-24 23:10:11 +00:00
David Quintana e0e308711a [EXPLORER-OLD]
* Although the output filename was changed for almost as long as this branch has existed, I never bothered to actually rename the folders to reflect the output name. Change 1/2

svn path=/branches/shell-experiments/; revision=65476
2014-11-24 23:08:50 +00:00
Pierre Schweitzer 10d2eaf33b [NTFS]
Add the reparse point attribute definition

svn path=/trunk/; revision=65475
2014-11-24 20:02:40 +00:00
Pierre Schweitzer f2e863d929 [NTFS]
Warn about unimplemented sub-node browsing while looking into a MFT directory stream.
Might likely explain why we cannnot enumerate all the files on a Win7 volume.

svn path=/trunk/; revision=65474
2014-11-24 20:01:34 +00:00
Pierre Schweitzer d23756ccb7 [NTFS]
ASSERT -> NT_VERIFY

Spotted by Thomas. Thanks :-)

svn path=/trunk/; revision=65473
2014-11-24 19:54:22 +00:00
James Tabor 620eec28ea [NtUser]
- Synchronize mouse messages. Part II
- Dedicated to Giannis Adamopoulos and Amine Khaldi.
- Additional fixes are added.
- This should be more accurate, based on "Hit Testing: Which HWND is the mouse over?":
http://blogs.msdn.com/b/dwayneneed/archive/2008/09/08/transparent-windows-in-wpf.aspx
- Note: Older FireFox menu item hilite select seem to work now, do not need to keep moving the mouse to keep it hilited to be selected.
- Test results: https://reactos.org/sites/all/modules/reactos/testman/compare.php?ids=33709,33710,33713

svn path=/trunk/; revision=65472
2014-11-24 02:50:18 +00:00
Hermès Bélusca-Maïto 398b0a3c4f [CONSRV]: Implement CREATE_NO_WINDOW support.
svn path=/trunk/; revision=65471
2014-11-23 23:04:45 +00:00
Pierre Schweitzer 1dc01e0746 [NTFS]
- Fix $FILENAME_ATTRIBUTE definition to allow reading reparse points tag
- Add missing file attribute (reparse point)

svn path=/trunk/; revision=65470
2014-11-23 20:52:59 +00:00
Hermès Bélusca-Maïto f43bb8d7df [TASKMGR]
- Show programs command line in taskmgr.
  Patch by Ismael Ferreras Morezuelas with minor modifications by me.
- int nMaxCount --> ULONG nMaxCount (that makes everything clearer and removes MSVC warnings).
CORE-5467 #resolve #comment Feature committed in revision 65469, cheers ;)

svn path=/trunk/; revision=65469
2014-11-23 20:10:15 +00:00
Pierre Schweitzer 4a61f5ee5b [NTFS]
- Implement NtfsGetPositionInformation(), NtfsGetBasicInformation()
- Add a fixme in NtfsGetStandardInformation() regarding the number of links

svn path=/trunk/; revision=65468
2014-11-23 19:53:16 +00:00
Hermès Bélusca-Maïto 2fb9a4573b Fixup a potential division by zero (that happens anyway in my tests).
svn path=/trunk/; revision=65467
2014-11-23 19:16:41 +00:00
Hermès Bélusca-Maïto 734795e23e [TASKMGR]
Improve formatting memory size usage in the status bar of Task Manager.
Patch by Ismael Ferreras Morezuelas (swyter).
CORE-8810 #resolve #comment Committed in r65466, thanks d:^D

svn path=/trunk/; revision=65466
2014-11-23 18:36:25 +00:00
Hermès Bélusca-Maïto 60205c7b0b [WIN32K]: Use the logon process ID instead of a full win32k process object, it simplifies code in some parts.
svn path=/trunk/; revision=65465
2014-11-23 16:09:00 +00:00
Hermès Bélusca-Maïto 72074af697 Whitespace fixes.
svn path=/trunk/; revision=65464
2014-11-23 15:57:13 +00:00
Hermès Bélusca-Maïto d35b779e48 [WINSRV]: Pave the way for proper ReactOS shutdown. Part 1/X
CORE-8322

svn path=/trunk/; revision=65463
2014-11-23 15:50:49 +00:00
Pierre Schweitzer d010ffc7df [NTFS]
- In NtfsQueryDirectory(), don't upcase name in dir search pattern, it can conflict with POSIX names.
- In CompareFileName(), handle the fact that for Win32 & DOS we do case insensitive comparisons by upcasing name before match. Don't do it for POSIX names!

This fixes name completion in cmd for POSIX. And doesn't break it for Win32 :-).

svn path=/trunk/; revision=65462
2014-11-23 15:49:24 +00:00
Hermès Bélusca-Maïto 16aefd4c54 Resuscitate VMS subsystem (yeah, you've correctly read: VMS!!) from revision 24496.
svn path=/trunk/; revision=65461
2014-11-23 15:24:49 +00:00
Hermès Bélusca-Maïto 2ca9fcd3b0 Resuscitate POSIX subsystem from revision 21378.
svn path=/trunk/; revision=65460
2014-11-23 15:23:36 +00:00
Hermès Bélusca-Maïto 9f2787eb32 Resuscitate OS/2 subsystem from revision 24496.
svn path=/trunk/; revision=65459
2014-11-23 15:22:07 +00:00
Hermès Bélusca-Maïto ace5ce5329 Create a repository to ressuscitate our verrrrry old subsystems.
svn path=/trunk/; revision=65458
2014-11-23 14:50:34 +00:00
Hermès Bélusca-Maïto f8fc01c589 [CONSRV]: Reduce code duplication and remove unused InputWaitHandle member.
svn path=/trunk/; revision=65457
2014-11-23 14:26:37 +00:00
Pierre Schweitzer 950747c6d1 [NTFS]
- Implement GetBestFileNameFromRecord() which will select the higher subsystem name available (POSIX -> Win32 -> DOS) and return it
- Replace the hand-made implementation of it in dirctl functions relying on it (NtfsGetDirectoryInformation(), NtfsGetFullDirectoryInformation(), NtfsGetBothDirectoryInformation())
- Use it in NtfsMakeFCBFromDirEntry()

This fixes browsing POSIX volume (and opening file) in cmd. Even though, explorer doesn't seem to be happy with such change...
This doesn't fix yet the autocompletion in cmd either.

svn path=/trunk/; revision=65456
2014-11-23 14:07:08 +00:00
Hervé Poussineau c966e68f3b [PSDK] Add some missing setupapi-related functions
svn path=/trunk/; revision=65455
2014-11-23 13:48:20 +00:00
Hervé Poussineau 997dd60f96 [SCSIPORT] Better error messages when receiving unexpected IOCTLs of mount manager
svn path=/trunk/; revision=65454
2014-11-23 13:48:12 +00:00
Hervé Poussineau bcc95895c6 [NTOS:CC] Fix bug in CcPinRead
In fact, this bug is never exposed because CcPinMappedData always returns TRUE.

svn path=/trunk/; revision=65453
2014-11-23 13:48:06 +00:00
Hervé Poussineau b89c9e939b [NTOS:MM] Fix warnings when NEWCC is enabled
svn path=/trunk/; revision=65452
2014-11-23 13:48:01 +00:00
Hermès Bélusca-Maïto 5d7ced37ec [NTVDM]: Rewrite video window scrolling code more efficiently (i.e. getting rid of HeapAlloc/Free calls). As a bonus, implement scrolling horizontally.
svn path=/trunk/; revision=65451
2014-11-23 12:03:55 +00:00
Hermès Bélusca-Maïto 0f5d768793 [KERNEL32]
- Fix a misspelling.

[NTDLL]
- Fix the prototypes of RtlFormatMessageEx(Ex), this fixes strange apps kills when they use FormatMessage[A/W] with win2k3 kernel32 (that uses internally RtlFormatMessage to do the job).

svn path=/trunk/; revision=65450
2014-11-22 23:13:41 +00:00
Hermès Bélusca-Maïto b280f71b27 [KERNEL32][CONSRV]
- Remove the USE_CONSOLE_INIT_HANDLES define since now we "support" the console initialization events.
- The events in the CONSOLE_START_INFO structure are console initialization events used for asynchronous console creation, that are set whenever console creation succeeds, or fails.
- Stubplement their usage in CONSRV.

Now we are able to fully use Windows 2k3 kernel32.dll and be able to run console programs with it.

svn path=/trunk/; revision=65449
2014-11-22 22:13:08 +00:00
Hermès Bélusca-Maïto ec34daaa0a [NTVDM]:
- INT 15h offers some "OS hooks" that do nothing normally but return success.
- Stub "Switch to protected mode" INT 15h AH=89h function.

svn path=/trunk/; revision=65448
2014-11-22 19:18:23 +00:00
Aleksandar Andrejevic 9f8411bf3a [FAST486]
- Fix interrupts in V86 mode.
- CLI and STI should call Fast486GetCurrentPrivLevel in their IOPL check, since it
  always returns 3 if the VM flag is set.


svn path=/trunk/; revision=65447
2014-11-22 16:33:47 +00:00
Hermès Bélusca-Maïto e9b8b6f597 [FAST486]: Fix a comment and use the TOGGLE_OPSIZE macro.
svn path=/trunk/; revision=65446
2014-11-22 16:23:59 +00:00
Timo Kreuzer 34e909ecc9 [WIN32K]
- In XFORMOBJ_bApplyXform do not overwrite the data in the input buffer
- Make XFORMOBJ_bXformFixPoints return VOID instead of BOOL

svn path=/trunk/; revision=65445
2014-11-22 09:07:33 +00:00
Amine Khaldi 80b272de8e [TRANSLATIONS][WDMAUD]
* Reactos/ReactOs => ReactOS.

svn path=/trunk/; revision=65444
2014-11-21 18:57:46 +00:00
Amine Khaldi 1dd4984c28 [NTOS:PNPMGR]
* Attempt to address Timo's review about coding style changes.

svn path=/trunk/; revision=65443
2014-11-21 18:45:18 +00:00
Hermès Bélusca-Maïto 37a3e6af8a [NTVDM:DOS]: Don't forget to update CommandInfo.Env otherwise we would use the old environment buffer that is now invalid, hence corrupting the heap and doing other nasty things :P Debugged by V.
svn path=/trunk/; revision=65442
2014-11-21 15:55:39 +00:00
Aleksandar Andrejevic 6ad2881080 [FAST486]
Attempt to write the value to the stack before subtracting from the actual ESP register
in Fast486StackPush.


svn path=/trunk/; revision=65441
2014-11-21 09:46:57 +00:00