Commit graph

45036 commits

Author SHA1 Message Date
Eric Kohl a328e318a1 [SERVICES]
Protect the service start and sending of control packages by critical sections. This way, services will be started one by one and control packages will also be sent one by one.

Please test if this fixes bug #5924.

svn path=/trunk/; revision=50926
2011-02-27 19:25:14 +00:00
Aleksey Bragin 061ec721f9 - Promote service start failures from TRACE to ERR.
See issue #5924 for more details.

svn path=/trunk/; revision=50925
2011-02-27 19:09:45 +00:00
Timo Kreuzer 69d9838266 [NTOSKRNL]
Fix aborting of backtraces

svn path=/trunk/; revision=50924
2011-02-27 19:03:12 +00:00
Christoph von Wittich 5e0cafbbda [imagehlp]
-partial winesync

svn path=/trunk/; revision=50923
2011-02-27 18:49:27 +00:00
Christoph von Wittich 2f6bcbb66c [imagehlp_winetest]
-add imagehlp_winetest

svn path=/trunk/; revision=50922
2011-02-27 18:30:50 +00:00
Timo Kreuzer 736733be4d [WIN32K]
- mark surface as not selected in DC_vSelectSurface when its released from a DC
NtGdiSelectBitmap: 
- Don't allow selecting a bitmap into a dc that is already selected!
- Use DC_vSelectSurface instead of manually selecting
- set the DC size based on bitmap size

svn path=/trunk/; revision=50921
2011-02-27 17:51:37 +00:00
Timo Kreuzer 760940d0bd [WIN32K]
- In NtGdiGetDIBitsInternal use a shared lock for the bitmaps and provide background colors when initializing the XLATEOBJ. This fixes mono bitmaps passed to GetDIBits. (no it does not fix pink icons in VLC)
- In BuildDIBPalette don't handle 15bpp, its not valid. and 16 bpp is 555, this is documented in MSDN.

svn path=/trunk/; revision=50920
2011-02-27 17:38:18 +00:00
Timo Kreuzer eb7b3a6e70 Fix build
svn path=/trunk/; revision=50919
2011-02-27 17:31:54 +00:00
Timo Kreuzer 6c10c052af [GDI32]
In GetDIBits convert a BITMAPCOREHEADER to a BITMAPINFOHEADER before calling win32k, like done in other places. Convert it back after. This allows to simplify NtGdiGetDIBitsInternal (not done yet)

svn path=/trunk/; revision=50918
2011-02-27 17:20:02 +00:00
Timo Kreuzer 3a61fab955 [NTOSKRNL]
Fix a serious bug, where NtAllocateVirtualMemory could allocate memory user mode memory above MmHighestUserAddress up to MmSystemRangeStart - 1, which is a no-access area.

svn path=/trunk/; revision=50917
2011-02-27 15:16:00 +00:00
Eric Kohl d3b52209a4 [URLCACHE]
Do not initialize the URL-Cache for a system process.
Patch will be submitted to WINE.
See issue #5372 for more details.

svn path=/trunk/; revision=50916
2011-02-26 22:23:03 +00:00
Eric Kohl 66feb11cfe [SETUPAPI]
Rename functions according to the new naming scheme:
  CaptureAndConvertAnsiArg --> pSetupCaptureAndConvertAnsiArg
  CenterWindowRelativeToParent --> pSetupCenterWindowRelativeToParent
  ConcatenatePaths --> pSetupConcatenatePaths
  DuplicateString --> pSetupDuplicateString
  EnablePrivilege --> pSetupEnablePrivilege
  GetVersionInfoFromImage --> pSetupGetVersionInfoFromImage
  IsUserAdmin --> pSetupIsUserAdmin
  MultiByteToUnicode --> pSetupMultiByteToUnicode
  MyGetFileTitle --> pSetupGetFileTitle
  OpenAndMapForRead --> pSetupOpenAndMapForRead
  RegistryDelnode --> pSetupRegistryDelnode
  UnicodeToMultiByte --> pSetupUnicodeToMultiByte
  UnmapAndCloseFile --> pSetupUnmapAndCloseFile

