Commit graph

58208 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto b3c6c5d83c [TASKMGR]
- Simplify EnablePrivilege().
- Add "Lock computer" option to the shutdown menu.
- Display the last error description if something failed when selecting one of the shutdown options.
Inspired by the patch of Robert Naumann (see CORE-8048).
CORE-8048 #resolve #comment I adapted some of your ideas to what I already committed in revision 63955, thanks!

svn path=/trunk/; revision=63961
2014-08-27 12:46:22 +00:00
Hermès Bélusca-Maïto 2ee074752d [MPLAY32]: Improve ShowLastWin32Error().
svn path=/trunk/; revision=63960
2014-08-27 12:38:45 +00:00
Thomas Faber 104275db8c [PSEH_TEST]
- Add test case that uses a significant amount of stack in the except handler
CORE-8469 #resolve

svn path=/trunk/; revision=63959
2014-08-26 21:49:06 +00:00
Jérôme Gardou 71050e2752 [PSEH3]
- Do not try to dereference potentially invalid pointers.
The FrameRegister->ExceptionPointers pointer is only valid in the context of the filter function. Indeed, the PSEH3 exception handler allocates it on the stack, and when control gets back to the __excep { } coder, ebp and esp were already restored to their original values, so whatever can happen to those pointers.
Investigation and debugging mastered by Thomas Faber, whose efforts were shamelessly stolen by me to improve my commit statistics.
CORE-8469 #comment patch committed, you may want to commit your testcase though :-p

svn path=/trunk/; revision=63958
2014-08-26 21:35:21 +00:00
Hermès Bélusca-Maïto 04e015a098 [BOOTDATA]
Use the standard C:\YourNTOSInstallDirectory\Temp temp directory as it is done on Windows, instead of C:\TEMP.
Patch by Lee Schroeder.
CORE-8390 #resolve #comment Fixed, thanks ;)

svn path=/trunk/; revision=63957
2014-08-26 20:26:17 +00:00
Hermès Bélusca-Maïto 71bac7de7e [MPLAY32]:
- Add a forgotten full stop for an error string.
- Update spanish translation, by Javiez Fernandez.
CORE-8470 #resolve #comment Committed, thanks :)

svn path=/trunk/; revision=63956
2014-08-26 19:16:08 +00:00
Hermès Bélusca-Maïto 150f6b549f [TASKMGR]
Starting implementing a shutdown menu in taskmgr (see eg. on Windows XP).
It is a synthesis of the available patches of CORE-2332 from Mario Kacmar, fixed by Timo Kreuzer and by myself.

CORE-2332 #resolve #comment Shutdown code committed in revision 63955, closing the report. Please reopen when you implement the other missing functionalities.

svn path=/trunk/; revision=63955
2014-08-26 18:57:20 +00:00
Hermès Bélusca-Maïto 1819faad83 [KERNEL32]: Fix SetSystemPowerState.
svn path=/trunk/; revision=63954
2014-08-26 17:56:22 +00:00
Thomas Faber 49a3d49fe5 [FASTFAT]
- Do not use direct I/O since it limits read/write operations to 64 MB
CORE-8410 #resolve

svn path=/trunk/; revision=63953
2014-08-26 13:41:57 +00:00
Thomas Faber cd86b37abb [NTOS:MM]
- Assert correct pool entry alignment in ExFreePoolWithTag

svn path=/trunk/; revision=63952
2014-08-26 12:47:02 +00:00
Thomas Faber 8dde0dd217 [CMLIB]
- Fix format specifiers to work in host-tools

svn path=/trunk/; revision=63951
2014-08-26 11:29:15 +00:00
Thomas Faber 70ecdc6611 [CMLIB]
- Print a debug message if bin validation fails in HvpInitializeMemoryHive.

svn path=/trunk/; revision=63950
2014-08-26 10:53:21 +00:00
Thomas Faber 10e9fc81a1 [NTOS:CM]
- Correctly delete resource in failure cases of CmpInitializeHive. Fixes pool corruption when trying to load an invalid hive file.

svn path=/trunk/; revision=63949
2014-08-26 10:49:38 +00:00
Thomas Faber 090134e9e6 [NTOS:MM]
- Fix broken assert mistakenly added. By Jérôme, delayed at my request. Thanks.

svn path=/trunk/; revision=63948
2014-08-26 09:22:29 +00:00
Jérôme Gardou bd074499cb [NTOS/MM]
- Bring back PTE frame refcounting when serving a prototype PTE page fault.
 - Fix a bug in MiDeletePte where the said PTE frame was not unshared.
 - Improve transitional PTEs deletion (will be needed for future work).
Do not always trust the comments stating that "strange RosMm code broke everything"

