Commit graph

48354 commits

Author SHA1 Message Date
Rafal Harabien bf4b896e65 [WPP]
- Sync to Wine 1.3.29 to fix a warning

svn path=/trunk/; revision=53824
2011-09-24 07:58:49 +00:00
Pierre Schweitzer acee43d271 [KERNEL32]
Simplify overcomplicated function CreateHardlinkW(), and SEHify it.

svn path=/trunk/; revision=53823
2011-09-24 07:51:21 +00:00
Timo Kreuzer 2c440bd22d [NTOSKRNL]
Add MiScanMemoryDescriptors, that combines the work of MiPagesInLoaderBlock, the loop in MmInitializeMemoryLimits and the loop in MiInitMachineDependent.

svn path=/trunk/; revision=53822
2011-09-24 00:12:58 +00:00
Amine Khaldi b1df00f897 [SHELL32_WINETEST]
* Sync to Wine 1.3.29.

svn path=/trunk/; revision=53821
2011-09-23 23:14:50 +00:00
Amine Khaldi 3ed568c40d [PSDK]
* Bring-in some idl changes from Wine. These changes (and the related changes below) are to allow us to sync shell32 tests to Wine 1.3.29.
[UUID]
* CLSID_TaskbarList is no longer needed in here.
[ACTXPRXY]
* Sync with Wine 1.3.29.

svn path=/trunk/; revision=53820
2011-09-23 23:12:53 +00:00
Timo Kreuzer 7ab32f0f5c [NTOSKRNL]
Converting MmLargeStackSize from registry setting to byte value is portable code, move it out of MiInitMachineDependent

svn path=/trunk/; revision=53819
2011-09-23 22:24:11 +00:00
Timo Kreuzer 551ca94879 [FREELDR]
- Use TYPE_OF_MEMORY from the beginning instead of MEMORY_TYPE and later converting it.
- Disable tracing, accidentally comitted in previous revision

svn path=/trunk/; revision=53818
2011-09-23 20:09:54 +00:00
Eric Kohl 2fd4c9a560 [LSASRV]
Initialize required policy attributes when the LSA database is created. This fixes the hanging lsa winetest.

svn path=/trunk/; revision=53817
2011-09-23 18:24:33 +00:00
Timo Kreuzer 5f22a73516 [FREELDR]
Fix some bugs in the code that deals with memory descriptors:
ArcGetMemoryDescriptor was enumerating the bios generated entries first and then the static entries. The latter were conflicting with the former and took precedence when initializing the page lookup table. The problem was, that MmFindLocationForPageLookupTable would use the highest range of pages available. If that range would be conflicting with a following static descriptor, the static would have been ignored. It only worked because on x86 the highest bios descriptor has enough free pages, before it conflicts with a static entry (page 0xfff, marked as unusable), so that the page lookup table could be created.

MmGetAddressablePageCountIncludingHoles enumerated all memory descriptors to find MmLowestPhysicalPage, but it was only counting FreeMemory, thus skipping all other memory ranges. This only worked, due to the previous bug, so that the bios pages shown first took precedence over the following static descriptors. Without the former bug MmLowestPhysicalPage would be 0x100 which would tigger in the next bug:
MmAreMemoryPagesAvailable took the passed address range and looked up all pages in the lookup table to see whether all are free. Now the function didn't check, whether the passed address was below MmLowestPhysicalPage and in case it was, happily accessed the memory below the lookup table. This would result in hal being loaded at 0x40000 overwriting the loader itself.

This is all fixe by implementing a new way of creating the memory map. First there is a static memory map, which has enough free entries to add dynamic ranges. Then AddMemoryDescriptor will allow you to add a new range,
while the already existing ranges will take precedence and the new ranges will be properly split and inserted, so that the resulting map does not contain any overlapping regions and is sorted from low to high pages. The static memory descriptor exists in the architecture specific file.
The code that enumerates the bios information now uses this function to add the ranges on top of the static descriptor.
More cleanup work to follow.

svn path=/trunk/; revision=53816
2011-09-23 17:35:45 +00:00
Giannis Adamopoulos 184aeeeeef [user32_apitest]
- add back showing the index of the message when comparing massage logs

svn path=/trunk/; revision=53815
2011-09-23 16:04:17 +00:00
Giannis Adamopoulos b540c10e9f [user32_apitest]
- Fix build with gcc

svn path=/trunk/; revision=53814
2011-09-23 14:19:40 +00:00
Giannis Adamopoulos d55b76ab43 [user32_apitest]
- Simplify compare_cache and make it show more meaningful results