svn path=/trunk/; revision=50915
2011-02-26 21:40:17 +00:00
Hervé Poussineau 38a3cf6ee4 [ntoskrnl] Fix compilation with _WINKD_=1
svn path=/trunk/; revision=50914
2011-02-26 20:00:08 +00:00
Pierre Schweitzer f154358da9 [KERNEL32]
Start unifying kernel32 Find* functions.
All calls end in same methods that are working only in unicode now.

Next step would be to unify stream & files using only one struct.

svn path=/trunk/; revision=50913
2011-02-26 17:18:21 +00:00
Aleksey Bragin 90f36847bc [KERNEL32]
- Fix buffer overwrite in GetModuleFileName(). Spotted by DPH.
See issue #5964 for more details.

svn path=/trunk/; revision=50912
2011-02-26 16:50:20 +00:00
Amine Khaldi 2119a3b309 [ROSTESTS]
- Skip test_apm to prevent the oleaut_winetest:olepicture crash.
See issue #5000 for more details.

svn path=/trunk/; revision=50911
2011-02-26 14:27:09 +00:00
Aleksey Bragin ac81886915 [NTDLL/LDR]
- Don't try to free a pointer allocated on stack.
See issue #4751 for more details.

svn path=/trunk/; revision=50910
2011-02-26 14:12:55 +00:00
Pierre Schweitzer 49516d9545 [USRMGR]
Fix build
Blame rbuild ~

svn path=/trunk/; revision=50909
2011-02-26 13:49:00 +00:00
Aleksey Bragin b49f53a6a5 - Don't free an invalid handle. Suggested by Johannes. Test failure remains in the log, so it's easy to spot the function misbehaves.
- P.S. Not much of an issue if it's lost during the next tests sync, as it would be a clearly visible change.
See issue #5771 for more details.

svn path=/trunk/; revision=50908
2011-02-26 13:31:58 +00:00
Pierre Schweitzer c1dc1d5ef0 [KERNEL32]
Remove unused .def file. We're using .pspec here

svn path=/trunk/; revision=50907
2011-02-26 13:26:02 +00:00
Pierre Schweitzer 363e880789 [USRMGR]
French translation by Jason Toscano <JasonGenie at gmail dot com>
Corrections/adjustements by me
See issue #5921 for more details.

svn path=/trunk/; revision=50906
2011-02-26 13:12:36 +00:00
Sylvain Petreolle 75d6f0438b [ROSTESTS]
Bug 5778:
Disable part of rpcrt4:rpc test,
it needs unimplemented functionality in current rpcrt4 version.

svn path=/trunk/; revision=50905
2011-02-25 23:34:52 +00:00
Pierre Schweitzer d6f4155e39 [NTOSKNRL]
For both FsRtlIsNameInExpression() & FsRtlIsDbcsInExpression():
As both UNICODE_STRING & ANSI_STRING might not be NULL-termined, don't attempt to read null char.
This fixes potential buffer overruns.
Then it fixes some (all?) 'TempPte.u.Long != 0' assertion failure.
See issue #5923 for more details.

svn path=/trunk/; revision=50904
2011-02-25 20:15:51 +00:00
Timo Kreuzer cd34e7ee1e [WININET]
Revert part of r47411. The revision was a wine sync, but no wine code was reverted, only the use of zlib is disabled. Fixes downloading audiograbber with rapps.
See issue #5663 for more details.

svn path=/trunk/; revision=50903
2011-02-25 18:44:20 +00:00
Timo Kreuzer 25a9c6fb49 [WIN32K]
- In BITMAP_CopyBitmap, also "copy" the palette of the source bitmap, instead of assuming the one created by GreCreateBitmapEx matches the bitmap bits we have copied.
Fixes broken colors on the firefox firstrun page
See issue #5902 for more details.

svn path=/trunk/; revision=50902
2011-02-25 17:37:25 +00:00
Sylvain Petreolle 0fcd8261f2 [ROSTESTS]
Bug 5957
Disable test_shell_window() in user32:win test.

Allow to run previously disabled tests in WINE_INTERACTIVE mode.

svn path=/trunk/; revision=50901
2011-02-25 16:21:04 +00:00
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