Commit graph

44928 commits

Author SHA1 Message Date
Jérôme Gardou 1f0f4f62b0 [GDI32_APITEST]
- Test Rectangle function.
Don't laugh, ROS fails those tests and fixing this breaks the GUI.

svn path=/trunk/; revision=51018
2011-03-11 15:32:54 +00:00
Pierre Schweitzer b6ee921ee6 [NTOSKRNL]
Revert r51016 that quite magically breaks Qemu test bot (Registry corruption?).
Everything was (and is still fine) on VirtualBox.
It will be put back online once the issue will have been fixed.

svn path=/trunk/; revision=51017
2011-03-11 15:17:59 +00:00
Pierre Schweitzer c4d0b3e36b [NTOSKRNL]
Add most of the missing HAL stubs for both public & private dispatch tables

svn path=/trunk/; revision=51016
2011-03-11 13:16:16 +00:00
Pierre Schweitzer 7161edbfe7 [NDK]
pHalAllocateMapRegisters type functions are to return NTSTATUS and not BOOLEAN

svn path=/trunk/; revision=51015
2011-03-11 13:00:20 +00:00
Jérôme Gardou fd5a3bdc63 [GDI32]
- allocate sufficient buffer when creating a DIBSECTION compatible bitmap.
Fixes bug 5822

svn path=/trunk/; revision=51014
2011-03-11 10:33:03 +00:00
Aleksey Bragin 1e2dd5d5d2 [NOTEPAD]
- Edijs: Zero initialize the caption string.
See issue #5992 for more details.

svn path=/trunk/; revision=51013
2011-03-10 22:07:56 +00:00
Pierre Schweitzer 81f9d934ff [NTOSKRNL]
Implemented FstubTranslatorNull, FstubTranslateResource, FstubTranslateRequirement, xHalGetInterruptTranslator.
In other words: please welcome interrupt translator in ReactOS.
It's not used yet.

svn path=/trunk/; revision=51012
2011-03-10 21:02:21 +00:00
Ged Murphy 8afa712c7a FatCreateCcb has no params.
Fixes building on msvc

svn path=/trunk/; revision=51011
2011-03-10 15:37:51 +00:00
Johannes Anderwald 65635497f6 [MSAFD]
- Fix bug introduced in 51007

svn path=/trunk/; revision=51010
2011-03-10 14:07:55 +00:00
James Tabor ebe3986eb9 [GDI32]
- Protect SetDIBitsToDevice with seh and track it. This is for vbrun60spXX. Code fix ups and cleanup.

svn path=/trunk/; revision=51009
2011-03-10 13:45:09 +00:00
James Tabor 729ce068d8 [Win32k]
- Fix an uncovered bug. This should fix coolplayer and winamp type applications. Does not fix drawing issues.

svn path=/trunk/; revision=51008
2011-03-10 13:09:56 +00:00
Johannes Anderwald a2453433f1 [MSAFD]
- Correct calculating PollBufferSize
- Found by DPH

svn path=/trunk/; revision=51007
2011-03-10 12:41:50 +00:00
Michael Martin 092d6ca92e [syssetup]
- EnableUserModePnpManager:  StartServiceW can fail due to the service already running. Check last error for such a case. Should fix bug #5846.

svn path=/trunk/; revision=51006
2011-03-10 10:36:49 +00:00
Timo Kreuzer 2bbd8711a7 [WIN32K]
- Fix calculation of dest rect in IntSetDIBits
- Rewrite NtGdiStretchDIBitsInternal. It now calls NtGdiSetDIBitsToDeviceInternal in case of SRCCOPY and no stretching and NtGdiCreateDIBitmapInternal + IntEngStretchBlt in the default case. This fixes RLE compressed dibs.
- The code isn't yet perfect, Windows behaviour is pretty complex, especially in regard to topdown/bottomup DIBs and the whole code needs to be rewritten. It will cause one more failed bitmap test, but another one that was formerly only passing with legacy 9x behaviour now behaves correctly.

See issue #5886 for more details.

svn path=/trunk/; revision=51005
2011-03-09 15:46:13 +00:00
Timo Kreuzer 775a83cdf4 [win32csr]
Fix zero termination of harderror string parameters, when they are ansi.

See issue #5983 for more details.

svn path=/trunk/; revision=51004
2011-03-09 15:31:25 +00:00
Timo Kreuzer 031e55222a [CRT]
Patch by Thomas Faber: Fix nt version of mbstowcs.

See issue #5983 for more details.

svn path=/trunk/; revision=51003
2011-03-09 15:29:13 +00:00
Pierre Schweitzer c6d8f7de70 [NTOSKRNL]
Implemented FstubFixupEfiPartition():
Purpose is to let ReactOS handle realistic partitions length in case of an EFI/GPT protective MBR.
Indeed, when formatting a disk to GPT, you add a protective MBR that contains a fake partition entry, with type 0xEE having the following property: its size is set to maximum allocatable size in MBR.
In that case, if disk is small, you may go beyond disk size.
This is why a fix to partition length may be needed when re-reading partition entry.
This is the way ReactOS creates protective MBR.
You may find some more information here: http://msdn.microsoft.com/en-us/windows/hardware/gg463525

