Commit graph

51696 commits

Author SHA1 Message Date
Aleksey Bragin 2e9aa30294 [EXPLORER_NEW]
- Fix possible buffer overflow: ExpandEnvironmentStrings wants character count size of a buffer, not byte sized. Spotted by Thomas Faber.
See issue #6053 for more details.

svn path=/trunk/; revision=56888
2012-07-14 12:02:19 +00:00
Aleksey Bragin d096ba484c [EXPLORER_NEW]
- Revert r56865, it duplicates same action (expanding the var), spotted by Thomas Faber.
See issue #6053 for more details.

svn path=/trunk/; revision=56887
2012-07-14 11:54:07 +00:00
Aleksey Bragin 0c286ecb18 [WS2_32_NEW]
- Fix uninitialized variable usage warning, based on a patch by Edijs Kolesnikovics.
See issue #6828 for more details.

svn path=/trunk/; revision=56886
2012-07-14 11:44:26 +00:00
Thomas Faber 490dff4d27 [WUAPI]
- Add missing interface registration

svn path=/trunk/; revision=56885
2012-07-14 11:30:50 +00:00
Aleksey Bragin 926b354999 [CMLIB]
- Hermes Belusca: Fix wrong definition of CMHIVE structure (defined only 3 FileHandles when 4 is needed).
See issue #7162 for more details.

svn path=/trunk/; revision=56884
2012-07-14 10:57:16 +00:00
Amine Khaldi 5bc86b70f9 [WIN32SS]
* Remove some unused-but-set variables.

svn path=/trunk/; revision=56883
2012-07-14 09:31:24 +00:00
Amine Khaldi 2e6623a6fb [UNIATA]
* Improve the way DDKAPI, DDKCDECLAPI and DDKFASTAPI are defined. With that we don't need ReactOS specific defines anymore.
* Already sent upstream.

svn path=/trunk/; revision=56882
2012-07-14 09:21:40 +00:00
Jérôme Gardou 1cbd95e788 [GCC-INTRINSICS]
* Use GCC intrinsics for InterlockedIncrement/Decrement functions 

svn path=/trunk/; revision=56881
2012-07-13 14:51:46 +00:00
Thomas Faber ae8d3aef57 [WINTRUST]
- Do not delay-import imagehlp. Fixes crash in wintrust:crypt
See issue #7171 for more details.

svn path=/trunk/; revision=56880
2012-07-13 09:27:45 +00:00
Thomas Faber 4d5ec2d0bf [WINTRUST]
- Sync to Wine 1.5.4

svn path=/trunk/; revision=56879
2012-07-13 08:19:36 +00:00
Thomas Faber d72f737b73 [WINTRUST_WINETEST]
- Sync to Wine 1.5.4
- Fix MSVC build. Already applied upstream.

svn path=/trunk/; revision=56878
2012-07-13 07:43:41 +00:00
Thomas Faber bdc9f3ec76 [ADVAPI32][USER32][ROSSYM_NEW]
- Fix misuse of RtlCreateUnicodeStringFromAsciiz

svn path=/trunk/; revision=56877
2012-07-12 19:48:30 +00:00
Thomas Faber 42e6e0b684 [REGEDIT]
- Use COUNT_OF where appropriate. Miscellaneous code cleanup. Patch by Hermès Bélusca
See issue #7182 for more details.

svn path=/trunk/; revision=56876
2012-07-12 19:10:48 +00:00
Jérôme Gardou 5cdab9e546 [WIN32K]
* When cleaning DC, also "clean" the associated brushes
Fixes some asserts hit with Baldur's Gate launcher

svn path=/trunk/; revision=56875
2012-07-12 17:00:39 +00:00
Jérôme Gardou f9a6dfab7d [NTDLL]
* Fix Cookie for loader locking generation
Silences "LdrUnlockLoaderLock() called with an invalid cookie!" debug messages

svn path=/trunk/; revision=56874
2012-07-12 14:55:53 +00:00
Jérôme Gardou dc476b6bf5 [OPENGL32]
* Track pixel format with window handle for device contexts
 * Fix SetPixelFormat in case pixel format were already set

svn path=/trunk/; revision=56873
2012-07-12 14:06:34 +00:00
Jérôme Gardou 66340bca60 [OPENGL32]
* Use the TEB instead of TLS to store the thread curent context

svn path=/trunk/; revision=56872
2012-07-12 11:39:23 +00:00
Jérôme Gardou d9203fde02 [OPENGL32]
- fix wine tests a bit

