Commit graph

53579 commits

Author SHA1 Message Date
Thomas Faber 2f252b01ea [HID]
- Hidclass must delete the FDO, not the minidriver.

svn path=/trunk/; revision=59011
2013-05-12 18:51:11 +00:00
Thomas Faber ab06a44464 [HIDUSB]
- Plug a memory leak in HidUsb_GetReportDescriptor
- Do not try to free in the middle of a pool block on IRP_MN_STOP_DEVICE
- Implement HidPower
- Do not access an IRP after completing it in HidCreate
- Do not waste a stack location in HidSystemControl

svn path=/trunk/; revision=59010
2013-05-12 18:24:12 +00:00
Thomas Faber a5852729fa [HIDUSB]
- Use pool tagging

svn path=/trunk/; revision=59009
2013-05-12 17:59:14 +00:00
Thomas Faber 6c4c227878 [HIDCLASS]
- Get rid of HidClass_GetSystemAddress
- More minor fixes

svn path=/trunk/; revision=59008
2013-05-12 17:16:41 +00:00
Thomas Faber ba151570a1 [HIDUSB]
- Remove unnecessary casts

svn path=/trunk/; revision=59007
2013-05-12 17:03:24 +00:00
Thomas Faber 1e777a48a7 [HIDUSB]
- The usual... fix some whitespace

svn path=/trunk/; revision=59006
2013-05-12 16:59:26 +00:00
Thomas Faber 9c5af92297 [HIDCLASS]
- Use pool tagging

svn path=/trunk/; revision=59005
2013-05-12 15:44:58 +00:00
Thomas Faber bac0a3658f [HIDCLASS]
- Remove unnecessary casts
- Fix DllInitialize/DllUnload prototype

svn path=/trunk/; revision=59004
2013-05-12 15:31:01 +00:00
Thomas Faber df2001250f [HIDCLASS]
- Fix some whitespace

svn path=/trunk/; revision=59003
2013-05-12 15:23:34 +00:00
Eric Kohl e0936866ae [WINLOGON]
Wait for the LSA server to complete its initialization before initializing the GINA dll. This change is required because future changes to MSGINAs logon code will require access to the LSA.

svn path=/trunk/; revision=59002
2013-05-12 13:24:37 +00:00
Hermès Bélusca-Maïto c3c6b6199f [CONSRV]
- Use new helpers ConsoleAllocHeap and ConsoleFreeHeap instead of RtlAllocateHeap and RtlFreeHeap, to be able to use also debug heaps etc...
- Initialize completely CONSOLE and CONSOLE_SCREEN_BUFFER structures to avoid using unitializing fields, that can be prone to bugs.
- Do not unnecessarily lock the per-process IO handles table.
- Validate the console pointers when calling SrvCloseHandle / SrvVerifyConsoleIoHandle / SrvDuplicateHandle (so that we are sure to do valid operations for console applications, and fail properly for GUI ones).

- Fix a bug caught by [TheFlash] which unveiled only on livecds (why??) as random CSR heap corruptions. It was caused by corrupting the heap by freeing invalid IO handles when freeing the handles table inherited by default when starting a console application. I reworked the initialization code a bit and the freeing code to fix this problem.
  This bug was diagnosed with the help of Thomas Faber's debug heap (see http://www.reactos.org/wiki/User:ThFabba/Debug_Heap ), that I've augmented a bit (with dumping functions when a heap block was found invalid).

- Now reenable the CSR heap usage.

CORE-7157 #resolve #comment Resolved in revision 59001. Thanks for your help :D

svn path=/trunk/; revision=59001
2013-05-12 00:20:15 +00:00
James Tabor b256611e05 [Win32k]
- Thread ID to Thread Information.

svn path=/trunk/; revision=59000
2013-05-11 19:33:40 +00:00
James Tabor 6ca4c20d1b [Win32k]
- Cleanup and one fix.

svn path=/trunk/; revision=58999
2013-05-11 19:26:18 +00:00
Thomas Faber 647ff6e058 [KBDHID][MOUHID]
- Free the correct usage list buffer

svn path=/trunk/; revision=58998
2013-05-11 17:15:54 +00:00
Thomas Faber a4659f29fb [HIDPARSER]
- Don't use a platform-dependent free function aka fix build

svn path=/trunk/; revision=58997
2013-05-11 15:51:37 +00:00
Thomas Faber d070a9875a [HIDPARSE]
- Use pool tagging
- Avoid a cast

svn path=/trunk/; revision=58996
2013-05-11 15:41:22 +00:00
Thomas Faber 22eb29b7fb [HIDPARSE]
- Fix some whitespace