Fixed xHalIoReadPartitionTable():
- Allocate a buffer that has the proper size (instead of allocating a buffer which is too big). Especially since this leads to partial init only some lines after.
- Remove redundant & useless affectation.
- Check/fix 0xEE partition length in case of an EFI/GPT protective MBR (see upper point).

svn path=/trunk/; revision=51002
2011-03-09 10:33:13 +00:00
Sylvain Petreolle b2832e17fc [ROSTESTS]
Properly skip bitmap and outline tests in gdi32_winetest:font.

svn path=/trunk/; revision=51001
2011-03-08 11:30:14 +00:00
Timo Kreuzer ccd17d40ec [WIN32K]
Fix a warning about an uninitialized variable :D

svn path=/trunk/; revision=51000
2011-03-07 22:14:14 +00:00
Timo Kreuzer 38e6b4b424 [WIN32K]
Fix IntCreateCompatibleBitmap, previously when the given DC was a memory DC with a dibsection selected, the function would only work if the dibsection was <= 8 bpp.

svn path=/trunk/; revision=50999
2011-03-07 22:06:23 +00:00
Timo Kreuzer d089825a9f [WIN32K]
clip the destination rect against the bounds of the destination and source surface. Fixes a crash of gdi32_winetest bitmap that occurs as soon as IntCreateCompatibleBitmap is fixed. Other Eng* code needs to be checked as well.

svn path=/trunk/; revision=50998
2011-03-07 22:00:19 +00:00
Timo Kreuzer 8daf17a4e8 [WIN32K]
Update all brushes in DC_vPrepareDCsForBlit. This allows us to simplify the code elsewhere.

svn path=/trunk/; revision=50997
2011-03-07 21:55:17 +00:00
Jérôme Gardou f9ac17b332 [NTOSKRNL]
- Beatify cpu supported features output once and for all
DPRINT1 is not printf...

svn path=/trunk/; revision=50996
2011-03-07 20:39:33 +00:00
Pierre Schweitzer ff0651e441 [FASTFAT]
Do not set file attributes in case they are set to 0 or -1

svn path=/trunk/; revision=50995
2011-03-07 20:28:42 +00:00
Eric Kohl 69b1f9091e [SERVICES]
Leave the critical section when the allocation of the control packet fails.

Bug spotted by hzlilx.

svn path=/trunk/; revision=50994
2011-03-07 20:25:28 +00:00
Jérôme Gardou f7049d7fb7 [NTOSKRNL]
- shrink cpu features output.
  - Add reference for the detection of non SYSENTER aware but claiming so CPUs detection

svn path=/trunk/; revision=50993
2011-03-07 18:45:11 +00:00
Aleksey Bragin ba43b429b9 [NTOS/FSRTL]
- Remove unnecessary upcasing, thanks Pierre.

svn path=/trunk/; revision=50992
2011-03-07 13:51:46 +00:00
Jérôme Gardou acd7f5a3da [NTOSKRNL]
- Print supported CPU features.
  - Simplify detection of non working but claimed SYSENTER support for intel processors
  - Workaround a virtualbox "feature" : claim that SYSENTER isn't supported despite the fact that it is.
Fix hang on registration of mshtml.dll in 2nd stage when using Virtualbox.

svn path=/trunk/; revision=50991
2011-03-07 13:33:10 +00:00
Eric Kohl 527622e72f [SETUPAPI]
Implement CM_Query_Arbitrator_Free_Data[_Ex] and CM_Query_Arbitrator_Free_Size[_Ex].

svn path=/trunk/; revision=50990
2011-03-07 12:01:17 +00:00
Timo Kreuzer 3491d67b48 [WIN32K]
Use GreCreateBitmapEx instead of EngCreateBitmap in NtGdiSetDIBitsToDeviceInternal, so that the RLE hack works. Fix initialization of XLATEOBJ.

svn path=/trunk/; revision=50989
2011-03-07 10:00:27 +00:00
Timo Kreuzer 4ed72ce5b7 [WIN32K]
Fix the RLE hack (partly)

svn path=/trunk/; revision=50988
2011-03-07 09:53:03 +00:00
James Tabor b84b85e485 [GDI32]
- Remove the old SetDIBBits, it severed us well.... Hold on to the win32k call.
- Tested, Area.exe, wine gdi32 bitmaps test, AbiWord 2.8.6, OOo 2.4.3, SM 2.0.11 and ReactOS applications.
- Aimp 2.61.583 (FULL, pinted okay), CoolPlayer 219, winamp 0.98d and winamp 2.95 (not FUll). The rest have drawing issue with DIB. See bug 5886.

