Commit graph

69712 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto c1596e7b3a [CMD]: Little refactoring to lay out the way to using the CONUTILS library in CMD.
- Move the code used to beep, clear screen, and color the screen into console.c ;
- Rename SetScreenColor into ConSetScreenColor, and invert its second parameter (bNoFill -> bFill); its default behaviour is to fill all the screen.

svn path=/trunk/; revision=76000
2017-09-30 14:10:21 +00:00
Hermès Bélusca-Maïto 3c9f2e199f [CMD]: Minor modifications in the files I'm going to touch next:
- Use ARRAYSIZE() instead of hardcoding string buffer max. number of chars.
- Un-globalize a variable; remove dead defines.
- Minor code formatting fixes.

svn path=/trunk/; revision=75999
2017-09-30 14:04:24 +00:00
Timo Kreuzer 4f39e403dc [MSVCRT] Export _pwctype
How did CRTDLL, which forwards _pwctype_dll to msvcrt._pwctype, ever link?

svn path=/trunk/; revision=75998
2017-09-30 12:43:08 +00:00
Hermès Bélusca-Maïto cd45987d1a [CMD]: Diverse improvements:
- Add pre-support for "enable extensions".
- Load CMD settings at startup from the registry (from HKLM and HKCU
  Software\\Microsoft\\Command Processor reg key), as done by Windows' CMD.EXE.
- Add support for CMD.EXE /E(:OFF), /X, /Y command-line switches.
- Correctly set the console colors when using CMD.EXE /T: switch.
- Start support for two control characters for the completion: the standard CompletionChar
  and the PathCompletionChar (if one desires to autocomplete *just* directory
  names -- or associated -- but not everything), as Windows' CMD.EXE offers.

svn path=/trunk/; revision=75997
2017-09-30 11:39:08 +00:00
Hermès Bélusca-Maïto 7d6b5d99a6 [ASM]: CORE-13850 #comment Fix MASM compilation errors with the CFI annotation macros substitutes (broken by r75989).
svn path=/trunk/; revision=75996
2017-09-30 10:29:50 +00:00
Hermès Bélusca-Maïto 9f36a72013 [ASM]: Code formatting only.
svn path=/trunk/; revision=75995
2017-09-30 10:29:06 +00:00
Hermès Bélusca-Maïto ff79952c22 [CMD]: Fix translations for the COLOR command.
For few translations, the COLOR command help contained a deprecated /F switch,
which was changed long time ago to the /-F switch ("Does not fill the console
blank space with color attribute").
Also, remove a now-unneeded localized informative string for the COLOR command (which rendered it Windows-incompatible).

svn path=/trunk/; revision=75994
2017-09-30 09:50:08 +00:00
Hermès Bélusca-Maïto 5e41079086 [CMD]: Fix few comments & use ARRAYSIZE(str) instead of sizeof(str)/sizeof(str[0]) for strings.
svn path=/trunk/; revision=75993
2017-09-30 09:13:04 +00:00
Colin Finck b6d999dbe4 [ROSTESTS] Use the new header with SPDX license identifier for my printing-related API tests
svn path=/trunk/; revision=75992
2017-09-29 18:33:04 +00:00
Colin Finck bb0896b823 [ROSAUTOTEST] Use the new header with SPDX license identifier and remove dead source files.
svn path=/trunk/; revision=75991
2017-09-29 18:13:54 +00:00
Jérôme Gardou abc37007a0 [RTL]
- Add CFI annotations to debug functions
CORE-8531

svn path=/trunk/; revision=75990
2017-09-29 17:32:11 +00:00
Jérôme Gardou 9173e7c6cf [ASM]
- Add CFI annotation macros
CORE-13850 #resolve

svn path=/trunk/; revision=75989
2017-09-29 17:31:23 +00:00
Colin Finck 154f1aaacd [PRINTING] [SKIPLIST] Use the new header with SPDX license identifier and relicense the entire Printing Stack as well as its Skiplist dependency under GPL-2.0+
Previously, the Printing Stack was a mix of GPLed and LGPLed code. Having everything under GPL-2.0+ makes things consistent and allows me to import code from most Open Source licenses.
Given that the Printing Stack components are exchangeable with their Windows counterparts and implement documented interfaces, this license change doesn't impose any additional restrictions on dependent components (like printer drivers).

svn path=/trunk/; revision=75988
2017-09-29 17:18:19 +00:00
Colin Finck 57d74df773 [VGAFONTEDIT] Use the new header with SPDX license identifier and make the entire application GPL-2.0+
The code of the single GPL-2.0 only file "misc.c" was originally derived from GPL-2.0 only devmgmt.
I have now replaced it with the same code from LGPL-2.1+ mmc, which makes my application a full GPL-2.0+ work. This is legit, because I know that Thomas Weidenmueller is the original author of the "misc.c" code.

svn path=/trunk/; revision=75987
2017-09-29 13:58:14 +00:00
Colin Finck 26dd1bcf1f [FASTFAT_NEW] [FULLFAT] Remove the FullFAT-based "fastfat_new" driver and the third-party FullFAT library itself.
Our driver has not seen any development since 2010 and the current fastfat driver has long surpassed it.
Even more important, FullFAT is licensed under a modified version of GPLv3 that forbids commercial usage. Shipping it as a ReactOS dependency would render the OS unusable for commercial scenarios.
If anybody wants to resurrect the driver, you can always get it from the repository history.

svn path=/trunk/; revision=75986
2017-09-29 10:21:33 +00:00
Colin Finck e9bc2c9b4c [HEADERS] Use the new header with SPDX license identifier for host headers I've contributed to and ensure license compliance for pshpack/poppack.
- The pshpack and poppack headers were rewritten from scratch as their current versions came with no license information and included obsolete checks (e.g. for an ancient FreeBSD version).
  I have put the new ones under CC0-1.0, which is equivalent to Public Domain but legally valid also in jurisdictions which have no concept of Public Domain (e.g. Germany).
- Relicense nls.h under CC0-1.0 too. I'd recommend the same for typedefs.h, but I'm not the only contributor to that file.

svn path=/trunk/; revision=75985
2017-09-29 10:10:26 +00:00
Colin Finck ea2806e13c [BOOTSECTORS] Use the new header with SPDX license identifier for the ISO boot sector files I contributed to.
Remove the unmaintained .asm files.

svn path=/trunk/; revision=75984
2017-09-28 20:21:45 +00:00
Colin Finck d20eaaf8ca [CONTROL] Use the new header with SPDX license identifier.
- The original header committed in 2004 clearly indicated "or any later version", so use GPL-2.0+
  That header has since been removed in r33507 by some "Colin Finck" guy ;)