svn path=/trunk/; revision=53813
2011-09-23 14:09:30 +00:00
Giannis Adamopoulos a947b9c6fc [user32_apitest.rbuild]
- Move shared code used to log window messages in helper.c
- Implement logging hooks
- Fix comparing the logged messages to show the correct line of the test
- Add tests for hooks in TrackMouseEvent test

svn path=/trunk/; revision=53812
2011-09-23 12:05:40 +00:00
Giannis Adamopoulos 34f9dc947a [user32_apitest]
- Fix white spaces

svn path=/trunk/; revision=53811
2011-09-23 11:45:44 +00:00
Thomas Faber 886e0ff173 [KMTESTS/MM]
- Extend MmSection test to include passing different files and mapping a view

svn path=/trunk/; revision=53810
2011-09-23 11:43:02 +00:00
Thomas Faber 8c87bcbc24 [DDK/PSDK]
- Fix several typos. Patch by Elton Chung (elton328 at gmail dot com). Slight compatibility fix by me
- Add missing NTSYSAPI to some externs
- remove Se*DefaultDacl externs from ntifs, as they don't belong there, and are already correctly found in ndk/setypes.h

svn path=/trunk/; revision=53809
2011-09-23 11:24:15 +00:00
Eric Kohl 856d6b7e64 [LSASRV]
Implement the PolicyPrimaryDomainInformation and PolicyAccountDomainInformation cases of LsarQueryInformationPolicy.

svn path=/trunk/; revision=53808
2011-09-23 10:01:22 +00:00
Timo Kreuzer 2ca9a1a8e6 [LSASRV]
Change some stubs to real exports in the spec file, since the functions exist. Fixes MSVC build

svn path=/trunk/; revision=53807
2011-09-23 09:44:25 +00:00
Cameron Gutman 51a6c871a9 [HAL]
- Revert part of r53788 (MAXIMUM_IDTVECTOR is a valid vector number)
- The buffer overrun in the IDT code was already fixed by r53420

svn path=/trunk/; revision=53806
2011-09-22 21:23:09 +00:00
Olaf Siejka 25d3c6af4a [TRANSLATION]
- Multimodule translation and UTF-8 conversion to Portugese Brazilian. Patch by mkbu95. Minor fixes by me;
See issue #6467 for more details.

svn path=/trunk/; revision=53805
2011-09-22 19:06:29 +00:00
Kamil Hornicek 1108a804c8 Czech localization (base/applications): UTF-8 conversion cleanup, fixed typos, translated some more English strings.
svn path=/trunk/; revision=53804
2011-09-22 17:18:26 +00:00
Timo Kreuzer b356275262 [FREELDR]
- Fix a bug, where the bios memory map could have a bogus entry: according to R.B.'s Interrupt list, in some bioses the function for enumerating the memory can return ebx != 0 for the last descriptor, and fail in the following call returning CF = 1. In that case we were previously counting that last descriptor as well, but its content wouldn't describe a valid memory region.
- Use a static buffer for the bios memory map, stored in the achitecture specific file and return a pointer to that variable from PcMemGetMemoryMap. Reuse the static map from DetectAcpiBios instead of enumerating again. On arm, we don't even need a buffer, we return the pointer from the arm block.

svn path=/trunk/; revision=53803
2011-09-22 16:38:54 +00:00
Aleksey Bragin 1cdfe06ad1 [NTDLL]
- Remove useless code. Spotted by Pierre.

svn path=/trunk/; revision=53802
2011-09-22 08:45:05 +00:00
Timo Kreuzer 53d96bda2f [FREELDR]
- Move heap code out of mm.c into a seperate file mm/heap.c
- Move code from arcemul/mm.c into mm/mminit.c

svn path=/trunk/; revision=53801
2011-09-22 07:52:51 +00:00
Dmitry Gorbachev 2625559397 [Desk|User32|UXTheme]
Silence GCC 4.6 "variable 'foo' set but not used [-Werror=unused-but-set-variable]" warnings/errors.

svn path=/trunk/; revision=53800
2011-09-22 06:09:11 +00:00
Dmitry Gorbachev f412d3c1f7 [NTOSKRNL]
Do not fail with unknown CPUs. Bug #6493.

svn path=/trunk/; revision=53799
2011-09-22 06:08:35 +00:00
Dmitry Gorbachev 719a1ff1cf [FREELDR]
Put uninitialized/zero-initialized data into .bss. Fill it with 0s at startup.

svn path=/trunk/; revision=53798
2011-09-22 06:06:51 +00:00
Timo Kreuzer 7931e63ab8 [FREELDR]
Patch by Brian Palmer:
Fix problems that could occur, when the BIOS returns memory regions that are not page aligned, by fixing up the bios memory map before using it.

