Commit graph

44810 commits

Author SHA1 Message Date
Johannes Anderwald 666446bfaa [WDMAUD.DRV]
- Check if the provided waveformat is at least size of WAVEFORMAT
- Compute extra details such as the size or wBitsPerSample from the provided members
- Backup i/o completion handle before commiting the audio buffer as the struct might have already been released
- Fixes playback of mmsys cpl 
- Found by DPH!

svn path=/trunk/; revision=50900
2011-02-25 16:00:26 +00:00
Johannes Anderwald 9f699ffaca [SHELL32]
- Check the correct pidl instead of the free one
- Found by the amazing DPH!

svn path=/trunk/; revision=50899
2011-02-25 15:11:51 +00:00
Aleksey Bragin 66707243f0 [RTL/DPH]
- Fix wrong pointer comparison in RtlpDebugPageHeapFree(). Should check for NULL pointer freeing, instead of checking for NULL heap pointer.

svn path=/trunk/; revision=50898
2011-02-25 14:13:10 +00:00
Johannes Anderwald c50e27e4bf [MMEBUDDY]
- Store the internal state if an audio stream has been stopped
- Construct a thread when WODM_RESTART is received. This thread then triggers performs a callback to the wave thread, which finally restarts playback
- Only start the wave thread when playback is active (not paused by WODM_PAUSE)
- Fixes playback in Winamp 5.601 despite graphical issues
- Tested in Vbox 4.0 + 512MB RAM + Winamp 5.601