- Add Hermès to the list of copyright holders, since he rewrote most of this in r62694.

svn path=/trunk/; revision=75983
2017-09-28 15:47:25 +00:00
Sylvain Petreolle 9704b70031 Set the resolution to 800x600x16 bit onbootcdregtest.
This removes the fallback to 640x480x256 colors induced by the lack of 32bits in KVM's cirrus GPU.
Fixes:
dosbox 2.intro
irfanview 2.OpenDocument
smplayer 2.play_file


svn path=/trunk/; revision=75982
2017-09-28 14:43:09 +00:00
Eric Kohl 3ebd207ba1 [PCI]
Fix a port base adddress decoding bug. Port base addresses were always decoded like memory base addresses. Because of this bug, a device could have two port address ranges starting at the same base address but with different lengths.

svn path=/trunk/; revision=75981
2017-09-27 22:59:48 +00:00
James Tabor 64bf415133 [NtUser]
- Patch by MudHead : Should test for invalid parent parameter. See CORE-13718.

svn path=/trunk/; revision=75980
2017-09-27 22:39:17 +00:00
James Tabor 8cc85a404a [NtUser]
- Patch by MudHead : Not setting error on success. See CORE-13717.

svn path=/trunk/; revision=75979
2017-09-27 22:35:26 +00:00
Pierre Schweitzer 92bc7bdab5 [KERNEL32]
- Move InternalOpenDirW() to disk.c; that's the last place where it's used
- Implement GetVolumePathNamesForVolumeNameA(); its -W implementation is still to be implemented
- W2K3ify SetVolumeLabelW() and SetVolumeLabelA() 

svn path=/trunk/; revision=75978
2017-09-27 17:43:52 +00:00
Hermès Bélusca-Maïto 4bce7ced02 [TIMEOUT]: Use a waitable timer to wait for a maximum of 1 second, instead of using some Sleep(100) calls. The only Sleep() call allowed is the Sleep(INFINITE) one.
svn path=/trunk/; revision=75977
2017-09-26 14:29:25 +00:00
Eric Kohl 036a0ad651 [FASTFAT]
Revert r75975 because of failures in the advpack files winetest.

svn path=/trunk/; revision=75976
2017-09-26 13:49:09 +00:00
Eric Kohl 4a830ca857 [FASTFAT]
Terminate the path name at the last slash when a file is opened using the IO_OPEN_TARGET_DIRECTORY option. This fixes some IoCreateFile kernel mode tests.