svn path=/trunk/; revision=50987
2011-03-07 07:24:43 +00:00
James Tabor d53444e50b [Win32k]
- Fix a crash in WidenPath, tested with Area.exe.

svn path=/trunk/; revision=50986
2011-03-07 06:24:38 +00:00
Aleksey Bragin a393a04761 [UNIATA]
- Rafal Harabien: Sync UniATA to 0.40a5. Changelog:
* Fixed bug with BSOD on newer SATA/AHCI Intel chips. 
* Added support for different number of devices on different channls.
* Updated AHCI support code (not ready yet).
* All ReactOS specific changes have been left.
See issue #5976 for more details.

svn path=/trunk/; revision=50985
2011-03-06 16:32:36 +00:00
Eric Kohl f7af2d5aad Fix PNP_QueryArbitratorFreeData() and PNP_QueryArbitratorFreeSize() prototypes.
svn path=/trunk/; revision=50984
2011-03-06 14:15:41 +00:00
Pierre Schweitzer a815fa86d2 [KERNEL32]
Fixed implementation of both GetFileTime/SetFileTime

svn path=/trunk/; revision=50983
2011-03-06 13:28:11 +00:00
Aleksey Bragin fd989b27e9 - Fix a typo, thanks Herve!
svn path=/trunk/; revision=50982
2011-03-06 11:16:22 +00:00
Aleksey Bragin e996625659 [NTOS/FSRTL]
- Implement parameters checking in FsRtlIsNameInExpressionPrivate.
- Add two shortcuts for common wildcard invocations to make the function faster.
- Second (main part of the function) is still under review.

svn path=/trunk/; revision=50981
2011-03-06 11:00:17 +00:00
Pierre Schweitzer 91bdfab1bd [KERNEL32]
FlushFileBuffers:
- In spite of what MSDN pretends, it appears that FlushFileBuffers flushes console input buffer when it's called with a console handle. Then, do it here as well.
- Get rid of SetLastErrorByStatus here...

svn path=/trunk/; revision=50980
2011-03-06 10:28:50 +00:00
Pierre Schweitzer 5696898543 [KERNEL32]
Apply consistent formatting to FlushFileBuffers.
No code changes yet

svn path=/trunk/; revision=50979
2011-03-06 10:20:32 +00:00
Roel Messiant 6b1af86bde [HEAP]
- RtlpInsertUnCommittedPages: Don't rely on linked list data in an UCR Descriptor after destroying it.
  No functionality change because the linked list data was still "as expected", but not something we want to rely on.
- RtlpCreateUnCommittedRange: Fix a typo that caused the head of UCR Segment list of the Heap to be treated as an UCR Segment header.
  Side effects of the typo: When this list wasn't empty, the (fake) UCR Segment it described was grown to contain more UCR descriptors.
  Due to the data involved, this always happened to be the initial Heap Segment, which contains the Heap Header.
  Writing the new UCR descriptors caused the Heap Header and trailing Heap Entries to be partially corrupted.

svn path=/trunk/; revision=50978
2011-03-06 00:37:10 +00:00
Eric Kohl 7b3c204407 [SERVICES]
- Use one instead of two critical sections to synchronize service start and control actions.
- Fail, if an already running service is started again.

svn path=/trunk/; revision=50977
2011-03-05 18:37:39 +00:00
Dmitry Chapyshev d529634650 - Update Ukraianian translation by Sakara Eugene
svn path=/trunk/; revision=50976
2011-03-05 18:02:56 +00:00
Eric Kohl 55f58f967c [SETUPAPI]
Implement CM_Get_Device_Interface_List[_Ex]A/W and CM_Get_Device_Interface_List_Size[_Ex]A/W.

svn path=/trunk/; revision=50975
2011-03-05 16:54:08 +00:00
Jérôme Gardou 545fca44dc [EXPLORER-NEW]
- Allow displaying seconds in tray upon registry setting
Patch by Edijs Kolesnikovics

svn path=/trunk/; revision=50974
2011-03-05 16:45:09 +00:00
Jérôme Gardou 43f10841e0 [OPENGL32]
- Naive try to fix bug 5057

svn path=/trunk/; revision=50973
2011-03-05 16:23:30 +00:00
Timo Kreuzer 31ebce8a90 [WIN32K]
Unlock the font in PATH_ExtTextOut. Fixes a failed assertion, when running google earth.

svn path=/trunk/; revision=50972
2011-03-05 12:18:28 +00:00
Timo Kreuzer a2d0ce8261 [WIN32K]
Silence a DPRINT

svn path=/trunk/; revision=50971
2011-03-05 12:17:23 +00:00
Timo Kreuzer 9aa651bf4e [WIN32K]
add dumping of locked handles to missing places.

svn path=/trunk/; revision=50970
2011-03-05 11:13:45 +00:00
Timo Kreuzer a528924f3b [WIN32K]
Add A function to dump all locked handles and call it when an assertion about 0 locks fails.

svn path=/trunk/; revision=50969
2011-03-05 10:21:07 +00:00