Commit graph

69777 commits

Author SHA1 Message Date
Trevor Thompson
ea6b9622c4 [NTFS]
Add fixes to WriteAttribute():
-Remove erroneous check for end of run (before writing to the last run returned)
-Properly dereference RealLengthWritten pointer, as reported in CR-90

svn path=/branches/GSoC_2016/NTFS/; revision=71616
2017-12-10 11:13:23 +01:00
Trevor Thompson
58a13831ef [NTFS]
Added minimal write support from CORE-10998 along with updates as suggested by CR-90.

svn path=/branches/GSoC_2016/NTFS/; revision=71224
2017-12-10 11:13:19 +01:00
Colin Finck
950c86fb4c Fix remaining text file line endings in the tree. (#18)
Based on https://stackoverflow.com/a/1511273

Also enforce CRLF for all *.xml files in our tree, because they are distributed with ReactOS.
2017-10-06 15:00:36 +02:00
Hermès Bélusca-Maïto
3cd76b91b5 [INCLUDE]: ntddrdsk.h: Fix "__cplusplus" and the ramdisk GUID definitions. 2017-10-06 01:08:10 +02:00
Hermès Bélusca-Maïto
fce8e1b595 [INCLUDE]: ntddrdsk.h: align defs on multiple of 4-space tab. 2017-10-06 01:08:10 +02:00
gigaherz
aff6757284 [NTUSER] Fix rogue CR in a LF-only file. 2017-10-06 00:04:46 +02:00
Pierre Schweitzer
d7ee95b28b [KERNEL32]: w2k3ify GetDriveTypeA() 2017-10-05 23:43:10 +02:00
Pierre Schweitzer
cb17d5dba4 [KERNEL32]: Reimplement GetDriveTypeW(). This allows providing a quick path for DOS drives and fixes a few detection cases. It allows brings in support for mount points. 2017-10-05 23:41:26 +02:00
Pierre Schweitzer
676bd0cf37 [KERNEL32]: Finally get rid of no longer used function InternalOpenDirW() 2017-10-05 22:14:44 +02:00
Pierre Schweitzer
8b6518139d [KERNEL32]: Reimplement GetDiskFreeSpaceExA() to make it w2k3 compliant 2017-10-05 22:14:44 +02:00
Pierre Schweitzer
1e2424ee98 [KERNEL32]: Refactor a bit GetDiskFreeSpaceExW(), no ground breaking changes 2017-10-05 22:14:44 +02:00
Pierre Schweitzer
87448f3d8b [KERNEL32]: Reimplement GetDiskFreeSpaceA() to make it w2k3 compliant 2017-10-05 22:14:44 +02:00
Pierre Schweitzer
5bee374c82 [KERNEL32]: Reimplement GetDiskFreeSpaceW() to fix various issues in it. It also brings support for appcompat 2017-10-05 22:14:44 +02:00
Serge Gautherie
55ae20931f [FREELDR] Properly check for end-of-memory-map entries when skipping ranges smaller than page size.
CORE-12881

Signed-off-by: Timo Kreuzer <timo.kreuzer@reactos.org>
2017-10-05 19:19:42 +02:00
Serge Gautherie
274ace05b2 [FREELDR] Add 64 bit alignment macros (ULONGLONG_ALIGN_UP/DOWN_BY) for aligning physical addresses that can be larger than 4GB and the default macros truncate to ULONG_PTR.
CORE-12881

Signed-off-by: Timo Kreuzer <timo.kreuzer@reactos.org>
2017-10-05 19:19:42 +02:00
Serge Gautherie
f588de2e79 [FREELDR] Improve trace prints in pcmem.c, no logical changes
CORE-12881

Signed-off-by: Timo Kreuzer <timo.kreuzer@reactos.org>
2017-10-05 19:19:42 +02:00
Timo Kreuzer
5c4d857407 [WIN32K] Add a comment regarding UserEnterExclusive() in UserGetDesktopDC()
This is a test-commit using GitHubs SVN interface.
2017-10-05 18:40:33 +02:00
Pierre Schweitzer
75f1637f37 [CLASS2]: Fix status code on too small as exposed by kernel32:DeviceIoControl 2017-10-04 21:13:25 +02:00
Alexander Shaposhnikov
9f8693a4e4 Delete README 2017-10-04 22:09:27 +03:00
Colin Finck
71fba9dea1 [VERSION] Use --abbrev=7 for "git describe" to enforce a short hash of 7 characters no matter what the default is for your Git installation. 2017-10-04 20:49:43 +02:00
Colin Finck
9ebf43567d Add .gitattributes and .gitignore files and normalize line endings in the repository (#10) 2017-10-04 20:37:32 +02:00
Goblenus
c609406c2f Fix url typo in README (#9) 2017-10-04 11:40:37 +03:00
Hermès Bélusca-Maïto
f9b6429468 Delete "ghost" old(*) files that have been mysteriously added back during the SVN-to-Git transition.
To check that these changes are correct, checkout in a directory (let's call it "ros_svn") the /trunk/reactos/ of our read-only SVN repo r76032 and in /trunk/reactos/modules/, the rosapps, rostests and wallpapers.
In a second directory (let's call it "ros_git"), clone the corresponding Git-converted ReactOS directory.
Before applying this patch (and the previous one that added back the empty directories), you should see additional files in ros_git that are not in ros_svn, corresponding to these files I'm deleting here (plus some .gitignore files),
and you should also see additional files in ros_svn that do not appear in ros_git: these are the empty directories I've restored in my previous patch.

Now, after the application of both the previous patch that restores the empty directories (and deletes the .gitignore files), and this patch that removes the ghost files, you should only see that the only differences
between ros_git and ros_svn are the extra .keep files in the empty directories, and that's all!

Command-line for the tests:
diff --strip-trailing-cr -r ros_svn ros_git > diff_svn2git.txt

"-r" means recursive, and "--strip-trailing-cr" ignores the CR-LF vs. LF (or CR) EOLs.

(*): by "ghost" old(*) files I understand files that existed previously in the far past, that then were deleted long ago in SVN, and that popped out back during the Git migration.
2017-10-04 10:28:36 +02:00
Hermès Bélusca-Maïto
acdf04bad2 Add .keep guard files in order to restore lost but empty directories we had with SVN.
Note that when you start populating these directories, you can remove the associated .keep guard file(s)!
2017-10-04 10:28:36 +02:00
Hermès Bélusca-Maïto
221ed4cefe Remove unwanted .gitignore files. 2017-10-04 10:28:36 +02:00
Sergei Abramov
b4f0a71f90 [NTOBJSHEX] Fix typo.
Patch by Sergei Abramov.
CORE-13863
2017-10-04 10:16:12 +03:00
Alexander Shaposhnikov
42051b6055 Readme Markdown Page (#2)
Create README.md
2017-10-04 08:28:08 +03:00
Pierre Schweitzer
e48d6a658f [CLASS2]: Cosmetic fixes by Thomas 2017-10-03 21:34:00 +02:00
Pierre Schweitzer
fdb72d7f85 [CLASS2]: - In ScsiClassCreateDeviceObject() don't drop received object name and store it in the device extension
- Implement support for the IOCTL_MOUNTDEV_QUERY_DEVICE_NAME IOCTL; return the store device name
2017-10-03 21:34:00 +02:00
tkreuzer
6882d62790 [REGEDIT] Support editing REG_FULL_RESOURCE_DESCRIPTOR values 2017-10-03 20:33:31 +02:00
Colin Finck
417e262dfc Build rosapps, rostests, wallpapers when their CMake variables are set instead of checking for directory existence.
By default, ReactOS will now build without any of these modules.
You can enable them using e.g. "configure -DENABLE_ROSTESTS=1".
2017-10-03 16:36:59 +02:00
Colin Finck
b9cf2e37f3 Supply the source directory as working directory when launching Git commands. Should fix retrieving the Git hash on the build machines. 2017-10-03 15:29:13 +02:00
Colin Finck
3d6040615a Make ReactOS report the Git revision as output by "git describe".
- REVISION is now something like "0.4.7-dev-53-g1304b53" instead of "r12345".
- Change WINDOWS_NT_BANNER to better represent the ReactOS version and the reported NT version.
- Introduce REACTOS_COMMIT_HASH which contains the full 40-character commit hash (for comparing revisions, e.g. in rosautotest/testman).
2017-10-03 12:55:38 +02:00
Colin Finck
c2c66aff7d Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys. 2017-10-03 07:45:34 +00:00
Pierre Schweitzer
b94e2d8ca0 [CLASS2]
It's up to class drivers to handle MountMgr requests. So, make it handle them, even though that's just to fail because it's not implemented.
This will stop IOCTLs to be sent down in the storage stack.

svn path=/trunk/; revision=76032
2017-10-03 06:40:08 +00:00
Pierre Schweitzer
350ede0c7f [KERNEL32]
Reimplement GetVolumePathNameW(). This fixes a lot of failing Wine tests.
Note that three of them are not fixed, which is a good thing as these also fail in the WHS bot!

svn path=/trunk/; revision=76031
2017-10-03 06:19:12 +00:00
Hermès Bélusca-Maïto
b896e9a9c3 [CMD]: New CTTY command.
- Introduce back the CTTY command (that normally only exists on DOS
  versions of COMMAND.COM but doesn't on Windows NT' CMD.EXE), whose aim
  is to "change the active terminal" (syntax: CTTY <dos_device>). To
  achieve that we actually redirect STDIN, STDOUT and STDERR to read/write
  handles opened to the <dos_device>. This is very handy when it comes to
  redirecting all the standard handles to e.g. a serial terminal ("CTTY COM1"
  for example).
- Fix some typos in the resources.

svn path=/trunk/; revision=76029
2017-10-02 17:03:01 +00:00
Eric Kohl
084f682e54 [DDK]
Prepare the storport header file for the new storport driver.

svn path=/trunk/; revision=76028
2017-10-02 12:56:27 +00:00
Pierre Schweitzer
9c82138c3c [KERNEL32]
Avoid an use-after-free in GetVolumeNameForRoot()

svn path=/trunk/; revision=76027
2017-10-01 21:29:53 +00:00
Timo Kreuzer
bed6d00963 [WIN32U] Rename win32kdll to win32u, which is the "official" name on Windows 10
svn path=/trunk/; revision=76026
2017-10-01 17:41:11 +00:00
Pierre Schweitzer
a0b2ac0ff9 [KERNEL32]
- Implement the internal functions: GetVolumeNameForRoot(), BasepGetVolumeNameFromReparsePoint(), BasepGetVolumeNameForVolumeMountPoint() that allow querying the volume name (GUID form) given a volume root
- Reimplement GetVolumeNameForVolumeMountPointW() with the new internal function BasepGetVolumeNameForVolumeMountPoint() this fixes a few bugs and adds supports for reparse points
- Reimplement GetVolumeNameForVolumeMountPointA() to make it w2k3 compliant 

Note that I dropped copyrights in the header, as everything got reimplemented

svn path=/trunk/; revision=76025
2017-10-01 16:36:37 +00:00
Hermès Bélusca-Maïto
b77e16847d [CMD]: Fix inclusion order.
svn path=/trunk/; revision=76024
2017-10-01 16:33:33 +00:00
Hermès Bélusca-Maïto
2280ba6846 [CMD]: Use the CONUTILS library (Part 1/x) for an uniform and consistent experience across command-line tools.
- Make most of CMD use the conutils library. This means that
  now we explicitely use the CON_STREAM objects. In particular code
  handling STDIN/OUT/ERR redirection should be handled with care.
- Factor out much of console-related support code into console.c.
  Code for console input is however not "CON_STREAM-enabled" yet.
- Change ConOutPrintfPaging prototype to make it return TRUE/FALSE
  when it can continue paged-printing or not, respectively.
CORE-13860

svn path=/trunk/; revision=76023
2017-10-01 16:30:39 +00:00
Hermès Bélusca-Maïto
0599206b8b [CONUTILS]: Add some string resources functions that can support a specified hModule parameter, and add small construction helpers for CON_SCREEN and CON_PAGER.
svn path=/trunk/; revision=76022
2017-10-01 16:03:44 +00:00
Timo Kreuzer
d47bb60c1c [REACTOS] Replace comparison against TRUE with comparison against FALSE
Based on patch by Love Nystrom

svn path=/trunk/; revision=76021
2017-10-01 14:42:04 +00:00
Timo Kreuzer
87fcad8440 [RTL/x64] Fix logic in RtlpTryToUnwindEpilog
svn path=/trunk/; revision=76020
2017-10-01 14:36:21 +00:00
Timo Kreuzer
555300d680 [RTL/x64] Support frames to skip in flags to RtlWalkFrameChain
svn path=/trunk/; revision=76019
2017-10-01 14:34:26 +00:00
Pierre Schweitzer
37630ef0ab [NDK]
Define REPARSE_DATA_BUFFER so that we can stop redefining it everywhere...

svn path=/trunk/; revision=76018
2017-10-01 12:56:00 +00:00
Timo Kreuzer
d2f383360b [FREELDR] Simplify DebugDumpBuffer
svn path=/trunk/; revision=76017
2017-10-01 11:08:26 +00:00
Timo Kreuzer
256494ee63 [MPU401] Move registry entries for mpu401.sys from hivesys.inf to it's own registry inf file.
This file is not used, since we don't even build the mpu401 driver.

svn path=/trunk/; revision=76016
2017-10-01 10:56:32 +00:00