svn path=/trunk/; revision=58995
2013-05-11 15:39:50 +00:00
Thomas Faber 88b692d160 [KBDHID][MOUHID]
- Use pool tagging
- Remove unnecessary casts

svn path=/trunk/; revision=58994
2013-05-11 12:30:52 +00:00
Thomas Faber aec2159f30 [KBDHID][MOUHID]
- Free device resources

svn path=/trunk/; revision=58993
2013-05-11 12:17:36 +00:00
Thomas Faber 22de130758 [KBDHID][MOUHID]
- Properly stub DispatchPower
- Implement DispatchSystemControl

svn path=/trunk/; revision=58992
2013-05-11 12:08:46 +00:00
Amine Khaldi 309a347ed1 [FS_REC]
* Properly mark some unreferenced parameters as such.

svn path=/trunk/; revision=58991
2013-05-11 11:13:23 +00:00
Amine Khaldi 0e4da5b660 [FASTFAT]
* Add some function annotations.
* Fix several debug print specifiers.
* Properly mark some unreferenced parameters as such.

svn path=/trunk/; revision=58990
2013-05-11 11:03:12 +00:00
Thomas Faber 2775dd14a4 [KBDHID][MOUHID]
- Use switch instead of nested ifs
- Remove some unnecessary casts
- Fix some spacing issues

svn path=/trunk/; revision=58989
2013-05-11 10:23:54 +00:00
Amine Khaldi 8ba55e9b6f [CDFS]
* Fix the mismatch between sizeof and countof quantities in CdfsMakeFCBFromDirEntry.
* Properly account for '\\' and '\0'.
* Fix one more debug print specifier.

svn path=/trunk/; revision=58988
2013-05-11 09:52:37 +00:00
Amine Khaldi 1e4828d3f8 [CDFS]
* Add some function annotations.
* Fix several debug print specifiers.
* Properly mark some unreferenced parameters as such.

svn path=/trunk/; revision=58987
2013-05-11 09:24:31 +00:00
James Tabor 016d53260e [Win32k]
- ATI fixup CORE-6551.
- Giannis Adamopoulos fragment patch 18.

svn path=/trunk/; revision=58986
2013-05-10 22:28:18 +00:00
Timo Kreuzer 7647f53075 [SCSIPORT]
Fix a bug in size calculation that causes memory corruption on 64 bit
Fix some MSVC/x64 warnings

[UNIATA]
Fix some MSVC/x64 warnings

svn path=/trunk/; revision=58985
2013-05-10 19:46:50 +00:00
Timo Kreuzer b70c15e6b4 [FREELDR]
Fix stack corruption.

svn path=/trunk/; revision=58984
2013-05-10 17:49:48 +00:00
Amine Khaldi 4353334b66 [PCMCIA]
* Add some function annotations.
* Properly mark some unreferenced parameters as such.

svn path=/trunk/; revision=58983
2013-05-10 10:30:21 +00:00
Amine Khaldi bc3d063fc1 [PCIX]
* Add some function annotations.
* Fix several debug print specifiers.
* Properly mark some unreferenced parameters as such.

svn path=/trunk/; revision=58982
2013-05-10 10:22:01 +00:00
Amine Khaldi 39649f0dd6 [PCI]
* Add some function annotations.
* Fix several debug print specifiers.
* Properly mark some unreferenced parameters as such.

svn path=/trunk/; revision=58981
2013-05-09 21:24:16 +00:00
Amine Khaldi bd9b579007 [KERNEL32]
* Avoid ini cache if file does not exist anymore. By Bruno Jesus.

svn path=/trunk/; revision=58980
2013-05-09 21:04:49 +00:00
Amine Khaldi 382d0c0257 [KERNEL32]
* Remove some unused variables. By Andrew Talbot.

svn path=/trunk/; revision=58979
2013-05-09 21:01:41 +00:00
Amine Khaldi 00a1eae887 [CRT]
* Fix some copy pasta (incorrect checks) in the locale code. By Samuel Serapion.
CORE-7176 #resolve

svn path=/trunk/; revision=58978
2013-05-09 20:46:54 +00:00
Amine Khaldi 1b4861392f [USER32]
* Fix some signed/unsigned mismatches. Brought to you by Victor Martinez.
CORE-7150 #resolve

svn path=/trunk/; revision=58977
2013-05-09 20:09:31 +00:00
Eric Kohl bce782c971 [FASTFAT]
Allow only readonly, hidden, system and archive files attributes to be set for a new file. Other file attributes must be ignored.
This fixes several tests.

