reactos.git
6 years ago[NTFS] - Add support for changing a file's size via SetEndOfFile():
Trevor Thompson [Sat, 27 May 2017 03:20:31 +0000 (03:20 +0000)]
[NTFS] - Add support for changing a file's size via SetEndOfFile():
-Handle IRP_MJ_SET_INFORMATION IRP requests.
+NtfsSetEndOfFile() - Sets the end of file (file size) for a given file.
+NtfsSetInformation() - Sets the specified file information. At this point, only FileEndOfFileInformation is fully implemented. FileAllocationInformation is handled the same way and not truly implemented, but this works well enough for SetEndOfFile().
Overwriting a file in NTFS should now work in the majority of use cases.

svn path=/branches/GSoC_2016/NTFS/; revision=74675

6 years ago[NTFS] - Fix a bug with last commit, as spotted by Pierre.
Trevor Thompson [Sat, 13 May 2017 09:17:06 +0000 (09:17 +0000)]
[NTFS] - Fix a bug with last commit, as spotted by Pierre.

svn path=/branches/GSoC_2016/NTFS/; revision=74525

6 years ago[NTFS] - Expand support for resizing resident attributes and fix NtfsAllocateClusters().
Trevor Thompson [Sat, 13 May 2017 08:56:54 +0000 (08:56 +0000)]
[NTFS] - Expand support for resizing resident attributes and fix NtfsAllocateClusters().
-Modify SetAttributeDataLength() to allow a resident attribute to migrate to non-resident if the attribute grows too large to remain resident.
-Fix values returned by NtfsAllocateClusters() in case of error; return error codes, not 0.

svn path=/branches/GSoC_2016/NTFS/; revision=74524

6 years ago[NTFS] - Commit early results of a small restructuring effort:
Trevor Thompson [Fri, 12 May 2017 22:16:20 +0000 (22:16 +0000)]
[NTFS] - Commit early results of a small restructuring effort:
-Add a new member to the NTFS_ATTR_CONTEXT struct, a LARGE_MCB. This allows an attribute context to describe the cluster mapping of a non-resident file while allowing that mapping to change dynamically, without the context itself needing to be resized. This fixes problems which sometimes arose from resizing files.
-Remove hacky code from NtfsWriteFile() for dealing with "stale" contexts. This fixes that issue.
-Update SetDataAttributeLength(), PrepareAttributeContext(), ReleaseAttributeContext(), FreeClusters(), and AddRun() for the new member.
-Update ReadAttribute() and WriteAttribute() to work with the changed structure. A very-soon-to-come commit will overhaul these functions so they'll operate directly on the LARGE_MCB, instead of converting to and from a packed list of data runs. (Sparse files are broken until then.)
-Rename "RunBufferOffset" to "RunBufferSize" in several places where appropriate.
-Fix, improve, and add some comments.

svn path=/branches/GSoC_2016/NTFS/; revision=74523

