reactos.git
13 years ago[NTOSKRNL]
Timo Kreuzer [Sun, 27 Feb 2011 19:03:12 +0000 (19:03 +0000)]
[NTOSKRNL]
Fix aborting of backtraces

svn path=/trunk/; revision=50924

13 years ago[imagehlp]
Christoph von Wittich [Sun, 27 Feb 2011 18:49:27 +0000 (18:49 +0000)]
[imagehlp]
-partial winesync

svn path=/trunk/; revision=50923

13 years ago[imagehlp_winetest]
Christoph von Wittich [Sun, 27 Feb 2011 18:30:50 +0000 (18:30 +0000)]
[imagehlp_winetest]
-add imagehlp_winetest

svn path=/trunk/; revision=50922

13 years ago[WIN32K]
Timo Kreuzer [Sun, 27 Feb 2011 17:51:37 +0000 (17:51 +0000)]
[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

13 years ago[WIN32K]
Timo Kreuzer [Sun, 27 Feb 2011 17:38:18 +0000 (17:38 +0000)]
[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

13 years agoFix build
Timo Kreuzer [Sun, 27 Feb 2011 17:31:54 +0000 (17:31 +0000)]
Fix build

svn path=/trunk/; revision=50919

13 years ago[GDI32]
Timo Kreuzer [Sun, 27 Feb 2011 17:20:02 +0000 (17:20 +0000)]
[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

13 years ago[NTOSKRNL]
Timo Kreuzer [Sun, 27 Feb 2011 15:16:00 +0000 (15:16 +0000)]
[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

13 years ago[URLCACHE]
Eric Kohl [Sat, 26 Feb 2011 22:23:03 +0000 (22:23 +0000)]
[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

13 years ago[SETUPAPI]
Eric Kohl [Sat, 26 Feb 2011 21:40:17 +0000 (21:40 +0000)]
[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

13 years ago[ntoskrnl] Fix compilation with _WINKD_=1
Hervé Poussineau [Sat, 26 Feb 2011 20:00:08 +0000 (20:00 +0000)]
[ntoskrnl] Fix compilation with _WINKD_=1

svn path=/trunk/; revision=50914

13 years ago[KERNEL32]
Pierre Schweitzer [Sat, 26 Feb 2011 17:18:21 +0000 (17:18 +0000)]
[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

13 years ago[KERNEL32]
Aleksey Bragin [Sat, 26 Feb 2011 16:50:20 +0000 (16:50 +0000)]
[KERNEL32]
- Fix buffer overwrite in GetModuleFileName(). Spotted by DPH.
See issue #5964 for more details.

svn path=/trunk/; revision=50912

13 years ago[ROSTESTS]
Amine Khaldi [Sat, 26 Feb 2011 14:27:09 +0000 (14:27 +0000)]
[ROSTESTS]
- Skip test_apm to prevent the oleaut_winetest:olepicture crash.
See issue #5000 for more details.

svn path=/trunk/; revision=50911

13 years ago[NTDLL/LDR]
Aleksey Bragin [Sat, 26 Feb 2011 14:12:55 +0000 (14:12 +0000)]
[NTDLL/LDR]
- Don't try to free a pointer allocated on stack.
See issue #4751 for more details.

svn path=/trunk/; revision=50910

13 years ago[USRMGR]
Pierre Schweitzer [Sat, 26 Feb 2011 13:49:00 +0000 (13:49 +0000)]
[USRMGR]
Fix build
Blame rbuild ~

svn path=/trunk/; revision=50909

13 years ago- Don't free an invalid handle. Suggested by Johannes. Test failure remains in the...
Aleksey Bragin [Sat, 26 Feb 2011 13:31:58 +0000 (13:31 +0000)]
- 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

13 years ago[KERNEL32]
Pierre Schweitzer [Sat, 26 Feb 2011 13:26:02 +0000 (13:26 +0000)]
[KERNEL32]
Remove unused .def file. We're using .pspec here

svn path=/trunk/; revision=50907

13 years ago[USRMGR]
Pierre Schweitzer [Sat, 26 Feb 2011 13:12:36 +0000 (13:12 +0000)]
[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

13 years ago[ROSTESTS]
Sylvain Petreolle [Fri, 25 Feb 2011 23:34:52 +0000 (23:34 +0000)]
[ROSTESTS]
Bug 5778:
Disable part of rpcrt4:rpc test,
it needs unimplemented functionality in current rpcrt4 version.

svn path=/trunk/; revision=50905

13 years ago[NTOSKNRL]
Pierre Schweitzer [Fri, 25 Feb 2011 20:15:51 +0000 (20:15 +0000)]
[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

13 years ago[WININET]
Timo Kreuzer [Fri, 25 Feb 2011 18:44:20 +0000 (18:44 +0000)]
[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

13 years ago[WIN32K]
Timo Kreuzer [Fri, 25 Feb 2011 17:37:25 +0000 (17:37 +0000)]
[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

13 years ago[ROSTESTS]
Sylvain Petreolle [Fri, 25 Feb 2011 16:21:04 +0000 (16:21 +0000)]
[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

13 years ago[WDMAUD.DRV]
Johannes Anderwald [Fri, 25 Feb 2011 16:00:26 +0000 (16:00 +0000)]
[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

13 years ago[SHELL32]
Johannes Anderwald [Fri, 25 Feb 2011 15:11:51 +0000 (15:11 +0000)]
[SHELL32]
- Check the correct pidl instead of the free one
- Found by the amazing DPH!

svn path=/trunk/; revision=50899

13 years ago[RTL/DPH]
Aleksey Bragin [Fri, 25 Feb 2011 14:13:10 +0000 (14:13 +0000)]
[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

13 years ago[MMEBUDDY]
Johannes Anderwald [Fri, 25 Feb 2011 14:10:31 +0000 (14:10 +0000)]
[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

13 years ago[[WIN32K]
Timo Kreuzer [Fri, 25 Feb 2011 00:01:35 +0000 (00:01 +0000)]
[[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

13 years ago[SECUR32]
Aleksey Bragin [Thu, 24 Feb 2011 22:50:00 +0000 (22:50 +0000)]
[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

13 years ago[WDMAUD.DRV]
Johannes Anderwald [Thu, 24 Feb 2011 14:38:16 +0000 (14:38 +0000)]
[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

13 years ago[WIN32K]
Timo Kreuzer [Thu, 24 Feb 2011 14:18:55 +0000 (14:18 +0000)]
[WIN32K]
Fix possible lock leak in failure case of NtGdiSetBoundsRect. Fixes a failed assertion spotted by r3ddr4g0n.

svn path=/trunk/; revision=50893

13 years ago[RTL/DPH]
Aleksey Bragin [Thu, 24 Feb 2011 12:59:52 +0000 (12:59 +0000)]
[RTL/DPH]
- Implement ValidateHeap API for DPH. Fixes attempts to validate DPH as a normal heap.

svn path=/trunk/; revision=50892

13 years ago[PING]
Aleksey Bragin [Thu, 24 Feb 2011 12:35:44 +0000 (12:35 +0000)]
[PING]
- Add Ukrainian translation by Eugene Sakara.

svn path=/trunk/; revision=50891

13 years ago[COMCTL32]
Timo Kreuzer [Thu, 24 Feb 2011 12:34:59 +0000 (12:34 +0000)]
[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

13 years ago[RTL/DPH]
Aleksey Bragin [Thu, 24 Feb 2011 09:40:07 +0000 (09:40 +0000)]
[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

13 years ago[COMCTL32]
Amine Khaldi [Thu, 24 Feb 2011 01:27:57 +0000 (01:27 +0000)]
[COMCTL32]
- Sync with wine 1.3.14

svn path=/trunk/; revision=50887

13 years ago[PSDK]
Amine Khaldi [Thu, 24 Feb 2011 01:26:34 +0000 (01:26 +0000)]
[PSDK]
- Improve some definitions.

svn path=/trunk/; revision=50886

13 years ago[WIN32K]
Timo Kreuzer [Thu, 24 Feb 2011 00:48:01 +0000 (00:48 +0000)]
[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

13 years ago[NTDLL/LDR]
Aleksey Bragin [Wed, 23 Feb 2011 22:38:55 +0000 (22:38 +0000)]
[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

13 years ago[PSDK]
Amine Khaldi [Wed, 23 Feb 2011 21:26:18 +0000 (21:26 +0000)]
[PSDK]
- Improve commctrl.h
[CRT]
- Update _mingw_mac.h from mingw-w64 and add _mingw_unicode.h

svn path=/trunk/; revision=50883

13 years ago[USER32]
Timo Kreuzer [Wed, 23 Feb 2011 19:21:33 +0000 (19:21 +0000)]
[USER32]
Patch by Rafał Harabień :
- remove a hack in DrawMenuBar

See issue #5949 for more details.

svn path=/trunk/; revision=50882

13 years ago[WIN32K]
Timo Kreuzer [Wed, 23 Feb 2011 19:10:42 +0000 (19:10 +0000)]
[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

13 years ago[WIN32K]
Timo Kreuzer [Wed, 23 Feb 2011 18:51:57 +0000 (18:51 +0000)]
[WIN32K]
Small readability improvement.

svn path=/trunk/; revision=50880

13 years ago[WIN32K]
Timo Kreuzer [Wed, 23 Feb 2011 18:46:02 +0000 (18:46 +0000)]
[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

13 years ago- Fix build
Johannes Anderwald [Wed, 23 Feb 2011 17:15:13 +0000 (17:15 +0000)]
- Fix build

svn path=/trunk/; revision=50878

13 years ago[PORTCLS]
Johannes Anderwald [Wed, 23 Feb 2011 15:14:12 +0000 (15:14 +0000)]
[PORTCLS]
- Re-add the hack for gcc

svn path=/trunk/; revision=50877

13 years ago[kernel32]
Giannis Adamopoulos [Wed, 23 Feb 2011 14:24:57 +0000 (14:24 +0000)]
[kernel32]
- Add some debug prints
- Fix some cases where we didn't check for the return value of CsrAllocateCaptureBuffer

svn path=/trunk/; revision=50876

13 years ago[NTOSKRNL]
Pierre Schweitzer [Wed, 23 Feb 2011 12:09:07 +0000 (12:09 +0000)]
[NTOSKRNL]
Apply r50873 on FsRtlIsNameInExpression()

svn path=/trunk/; revision=50875

13 years ago[NTOSKRNL]
Pierre Schweitzer [Wed, 23 Feb 2011 12:08:16 +0000 (12:08 +0000)]
[NTOSKRNL]
Reverted changes commited to largemcb.c
They weren't intended to be commited

svn path=/trunk/; revision=50874

13 years ago[NTOSKRNL]
Pierre Schweitzer [Wed, 23 Feb 2011 12:04:08 +0000 (12:04 +0000)]
[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

13 years ago[RTL/DPH]
Aleksey Bragin [Wed, 23 Feb 2011 11:08:37 +0000 (11:08 +0000)]
[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

13 years ago[MPLAY32]
Johannes Anderwald [Wed, 23 Feb 2011 10:32:56 +0000 (10:32 +0000)]
[MPLAY32]
- Hackfix playback

See issue #5867 for more details.

svn path=/trunk/; revision=50871

13 years ago[KMTEST]
Pierre Schweitzer [Wed, 23 Feb 2011 10:20:23 +0000 (10:20 +0000)]
[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

13 years ago[KERNEL32]
Pierre Schweitzer [Tue, 22 Feb 2011 19:07:45 +0000 (19:07 +0000)]
[KERNEL32]
Don't make CopyFileExA() rely on Wine's strings conversions functions

svn path=/trunk/; revision=50869

13 years ago[KERNEL32]
Pierre Schweitzer [Tue, 22 Feb 2011 18:56:46 +0000 (18:56 +0000)]
[KERNEL32]
Don't make FindFirstChangeNotificationA() rely on Wine's strings conversions functions

svn path=/trunk/; revision=50868

13 years ago[KERNEL32]
Pierre Schweitzer [Tue, 22 Feb 2011 18:43:38 +0000 (18:43 +0000)]
[KERNEL32]
Don't make GetBinaryTypeA() rely on Wine's strings conversions functions

svn path=/trunk/; revision=50867

13 years ago[CRT]
Timo Kreuzer [Tue, 22 Feb 2011 17:29:32 +0000 (17:29 +0000)]
[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

13 years ago[NOTEPAD]
Timo Kreuzer [Tue, 22 Feb 2011 09:59:49 +0000 (09:59 +0000)]
[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

13 years agoUpdate rapps database.
Daniel Reimer [Mon, 21 Feb 2011 23:26:03 +0000 (23:26 +0000)]
Update rapps database.

svn path=/trunk/; revision=50862

13 years ago[CRT]
Timo Kreuzer [Mon, 21 Feb 2011 23:11:53 +0000 (23:11 +0000)]
[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

13 years ago[RTL/DPH]
Aleksey Bragin [Mon, 21 Feb 2011 22:42:21 +0000 (22:42 +0000)]
[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

13 years ago[USER32]
Timo Kreuzer [Mon, 21 Feb 2011 20:55:45 +0000 (20:55 +0000)]
[USER32]
Fix a typo. Fixes "Calling invalid routine number 0x10 in NtUserCallOneParam()"

svn path=/trunk/; revision=50858

13 years ago[RTL/AVL]
Aleksey Bragin [Mon, 21 Feb 2011 13:33:13 +0000 (13:33 +0000)]
[RTL/AVL]
- Zero out contents of a newly allocated AVL table node.

svn path=/trunk/; revision=50855

13 years ago[RTL]
Amine Khaldi [Mon, 21 Feb 2011 09:12:43 +0000 (09:12 +0000)]
[RTL]
- Silence this dprint. It's flooding the debug log.

svn path=/trunk/; revision=50854

13 years ago[Win32k]
James Tabor [Mon, 21 Feb 2011 09:01:07 +0000 (09:01 +0000)]
[Win32k]
- Fix crash with win wine test. Win test works on my tree here and hardware as well.

svn path=/trunk/; revision=50853

13 years ago[KERNEL32]
Pierre Schweitzer [Mon, 21 Feb 2011 07:23:18 +0000 (07:23 +0000)]
[KERNEL32]
Forgotten changes to .pspec.
Why is there still a .def?

svn path=/trunk/; revision=50852

13 years ago[MMEBUDDY]
Johannes Anderwald [Mon, 21 Feb 2011 04:22:45 +0000 (04:22 +0000)]
[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

13 years ago[PORTCLS]
Johannes Anderwald [Sun, 20 Feb 2011 23:01:14 +0000 (23:01 +0000)]
[PORTCLS]
- Remove the oldest hack in portcls
- Please report any regression(s)

svn path=/trunk/; revision=50850

13 years ago[KERNEL32]
Pierre Schweitzer [Sun, 20 Feb 2011 22:57:31 +0000 (22:57 +0000)]
[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

13 years ago[HAL]
Timo Kreuzer [Sun, 20 Feb 2011 22:30:50 +0000 (22:30 +0000)]
[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

13 years ago[Win32k|User32]
James Tabor [Sun, 20 Feb 2011 22:20:51 +0000 (22:20 +0000)]
[Win32k|User32]
- WM_MDICREATE originates from user space so treat it as it should, fixes bug 5903.

svn path=/trunk/; revision=50847

13 years ago[Win32k]
James Tabor [Sun, 20 Feb 2011 22:20:42 +0000 (22:20 +0000)]
[Win32k]
- Restore original patch 50154.

svn path=/trunk/; revision=50846

13 years ago[Win32k]
James Tabor [Sun, 20 Feb 2011 22:20:23 +0000 (22:20 +0000)]
[Win32k]
- Remove unused class list pointer and clear the class registered flag.

svn path=/trunk/; revision=50845

13 years ago[SETUPAPI]
Eric Kohl [Sun, 20 Feb 2011 22:13:59 +0000 (22:13 +0000)]
[SETUPAPI]
- Add 'pSetup'-Prefix to the string table functions according to the new naming convention.
- Remove the obsolete function StringTableTrim.

svn path=/trunk/; revision=50844

13 years ago[WIN32CSR]
Pierre Schweitzer [Sun, 20 Feb 2011 21:47:41 +0000 (21:47 +0000)]
[WIN32CSR]
Silence CsrGetTempFile() debug

svn path=/trunk/; revision=50843

13 years ago[CONSOLE]
Pierre Schweitzer [Sun, 20 Feb 2011 21:40:04 +0000 (21:40 +0000)]
[CONSOLE]
French translation by Jason Toscano <JasonGenie@gmail.com>
Corrections/adjustements by me

svn path=/trunk/; revision=50842

13 years ago[RUNONCE]
Pierre Schweitzer [Sun, 20 Feb 2011 21:22:53 +0000 (21:22 +0000)]
[RUNONCE]
Fixed a typo in french translation

svn path=/trunk/; revision=50841

13 years ago[SETUPAPI]
Eric Kohl [Sun, 20 Feb 2011 20:52:52 +0000 (20:52 +0000)]
[SETUPAPI]
Implement CM_Query_And_Remove_SubTree[_Ex]A/W and CM_Request_Device_Eject[_Ex]A/W.

svn path=/trunk/; revision=50840

13 years ago[KERNEL32]
Pierre Schweitzer [Sun, 20 Feb 2011 19:49:02 +0000 (19:49 +0000)]
[KERNEL32]
- Get rid of Wine's implementation of GetTempFileNameA/W and reimplement them in the Windows 2003 way.
This fixes bug #5481

svn path=/trunk/; revision=50839

13 years ago[KERNEL32]
Pierre Schweitzer [Sun, 20 Feb 2011 19:40:15 +0000 (19:40 +0000)]
[KERNEL32]
- Get rid of old function Basep8BitStringToLiveUnicodeString() that doesn't exist under Windows, and that was even unused
- Rename Basep8BitStringToHeapUnicodeString() to Basep8BitStringToDynamicUnicodeString() and fix its implementation (and all the calls)
- Define BasepUnicodeStringTo8BitString()

svn path=/trunk/; revision=50838

13 years ago[KERNEL32]
Pierre Schweitzer [Sun, 20 Feb 2011 19:33:45 +0000 (19:33 +0000)]
[KERNEL32]
Properly implement GetLastError and export it.

svn path=/trunk/; revision=50837

13 years ago[RTL]
Pierre Schweitzer [Sun, 20 Feb 2011 19:28:34 +0000 (19:28 +0000)]
[RTL]
- Fixed RtlMultiByteToUnicodeN & RtlAnsiCharToUnicodeChar prototype
- Added missing paged code marker to RtlAnsiCharToUnicodeChar
- Added a small hack to RtlAnsiCharToUnicodeChar. Indeed, when it's called during second stage, it's failing due to missing NLS table.
Probably usetup that doesn't define a registry entry. And then, FreeLdr just passes null pointer.

svn path=/trunk/; revision=50836

13 years ago[WIN32CSR]
Pierre Schweitzer [Sun, 20 Feb 2011 19:23:46 +0000 (19:23 +0000)]
[WIN32CSR]
Add a new API GetTempFile() that returns an identifier to be used for creating temporary files.
This API should be in basesrv.dll

svn path=/trunk/; revision=50835

13 years ago[USETUP]
Johannes Anderwald [Sun, 20 Feb 2011 16:50:38 +0000 (16:50 +0000)]
[USETUP]
- Get rid of indirection
See issue #5190 for more details.

svn path=/trunk/; revision=50834

13 years ago- Add french translation for runonce utility
Johannes Anderwald [Sun, 20 Feb 2011 16:32:21 +0000 (16:32 +0000)]
- Add french translation for runonce utility
- Add svn:eol-style native property
- Fix language id (SUBLANG_DEFAULT -> SUBLANG_NEUTRAL)
See issue #5918 for more details.

svn path=/trunk/; revision=50833

13 years ago[KERNEL32]
Timo Kreuzer [Sun, 20 Feb 2011 12:07:28 +0000 (12:07 +0000)]
[KERNEL32]
64 bit compatibility fix for IsWow64Process. Patch by Thomas Faber <thfabba at gmx dot de>

svn path=/trunk/; revision=50832

13 years ago[NTOSKRNL]
Timo Kreuzer [Sun, 20 Feb 2011 11:27:07 +0000 (11:27 +0000)]
[NTOSKRNL]
Halfplement (win32 only) ProcessWow64Information case in NtQueryInformationProcess. Patch by Samuel Serapion.

See issue #5916 for more details.

svn path=/trunk/; revision=50831

13 years ago[CHARMAP]
Timo Kreuzer [Sun, 20 Feb 2011 10:55:48 +0000 (10:55 +0000)]
[CHARMAP]
Patch by Carlo Bramini (carlo bramix at libero dot it)
- Make the text copy field a richedit control.
- Use WM_CHAR to copy the characters
- Fix definition of MSFTEDIT_CLASS for the resource compiler

See issue #5275 for more details.

svn path=/trunk/; revision=50830

13 years ago[SETUPAPI]
Eric Kohl [Sun, 20 Feb 2011 10:44:30 +0000 (10:44 +0000)]
[SETUPAPI]
Implement CM_Get_Hardware_Profile_Info[_Ex]A/W.

svn path=/trunk/; revision=50829

13 years ago[RTL/DPH]
Aleksey Bragin [Sun, 20 Feb 2011 09:54:01 +0000 (09:54 +0000)]
[RTL/DPH]
- Fix a bug with node count in RtlpDphAddNewPool().
- Unprotect needed amount of memory in RtlpDphSetProtectionBeforeUse() instead of always assuming PAGE_SIZE.
- Fix an incorrect virtual block pointer calculation in RtlpPageHeapAllocate().
- Silence RtlpDphShouldAllocateInPageHeap() debug print.
- Add helpful debug prints (disabled by default).
- Some code cleanup for better readibility.
- Heap create, destroy and allocating a block from the heap work now.

svn path=/trunk/; revision=50828

13 years ago[WIN32K]
Timo Kreuzer [Sat, 19 Feb 2011 23:44:36 +0000 (23:44 +0000)]
[WIN32K]
NtGdiSelectBitmap. Don't exclusively lock the old bitmap. This could cause pool corruptions, when the share count reachted 0, the object was deleted and unlocked after that. Use InterlockedCompareExchange to check and exchange the new bitmaps dc. This is commented out, because it causes a lot of drawing problems. Do the referencing manually instead of calling DC_vSelectSurface. Use a shared reference instead of an exclusive lock for the new bitmap. add code for proper handling of DEFAULT_BITMAP, currently hacked due to restrictions in other parts of win32k. Fixes bug 5498 and probably a lot of other problems.

svn path=/trunk/; revision=50827

13 years ago[WIN32K]
Timo Kreuzer [Sat, 19 Feb 2011 22:29:31 +0000 (22:29 +0000)]
[WIN32K]
NtGdiStretchDIBitsInternal: don't call NtGdiGetDCObject and NtGdiCreateCompatibleDC with a dc locked. These cases are not harmful, but generally Nt* and Gre* should never be called with an exclusive gdi lock held. Also don't return in failure case with the dc still locked.

svn path=/trunk/; revision=50826

13 years ago[WIN32K]
Timo Kreuzer [Sat, 19 Feb 2011 22:03:34 +0000 (22:03 +0000)]
[WIN32K]
- add tracing of exclusive gdi locks
- add some asserts

svn path=/trunk/; revision=50825

13 years ago[WIN32K]
Timo Kreuzer [Sat, 19 Feb 2011 21:56:43 +0000 (21:56 +0000)]
[WIN32K]
- Add ros specific member cExclusiveLocks to THREADINFO to track number of acquired locks
- Add functions/macros to check lock count
- Move some definitions into gdidebug.h for global use
- Fix broken GdiDbgHTIntegrityCheck
- Add pre and post syscall hook functions (unused yet)

svn path=/trunk/; revision=50824

13 years ago[NTOSKRNL]
Timo Kreuzer [Sat, 19 Feb 2011 21:50:11 +0000 (21:50 +0000)]
[NTOSKRNL]
Add support for debug pre/post syscall hooks, that can be registered from win32k. They only exist on DBG versions.

svn path=/trunk/; revision=50823

13 years ago[EVENTVWR]
Amine Khaldi [Sat, 19 Feb 2011 21:24:47 +0000 (21:24 +0000)]
[EVENTVWR]
- Fix handling of NULL lpComputerName.
- Handle lpData conversion to a wide string and make sure it's NULL terminated.
- Patch by Rafal Harabien, <rafalh1992 AT o2 DOT pl>
See issue #5926 for more details.

svn path=/trunk/; revision=50822

13 years ago[NTOSKRNL]
Sylvain Petreolle [Sat, 19 Feb 2011 18:43:54 +0000 (18:43 +0000)]
[NTOSKRNL]
Fix typo.

svn path=/trunk/; revision=50821

13 years ago[SETUPAPI]
Eric Kohl [Sat, 19 Feb 2011 18:28:13 +0000 (18:28 +0000)]
[SETUPAPI]
- Implement CM_Get_Device_Interface_AliasA, CM_Get_Device_Interface_AliasW and
CM_Get_Device_Interface_Alias_ExW.
- Add a stub for CM_Get_Device_Interface_Alias_ExA.
- Implement the obsolete functions CM_Query_Remove_SubTree[_Ex] and CM_Remove_SubTree[_Ex].

svn path=/trunk/; revision=50820

13 years ago- Revert 49767 on Pierre's request, which reverted this:
Johannes Anderwald [Sat, 19 Feb 2011 17:00:08 +0000 (17:00 +0000)]
- Revert 49767 on Pierre's request, which reverted this:
- Added real implementation of SetLastError() (instead of forwarding to NTDLL)
- Implemented BaseSetLastNTError()
- Renamed Basep8BitStringToCachedUnicodeString() to Basep8BitStringToStaticUnicodeString() and sightly changed its implementation
- Fixed implementation of LoadLibraryExA() & DisableThreadLibraryCalls() using those changes
This is matching w2k3 implementation. This is of course a WIP.

svn path=/trunk/; revision=50819