svn path=/trunk/; revision=56871
2012-07-12 00:34:09 +00:00
Aleksey Bragin 4dbe1813f4 [UNIATA]
- Update Uniata to 41b5. Thanks to Alter for the great driver and Olaf Siejka for preparing the patch, getting our changes upstream and testing the updated version.
See issue #7148 for more details.

svn path=/trunk/; revision=56870
2012-07-11 23:34:55 +00:00
Thomas Faber ac0e3ce65b [REGEDIT]
- Implement Import/Export of hive files. Patch by Hermes Belusca (German translation by me)
See issue #7180 for more details.

svn path=/trunk/; revision=56869
2012-07-11 23:04:41 +00:00
Thomas Faber 8997e9de57 [REGEDIT]
- Apply the "Refresh" command to the ListView in addition to the TreeView
- Use COUNT_OF where applicable; miscellaneous readability and consistency fixes
- Space fixes in resource files; French translation fixes
- Patch by Hermes Belusca
See issue #7180 for more details.

svn path=/trunk/; revision=56868
2012-07-11 21:49:43 +00:00
Thomas Faber 8200dcac5d [NTDLL_WINETEST]
- Add test for RtlIpv4StringToAddress. Already applied upstream.

svn path=/trunk/; revision=56867
2012-07-11 07:38:36 +00:00
Thomas Faber d631a0f7be [NTDLL_WINETEST]
- Sync to Wine 1.5.4
- Reverts r55730 (Skip an obviously nonsensical test of trying to sprintf into NULL)

svn path=/trunk/; revision=56866
2012-07-11 07:04:50 +00:00
Aleksey Bragin 1963b7a4e6 [EXPLORER]
- Edijs Kolesnikovics: Expand environment strings during processing startup items in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.
See issue #6053 for more details.

svn path=/trunk/; revision=56865
2012-07-10 22:48:23 +00:00
James Tabor 3b69ad47bf [User32]
- Fixing graphics glitches when clicking the arrow button. See bug 4251.

svn path=/trunk/; revision=56864
2012-07-10 22:40:59 +00:00
Aleksey Bragin 35b6dde84e [SCSIPORT]
- Don't stop enumerating functions of a PCI device if current function returned invalid vendor id. Also add a check for returned data size. This fixes detection of some storage controllers, e.g. Intel ICH8, ICH9, ICH10 chipsets.
Thanks to Alter (UniATA author) for finding the problem and providing solution.
See issue #7147 for more details.

svn path=/trunk/; revision=56863
2012-07-10 20:58:34 +00:00
Thomas Faber 20d01189db [USER32_APITEST]
- Handle some wsprintf-specific cases in the CRT sprintf test

svn path=/trunk/; revision=56862
2012-07-10 08:07:44 +00:00
Eric Kohl 84b02d3d64 [SERVICES]
Correct comments and code error introduced in rev 56844.
Patch by Hermes Belusca.

I used a helper variable to determine whether or not ScmDeleteNamedPipeCriticalSection must be called. Changing the order in which functions are called could cause a deadlock.

See issue #7172 for more details.

svn path=/trunk/; revision=56861
2012-07-08 23:08:19 +00:00
Timo Kreuzer aec110d514 [FREELDR]
Allocate the ARC_DISK_SIGNATURE structures from the heap instead of putting them into the initial loader block allocation, since the number of disks changes later. Fixes memory corrruption and boot breakage when 3 hdds are connected.

[NTOSKRNL]
Remove a hack that disabled unloading drivers, which didn't work because of memory corruption from freeldr. This works now, too.

See issue #7139 for more details.

svn path=/trunk/; revision=56860
2012-07-08 22:06:23 +00:00
Timo Kreuzer 60c98d7414 [CMAKE]
Globally disable SSE when compiling with VS 11 or newer.

See issue #7174 for more details.

svn path=/trunk/; revision=56859
2012-07-08 19:59:33 +00:00
Aleksey Bragin 110a73b8c5 [CMD]
- Fix missing new line in the timer command results. Spotted by Mikael Lyngvig.
See issue #7140 for more details.

svn path=/trunk/; revision=56858
2012-07-08 19:43:25 +00:00
Timo Kreuzer de0561fdf3 [FREELDR]
- Make sure freeldr is not compiled with SSE instructions (default for VS 11+)
- Print trap number and instruction stream on bugcheck
- Fix assembly code for ML

svn path=/trunk/; revision=56857
2012-07-08 18:45:34 +00:00
Timo Kreuzer 713bccbc75 [CMAKE]
Fix MSVC+Ninja support, sync some stuff from the original cmake file

svn path=/trunk/; revision=56856
2012-07-08 18:40:24 +00:00
Timo Kreuzer ea8da897e3 [CMD]
Fix typos

