Commit graph

59091 commits

Author SHA1 Message Date
Aleksey Bragin
3ed526868f [PSDK] and [NDK]
- Since NTSTATUS definition is returned into bcrypt.h, then let's define PNTSTATUS too. Otherwise it makes no sense and errors out.
- Handle BCRYPT_H and __WINE_BCRYPT_H in ndk/umtypes.h. Thomas said that BCRYPT_H is not an option - but our NDK should be compatible with ReactOS PSDK too. If I am wrong, please feel free to change __WINE_BCRYPT_H to BCRYPT_H in psdk/bcrypt.h, fix related probelms and revert my change. Thanks!

svn path=/trunk/; revision=64713
2014-10-13 10:53:58 +00:00
Amine Khaldi
43cbfe8aea [MSVCRT_WINETEST]
* Sync with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64712
2014-10-13 10:53:02 +00:00
Amine Khaldi
43f5fec7ad [INCLUDE/CRT]
* Add missing _USERBUF definition.

svn path=/trunk/; revision=64711
2014-10-13 10:42:59 +00:00
Amine Khaldi
9144185ad8 [CRT]
* Update MSVCRT_I10_OUTPUT().
CORE-8540

svn path=/trunk/; revision=64710
2014-10-13 10:31:36 +00:00
Thomas Faber
80ecfd75ed [USER32_APITEST]
- Extend GetUserObjectInformation test to include the ansi version. ... this is the lazy way and just duplicates the code, feel free to make it more concise.
CORE-8101

svn path=/trunk/; revision=64706
2014-10-13 09:22:59 +00:00
Thomas Faber
fb3bffdf30 [USER32]
- Correctly treat lpnLengthNeeded as optional in GetUserObjectInformationA. Fixes crash in user32_winetest:winstation
CORE-8101 #resolve

svn path=/trunk/; revision=64705
2014-10-13 09:18:46 +00:00
Amine Khaldi
f7a5377817 [CMAKE/MSVC]
* Introduce support for for MSVC native run-time checks. Set RUNTIME_CHECKS to TRUE to enable it.
* Dedicated to Christoph von Wittich and all ReactOS devs that use MSVC builds ;)
CORE-8626

svn path=/trunk/; revision=64704
2014-10-12 22:59:32 +00:00
Amine Khaldi
64a6fffdbc [CMAKE]
* Module type win32dll ENTRYPOINT 0 => module.

svn path=/trunk/; revision=64703
2014-10-12 22:28:39 +00:00
Thomas Faber
b62c758526 [RTL]
- Allow the thread that called LdrShutdownProcess to forcefully acquire critical sections (the loader lock in particular).
This fixes the race condition where ExitProcess might terminate a thread holding the loader lock and subsequently call LdrShutdownProcess. That would then result in a deadlock because LdrShutdownProcess cannot acquire the loader lock.
This is a pretty ugly hack... but at least Windows does it the same way.
Fixes hangs after the summary line when running mshtml tests.
CORE-8624 #resolve