svn path=/trunk/; revision=63947
2014-08-25 12:33:49 +00:00
Jérôme Gardou c8374ba758 [WIN32K]
- Addendum to r63933: Pass absolute value of the font width to freetype.
CORE-4657 Somehow got lost in the number of attached files.
Spotted by Thomas Faber

svn path=/trunk/; revision=63946
2014-08-25 09:57:27 +00:00
Jérôme Gardou f2b046c263 [SCSIPORT]
- Use kernel handles instead of process handles

svn path=/trunk/; revision=63945
2014-08-24 19:49:42 +00:00
Hermès Bélusca-Maïto 794c2c3b47 Fix the fix of revision 63943. Noticed by Thomas Faber.
CORE-8150 #comment Indeed, do not confuse 'l' (lowercase L) with 'I' (uppercase i)!

svn path=/trunk/; revision=63944
2014-08-24 19:32:54 +00:00
Hermès Bélusca-Maïto fcb939fd0c [DESK]: Fix *printf format specifier.
Adapted from a patch by Victor Martinez Calvo.

CORE-8150 #resolve #comment Fixed, thanks!

svn path=/trunk/; revision=63943
2014-08-24 17:16:50 +00:00
Hermès Bélusca-Maïto 9cb415b091 Remove unneeded parentheses.
svn path=/trunk/; revision=63942
2014-08-24 17:07:43 +00:00
Hermès Bélusca-Maïto da06be6a77 [TASKMGR]: Clarify the icon handle retrieval, getting rid also of that xhIcon variable.
CORE-8148 #resolve #comment The original code was ok, but was not very clear.

svn path=/trunk/; revision=63941
2014-08-24 16:58:39 +00:00
Hermès Bélusca-Maïto 1270840cc9 [MPLAY32]
Implement a single-window mode for videos.
Patch by Ricardo Hanke.

TO ALL TRANSLATORS: Update the translations!

CORE-7910 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=63940
2014-08-24 15:40:34 +00:00
Hermès Bélusca-Maïto 245d743eba [MPLAY32]
- Add a "Play" menu, add keyboard accelerators and add a repeat mode.
  Patch by Ricardo Henke.
- Few whitespace fixes.
- Fix french resources. TO ALL TRANSLATORS: Please update the translations!

CORE-7929 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=63938
2014-08-24 14:59:44 +00:00
Hermès Bélusca-Maïto 5c29ce6bee Null HWNDs are NULL.
svn path=/trunk/; revision=63937
2014-08-24 14:15:07 +00:00
Hermès Bélusca-Maïto c4ffcdd3ad [MPLAY32]
- Display formatted system messages in case of diverse failues.
- Add an error check for RegisterClassEx() and CreateWindow() in _tWinMain().
Patch by Ricardo Hanke.

CORE-7880 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=63936
2014-08-24 14:10:49 +00:00
Jérôme Gardou cb9669d967 [WIN32K]
- Enable commented freetype call: set font face size and coordinate transformation matrix
Patch by Huw Campbell, reviewed by a gazillion of people.
CORE-4657 #resolve #comment committed in r63933, a million thanks

svn path=/trunk/; revision=63933
2014-08-24 13:28:33 +00:00
Daniel Reimer 3decbe052b [SHELL32]
Marshall interface pointers during background delete by Huw Campbell
CORE-8460 #resolve #comment Committed by request of Victor. Have fun ^^

svn path=/trunk/; revision=63932
2014-08-24 13:25:12 +00:00
Hermès Bélusca-Maïto bd13d223c5 [DESK.CPL]
Set a default choice for the options of the first tab of Settings/Advanced.

svn path=/trunk/; revision=63931
2014-08-24 12:19:35 +00:00
Hermès Bélusca-Maïto e2bb0affc7 [EVENTVWR]
Do not hardcode event logs, but retrieve them from the registry.
Patch by Ricardo Hanke.

CORE-8458 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=63930
2014-08-24 12:00:57 +00:00
Hermès Bélusca-Maïto ac9576edbf [DEVMGR]: Fix a french misspelling.
[EVENTVWR]: Fix a french misspelling and fix event description dialog layout.

svn path=/trunk/; revision=63929
2014-08-24 11:42:49 +00:00
Thomas Faber b82e2bf972 [FASTFAT]
- Properly handle errors in CcInitializeCacheMap, CcCopyRead and CcCopyWrite
CORE-8410

svn path=/trunk/; revision=63928
2014-08-24 03:28:01 +00:00
Jérôme Gardou 2e0d75e093 [CMAKE]
- Try a ninja (the warrior) technique to finally get the dependencies on reactos.cab right

svn path=/trunk/; revision=63927
2014-08-23 16:47:58 +00:00
Hermès Bélusca-Maïto 21435dd1ae [FONTS]
Updated UniVGA font by Roy Tam, thanks ;)
CORE-7706