svn path=/trunk/; revision=75975
2017-09-26 12:36:17 +00:00
Eric Kohl 4364981793 [NETAPI32]
Implement NetLogonSetServiceBits().

svn path=/trunk/; revision=75974
2017-09-26 09:18:20 +00:00
Giannis Adamopoulos 03acaff5b1 [WINLOGON][WIN32K][WINSRV] -Silence a lot of debug prints in the shutdown sequence. Add some debug prints in case of error. Also print the name of the processes that get terminated. Keep the debug prints that show the parameters that are passed to SrvExitWindowsEx and WM_LOGONNOTIFY.
svn path=/trunk/; revision=75973
2017-09-26 09:11:51 +00:00
Eric Kohl b7bb40a33e [NETAPI32]
Implement NetStatisticsGet() and move NetpNtStatusToApiStatus().

svn path=/trunk/; revision=75972
2017-09-26 09:03:27 +00:00
Eric Kohl 98789a5ce7 [NETAPI32]
Rename misc.c to utils.c because misc.c will be used for something else.

svn path=/trunk/; revision=75971
2017-09-26 07:51:56 +00:00
Eric Kohl fdd95cf2c9 [NETAPI]
Add proper client implementations for NetQueryDisplayInformation() and NetGetDisplayInformationIndex().

svn path=/trunk/; revision=75970
2017-09-26 07:32:49 +00:00
Pierre Schweitzer 45b7500fd9 [KERNEL32]
W2K3ify GetVolumeInformationA().
Also fix a regression brought by GetVolumeInformationW() rewrite (yay, winetests!).

svn path=/trunk/; revision=75969
2017-09-26 06:18:07 +00:00
Hermès Bélusca-Maïto 6b45a088f3 [TIMEOUT]: Implement the TIMEOUT utility (found on Win2k3 and upwards). This is an improved "pause" command, with elapsed time count display.
Based from a patch by Lee Schröder, with modifications by myself.
CORE-10044 #resolve

svn path=/trunk/; revision=75968
2017-09-25 23:31:44 +00:00
Pierre Schweitzer d2669dc03b [KERNEL32]
- Implement IsThisARootDirectory()
- Reimplement GetVolumeInformationW() to make it w2k3 compliant.
This fixes a few winetests and makes fsutil fsinfo ntfsinfo work in ROS :-)

svn path=/trunk/; revision=75967
2017-09-25 21:33:56 +00:00
Pierre Schweitzer 282de8aeb9 [FSUTIL]
- Modify OpenVolume so that it can restrict volume opening to a NTFS volume (broken on ROS...)
- Implement fsutil fsinfo ntfsinfo

svn path=/trunk/; revision=75966
2017-09-25 18:59:54 +00:00
Mark Jansen 5e87235129 [WINED3D] Silence a noisy DPRINT that makes Test KVM AHK abort.
CORE-13829

svn path=/trunk/; revision=75965
2017-09-24 21:32:18 +00:00
Hermès Bélusca-Maïto 236b03f729 [MORE]: Remove an unused library import (user32).
svn path=/trunk/; revision=75964
2017-09-24 19:02:29 +00:00
Hermès Bélusca-Maïto c72889ae3d [CHCP][CMD]: Make the CHCP command a standalone executable, for backwards compatibility with Windows etc. This allows the user to be able to replace it with a 3rd-party one.
CORE-10295 #resolve
CORE-9444

svn path=/trunk/; revision=75963
2017-09-24 19:00:47 +00:00
Thomas Faber fe3618347b [MBEDTLS]
- Disable the use of SSE2 instruction. ROS supports CPUs that do not support these.
CORE-13826 #resolve
CORE-10338

svn path=/trunk/; revision=75962
2017-09-24 13:11:18 +00:00
Pierre Schweitzer d875d1bd49 [FASTFAT]
Implement statistics counting for non cached read/write operations.