svn path=/trunk/; revision=50897
2011-02-25 14:10:31 +00:00
Timo Kreuzer e1d7a14438 [[WIN32K]
Fix biCompression filed in the DIBSECTION structure, returned by BITMAP_GetObject. Fixes K-Meleon toobar. Kudos for the fix go to Rafał Harabień. 

See issue #5940 for more details.

svn path=/trunk/; revision=50896
2011-02-25 00:01:35 +00:00
Aleksey Bragin 5b6ab375ee [SECUR32]
- Don't leave packageinfo uninitialized. Even though it's not the way it should work, wine's rpcrt4 doesn't really expect that function to return no packages at all. Should prevent freeing an unitialized pointer.
See issue #5778 for more details.

svn path=/trunk/; revision=50895
2011-02-24 22:50:00 +00:00
Johannes Anderwald 753b99d8a5 [WDMAUD.DRV]
- Set wave in pins into run state
- Fixes hang of ReactOS sndrec32, though it crashes then instantly. Needs more investigation

svn path=/trunk/; revision=50894
2011-02-24 14:38:16 +00:00
Timo Kreuzer d7df20df47 [WIN32K]
Fix possible lock leak in failure case of NtGdiSetBoundsRect. Fixes a failed assertion spotted by r3ddr4g0n.

svn path=/trunk/; revision=50893
2011-02-24 14:18:55 +00:00
Aleksey Bragin 8383b6b33d [RTL/DPH]
- Implement ValidateHeap API for DPH. Fixes attempts to validate DPH as a normal heap.

svn path=/trunk/; revision=50892
2011-02-24 12:59:52 +00:00
Aleksey Bragin 098228ac32 [PING]
- Add Ukrainian translation by Eugene Sakara.

svn path=/trunk/; revision=50891
2011-02-24 12:35:44 +00:00
Timo Kreuzer ec00eda9bf [COMCTL32]
- Fix include order of resources.
- remove comctl_Cn.rc, it contains and outdated simplified chineese translation, that wine has in comctl_Zh.rc

svn path=/trunk/; revision=50890
2011-02-24 12:34:59 +00:00
Aleksey Bragin 947127151c [RTL/DPH]
- Implement user flags/values and HeapSize APIs in debug page heap (nearly the same code in all three functions). With these done, DPH core features are complete. Some debugging is still needed.

svn path=/trunk/; revision=50888
2011-02-24 09:40:07 +00:00
Amine Khaldi 353147d2cc [COMCTL32]
- Sync with wine 1.3.14

svn path=/trunk/; revision=50887
2011-02-24 01:27:57 +00:00
Amine Khaldi 011bdfc3b5 [PSDK]
- Improve some definitions.

svn path=/trunk/; revision=50886
2011-02-24 01:26:34 +00:00
Timo Kreuzer 4c4c630bf3 [WIN32K]
Patch by Rafał Harabień :
- don't transform cordinates twice in GreExtTextOutW
- Fixes AbiWord toolbar

See issue #4811 for more details.

svn path=/trunk/; revision=50885
2011-02-24 00:48:01 +00:00
Aleksey Bragin 55300c6ce0 [NTDLL/LDR]
- DPH could be selectively enabled for a specific application by means of Image File Execution options. Commit a rewrite of LdrQueryImageFileExecution* APIs based on a quite old patch by Alex Ionescu along with my fixes.
- This is a forced measure to commit first step of an ntdll/ldr rewrite. This particular commit should not introduce any regressions, because previously that code part just barely worked.

svn path=/trunk/; revision=50884
2011-02-23 22:38:55 +00:00
Amine Khaldi c16c4ace2b [PSDK]
- Improve commctrl.h
[CRT]
- Update _mingw_mac.h from mingw-w64 and add _mingw_unicode.h

svn path=/trunk/; revision=50883
2011-02-23 21:26:18 +00:00
Timo Kreuzer 7066852438 [USER32]
Patch by Rafał Harabień :
- remove a hack in DrawMenuBar

See issue #5949 for more details.

svn path=/trunk/; revision=50882
2011-02-23 19:21:33 +00:00
Timo Kreuzer ab7f1c1255 [WIN32K]
Patch by Rafał Harabień :
- Create a new region covering the full desktop in UserRedrawDesktop instead of using Window->hrgnUpdate. Fixes "IntGdiCombineRgn requires hSrc2  != NULL" messages and redrawing issues on mode change.
See issue #5949 for more details.

svn path=/trunk/; revision=50881
2011-02-23 19:10:42 +00:00
Timo Kreuzer b0e397de26 [WIN32K]
Small readability improvement.

svn path=/trunk/; revision=50880
2011-02-23 18:51:57 +00:00
Timo Kreuzer d88c6cc49d [WIN32K]
add code to register pre/post systemcall hooks. Its #if 0'ed to avoid unneccessary overhead. Can be enabled for debugging puposes.

svn path=/trunk/; revision=50879
2011-02-23 18:46:02 +00:00
Johannes Anderwald 9c7dc2437e - Fix build
svn path=/trunk/; revision=50878
2011-02-23 17:15:13 +00:00
Johannes Anderwald dfeb7b0d1c [PORTCLS]
- Re-add the hack for gcc

svn path=/trunk/; revision=50877
2011-02-23 15:14:12 +00:00
Giannis Adamopoulos 39c815467b [kernel32]
- Add some debug prints
- Fix some cases where we didn't check for the return value of CsrAllocateCaptureBuffer

svn path=/trunk/; revision=50876
2011-02-23 14:24:57 +00:00
Pierre Schweitzer 54e7b58e77 [NTOSKRNL]
Apply r50873 on FsRtlIsNameInExpression()

svn path=/trunk/; revision=50875
2011-02-23 12:09:07 +00:00
Pierre Schweitzer ba16b2f1ee [NTOSKRNL]
Reverted changes commited to largemcb.c
They weren't intended to be commited

svn path=/trunk/; revision=50874
2011-02-23 12:08:16 +00:00
Pierre Schweitzer d56de922f2 [NTOSKRNL]
One-line fix for FsRtlIs*InExpression(). This fixes failing tests, but not overrun.
Added some breaks to reach more quickly the end

svn path=/trunk/; revision=50873
2011-02-23 12:04:08 +00:00
Aleksey Bragin e5d92f833a [RTL/DPH]
- Implement DPH version of ReAllocateHeap. Scenario of falling back to normal heap is stubbed everywhere now.
- Fix a bug in POINTER_ADD_BIAS which noone noticed.

svn path=/trunk/; revision=50872
2011-02-23 11:08:37 +00:00
Johannes Anderwald 2b1aa66672 [MPLAY32]
- Hackfix playback

See issue #5867 for more details.

svn path=/trunk/; revision=50871
2011-02-23 10:32:56 +00:00
Pierre Schweitzer d0b18829cd [KMTEST]
Adding more tests for FsRtlIs*InExpression() functions.
All are failing (overrun / wrong result).
Based on Thomas Faber's C program.
See bug #5923

svn path=/trunk/; revision=50870
2011-02-23 10:20:23 +00:00
Pierre Schweitzer 41ee0f405e [KERNEL32]
Don't make CopyFileExA() rely on Wine's strings conversions functions

svn path=/trunk/; revision=50869
2011-02-22 19:07:45 +00:00
Pierre Schweitzer 8dc411563b [KERNEL32]
Don't make FindFirstChangeNotificationA() rely on Wine's strings conversions functions

svn path=/trunk/; revision=50868
2011-02-22 18:56:46 +00:00
Pierre Schweitzer f617d8910c [KERNEL32]
Don't make GetBinaryTypeA() rely on Wine's strings conversions functions

svn path=/trunk/; revision=50867
2011-02-22 18:43:38 +00:00
Timo Kreuzer e9b58620aa [CRT]
Fix special behaviour of wsprintf: when used with # flag, the "0x" prefix does not count into the field width, so we have to add additional 2 characters here. Fixes Opera installer.
See issue #5900 for more details.

svn path=/trunk/; revision=50866
2011-02-22 17:29:32 +00:00
Timo Kreuzer 75e685f7ef [NOTEPAD]
Patch by EDIJS <terminedijs at yahoo dot com>: Improve window caption string.
By me: use StringCchCat instead of _tcscat to prevent possible buffer overruns.

See issue #5871 for more details.

svn path=/trunk/; revision=50864
2011-02-22 09:59:49 +00:00
Daniel Reimer 899ae979f5 Update rapps database.
svn path=/trunk/; revision=50862
2011-02-21 23:26:03 +00:00
Timo Kreuzer 39a0c140c2 [CRT]
Improve _getdrive and _tchdir. Patch by devpao (devotip at tiscali dot it), small formatting change by me.
See issue #5848 for more details.

svn path=/trunk/; revision=50861
2011-02-21 23:11:53 +00:00
Aleksey Bragin e9af1d723f [RTL/DPH]
- Implement heap free operation using already implemented busy/free/available/unused lists support and other base routines.
- Implement missing place to free list and remove from busy list routines.
- Implement find busy block routine (using AVL tree).
- Fix a bug in RtlpDphCoalesceNodeIntoAvailable() which resulted in unwanted attempt to merge the only node with itself (which failed anyway).
- Fix a bug in RtlpDphCoalesceNodeIntoAvailable() which incorrectly removed a node from available list (which is implemented as a standard NT double-linked list, compared to unused and free lists which are implemented as single-linked custom lists and busy list which is an AVL tree). Result of that bug was an infinite loop at the next attempt to traverse the list of available nodes.
- In RtlpDphCoalesceFreeIntoAvailable() break when FreeAllocations becomes less than LeaveOnFreeList (before it would break 1 size too early).
- Fix list traversal in RtlpDphSearchAvailableMemoryListForBestFit(). If it couldn't find a node, it would return the last node in the list instead of NULL.
- In RtlpDphFindAvailableMemory(), a new smaller size should be 4 times smaller, not just 2. 
- Add a #if0-ed section in RtlpDphRemoveFromAvailableList which checks if a request to remove node not in the list performed. Used only for debugging.
- Add a trace dprint to every type of list insert/removal operation for easier tracking.
- Add break on NULL ptr freeing support.
- RtlpDphSetProtectionAfterUse() is stubbed and protection is set directly in RtlpDphHeapFree(). To be moved into this function.

svn path=/trunk/; revision=50860
2011-02-21 22:42:21 +00:00
Timo Kreuzer 77aa443412 [USER32]
Fix a typo. Fixes "Calling invalid routine number 0x10 in NtUserCallOneParam()"

svn path=/trunk/; revision=50858
2011-02-21 20:55:45 +00:00
Aleksey Bragin 70fcc31092 [RTL/AVL]
- Zero out contents of a newly allocated AVL table node.

svn path=/trunk/; revision=50855
2011-02-21 13:33:13 +00:00
Amine Khaldi 45efecf8e0 [RTL]
- Silence this dprint. It's flooding the debug log.

svn path=/trunk/; revision=50854
2011-02-21 09:12:43 +00:00
James Tabor 5d30cb38c3 [Win32k]
- Fix crash with win wine test. Win test works on my tree here and hardware as well.

svn path=/trunk/; revision=50853
2011-02-21 09:01:07 +00:00
Pierre Schweitzer 168de1f20c [KERNEL32]
Forgotten changes to .pspec.
Why is there still a .def?

svn path=/trunk/; revision=50852
2011-02-21 07:23:18 +00:00
Johannes Anderwald 38242931f1 [MMEBUDDY]
- Check if there is a reset request in progress while the wave thread is active. In that case exit the wave buffer commiting activity
- In the reset routine, perform an alertable wait in order to make the apc io completion complete
[PORTCLS]
- Only perform copying audio bytes to dma buffer while the adapter is reset state is KSREST_END
- Set the reset state indicator before canceling the audio buffers
- Should fix the audio hang experienced in Winamp when skipping audio bytes

svn path=/trunk/; revision=50851
2011-02-21 04:22:45 +00:00
Johannes Anderwald 80cc7f2ee8 [PORTCLS]
- Remove the oldest hack in portcls
- Please report any regression(s)

svn path=/trunk/; revision=50850
2011-02-20 23:01:14 +00:00
Pierre Schweitzer 397fb380b3 [KERNEL32]
Don't mix tab index and memory length...
This fixes several bugs in GetTempFileNameW() and prevents memory corruption ~
Winetest regression is gone :)

svn path=/trunk/; revision=50849
2011-02-20 22:57:31 +00:00
Timo Kreuzer 98eeb0943d [HAL]
Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>:
- Fix Port numbers and ranges in HalpDefaultIoSpace (divide by 0x100)
By me:
- Fix DMA 1 port range and fix comment

See issue #5925 for more details.

svn path=/trunk/; revision=50848
2011-02-20 22:30:50 +00:00
James Tabor 6e2693dad2 [Win32k|User32]
- WM_MDICREATE originates from user space so treat it as it should, fixes bug 5903.

svn path=/trunk/; revision=50847
2011-02-20 22:20:51 +00:00
James Tabor 1e0e0dd6be [Win32k]
- Restore original patch 50154.

svn path=/trunk/; revision=50846
2011-02-20 22:20:42 +00:00
James Tabor 231588606c [Win32k]
- Remove unused class list pointer and clear the class registered flag.

svn path=/trunk/; revision=50845
2011-02-20 22:20:23 +00:00