svn path=/trunk/; revision=56855
2012-07-08 16:16:53 +00:00
Timo Kreuzer ffe50536e7 [CMD]
Fix build with VS 2012

svn path=/trunk/; revision=56854
2012-07-08 16:06:24 +00:00
Thomas Faber 2d81eed739 [SMSS]
- Fix an NTSTATUS vs boolean issue
- Fix an MSVC warning

svn path=/trunk/; revision=56853
2012-07-08 16:04:39 +00:00
Eric Kohl cdb96189b4 [SERVICES]
Implement LoadUserProfileA and DeleteProfileA.
Patch by Hermes Belusca.

See issue #7163 for more details.

svn path=/trunk/; revision=56852
2012-07-08 15:39:14 +00:00
Timo Kreuzer 9b9afa4558 [FREELDR]
Add code to dump amd64 cpu state. Add a bugcheck function.

svn path=/trunk/; revision=56851
2012-07-08 15:33:53 +00:00
Eric Kohl 87f0a30cfe [SAMSRV]
- Implement SampGetObjectAttributeString to retrieve the size of a string, allocate a buffer and retrieve the string from the registry.
- Use SampGetObjectAttributeString to retrieve string attributes in SamrQueryInformationXxx functions.
- Add most missing cases to SamrQueryInformationUser.
- Fix a type mismatch in ntsam.h.

svn path=/trunk/; revision=56850
2012-07-08 09:33:35 +00:00
Aleksey Bragin c4dbf5a011 [KERNEL32]
- Wine doesn't prepend \registry\ to any registry path, which is wrong. Fix that.
- Bring back previous implementation of GetGeoInfo & co.
- Fix GEO_OFFICIALLANGUAGES in the headers.
- Thanks to Kamil Hornicek and Samuel Serapion for finding the problem and creating patches.
See issue #6595 for more details.

svn path=/trunk/; revision=56849
2012-07-07 23:02:14 +00:00
Eric Kohl 847f94cf76 [SERVICES]
First step to support control sets.

svn path=/trunk/; revision=56848
2012-07-07 18:17:59 +00:00
Eric Kohl ef482f8abd [SERVICES]
Use Unicode functions instead of generic ones and replace all TEXT macros too.

svn path=/trunk/; revision=56847
2012-07-07 17:47:25 +00:00
Eric Kohl ef354366b6 [SERVICES]
Fix the copyright message.
Hermès Bélusca is the owner of this file!

svn path=/trunk/; revision=56846
2012-07-07 15:45:37 +00:00
Eric Kohl 01cbb41fe9 [SERVICES]
Fix the build.

svn path=/trunk/; revision=56845
2012-07-07 15:39:34 +00:00
Eric Kohl 05ed889bb2 [SERVICES]
Implement service database locking via RLockServiceDatabase / RUnlockServiceDatabase etc... and use this functionality.
Patch by Hermès Bélusca.

I did not rename the database lock functions because the functions names RLockServiceDatabase and RUnlockServiceDatabase are misleading. They do not lock any database but lock the service start function. The existing functions ScmLockDatabaseExclusive, ScmLockDatabaseShared and ScmUnlockDatabase do protect (lock) the service database (service, group and image lists) form concurrent access. That is also the reason for renaming the SC_LOCK_STRUCT to START_LOCK. 


See issue #7131 for more details.

svn path=/trunk/; revision=56844
2012-07-07 15:35:40 +00:00
Thomas Faber 52beb8508b [USERENV]
- Simplify AcquireRemoveRestorePrivilege. Improve clean-up & acquire privilege before unloading hive in CreateUserProfileW. Patch by Hermes Belusca
See issue #7160 for more details.

svn path=/trunk/; revision=56843
2012-07-07 10:11:21 +00:00
James Tabor 6c424f7832 - Fix MSC build.
svn path=/trunk/; revision=56842
2012-07-05 22:35:06 +00:00
James Tabor cd217d6680 [User32]
- Use zap command when ending dialogs. Check keyboard perfs and cues before sending change GUI states.

svn path=/trunk/; revision=56841
2012-07-05 22:17:32 +00:00
James Tabor 2cf18f8b33 - Fix build.
svn path=/trunk/; revision=56840
2012-07-05 22:10:03 +00:00
James Tabor 1e0937de1c [Win32SS]
- Paint updates and signaling flags.
- WIP: Implement WM_SYNCPAINT support, for synchronize painting to the top-level windows of other threads.
- Tested with wine tests and passes,
  http://www.winehq.org/pipermail/wine-patches/2012-June/114714.html
  http://www.winehq.org/pipermail/wine-patches/2012-June/114715.html

svn path=/trunk/; revision=56839
2012-07-05 22:04:47 +00:00