svn path=/trunk/; revision=75961
2017-09-24 12:35:37 +00:00
Amine Khaldi bc87785826 [WS2_32_WINETEST] Sync with Wine Staging 2.16. CORE-13762
svn path=/trunk/; revision=75960
2017-09-24 11:36:21 +00:00
Amine Khaldi 9c8d9cd263 [REG_WINETEST] Sync with Wine Staging 2.16. CORE-13762
svn path=/trunk/; revision=75959
2017-09-24 11:33:35 +00:00
Amine Khaldi 044cf8a897 [REG] Sync with Wine Staging 2.16. CORE-13762
39e0e81 reg: Null-terminate incomplete REG_EXPAND_SZ and REG_MULTI_SZ Unicode data.
82fc4c8 reg: Close any open registry keys before starting the key deletion process.
5de883c reg: Use the correct return codes during the import operation.
56e58e4 reg: Delete registry keys via the state machine.
d90f2a5 reg: Delete registry values via the state machine.
db98cc4 reg: Handle unknown registry data types in the state machine.
32d5368 reg: Import hex data via the state machine.
f1874c1 reg: Import REG_DWORD data via the state machine.
038f1c6 reg: Parse data types and import REG_SZ data via the state machine.
0565934 reg: Parse key names and value names in the state machine.
3e87a70 reg: Introduce a partial state machine for importing Windows 3.1 registry data.
aa386af reg: Add initial support for the import operation.
f2fbbec reg: Rename reg.h to resource.h.
c6c95a0 reg: Compile with msvcrt.
8c253c4 reg: Make some variables 'static const'.
337e0f4 reg: Avoid an uninitialized variable warning.
8abec73 reg: Dynamically allocate memory for the value name buffer when deleting all registry values in a specified key.
e7ea838 reg: Use a helper function to resize a memory buffer.
a1bc33a reg: Use a helper function to free allocated memory.
a6e28cc reg: Use a helper function to allocate memory and die on failure.
90da210 reg: Account for sizeof(WCHAR) when resizing the value name buffer during the query operation.
fb22f6c reg: Avoid using RegQueryInfoKey() to enumerate subkeys and values in the query operation.

svn path=/trunk/; revision=75958
2017-09-24 11:33:04 +00:00
Amine Khaldi 3826e0eec9 [PSDK] Update winreg.h. CORE-13762
svn path=/trunk/; revision=75957
2017-09-24 11:32:16 +00:00
Amine Khaldi 62b637c47c [XMLLITE_WINETEST] Addendum to r75951.
svn path=/trunk/; revision=75956
2017-09-24 11:27:47 +00:00
Amine Khaldi 106ef83977 [FREETYPE] Update to v2.8.1. CORE-13825
svn path=/trunk/; revision=75955
2017-09-24 11:20:15 +00:00
Amine Khaldi 38346faf51 [WINDOWSCODECS_WINETEST] Sync with Wine Staging 2.16. CORE-13762
svn path=/trunk/; revision=75954
2017-09-24 11:19:20 +00:00
Amine Khaldi 060ff9c61a [PSDK] Update wincodec.idl and winerror.h. [WINDOWSCODECS] Sync with Wine Staging 2.16. CORE-13762
b2229cc windowscodecs: Add support for CMYK to BGR conversion.
22b69e6 windowscodecs: Move JPEG frame image data initialization from Frame::CopyPixels to Decoder::Initialize. (v2)
b635fa0 windowscodecs: Move additional processing out of the JPEG decoding loop.
80649c5 windowscodecs: Fix stride calculation in JPEG decoder.
0d88ec1 windowscodecs: Fix IWICBitmapEncoder::SetPalette for a not initialized case in JPEG encoder.
267bca1 windowscodecs: PNGEncoder: Return 32bppRGBA pixel format by default.
8bae213 windowscodecs: Fix 32bppGrayFloat to 8bppGray conversion.
8648aaf wincodecs: Add encoder options for JPEG.
2eeef78 windowscodecs: Fix a memory leak.
c092f1a windowscodecs: Add some tests for IWICMetadataQueryReader.
2271ba8 windowscodecs: Add initial implementation of IWICMetadataQueryReader::GetMetadataByName.
d3280c8 windowscodecs: Implement IWICBitmapDecoder::GetMetadataQueryReader in the GIF decoder.
c94bf3c windowscodecs: Implement IWICMetadataQueryReader::GetLocation.
3059668 windowscodecs: Use PropVariantCompareEx to compare metadata items.
f258903 windowscodecs: Implement IWICMetadataQueryReader::GetContainerFormat.
714175e windowscodecs: Implement WICMapSchemaToName.
e1eed88 windowscodecs: Implement WICMapShortNameToGuid.
37ae4f2 windowscodecs: Implement WICMapGuidToShortName.
cf1269a windowscodecs: Register WICImagingFactory2 interface.

svn path=/trunk/; revision=75953
2017-09-24 11:19:07 +00:00
Amine Khaldi 9cbeb9ed81 [PSDK] Update propidl.idl. CORE-13762
svn path=/trunk/; revision=75952
2017-09-24 11:18:52 +00:00
Amine Khaldi 93c3651871 [XMLLITE_WINETEST] Sync with Wine Staging 2.16. CORE-13762
svn path=/trunk/; revision=75951
2017-09-24 11:18:47 +00:00