svn path=/trunk/; revision=58976
2013-05-09 15:03:51 +00:00
Amine Khaldi 4d9bf5c80a [ISAPNP]
* Add some function annotations.
* Fix several debug print specifiers.
* Properly mark some unreferenced parameters as such.

svn path=/trunk/; revision=58975
2013-05-09 14:06:21 +00:00
Hermès Bélusca-Maïto 91ef640fe5 Merge my current work done on the kd++ branch:
- FreeLdr is able now to load personalized Kernel Debugger Transport DLLs by reading at the kernel command line and interpreting the /DEBUGPORT=xxx entry (--> loads KDxxx.DLL dll in \SystemRoot\System32\).
  Therefore we can not only load the "default" kdcom.dll, but also 3rd-party ones such as kdbazis.dll from VirtualKD (from revision 58902).
- The GCC-compiled-only version of kdcom, containing legacy COM code, was removed and put directly along KDBG. It remains only a stub / template for future kdcom-like dlls. The MSVC-version remains untouched.
- Make those functions ^ use directly the CPORTLIB library.

svn path=/trunk/; revision=58974
2013-05-09 13:12:58 +00:00
Hermès Bélusca-Maïto e2b54f3271 [NTOS]
Remove the kdbg-specific tags from the tag header and put them into the kdbg-specific header.

svn path=/branches/kd++/; revision=58973
2013-05-09 12:55:39 +00:00
Hermès Bélusca-Maïto 7712bdbae9 Sunc with trunk revision 58971.
svn path=/branches/kd++/; revision=58972
2013-05-09 12:36:15 +00:00
Hermès Bélusca-Maïto 1398bd62c8 [FREELDR]
- Fix dprints (be careful when "Status" variables are booleans).
- Don't fail when trying to load an non-existent KD transport dll.

svn path=/branches/kd++/; revision=58971
2013-05-08 17:52:16 +00:00
Hermès Bélusca-Maïto 0811c4fabe [KDROSDBG-NTOS]
Put the 3 helper COM functions into KDBG directly.

svn path=/branches/kd++/; revision=58970
2013-05-08 15:36:38 +00:00
Amine Khaldi a1f6ab4391 [AFD]
* Mark SelectTimeout as a KDEFERRED_ROUTINE and fix its calling convention. This fixes a potential stack corruption.
* Brought to you by Nikolay Borisov and the MSVC static analyzer ;)
CORE-7171 #resolve

svn path=/trunk/; revision=58969
2013-05-08 12:12:15 +00:00
Amine Khaldi 689682751e [BEEP]
* Properly mark some unreferenced parameters as such.
[AFD]
* Properly fix a debug print specifier.

svn path=/trunk/; revision=58968
2013-05-08 11:55:37 +00:00
Amine Khaldi 8901f8a911 [AFD]
* Fix more debug print specifiers.

svn path=/trunk/; revision=58967
2013-05-08 11:33:13 +00:00
Amine Khaldi 90cb6ce333 [AFD]
* Add some function annotations.
* Fix several debug print specifiers.
* Properly mark some unreferenced parameters as such.
* This fixes several warnings emitted by the MSVC static analyzer.
* Brought to you by Nikolay Borisov, with minor consistency styling changes by me.
CORE-7171

svn path=/trunk/; revision=58966
2013-05-08 10:55:46 +00:00
Amine Khaldi 018f811091 [XDK/DDK]
* The event parameter in IoBuildDeviceIoControlRequest is optional. Spotted by Nikolay Borisov.
CORE-7172 #resolve

svn path=/trunk/; revision=58965
2013-05-08 10:26:24 +00:00
Hermès Bélusca-Maïto cbdc727f61 [KDROSDBG]
In fact, the kdcom used for KDBG (in GCC builds) is really a thin layer atop of CPORTLIB.
Remove extra code (remove also the KD_PORT_INFORMATION type) and replace it with calls to CPORTLIB functions.
Next step is to put all that thing into KDBG directly, as helper functions. Then, if one wants to make a really kdcom (as we have for MSVC builds), one has to refactor all KDBG.

svn path=/branches/kd++/; revision=58964
2013-05-07 00:14:36 +00:00
Eric Kohl c1d4f2f390 [MSGINA]
Convert tabs to spaces. No code changes!

svn path=/trunk/; revision=58963
2013-05-06 21:43:03 +00:00
Pierre Schweitzer bfe3492dc4 [KMTESTS:FSRTL]
Add comments

svn path=/trunk/; revision=58962
2013-05-06 11:24:55 +00:00