svn path=/trunk/; revision=64702
2014-10-12 20:45:32 +00:00
Hermès Bélusca-Maïto
ae24fd4e41 [NTVDM]
- Move the stack frame indices to where they belong (this is the stack layout when an interrupt is called).
- In the bootstrap interrupt, modify the CS:IP stored in the stack instead of the current CS:IP of the CPU, so that we can clean up everything and the interrupt return correctly, instead of breaking everything... (some apps wouldn't start with the original code^^). This is an addendum/fix to revision 64521.

svn path=/trunk/; revision=64701
2014-10-12 17:23:20 +00:00
Eric Kohl
634d194a5f [SETUPAPI]
Store the module handles to loaded property page provider dlls in the DeviceInfoData (for class property pages) or in the DeviceInfo (for device property pages). The dlls are unloaded when the device info set is destroyed. These dlls were unloaded as soon as the property sheet data had been retrieved. These property pages could not be added to a property sheet because unloading the dll invalidated the page reources.

svn path=/trunk/; revision=64700
2014-10-12 17:13:36 +00:00
Thomas Faber
6774a3cf53 [SECUR32]
- Call SECUR32_initializeProviders from EnumerateSecurityPackagesW if necessary. Fixes a couple secur32 tests, and an occasional crash in rpcrt4:rpc

svn path=/trunk/; revision=64699
2014-10-12 16:19:45 +00:00
Hermès Bélusca-Maïto
eebf53a4a1 [FAST486]: speed up things a bit when we're reading prefixes, by really going to the next instruction (no jump to the end of the do{}while() loop, then restart).
svn path=/trunk/; revision=64698
2014-10-12 14:08:14 +00:00
Timo Kreuzer
62a9101a31 [NTOSKRNL]
Make sure APCs are disabled when acquiring MmSectionCommitMutex.

svn path=/trunk/; revision=64697
2014-10-12 14:05:49 +00:00
Hermès Bélusca-Maïto
88b05a01ad [fast486]: code formatting + add a comment about the instruction 0xF1.
svn path=/trunk/; revision=64696
2014-10-12 13:50:05 +00:00
Thomas Faber
5aaaab86e4 [ROSAUTOTEST]
- DbgPrint expects a format string!
ROSTESTS-145 #resolve

svn path=/trunk/; revision=64695
2014-10-12 13:23:38 +00:00
Pierre Schweitzer
6214688a97 [NTFS]
Forgot that file²...

svn path=/trunk/; revision=64694
2014-10-12 11:52:05 +00:00
Pierre Schweitzer
0892e523ce [NTFS]
Forgot that file...

svn path=/trunk/; revision=64693
2014-10-12 11:50:08 +00:00
Pierre Schweitzer
e8d374127e [NTFS]
On opening, check the file found matches the requested dispositions from the caller

svn path=/trunk/; revision=64692
2014-10-12 11:48:42 +00:00
Pierre Schweitzer
c440495495 [NTFS]
Properly reset FCB & SectionObjectPointer fields from the FileObject on close

svn path=/trunk/; revision=64691
2014-10-12 11:43:10 +00:00
Thomas Faber
64e2bc0bcd [NTDLL:DBG]
- Use NtReadVirtualMemory instead of dereferencing a pointer from a different process in DbgUiConvertStateChangeStructure.
CORE-8622 #resolve

svn path=/trunk/; revision=64690
2014-10-12 11:35:11 +00:00
Thomas Faber
98b2bae8db [EVENTLOG]
- In ElfGetLogHandleEntryByHandle, actually verify the validity of the handle by traversing the log handle list. Fixes crash in advapi32_winetest:eventlog (double close).
- Minor style improvements to ElfDeleteEventLogHandle
CORE-8621 #resolve

svn path=/trunk/; revision=64689
2014-10-12 11:23:05 +00:00
Thomas Faber
e85c3287e6 [FDEBUG]
- Fix build

svn path=/trunk/; revision=64688
2014-10-12 06:21:22 +00:00
Hermès Bélusca-Maïto
81e45ad891 [FAST486]
- fastcall'ize some functions,
- code formatting.

svn path=/trunk/; revision=64687
2014-10-12 00:10:44 +00:00
Hermès Bélusca-Maïto
76b9cec909 [FAST486]
- In order to always check for opcode handler being NULL, replace the only NULL handler by a non-NULL one that handles the invalid opcodes.
- To quickly retrieve opcode numbers, add their numbers in regard to their handlers.

svn path=/trunk/; revision=64686
2014-10-11 23:12:30 +00:00
Thomas Faber
40b5bdc561 [NTOS:KE]
- Make fastfail exception noncontinuable
CORE-8419

svn path=/trunk/; revision=64685
2014-10-11 23:07:04 +00:00
Amine Khaldi
d52bd15a34 [README.WINE]
* Mark extrac32 and expand as synced with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64684
2014-10-11 19:43:36 +00:00
Amine Khaldi
0613b3fa09 [WORDPAD]
* Fix an inconsistency between resource compilers.

svn path=/trunk/; revision=64683
2014-10-11 19:06:53 +00:00
Hermès Bélusca-Maïto
05f282db13 errm... proper commenting.
svn path=/trunk/; revision=64682
2014-10-11 18:40:08 +00:00
Amine Khaldi
ba92c6ada6 [WORDPAD]
* Sync with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64681
2014-10-11 18:39:41 +00:00
Hermès Bélusca-Maïto
4dc3817613 [FAST486]
Use a more performant CountLeadingZeros64 version from Timo (tested by Thomas), and disable the MSVC-specific one until you find a version that works, and is supported for any CPU.

svn path=/trunk/; revision=64680
2014-10-11 18:35:23 +00:00
Pierre Schweitzer
e13190034d [NTFS]
Addendum to r64678

svn path=/trunk/; revision=64679
2014-10-11 18:03:48 +00:00
Pierre Schweitzer
6df3ae7aff [NTFS]
Return found FCB on successful file opening

svn path=/trunk/; revision=64678
2014-10-11 18:00:46 +00:00
Aleksandar Andrejevic
33bad414bc [FAST486]
CountLeadingZeros64 shouldn't loop forever if "Value" is 0.


svn path=/trunk/; revision=64677
2014-10-11 16:57:33 +00:00
Hermès Bélusca-Maïto
2471c3b90f [FAST486]: fixes for CountLeadingZeros64:
- remove extra ';'
- This is (x)>0xff.... not >=
- Use Timo inline function.

svn path=/trunk/; revision=64676
2014-10-11 16:25:45 +00:00
Hermès Bélusca-Maïto
51ad4d4d0e Revert revision 64673 (as long as our FPU is not fully implemented, do not hint apps to use our FPU, but instead their simulated one if they have one). Fixes QBasic-compiled apps (amongst others...)
svn path=/trunk/; revision=64675
2014-10-11 16:00:31 +00:00
Aleksandar Andrejevic
a6b0b2c9f8 [FAST486]
Use intrinsics to count the leading zeros when possible.
Add FPU data to Fast486DumpState.


svn path=/trunk/; revision=64674
2014-10-11 15:42:00 +00:00
Hermès Bélusca-Maïto
af3b46598e [NTVDM]: we have a FPU.
svn path=/trunk/; revision=64673
2014-10-11 15:39:18 +00:00
Hermès Bélusca-Maïto
1e5192c2b4 [FAST486]: group Fast486GetIntVector and Fast486InterruptInternal calls into Fast486PerformInterrupt and use it in the code.
svn path=/trunk/; revision=64672
2014-10-11 15:28:21 +00:00
Aleksandar Andrejevic
beb08f639d [FAST486]
Revert the previous fix and fix it again, but properly.


svn path=/trunk/; revision=64671
2014-10-11 14:40:53 +00:00
Thomas Faber
8f8255e36b [ROSAUTOTEST]
- Do not duplicate console output in StringOut if forcePrint = false
ROSTESTS-144

svn path=/trunk/; revision=64670
2014-10-11 14:34:56 +00:00
Aleksandar Andrejevic
201b9736c0 [FAST486]
Fix the 6-bit sub-opcode numbers for opcode 0xDB.


svn path=/trunk/; revision=64669
2014-10-11 14:34:31 +00:00
Aleksandar Andrejevic
0b60516799 [FAST486]
Save and restore the prefix flags in Fast486InterruptInternal instead of hacking around this
everywhere else.


svn path=/trunk/; revision=64668
2014-10-11 14:03:17 +00:00
Amine Khaldi
f8931b8774 [NTOS]
* Set the base address to 0x00800000 only in gdb mode, otherwise use the correct one.

svn path=/trunk/; revision=64667
2014-10-11 13:43:02 +00:00
Amine Khaldi
25161b54ac [CMAKE/BASEADDRESS]
* Take the dwarf builds (NO_ROSSYM on) into account when assigning base addresses.
* Dedicated to V.

svn path=/trunk/; revision=64666
2014-10-11 13:36:08 +00:00
Thomas Faber
c859a6df99 [NTOS:KE]
- Implement KiRaiseSecurityCheckFailure[Handler] to handle int 0x29 (__fastfail). Based on patch by Timo Kreuzer.
(Yes, this is a Windows 8 feature. However all it does is improve the debugging experience, and we have a need for that)
CORE-8419

svn path=/trunk/; revision=64665
2014-10-11 13:15:10 +00:00
Timo Kreuzer
56af6d9a25 [RTL/NTOSKRNL]
Rename AVL tree functions with macros when included from Mm. This is necessary since the compiler might chose to not inline these functions (and does so on MSVC debug builds) yet only generate one instance of the function, where 2 different versions are required. This caused RtlAvlTree functions to fail on MSVC builds, since they were calling the functions compiled for Mm AVL trees!

svn path=/trunk/; revision=64664
2014-10-11 12:40:24 +00:00
Thomas Faber
a747a1b3f5 [APPLICATIONS]
- Remove broken casts

svn path=/trunk/; revision=64663
2014-10-11 12:39:50 +00:00
Thomas Faber
d4378d8e20 [USER32][SCRNSAVE]
- Remove broken casts

svn path=/trunk/; revision=64662
2014-10-11 12:34:25 +00:00
Thomas Faber
8dec287d97 [CONSRV]
- Fix buffer overflows

svn path=/trunk/; revision=64661
2014-10-11 12:13:27 +00:00