svn path=/trunk/; revision=53797
2011-09-21 23:02:24 +00:00
Timo Kreuzer 994898f151 [FREELDR]
Patch by Brian Palmer:
Properly handle a memory hole below 16MB, which some machines have.

svn path=/trunk/; revision=53796
2011-09-21 21:48:44 +00:00
Pierre Schweitzer 84727b099d [SYSSETUP]
Fix build

svn path=/trunk/; revision=53795
2011-09-21 21:17:15 +00:00
Eric Kohl f0df809eb7 [SYSSETUP]
Set the account domain name.

svn path=/trunk/; revision=53794
2011-09-21 20:53:46 +00:00
Pierre Schweitzer a694d0b795 [NTDLL]
Fix broken if condition

svn path=/trunk/; revision=53793
2011-09-21 19:37:15 +00:00
Pierre Schweitzer b7f5be021d [EVENTLOG]
Fix broken if condition

svn path=/trunk/; revision=53792
2011-09-21 19:26:57 +00:00
Pierre Schweitzer 8ddfcc0ce0 [KERNEL32]
Fix buffer overrun

svn path=/trunk/; revision=53791
2011-09-21 17:13:28 +00:00
Jérôme Gardou 374497d4a6 [DHCPSVC]
- fix const usage

svn path=/trunk/; revision=53790
2011-09-21 17:11:00 +00:00
Pierre Schweitzer ac92a8adf9 [HAL/x86]
Completely fix one of the overruns

svn path=/trunk/; revision=53789
2011-09-21 16:15:16 +00:00
Pierre Schweitzer 87d6daee6c [HAL/x86]
Fix buffer overruns

svn path=/trunk/; revision=53788
2011-09-21 16:10:32 +00:00
Giannis Adamopoulos 104f40f71f [user32_apitest]
- Add some tests for TrackMouseEvent

svn path=/trunk/; revision=53787
2011-09-21 12:30:22 +00:00
Pierre Schweitzer ce3850ab01 [DHCPCSVC]
Fix passing a 860B struct by value

svn path=/trunk/; revision=53786
2011-09-21 11:26:55 +00:00
Thomas Faber b41af56f6e [KMTESTS/MM]
- Add some tests for MmCreateSection involving file objects

svn path=/trunk/; revision=53785
2011-09-21 10:35:33 +00:00
Pierre Schweitzer 1f95a6dd13 [NTOSKRNL]
Fix FstubFixupEfiPartition()
Add helper macro SET_PARTITION_LENGTH()

svn path=/trunk/; revision=53784
2011-09-21 09:11:42 +00:00
Eric Kohl 2454366c35 [LSA]
- Implement the LSA object database.
- Implement the information classes PolicyPrimaryDomainInformation and PolicyAccountDomainInformation of LsarSetInformationPolicy().

svn path=/trunk/; revision=53783
2011-09-20 23:15:51 +00:00
Pierre Schweitzer 0194a753c7 [CRT]
Rewritten _tfullpath(). This:
- Fixes memory leak
- Fixes null pointer use
- Adds missing features
- Sets errno

svn path=/trunk/; revision=53782
2011-09-20 21:44:22 +00:00
Aleksey Bragin e91d38160f [NTDLL/LDR]
- Properly wrap potentially unsafe buffer usage into SEH. Spotted by Pierre.

svn path=/trunk/; revision=53781
2011-09-20 21:04:33 +00:00
Olaf Siejka 79722a1549 [TRANSLATION]
- Massive Romanian translation patch by Stefan Fulea. See bugs 6468 and 6478;

svn path=/trunk/; revision=53780
2011-09-20 20:45:31 +00:00
Daniel Reimer 330581d7cf Sync the recent changes from the themes merge to all languages, sync all the settings from the english rc file to all other languages. Fix some sizes and lengths
svn path=/trunk/; revision=53779
2011-09-20 20:43:42 +00:00
Giannis Adamopoulos 4d19f25802 [win32k]
- Replace long file headers with short headers
- Minor cleanup

svn path=/trunk/; revision=53778
2011-09-20 19:41:33 +00:00
Giannis Adamopoulos f2b28d3b31 [win32k]
- move function definitions from c files to headers

svn path=/trunk/; revision=53777
2011-09-20 18:04:14 +00:00
Timo Kreuzer 16bab3bc1c [RTL]
- Remove qsort, its already in crt.
- Fix a number of MSVC/64 bit issues

svn path=/trunk/; revision=53776
2011-09-20 17:33:51 +00:00
Giannis Adamopoulos cca6723c9a [win32k]
- Remove a defined but not used definition of POINT_IN_RECT

svn path=/trunk/; revision=53775
2011-09-20 15:21:29 +00:00