6 years ago[NTFS] Add support for creating new MFT entries:
Trevor Thompson [Sun, 16 Apr 2017 00:17:07 +0000 (00:17 +0000)]
[NTFS] Add support for creating new MFT entries:
+AddStandardInformation(), +AddData(), +AddFileName() - Add attributes to a file record
+NtfsCreateFileRecord() - Creates a new file record and saves it to the MFT.
+AddNewMftEntry() - Adds a file record to the MFT.
NtfsCreateFile() - Modified to create a file record on a file-creation request (file creation is still unsupported; the created file needs to be added to the parent's directory index).
+SetFileRecordEnd() - Establishes a new file record size
UpdateFileRecord() - Improved documentation
InternalSetResidentAttributeLength() - Updated to use SetFileRecordEnd().

svn path=/branches/GSoC_2016/NTFS/; revision=74321

6 years ago[NTFS]
Trevor Thompson [Mon, 22 Aug 2016 11:08:22 +0000 (11:08 +0000)]
[NTFS]
+NtfsDumpFileRecord() - Provides diagnostic information about a file record.

svn path=/branches/GSoC_2016/NTFS/; revision=72424

6 years ago[NTFS]
Trevor Thompson [Mon, 22 Aug 2016 08:27:35 +0000 (08:27 +0000)]
[NTFS]
*UpdateFileRecord() - Fix a DPRINT

svn path=/branches/GSoC_2016/NTFS/; revision=72423

6 years ago[NTFS]
Trevor Thompson [Mon, 22 Aug 2016 08:11:12 +0000 (08:11 +0000)]
[NTFS]
Add some fixes to attrib.c, as suggested by Pierre Schweitzer:
*ConvertLargeMCBToDataRuns() - Use MS portable type, ULONG, for variable i.
*FreeClusters(), AddRun() - Check for invalid parameter before allocating memory, and confirm the memory is allocated.
*ConvertDataRunsToLargeMCB(), AddRun() - Avoid code duplication by using ExRaiseStatus() in try block, and return accurate status via _SEH2_GetExceptionCode().

svn path=/branches/GSoC_2016/NTFS/; revision=72422

6 years ago[NTFS]
Trevor Thompson [Tue, 19 Jul 2016 15:31:22 +0000 (15:31 +0000)]
[NTFS]
+FreeClusters(). Fix a DPRINT.

svn path=/branches/GSoC_2016/NTFS/; revision=71968

6 years ago[NTFS]
Trevor Thompson [Sun, 17 Jul 2016 14:04:01 +0000 (14:04 +0000)]
[NTFS]
Address some minor issues with attrib.c: Fix gcc build. Fix formatting.

svn path=/branches/GSoC_2016/NTFS/; revision=71957

6 years ago[NTFS]
Trevor Thompson [Fri, 15 Jul 2016 15:27:04 +0000 (15:27 +0000)]
[NTFS]
*AddRun() - Don't leak RunBuffer when encountering errors.
Handle exception from FsRtlAddLargeMcbEntry().

svn path=/branches/GSoC_2016/NTFS/; revision=71945

6 years ago[NTFS]
Trevor Thompson [Thu, 14 Jul 2016 15:20:48 +0000 (15:20 +0000)]
[NTFS]
Implement AddRun(). Add support functions and documentation.
+ConvertDataRunsToLargeMCB()
+ConvertLargeMCBToDataRuns()
*SetAttributeDataLength(), *NtfsWriteFile() - Update for AddRun() implementation. Add hack to SetAttributeDataLength() to allow notepad.exe to save files until freeing clusters is implemented.

svn path=/branches/GSoC_2016/NTFS/; revision=71942

6 years ago[NTFS]
Trevor Thompson [Wed, 13 Jul 2016 14:49:46 +0000 (14:49 +0000)]
[NTFS]
Various minor changes to fix GCC build.

svn path=/branches/GSoC_2016/NTFS/; revision=71922

6 years ago[NTFS]
Trevor Thompson [Wed, 13 Jul 2016 11:51:16 +0000 (11:51 +0000)]
[NTFS]
Add support functions, fix warning from previous commit.
+NtfsDumpDataRuns(), +NtfsDumpDataRunData() - Provide diagnostic output.
+GetPackedByteCount() - Used to encode data runs.

svn path=/branches/GSoC_2016/NTFS/; revision=71921

6 years ago[NTFS]
Trevor Thompson [Wed, 13 Jul 2016 09:26:04 +0000 (09:26 +0000)]
[NTFS]
UpdateFileRecord() - Remove fixup array before returning.

svn path=/branches/GSoC_2016/NTFS/; revision=71920

6 years ago[NTFS]
Trevor Thompson [Tue, 12 Jul 2016 09:57:16 +0000 (09:57 +0000)]
[NTFS]
Add error-checking to InternalGetNextAttribute(); don't crash if CurrAttr->Length is invalid.

svn path=/branches/GSoC_2016/NTFS/; revision=71897

6 years ago[NTFS]
Trevor Thompson [Fri, 8 Jul 2016 12:05:19 +0000 (12:05 +0000)]
[NTFS]
Fix broken check for free disk space in NtfsAllocateClusters().

svn path=/branches/GSoC_2016/NTFS/; revision=71858

6 years ago[NTFS]
Trevor Thompson [Fri, 8 Jul 2016 11:59:25 +0000 (11:59 +0000)]
[NTFS]
Simplify GetLastClusterInDataRun() and clean up NtfsAllocateClusters(). No functional changes.

svn path=/branches/GSoC_2016/NTFS/; revision=71857

6 years ago[NTFS]
Trevor Thompson [Thu, 7 Jul 2016 08:17:07 +0000 (08:17 +0000)]
[NTFS]
Simplify and optimize InternalSetResidentAttributeLength(), as suggested by Pierre.

svn path=/branches/GSoC_2016/NTFS/; revision=71837

6 years ago[NTFS]
Trevor Thompson [Wed, 6 Jul 2016 07:57:57 +0000 (07:57 +0000)]
[NTFS]
Fix copy-paste error in SetAttributeDataLength()

svn path=/branches/GSoC_2016/NTFS/; revision=71832

6 years ago[NTFS]
Trevor Thompson [Tue, 5 Jul 2016 07:00:43 +0000 (07:00 +0000)]
[NTFS]
Add ability to write to resident attributes.
SetAttributeDataLength() - Check if the file is memory mapped before truncating
+InternalSetResidentAttributeLength() - Used by SetAttributeDataLength()

svn path=/branches/GSoC_2016/NTFS/; revision=71820

6 years ago[NTFS]
Trevor Thompson [Wed, 29 Jun 2016 17:49:36 +0000 (17:49 +0000)]
[NTFS]
Fix typo in NtfsAllocateClusters(), spotted by ThFabba.

svn path=/branches/GSoC_2016/NTFS/; revision=71697

6 years ago[NTFS]
Trevor Thompson [Wed, 29 Jun 2016 16:35:36 +0000 (16:35 +0000)]
[NTFS]
Lay some groundwork for extending allocation size.
+AddRun() - Unimplemented
+GetLastClusterInDataRun()
+NtfsAllocateClusters()

svn path=/branches/GSoC_2016/NTFS/; revision=71696

6 years ago[NTFS]
Trevor Thompson [Sun, 26 Jun 2016 21:06:02 +0000 (21:06 +0000)]
[NTFS]
Allow for an existing file to be opened with FILE_OVERWRITE, FILE_OVERWRITE_IF, or FILE_SUPERSEDE dispositions, and truncate that file. This allows for a file to be opened and saved in Notepad.exe [provided that file is non-resident and its allocation size doesn't need to change].

svn path=/branches/GSoC_2016/NTFS/; revision=71680

6 years ago[NTFS]
Trevor Thompson [Sun, 26 Jun 2016 17:03:31 +0000 (17:03 +0000)]
[NTFS]
Remove unused parameter from SetAttributeDataLength.

svn path=/branches/GSoC_2016/NTFS/; revision=71677

6 years ago[NTFS]
Trevor Thompson [Thu, 23 Jun 2016 18:02:03 +0000 (18:02 +0000)]
[NTFS]
Update a file's size in the relevant $FILE_NAME attribute of the index entry in the parent directory.
+UpdateFileNameRecord() - Searches a parent directory for the proper index entry, then updates the file sizes in that entry.
+UpdateIndexEntryFileNameSize() - Recursively searches directory index and applies the size update.

svn path=/branches/GSoC_2016/NTFS/; revision=71664

6 years ago[NTFS]
Trevor Thompson [Thu, 23 Jun 2016 15:37:19 +0000 (15:37 +0000)]
[NTFS]
Fix Up AddFixupArray - It needs to accept a PNTFS_RECORD_HEADER for parameter 2, not a PFILE_RECORD_HEADER.

svn path=/branches/GSoC_2016/NTFS/; revision=71662

6 years ago[NTFS]
Trevor Thompson [Wed, 22 Jun 2016 21:20:50 +0000 (21:20 +0000)]
[NTFS]
When writing to a file, increase the file size if trying to write past the end.
*FindAttribute() has been given an optional pointer to a ULONG that will receive the offset of the found attribute from the beginning of the record. This is to allow for found attributes to be written back into their file records.
+SetAttributeDataLength()
+UpdateFileRecord() - Updates a file record in the master file table at a given index.
+AddFixupArray() - Prepares a file record or directory index for writing to the disk.

svn path=/branches/GSoC_2016/NTFS/; revision=71660

6 years ago[NTFS]
Trevor Thompson [Sun, 12 Jun 2016 04:02:52 +0000 (04:02 +0000)]
[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

6 years ago[NTFS]
Trevor Thompson [Sun, 1 May 2016 16:21:53 +0000 (16:21 +0000)]
[NTFS]
Added minimal write support from CORE-10998 along with updates as suggested by CR-90.

svn path=/branches/GSoC_2016/NTFS/; revision=71224

6 years ago[USETUP] LanguageList => MUILanguageList. #179
Amine Khaldi [Sat, 9 Dec 2017 22:33:02 +0000 (23:33 +0100)]
[USETUP] LanguageList => MUILanguageList. #179

6 years ago[ITSS] Get the stubs file out of the source files list. #179
Amine Khaldi [Sat, 9 Dec 2017 22:21:04 +0000 (23:21 +0100)]
[ITSS] Get the stubs file out of the source files list. #179

6 years ago[FASTFAT] Fix FastFAT not returning short name for FAT volumes in FileBothDirectoryIn...
Pierre Schweitzer [Sat, 9 Dec 2017 20:22:55 +0000 (21:22 +0100)]
[FASTFAT] Fix FastFAT not returning short name for FAT volumes in FileBothDirectoryInformation case
This is likely due to a copy paste error where long name was copied twice and short never.
Fun fact: this was not affecting FATX volumes
Fun fact2: this was defeating a buffer overflow check and thus was allowing buffer overflow!

CORE-14088

6 years ago[CHKDSK] Don't continue repair if volume is in use
Pierre Schweitzer [Sat, 9 Dec 2017 20:10:32 +0000 (21:10 +0100)]
[CHKDSK] Don't continue repair if volume is in use
This makes use of previous commit vfatlib improvements that allow
caller to stop chkdsk if locking fail, which will happen if volume is in use.
That way, ReactOS users won't be able any longer to f*** up their C:\ volume
by attempting to chkdsk -f it!

CORE-14087

6 years ago[VFATLIB] Make Chkdsk handle volume opening locking failures.
Pierre Schweitzer [Sat, 9 Dec 2017 20:07:09 +0000 (21:07 +0100)]
[VFATLIB] Make Chkdsk handle volume opening locking failures.
For instance, when repair is required, we can ask the caller whether we should
continue or not in case locking failed.
Also, introduced a hack for 1st stage where IopParseDevice() hack is in usage
so that broken NTSTATUS is diverted to appropriate status.
That way, usetup will properly continue even if locking failed (due to its
callback stub!)

CORE-14087

6 years ago[SMDLL] Use precomp.h in dllmain.c.
Amine Khaldi [Sat, 9 Dec 2017 19:47:27 +0000 (20:47 +0100)]
[SMDLL] Use precomp.h in dllmain.c.

6 years ago[BROWSEUI/SHELLBARS] Add a PCH.
Amine Khaldi [Sat, 9 Dec 2017 19:46:40 +0000 (20:46 +0100)]
[BROWSEUI/SHELLBARS] Add a PCH.

6 years ago[GDI32_APITEST] Properly add CreateDIBPatternBrush.c to the source files list instead...
Amine Khaldi [Sat, 9 Dec 2017 19:03:08 +0000 (20:03 +0100)]
[GDI32_APITEST] Properly add CreateDIBPatternBrush.c to the source files list instead of relying on CMake to do so.

6 years ago[ACLEDIT][ATL][ATL80][FLTMGR] Get the def files out of the source files lists. #179
Amine Khaldi [Sat, 9 Dec 2017 18:58:43 +0000 (19:58 +0100)]
[ACLEDIT][ATL][ATL80][FLTMGR] Get the def files out of the source files lists. #179

6 years ago[FASTFAT] Finally drop the FileNameInformation class for directories.
Pierre Schweitzer [Sat, 9 Dec 2017 13:35:22 +0000 (14:35 +0100)]
[FASTFAT] Finally drop the FileNameInformation class for directories.
It makes no sense for them and shouldn't be implemented.
It's an addendum to 9f3c801.

6 years ago[FREELDR] The work done in r70692 overlooked the need to update the PCH lists of...
Amine Khaldi [Sat, 9 Dec 2017 13:18:25 +0000 (14:18 +0100)]
[FREELDR] The work done in r70692 overlooked the need to update the PCH lists of source files as well.

- We use this as a chance to also update the CMake file in terms of consistency.
- The clang-cl build applies the /Os flag on all the source files that are now using the PCH too.

6 years ago[WINSPOOL] Provide stubs with tracing and reasonable failure codes for even more...
Colin Finck [Sat, 9 Dec 2017 12:35:42 +0000 (13:35 +0100)]
[WINSPOOL] Provide stubs with tracing and reasonable failure codes for even more popular Spooler APIs.

This may get more applications to work which previously called into the WINE-generated stubs (that throw an exception).
It also improves debug logs when the "winspool" debug channel is enabled. With such detailed debug logs, we may get an idea which winspool APIs need to be implemented sooner than others.

6 years ago[WINSPOOL] Add tracing to all exported APIs.
Colin Finck [Sat, 9 Dec 2017 11:00:09 +0000 (12:00 +0100)]
[WINSPOOL] Add tracing to all exported APIs.

6 years ago[WINSPOOL] Convert the returned Unicode string back to ANSI in GetDefaultPrinterA.
Colin Finck [Sat, 9 Dec 2017 09:59:40 +0000 (10:59 +0100)]
[WINSPOOL] Convert the returned Unicode string back to ANSI in GetDefaultPrinterA.

Thanks to Mark for the hint in CORE-14072!

6 years ago[USER32_WINETEST] Add a PCH.
Amine Khaldi [Sat, 9 Dec 2017 12:58:55 +0000 (13:58 +0100)]
[USER32_WINETEST] Add a PCH.

6 years ago[ACPPAGE] Make use of the PCH.
Amine Khaldi [Sat, 9 Dec 2017 12:40:23 +0000 (13:40 +0100)]
[ACPPAGE] Make use of the PCH.

6 years ago[MSPAINT] Add some header guards.
Amine Khaldi [Sat, 9 Dec 2017 12:36:45 +0000 (13:36 +0100)]
[MSPAINT] Add some header guards.

6 years ago[LSASRV] Deduplicate SAMPR_ULONG_ARRAY.
Amine Khaldi [Sat, 9 Dec 2017 12:29:58 +0000 (13:29 +0100)]
[LSASRV] Deduplicate SAMPR_ULONG_ARRAY.

6 years ago[MSAFD] Move the default debug channel to msafd.h.
Amine Khaldi [Sat, 9 Dec 2017 12:24:35 +0000 (13:24 +0100)]
[MSAFD] Move the default debug channel to msafd.h.

6 years ago[HAL] Add some header guards.
Amine Khaldi [Sat, 9 Dec 2017 12:20:22 +0000 (13:20 +0100)]
[HAL] Add some header guards.

6 years ago[VGA] Correct VgaInterpretCmdStream() declaration.
Amine Khaldi [Sat, 9 Dec 2017 12:11:45 +0000 (13:11 +0100)]
[VGA] Correct VgaInterpretCmdStream() declaration.

6 years ago[UUID] Add a PCH.
Amine Khaldi [Sat, 9 Dec 2017 12:04:23 +0000 (13:04 +0100)]
[UUID] Add a PCH.

6 years ago[FASTFAT] Fix size checking in VfatGetFileNameInformation()
Pierre Schweitzer [Sat, 9 Dec 2017 11:45:16 +0000 (12:45 +0100)]
[FASTFAT] Fix size checking in VfatGetFileNameInformation()

6 years ago[FASTFAT] Don't mix FileNameInformation and FileNamesInformation (and support the...
Pierre Schweitzer [Sat, 9 Dec 2017 11:33:29 +0000 (12:33 +0100)]
[FASTFAT] Don't mix FileNameInformation and FileNamesInformation (and support the later).
This commit fixes weird behavior in our FastFAT implementation. It was mixing two classes:
FileNameInformation and FileNamesInformation. It was handling FileNameInformation like
FileNamesInformation and was filling buffer with FILE_NAMES_INFORMATION structure instead
of FILE_NAME_INFORMATION structure (how many things did that break?!).
Also, it wasn't implementing the FileNamesInformation class at all. This is required by
ntdll_winetest:directory which doesn't expect it to fail and thus, attempts to read
never filled in memory.

This commit fixes the winetest crash, and may fix other weird FS behavior.

CORE-13367

6 years ago[SAMLIB] Use precomp.h in dllmain.c.
Amine Khaldi [Sat, 9 Dec 2017 11:32:18 +0000 (12:32 +0100)]
[SAMLIB] Use precomp.h in dllmain.c.

6 years ago[SHELL32_APITEST] Add test for SHCreateFileExtractIconW
Mark Jansen [Fri, 8 Dec 2017 23:51:56 +0000 (00:51 +0100)]
[SHELL32_APITEST] Add test for SHCreateFileExtractIconW
CORE-14082

6 years ago[KERNEL32] Silent a noisy DPRINT1
Pierre Schweitzer [Sat, 9 Dec 2017 10:53:54 +0000 (11:53 +0100)]
[KERNEL32] Silent a noisy DPRINT1

6 years ago[WIN32K] Fix NtGdiGetTextFaceW to report face name correctly (#173)
Katayama Hirofumi MZ [Sat, 9 Dec 2017 10:06:51 +0000 (19:06 +0900)]
[WIN32K] Fix NtGdiGetTextFaceW to report face name correctly (#173)

Initialize TEXTOBJ.FaceName member in TextIntRealizeFont and use it in NtGdiGetTextFaceW
CORE-14071

6 years ago[FASTFAT] Calculate more accurately buffer length in VfatGetAllInformation().
Pierre Schweitzer [Sat, 9 Dec 2017 09:59:37 +0000 (10:59 +0100)]
[FASTFAT] Calculate more accurately buffer length in VfatGetAllInformation().

6 years ago[FASTFAT] Allow partial returns on directory info query for first entry.
Pierre Schweitzer [Sat, 9 Dec 2017 09:58:19 +0000 (10:58 +0100)]
[FASTFAT] Allow partial returns on directory info query for first entry.
This mimics what MS FastFAT does and fixes (a bit) ntdll_winetest:directory.
It still crashes, but go farther.

CORE-13367

6 years ago[STOBJECT] Improve the existing PCH and make use of it. good
Amine Khaldi [Fri, 8 Dec 2017 22:15:31 +0000 (23:15 +0100)]
[STOBJECT] Improve the existing PCH and make use of it.

6 years ago[CONSRV] Deduplicate GetScreenBufferSizeUnits(), SmallRectToRect() and ConsoleInput...
Amine Khaldi [Fri, 8 Dec 2017 22:04:48 +0000 (23:04 +0100)]
[CONSRV] Deduplicate GetScreenBufferSizeUnits(), SmallRectToRect() and ConsoleInput. Rename ConsoleList and InsertConsole(). #179

6 years ago[SERVICES] Fix querying the status of a registered but not started driver.
Pierre Schweitzer [Fri, 8 Dec 2017 21:45:04 +0000 (22:45 +0100)]
[SERVICES] Fix querying the status of a registered but not started driver.
The current implementation was broken and some dead code was never called; always failing before.
This fix revives this dead code!
Extra fix: avoid derefencing potential null-ptr.
And also, as bonus, comment the function so that logic can be easily understood.

CORE-14062

6 years ago[NTOS:MM] Implement and use MiAcquirePfnLockAtDpcLevel/MiReleasePfnLockFromDpcLevel. 154/head
Thomas Faber [Tue, 21 Nov 2017 22:36:34 +0000 (23:36 +0100)]
[NTOS:MM] Implement and use MiAcquirePfnLockAtDpcLevel/MiReleasePfnLockFromDpcLevel.

6 years ago[NTOS:MM] Use inline functions to acquire/release the PFN lock.
Thomas Faber [Tue, 21 Nov 2017 22:33:42 +0000 (23:33 +0100)]
[NTOS:MM] Use inline functions to acquire/release the PFN lock.

6 years ago[NTDLL_APITEST] Create Test_NtFreeVirtualMemory_Parameters(). CORE-13126 150/head
Serge Gautherie [Sun, 26 Nov 2017 23:51:18 +0000 (00:51 +0100)]
[NTDLL_APITEST] Create Test_NtFreeVirtualMemory_Parameters(). CORE-13126

- Test 4th parameter ("ULONG FreeType") invalid values.

6 years ago[NTDLL_APITEST] Add license header for NtFreeVirtualMemory.c
Thomas Faber [Thu, 7 Dec 2017 11:25:01 +0000 (12:25 +0100)]
[NTDLL_APITEST] Add license header for NtFreeVirtualMemory.c

6 years ago[User32|IMM32] Fix a recursion crash in IMM. See CORE-14041. 177/head
James Tabor [Fri, 8 Dec 2017 03:14:21 +0000 (21:14 -0600)]
[User32|IMM32] Fix a recursion crash in IMM. See CORE-14041.

Required a sync port from wine. This is a hack fix with Win32SS until
proper IMM support is added to Win32SS.

6 years ago[ADVAPI32_APITEST][NTDLL_APITEST][WINDOWSCODECS] Comment out some unused functions...
Amine Khaldi [Thu, 7 Dec 2017 23:22:05 +0000 (00:22 +0100)]
[ADVAPI32_APITEST][NTDLL_APITEST][WINDOWSCODECS] Comment out some unused functions and types. Silences some clang-cl warnings.

6 years ago[COMCTL32][FLTLIB][NETAPI32][SNDVOL32][STOBJECT][WBEMPROX] Remove unused debug channe...
Amine Khaldi [Thu, 7 Dec 2017 23:06:13 +0000 (00:06 +0100)]
[COMCTL32][FLTLIB][NETAPI32][SNDVOL32][STOBJECT][WBEMPROX] Remove unused debug channels and comment out unused variables. Silences some clang-cl warnings.

6 years ago[SHELL32] Remove unused debug channels and comment out unused variables. Silences...
Amine Khaldi [Thu, 7 Dec 2017 22:54:22 +0000 (23:54 +0100)]
[SHELL32] Remove unused debug channels and comment out unused variables. Silences some clang-cl warnings.

6 years ago[ADVAPI32] Remove unused debug channels and comment out unused variables. Silences...
Amine Khaldi [Thu, 7 Dec 2017 22:34:28 +0000 (23:34 +0100)]
[ADVAPI32] Remove unused debug channels and comment out unused variables. Silences some clang-cl warnings.

6 years ago[FREETYPE][PORTCLS][RPCSS][SPOOLSV][STLPORT][USETUP][WLANSVC] Silence some clang...
Amine Khaldi [Thu, 7 Dec 2017 22:26:59 +0000 (23:26 +0100)]
[FREETYPE][PORTCLS][RPCSS][SPOOLSV][STLPORT][USETUP][WLANSVC] Silence some clang-cl warnings.

6 years ago[CMAKE/CLANG-CL] Don't pass /TP twice when we're dealing with a clang-cl c++ PCH...
Amine Khaldi [Thu, 7 Dec 2017 22:22:27 +0000 (23:22 +0100)]
[CMAKE/CLANG-CL] Don't pass /TP twice when we're dealing with a clang-cl c++ PCH. Pass -nostdinc instead of /X on clang-cl builds.

6 years ago[TRANSLATION] Update Simplified Chinese translations. (#170)
CNAmira [Thu, 7 Dec 2017 21:53:48 +0000 (05:53 +0800)]
[TRANSLATION] Update Simplified Chinese translations. (#170)

- Add Simplified Chinese translation for EVENTCREATE.
- Update translations for 'dxdiag', 'fontview', 'magnify', 'mmc', 'rapps' and 'wordpad'.
Patch by Li Keqing.

6 years ago[USER32] We're still using this one. Fixes build.
Amine Khaldi [Thu, 7 Dec 2017 21:37:40 +0000 (22:37 +0100)]
[USER32] We're still using this one. Fixes build.

6 years ago[BROWSEUI] Move _ILIsDesktop to a shared header to avoid having 3 instances of it
Giannis Adamopoulos [Thu, 7 Dec 2017 21:24:32 +0000 (23:24 +0200)]
[BROWSEUI] Move _ILIsDesktop to a shared header to avoid having 3 instances of it

6 years ago[USER32] Remove unused debug channels. Silences some clang-cl warnings.
Amine Khaldi [Thu, 7 Dec 2017 21:24:40 +0000 (22:24 +0100)]
[USER32] Remove unused debug channels. Silences some clang-cl warnings.

6 years ago[CMD] Fix resource string (unrecognized escape sequence); addendum to 9a59558.
Hermès Bélusca-Maïto [Thu, 7 Dec 2017 18:35:20 +0000 (19:35 +0100)]
[CMD] Fix resource string (unrecognized escape sequence); addendum to 9a59558.

6 years ago[CMAKE/CLANG-CL] Silence some clang-cl warnings in consistency with our gcc build.
Amine Khaldi [Sun, 3 Dec 2017 22:30:10 +0000 (23:30 +0100)]
[CMAKE/CLANG-CL] Silence some clang-cl warnings in consistency with our gcc build.

6 years ago[NTDLL_APITEST] Allow the test to load on Windows XP. ROSTESTS-293 151/head
Serge Gautherie [Thu, 30 Nov 2017 00:44:40 +0000 (01:44 +0100)]
[NTDLL_APITEST] Allow the test to load on Windows XP. ROSTESTS-293

6 years ago[SERVMAN] Fix return check on PropSheet_IsDialogMessage.
Ged Murphy [Wed, 6 Dec 2017 22:08:46 +0000 (22:08 +0000)]
[SERVMAN] Fix return check on PropSheet_IsDialogMessage.

Should fix the regression introduced in the last commit.
CORE-14068

6 years agoUpdate Simplified Chinese translation.
Luo Yufan [Wed, 6 Dec 2017 14:35:27 +0000 (15:35 +0100)]
Update Simplified Chinese translation.

6 years ago[README] Update to 0.4.7
Alexander Shaposhnikov [Wed, 6 Dec 2017 09:23:49 +0000 (11:23 +0200)]
[README] Update to 0.4.7

6 years ago[NTOSKRNL] Only activate dumper in DBG builds
Pierre Schweitzer [Tue, 5 Dec 2017 22:28:04 +0000 (23:28 +0100)]
[NTOSKRNL] Only activate dumper in DBG builds

6 years ago[NTOSKRNL] Add a non paged memory dumper in case of low memory situation.
Pierre Schweitzer [Tue, 5 Dec 2017 22:19:11 +0000 (23:19 +0100)]
[NTOSKRNL] Add a non paged memory dumper in case of low memory situation.
Its purpose is to dump the non paged consumption, tag by tag,
to allow tracking potential faulting driver in case ReactOS starts lacking memory.
This will look like what !poolused outputs, even though it doesn't deal with paged pool.

Thanks to Thomas for his kind review and improvement suggestions.

CORE-14048

6 years ago[SERVMAN]
Ged Murphy [Tue, 5 Dec 2017 22:13:02 +0000 (22:13 +0000)]
[SERVMAN]

- Avoid a potential race whereby the current service selection can change before the propsheet thread starts up
- Cleanup the depends data, it doesn't need to be passed around the propsheet

6 years ago[VCDCLI] Add support for UDF/Joliet hidding.
Pierre Schweitzer [Tue, 5 Dec 2017 20:38:40 +0000 (21:38 +0100)]
[VCDCLI] Add support for UDF/Joliet hidding.
By providing /u or /j switch on mount, the virtual CD-ROM class driver
will break the associated signatures on read so that FSDs cannot recognize them any longer.

6 years ago[Servman] Make the property sheets modeless so users can open multiple services at...
Ged Murphy [Tue, 5 Dec 2017 12:25:14 +0000 (12:25 +0000)]
[Servman] Make the property sheets modeless so users can open multiple services at the same time (#166)

[SERVMAN]
- Make the property sheets modeless so users can open multiple services at the same time
- Untested in ros. In fact we have no code or tests cases to check that modeless property sheets work, so please raise a bug if you find any issues with the app.
- Dedicated to reactosfanboy

6 years ago[SHELL32_APITEST] SHParseDisplayName: More tests for relative paths
Stanislav Motylkov [Sun, 3 Dec 2017 15:45:24 +0000 (18:45 +0300)]
[SHELL32_APITEST] SHParseDisplayName: More tests for relative paths

6 years ago[BROWSEUI] SHExplorerParseCmdLine: Improve relative path handling
Stanislav Motylkov [Sat, 2 Dec 2017 20:54:35 +0000 (23:54 +0300)]
[BROWSEUI] SHExplorerParseCmdLine: Improve relative path handling

CORE-12882, CORE-13847

6 years ago[BROWSEUI_APITEST] Improve tests for relative paths
Stanislav Motylkov [Sat, 2 Dec 2017 20:52:38 +0000 (23:52 +0300)]
[BROWSEUI_APITEST] Improve tests for relative paths

6 years ago[SHELL32] shellpath.c: it is _WIN32_WINNT, not WIN32_WINNT. We even need to use __REA... 129/head
Serge Gautherie [Fri, 17 Nov 2017 00:44:31 +0000 (01:44 +0100)]
[SHELL32] shellpath.c: it is _WIN32_WINNT, not WIN32_WINNT. We even need to use __REACTOS__ instead here. CORE-12580

6 years ago[AFD] Introduce and use pool tags. Thanks go to Arty for assisting me with this....
Amine Khaldi [Fri, 1 Dec 2017 23:20:14 +0000 (00:20 +0100)]
[AFD] Introduce and use pool tags. Thanks go to Arty for assisting me with this. CORE-14048

6 years ago[IPHLPAPI] Implement interface name resolving functions
Stanislav Motylkov [Sat, 25 Nov 2017 20:18:48 +0000 (23:18 +0300)]
[IPHLPAPI] Implement interface name resolving functions

Including:
- NhGetInterfaceNameFromDeviceGuid
- NhGetInterfaceNameFromGuid

CORE-13831, CORE-14033

Reference:
https://github.com/boundary/wireshark/blob/master/capture_win_ifnames.c#L275

6 years ago[IPHLPAPI_APITEST] Add tests for interface resolving functions
Stanislav Motylkov [Sat, 25 Nov 2017 17:06:21 +0000 (20:06 +0300)]
[IPHLPAPI_APITEST] Add tests for interface resolving functions

CORE-13831, CORE-14033

6 years ago[VCDCLI] Implement a tool that allows managing vcdrom class driver.
Pierre Schweitzer [Sun, 3 Dec 2017 17:13:25 +0000 (18:13 +0100)]
[VCDCLI] Implement a tool that allows managing vcdrom class driver.
It allows you managing virtual drives, mounting images, ejecting images, and so on.

It will load the driver when required.

It's less features complete that the MS GUI implementation.
I'll implement them later on, it can be quickly done.
What's missing: UDF/Joliet suppr and persistent mounts

6 years ago[VCDROM] Implement the virtual CD-ROM class driver.
Pierre Schweitzer [Sun, 3 Dec 2017 17:10:32 +0000 (18:10 +0100)]
[VCDROM] Implement the virtual CD-ROM class driver.
It was provided by MS as a separate package to download for Windows (up to 7).
That class driver allows creating virtual drives on which we can later mount ISOs images.
It's rather basic, but does the job.

To use it, you can use the GUI app from Microsoft (Virtual CD-ROM Control Panel)
or the vcdcli in CLI. We're compatible :-).

Note that it's not loaded at boot, you need to manually start it, to lower memory footprint.
Both applications will handle this for you.

6 years ago[PSDK] Define the IOCTL_CDROM_EJECT_MEDIA IOCTL
Pierre Schweitzer [Sun, 3 Dec 2017 17:09:43 +0000 (18:09 +0100)]
[PSDK] Define the IOCTL_CDROM_EJECT_MEDIA IOCTL

6 years ago[CMD] Fix the del /s command, reported by Pablo De Napoli. CORE-10460
Hermès Bélusca-Maïto [Sun, 3 Dec 2017 15:01:44 +0000 (16:01 +0100)]
[CMD] Fix the del /s command, reported by Pablo De Napoli. CORE-10460

The command should delete files in the specified directory and all of its
sub-directories, using any file pattern specified.

For example, the command:

    del /S .\my_directory

should delete all the files inside my_directory and its sub-directories,
and as such should also detect that "my_directory" is indeed a directory,
while doing:

    del /S .\my_file

should of course detect that "my_file" is indeed a file pattern, and thus,
delete all "my_file" files from the current directory and its sub-directories.

The command:

    del /S some_directory\file_pattern

should delete "file_pattern" files from some_directory and its sub-directories.