svn path=/trunk/; revision=63925
2014-08-23 16:22:12 +00:00
Jérôme Gardou c5bd762892 [CMAKE]
- Make a conditional copy of reactos.inf when it is really modified, make reactos.acb depend on it.
Hopefully the last commit so that windows buildbot gets really fixed

svn path=/trunk/; revision=63924
2014-08-23 15:53:58 +00:00
Jérôme Gardou 9a96133a37 [WIN32K]
- Remove left-over assert

svn path=/trunk/; revision=63922
2014-08-23 15:20:44 +00:00
Jérôme Gardou c8ed53856b [CMAKE]
- make reactos_cab_inf an unconditional target.
Should fix windows testbot

svn path=/trunk/; revision=63921
2014-08-23 14:40:00 +00:00
Jérôme Gardou ec5927ad19 [WIN32K]
- Improve the "infamous RLE hack" in SetDIBitsToDevice by using a mask bitmap corresponding to the valid RLE data
[GDI32]
 - Improve some input checks

svn path=/trunk/; revision=63920
2014-08-23 14:20:16 +00:00
Jérôme Gardou ea6842d69a [FORMATTING]
- Reformat/refactor some code. No changes.

svn path=/trunk/; revision=63919
2014-08-23 10:20:18 +00:00
Jérôme Gardou 7cd7bc2b97 [INCLUDE/CRT]
- import ivec.h from mingw-w64
[INCLUDE/PSDK]
 - import bthdef and stralign.h from mingw-w64

svn path=/trunk/; revision=63918
2014-08-23 10:19:57 +00:00
Hervé Poussineau e3ab3c712a [NTOS:IO]
- Do not crash if an invalid PDO is given to IopEditDeviceList
- Always dereference device object when removing it (should be the last reference)
CORE-8294

svn path=/trunk/; revision=63917
2014-08-22 19:14:31 +00:00
Hervé Poussineau b36bcbb154 [NDISUIO]
Add required PnPEventHandler
CORE-8292

svn path=/trunk/; revision=63916
2014-08-22 19:13:31 +00:00
Hermès Bélusca-Maïto ce2f155e05 [EXPLORER_OLD]
Disable ScanNTFSStreams calls because this function exclusively calls BackupRead that is not implemented on ReactOS, and as a consequence makes lots of debug spam when browsing the start (sub-)menus.

svn path=/trunk/; revision=63914
2014-08-21 19:18:25 +00:00
Sylvain Petreolle ddcf6ee167 [RAPPS]
Fix the registry key of the Event Source.

svn path=/trunk/; revision=63913
2014-08-21 12:28:24 +00:00
Thomas Faber 73b83f8495 [PSDK]
- Fix __drv_functionClass dummy. By Alex Radocea

svn path=/trunk/; revision=63910
2014-08-20 13:23:11 +00:00
Hermès Bélusca-Maïto 4ba08b1994 [NPFS]: The third argument of ObLogSecurityDescriptor is an integer, not a boolean.
svn path=/trunk/; revision=63904
2014-08-18 17:45:26 +00:00
Thomas Faber 1cc1113dc7 [NTOS:CC]
- Remove "VACB chain" optimization for CcCopyRead that was never applied anyway since MAX_RW_LENGTH == VACB_MAPPING_GRANULARITY, so a single read could never exceed one VACB
- Consolidate CcCopyRead, CcCopyWrite and the cached case of CcZeroData into a common worker function
CORE-8410

svn path=/trunk/; revision=63903
2014-08-18 03:55:59 +00:00
Thomas Faber 39d29c44d0 [NTOS:CC]
- Set the uninitialize event in CcUninitializeCacheMap to avoid deadlocking callers

svn path=/trunk/; revision=63902
2014-08-17 21:52:54 +00:00
Thomas Faber d34c276260 [NTOS:CC]
- Use the passed-in file sizes in CcInitializeCacheMap

svn path=/trunk/; revision=63901
2014-08-17 21:47:43 +00:00
Cameron Gutman 87f8f559cc [TCPIP]
- Reference the address file while delivering data to avoid a use after free when an address file is closed during datagram delivery

svn path=/trunk/; revision=63899
2014-08-17 04:03:29 +00:00
Cameron Gutman ef4815c35f [HAL]
Fix a catastrophic bug in S/G DMA. There is a subtle difference between the S/G DMA APIs and the old AllocateAdapterChannel API when it comes to having multiple requests in flight. Callers of (Io)AllocateAdapterChannel CANNOT queue another request until the AdapterControlRoutine is called. S/G DMA allows multiple concurrent DMA requests, but ROS was using IoAllocateAdapterChannel in the S/G API. As a result, the wait block stored in the device object was unexpectedly reinitalized and queued again. This results in a leak of the originally queued request context, potentially performing the new DMA operation twice while dropping the old request, and use after free of the context passed to HalpScatterGatherAdapterControl.

svn path=/trunk/; revision=63898
2014-08-17 01:42:02 +00:00