reactos.git
13 years ago[NTOSKRNL]
Eric Kohl [Sat, 15 Jan 2011 14:35:26 +0000 (14:35 +0000)]
[NTOSKRNL]
Simplify SepPrivilegeCheck.
Patch by Timo Kreuzer.

svn path=/trunk/; revision=50390

13 years ago[PING]
Timo Kreuzer [Sat, 15 Jan 2011 12:58:05 +0000 (12:58 +0000)]
[PING]
Fix MyLoadString. Patch by menone7 at gmail dot com.

svn path=/trunk/; revision=50389

13 years ago[CRT]
Timo Kreuzer [Sat, 15 Jan 2011 11:18:01 +0000 (11:18 +0000)]
[CRT]
Fix uninitialized warning

svn path=/trunk/; revision=50387

13 years agoRevert 50381 and 50382. Altough it reduces number of reboots in the test server,...
Giannis Adamopoulos [Fri, 14 Jan 2011 23:20:26 +0000 (23:20 +0000)]
Revert 50381 and 50382. Altough it reduces number of reboots in the test server, it somehow reveals a registry corruption and cripples completely automated testing

svn path=/trunk/; revision=50386

13 years ago[CRT]
Timo Kreuzer [Fri, 14 Jan 2011 20:00:10 +0000 (20:00 +0000)]
[CRT]
Fix miscalculation of number of decimal points to shift for %f format. Should fix shlwapi:string tests and bug 5818.

svn path=/trunk/; revision=50385

13 years ago[IPHLPAPI]
Roel Messiant [Fri, 14 Jan 2011 18:47:57 +0000 (18:47 +0000)]
[IPHLPAPI]
- Remove conditional redefine of DPRINT. Wine debug channels at this point, and we have NDEBUG.
- Use TRACE instead of DbgPrint. Gets rid of the "Status 2" spam when no static nameserver is in the registry.

svn path=/trunk/; revision=50384

13 years ago[CMAKE]
Amine Khaldi [Thu, 13 Jan 2011 11:13:09 +0000 (11:13 +0000)]
[CMAKE]
- Fix rosautotest build.

svn path=/trunk/; revision=50382

13 years ago[rosautotest]
Giannis Adamopoulos [Thu, 13 Jan 2011 09:58:04 +0000 (09:58 +0000)]
[rosautotest]
-Implement closing any dialog that shows and stays visible for some time. This way rosautotest can now continue if a test application crashes or asserts.

svn path=/trunk/; revision=50381

13 years ago[user32]
Giannis Adamopoulos [Thu, 13 Jan 2011 09:56:32 +0000 (09:56 +0000)]
[user32]
- Implement sending EVENT_SYSTEM_DIALOGSTART event. It will be used by rosautotest

svn path=/trunk/; revision=50380

13 years ago[CMAKE]
Roel Messiant [Wed, 12 Jan 2011 23:20:02 +0000 (23:20 +0000)]
[CMAKE]
- Add tests for CombineTransform and MaskBlt, part 2. Build is happy again.

svn path=/trunk/; revision=50379

13 years agoFix typos ;)
Johannes Anderwald [Wed, 12 Jan 2011 22:25:16 +0000 (22:25 +0000)]
Fix typos ;)

svn path=/trunk/; revision=50378

13 years ago[PING]
Pierre Schweitzer [Wed, 12 Jan 2011 21:55:48 +0000 (21:55 +0000)]
[PING]
French translation patch from myself aka Pierre Schweitzer, with deepest love, and so on...

svn path=/trunk/; revision=50377

13 years ago[PING]
Timo Kreuzer [Wed, 12 Jan 2011 21:35:45 +0000 (21:35 +0000)]
[PING]
Italian translation of ping. Patch by Vincenzo Cotugno ( vins8920 at hotmail dot com)

svn path=/trunk/; revision=50376

13 years ago[WIN32K]
Timo Kreuzer [Wed, 12 Jan 2011 21:15:46 +0000 (21:15 +0000)]
[WIN32K]
Go back to hiding the cursor with GreMovePointer, instead of setting NULL bitmaps. While MSDN states that psoColor and psoMask can both be NULL in DrvSetPointerShape, it doesn't explicitly say anything about both being NULL at the same time. VBox driver doesn't expect that and will crash, so most likely windows doesn't do this.

svn path=/trunk/; revision=50375

13 years ago[PING]
Timo Kreuzer [Wed, 12 Jan 2011 20:05:06 +0000 (20:05 +0000)]
[PING]
Polish translation of ping. Patch by Olaf Siejka.

svn path=/trunk/; revision=50374

13 years ago[PING]
Timo Kreuzer [Wed, 12 Jan 2011 17:12:09 +0000 (17:12 +0000)]
[PING]
Add German translation.

svn path=/trunk/; revision=50373

13 years ago[PING]
Timo Kreuzer [Wed, 12 Jan 2011 15:31:20 +0000 (15:31 +0000)]
[PING]
Implement small helper MyLoadString, using FindResource, LoadResource, LockResource and replacing LoadString, so we don't need to link to user32 anymore.

svn path=/trunk/; revision=50372

13 years ago[PING]
Timo Kreuzer [Wed, 12 Jan 2011 14:57:22 +0000 (14:57 +0000)]
[PING]
Add localization support to ping. Patch by "none" (menone7 at gmail dot com)

See issue #5500 for more details.

svn path=/trunk/; revision=50371

13 years ago[WIN32K]
Timo Kreuzer [Wed, 12 Jan 2011 14:02:54 +0000 (14:02 +0000)]
[WIN32K]
Reset monitor size after mode switch. patch by rafalh <rafalh1992 at o2 dor pl>

See issue #5727 for more details.

svn path=/trunk/; revision=50370

13 years ago[NTOSKRNL]
Timo Kreuzer [Wed, 12 Jan 2011 13:40:34 +0000 (13:40 +0000)]
[NTOSKRNL]
Remove broken definition of SharedUserdata and use correct SharedUserData instead. Fixes a crash on real Hardware. Patch by Daniel Zimmermann (netzimme at googlemail dot com)

See issue #5650 for more details.

svn path=/trunk/; revision=50369

13 years ago[EXPLORER_NEW]
Timo Kreuzer [Wed, 12 Jan 2011 13:22:12 +0000 (13:22 +0000)]
[EXPLORER_NEW]
Open a context menu, when a task is right clicked.
Patch by greenie (greenie__ at hotmail dot com)

See issue #4671 for more details.

svn path=/trunk/; revision=50368

13 years ago[EXPLORER_NEW]
Timo Kreuzer [Wed, 12 Jan 2011 13:12:00 +0000 (13:12 +0000)]
[EXPLORER_NEW]
Provide the ability to query version info (needed for task
grouping).
Patch by DavidErceg <dave_154@hotmail.com>

See issue #4386 for more details.

svn path=/trunk/; revision=50367

13 years ago[WIN32K]
Timo Kreuzer [Wed, 12 Jan 2011 11:49:29 +0000 (11:49 +0000)]
[WIN32K]
- In UserSetCursor, return a pointer to the old cursor, not the handle
- really delete the pointer shape when NULL cursor is set, instead of just hiding it.
- Move reference handling completely to NtUserSetCursor
- In UserChangeDisplaySettings, set NULL cursor before change and restore old cursor after change to make sure we have the right color format.

See issue #5722 for more details.

svn path=/trunk/; revision=50365

13 years ago[WIN32K]
Timo Kreuzer [Wed, 12 Jan 2011 01:01:30 +0000 (01:01 +0000)]
[WIN32K]
Don't leak the memory for DIB sections. we set BMF_DONT_FREE in SURFACE_bSetBitmapBits, when the caller provides bits. This needs to be reconsidered.

svn path=/trunk/; revision=50363

13 years ago[WIN32K]
Timo Kreuzer [Wed, 12 Jan 2011 00:26:20 +0000 (00:26 +0000)]
[WIN32K]
Don't trat BI_BITFIELDS as compressed format in DIB_CreateDIBSection. Fixes KSStudio. Why it was introduced by r48359? I don't know. It was broken before. I refrain from making any more comments about that piece of ... code.

See issue #5781 for more details.

svn path=/trunk/; revision=50362

13 years ago[USER32]
Timo Kreuzer [Tue, 11 Jan 2011 19:57:55 +0000 (19:57 +0000)]
[USER32]
- Use new wsprintf library, remove old code (536 lines)
- Fixes output of %I64, for example dxdiag

svn path=/trunk/; revision=50361

13 years ago[CRT]
Timo Kreuzer [Tue, 11 Jan 2011 19:09:48 +0000 (19:09 +0000)]
[CRT]
- Add user32_wsprintf library, with all the wsprintf functions, generated from the same codebase
- simplify handling of ll modifier in streamout

svn path=/trunk/; revision=50360

13 years agofix build
Giannis Adamopoulos [Tue, 11 Jan 2011 19:04:44 +0000 (19:04 +0000)]
fix build

svn path=/trunk/; revision=50359

13 years agofix build
Giannis Adamopoulos [Tue, 11 Jan 2011 18:55:19 +0000 (18:55 +0000)]
fix build

svn path=/trunk/; revision=50358

13 years ago[undocuser.h]
Giannis Adamopoulos [Tue, 11 Jan 2011 18:47:16 +0000 (18:47 +0000)]
[undocuser.h]
- gather several undocumented definitions for user32 that were defined in several different files, sometimes in the source, sometimes in headers and sometimes defined several times here and there
This file should not contain internal user32 definitions but undocumented public definitions

svn path=/trunk/; revision=50357

13 years ago[CRT]
Timo Kreuzer [Tue, 11 Jan 2011 15:17:35 +0000 (15:17 +0000)]
[CRT]
Remove deprecated <if>.

svn path=/trunk/; revision=50356

13 years ago[CRT]
Timo Kreuzer [Tue, 11 Jan 2011 13:13:47 +0000 (13:13 +0000)]
[CRT]
Get rid of the old printf code and some unused functions. 3346 lines of code less.

svn path=/trunk/; revision=50355

13 years ago[CRT]
Timo Kreuzer [Tue, 11 Jan 2011 12:17:46 +0000 (12:17 +0000)]
[CRT]
Improve code readability a bit

svn path=/trunk/; revision=50354

13 years ago[WIN32K]
Timo Kreuzer [Mon, 10 Jan 2011 09:53:56 +0000 (09:53 +0000)]
[WIN32K]
Remove debugging code.

svn path=/trunk/; revision=50352

13 years ago[Win32k]
James Tabor [Mon, 10 Jan 2011 01:36:14 +0000 (01:36 +0000)]
[Win32k]
- Implement NtGdiCreateMetafileDC.
- Since most of the gdi work I committed is being reverted or if'ed out of existence, this will be the last.

svn path=/trunk/; revision=50351

13 years ago[Win32k]
James Tabor [Mon, 10 Jan 2011 01:30:17 +0000 (01:30 +0000)]
[Win32k]
- Win32k implementation of GetCharacterPlacementW, work is dedicated to the late Professor John Collins.

svn path=/trunk/; revision=50350

13 years ago[WIN32K]
Timo Kreuzer [Sun, 9 Jan 2011 23:23:42 +0000 (23:23 +0000)]
[WIN32K]
Fix use of XFORMOBJ. Should fix gdi32_winetest clipping regression and release breakage.

svn path=/trunk/; revision=50349

13 years ago[NTOS]
Roel Messiant [Sun, 9 Jan 2011 20:52:22 +0000 (20:52 +0000)]
[NTOS]
Complete rewrite reserving and releasing of System PTEs.

The previous algorithm, in a nutshell, worked as follows:
- PTE clusters are in a singly linked list, ordered by their base address.
- All PTEs in the clusters are zeroed (except for cluster list bookkeeping).
- Upon reservation: Walk the list to get the first cluster that's large enough, cut the requested amount of PTEs off its tail and return them.
- Upon release: Create a new cluster using the PTEs to release, and merge it together with possible adjacent clusters.

Problems with the previous algorithm:
- While the idea is that all PTEs in clusters are zeroed, which requesters rely on, cluster bookkeeping isn't zeroed on merges.
  The side effect of this was that PTEs that weren't really zeroed were randomly delivered to requesters.
- 99% of the time, allocations are serviced using the first cluster in the list, which is virtually always the first suitable cluster.
  This is so because the ordering is based on the base address of the clusters, and allocations are serviced using the cluster tail.
  Because the first cluster starts out as the whole pool, and the pool is quite sizable, it can deal with virtually allocations.. for a while.
- A corollary of the previous point is *massive fragmentation* because: as long as an allocation isn't released back into the pool,
  the space of previous allocations that have been released isn't reused because the first cluster can't suck them up, and enough allocations remain in use.
- The combined effect of the previous two points: a first cluster that effectively shrinks mostly, with small clusters forming behind it.
  Once the first cluster has shrunk far enough (which of course takes a long time), 90% of the space may still be free, scattered in mostly small clusters.
  This would make decent sized allocations fail because of the heavy fragmentation.
- An implementation detail that caused the head of the list to be treated as a genuine cluster when the first cluster in the list was too small.
  The algorithm (as explained above) made this case quite unlikely until your system has been running for a while, after which it could happily
  corrupt list heads of other pools, depending on where the list head is with respect to its own pool.

Empirically obtained data revealed that after just *booting to the desktop*, the pool for System Pte Space entries
contained roughly 70 (unusable) clusters, blocking 15 to 20% of the pool. These figures increased to roughly 100
clusters and 30 to 35% after opening a foxy browser and using it to visit a mathematically inspired search engine.

The same data also showed that over 95% of allocations requested just a single PTE, and a noticable allocation spike
also occured in the range of 65-128 PTEs.  It should be clear optimizing for small allocations is a good idea,
and preferably encourage reuse the same PTEs for such allocations.

And the new algorithm was born:
- PTE clusters are in a singly linked list, ordered by increasing cluster size.
- All PTEs in the clusters are zeroed (except for cluster list bookkeeping) .. really this time!
- Upon reservation: Walk the list to get the first cluster that's large enough, cut the requested amount of PTEs off its tail and return them.
- Upon release: Create a new cluster using the PTEs to release, and merge it together with possible adjacent clusters.
- Both in the reservation and release actions, insertions into the list preserve the increasing cluster size order.

Empirically obtained data now revealed that after just booting to the desktop, the pool for System Pte Space entries
contained exactly 2 clusters.  This increased to 10 clusters after some minor internet browsing and watching a 5 minute video using a media player.

svn path=/trunk/; revision=50347

13 years ago[WIN32K]
Timo Kreuzer [Sun, 9 Jan 2011 19:51:06 +0000 (19:51 +0000)]
[WIN32K]
Cleanup pooltags a little, use official tags where known and applicable.

svn path=/trunk/; revision=50345

13 years ago[WIN32K]
Timo Kreuzer [Sun, 9 Jan 2011 18:53:58 +0000 (18:53 +0000)]
[WIN32K]
In GreCreateBitmapEx handle allocation failure in the rle hack path and set LastError, when failed to allocate bitmap bits.

svn path=/trunk/; revision=50344

13 years ago[WIN32K]
Timo Kreuzer [Sun, 9 Jan 2011 18:38:41 +0000 (18:38 +0000)]
[WIN32K]
- In BitmapFormat, allow intermediate bpp values, use ULONG as parameter type, instead of WORD and DWORD
- In NtGdiCreateBitmap get the real bpp value from the gajBitsPerFormat array
- Add back check of too large nWidth (needed to make sure, cjWidthBytes didn't overflow)
- Merge all parameter checks
- Check cPlanes and cBitsPixel paramters explicitly
- Use GreCreateBitmapEx
- Remove BITMAP_GetRealBitsPixel

svn path=/trunk/; revision=50343

13 years ago[WIN32K]
Timo Kreuzer [Sun, 9 Jan 2011 18:11:44 +0000 (18:11 +0000)]
[WIN32K]
Improve NtGdiStretchDIBitsInternal, use _SEH2_YIELT instead of saving an NTSTATUS and handle the fast path in place instead of setting a BOOL variable. Fixes warnings about uninitialized variables.

svn path=/trunk/; revision=50342

13 years ago[FREELDR]
Dmitry Gorbachev [Sun, 9 Jan 2011 15:11:49 +0000 (15:11 +0000)]
[FREELDR]
Delete a duplicate line.

svn path=/trunk/; revision=50339

13 years ago{GDI32]
Timo Kreuzer [Sat, 8 Jan 2011 19:24:29 +0000 (19:24 +0000)]
{GDI32]
Check paramters in CombineTransform

svn path=/trunk/; revision=50332

13 years ago[GDI32_APITEST]
Timo Kreuzer [Sat, 8 Jan 2011 19:20:20 +0000 (19:20 +0000)]
[GDI32_APITEST]
Remove the stuff that shouldn't have been comitted.

svn path=/trunk/; revision=50331

13 years ago[GDI32]
Timo Kreuzer [Sat, 8 Jan 2011 19:06:38 +0000 (19:06 +0000)]
[GDI32]
- Move EFLOAT handling in seperate file, its x86 specific
- Implement CombineTransform fully in usermode instead of forwarding to NtGdiCombineTransform
- Implement MatrixToXForm
- Implement GdiTransformPoints

svn path=/trunk/; revision=50330

13 years ago[GDI32_APITEST]
Timo Kreuzer [Sat, 8 Jan 2011 18:56:38 +0000 (18:56 +0000)]
[GDI32_APITEST]
Add tests for CombineTransform and MaskBlt

svn path=/trunk/; revision=50329

13 years ago[GDI32]
Timo Kreuzer [Sat, 8 Jan 2011 12:19:23 +0000 (12:19 +0000)]
[GDI32]
Implement GdiGetDcAttr. Just for convenience / cleaner code.

svn path=/trunk/; revision=50321

13 years ago[HEAP]
Aleksey Bragin [Sat, 8 Jan 2011 11:32:55 +0000 (11:32 +0000)]
[HEAP]
- Peer review rocks.

svn path=/trunk/; revision=50319

13 years ago[CRT]
Timo Kreuzer [Fri, 7 Jan 2011 21:15:35 +0000 (21:15 +0000)]
[CRT]
Fix _flsbuf return value

svn path=/trunk/; revision=50314

13 years ago[CMAKE]
Amine Khaldi [Fri, 7 Jan 2011 20:31:56 +0000 (20:31 +0000)]
[CMAKE]
- Add ntdll apitest to build.

svn path=/trunk/; revision=50312

13 years ago[NTDLL_APITEST]
Timo Kreuzer [Fri, 7 Jan 2011 20:11:56 +0000 (20:11 +0000)]
[NTDLL_APITEST]
Convert asm to GAS/ML compatible format

svn path=/trunk/; revision=50311

13 years ago[HEAP]
Aleksey Bragin [Fri, 7 Jan 2011 15:33:46 +0000 (15:33 +0000)]
[HEAP]
- Fix a typo (assignment) in the ASSERT, spotted by Johannes Anderwald.

svn path=/trunk/; revision=50309

13 years ago[WIN32K]
Timo Kreuzer [Thu, 6 Jan 2011 22:00:26 +0000 (22:00 +0000)]
[WIN32K]
- Use if, instead of switch to handle flags in XFORMOBJ_bXformFixPoints
- Define XFORMOBJ to EXFORMOBJ, a stack object that links to the matrix
- There is no spoon.

svn path=/trunk/; revision=50307

13 years ago[APITESTS:GDI32]
Jérôme Gardou [Thu, 6 Jan 2011 19:03:09 +0000 (19:03 +0000)]
[APITESTS:GDI32]
Add missing \n

svn path=/trunk/; revision=50306

13 years ago[usb/usbehci]:
Michael Martin [Thu, 6 Jan 2011 18:45:18 +0000 (18:45 +0000)]
[usb/usbehci]:
- EhciDefferedRoutine: Only free Mdl if one was created when the request was added to the queue.
- Dont assume that three transfer descriptors need to be freed, use a while moving to each linked and free instead.
- Yabba Dabba Doo added to increase size of message. :)

svn path=/trunk/; revision=50304

13 years ago[usb/usbehci]:
Michael Martin [Thu, 6 Jan 2011 18:29:52 +0000 (18:29 +0000)]
[usb/usbehci]:
- Implement URB_FUNCTION_SELECT_INTERFACE.
- Add missing IoMarkIrpPending before calling SubmitControlRequest.
- Now use BuildSetupPacketFromURB for creating the CtrlSetup data structure.
- When selecting configuration, make the ConfigurationHandle from the related UsbDevice instead of always the RootHub device.
- Fix typo that caused all pipes to be marked as interrupt type.
- Change CompletePendingURBRequest to only complete one SCE request Irp.

svn path=/trunk/; revision=50303

13 years ago[usb/usbehci]:
Michael Martin [Thu, 6 Jan 2011 17:46:59 +0000 (17:46 +0000)]
[usb/usbehci]:
- Fix bug in InitializeUsbDevice that caused endpoints to be duplicated in internal config structure.
- Fix implementation of UsbRemoveDevice.
- Implement SetDeviceHandleData and RestoreUsbDevice.
- SubmitControlTransfer: Not all control request need data, in which case dont create a MDL and a PID_CODE_IN_TOKEN TD Descriptor.
- Fix bug in ReleaseMemory that caused memory not to be marked as free.
- Fix incorrect memory header size that resulted in memory corruption.

svn path=/trunk/; revision=50302

13 years agoUpdate rapps database
Daniel Reimer [Thu, 6 Jan 2011 12:44:01 +0000 (12:44 +0000)]
Update rapps database

svn path=/trunk/; revision=50297

13 years ago[WIN32K]
Timo Kreuzer [Thu, 6 Jan 2011 00:19:40 +0000 (00:19 +0000)]
[WIN32K]
Fix a bug in FLOATOBJ_DivLong

svn path=/trunk/; revision=50296

13 years ago[CRT]
Timo Kreuzer [Tue, 4 Jan 2011 22:29:43 +0000 (22:29 +0000)]
[CRT]
Fix build

svn path=/trunk/; revision=50291

13 years ago[CRT]
Timo Kreuzer [Tue, 4 Jan 2011 22:22:13 +0000 (22:22 +0000)]
[CRT]
- Rewrite broken _flsbuf and implement _flswbuf
- use _flswbuf in wstreamout
- Fixes broken text output in dwnl etc

svn path=/trunk/; revision=50290

13 years agoTRANSLATION: Fix browseui bulgarian resource filename.
Sylvain Petreolle [Tue, 4 Jan 2011 22:19:45 +0000 (22:19 +0000)]
TRANSLATION: Fix browseui bulgarian resource filename.

svn path=/trunk/; revision=50289

13 years ago[WIN32K]
Timo Kreuzer [Tue, 4 Jan 2011 18:18:28 +0000 (18:18 +0000)]
[WIN32K]
- Fix type of DCLEVEL::prgnClip / prgnMeta (PVOID -> PREGION)
- Move NtGdiGetRandomRgn to dcobjs.c

svn path=/trunk/; revision=50288

13 years ago[CRT]
Johannes Anderwald [Tue, 4 Jan 2011 17:52:34 +0000 (17:52 +0000)]
[CRT]
- Fix build

svn path=/trunk/; revision=50287

13 years ago[CRT]
Johannes Anderwald [Tue, 4 Jan 2011 17:29:10 +0000 (17:29 +0000)]
[CRT]
- Set errno when a overflow occurs in strtoull
- Fixes 2 wine tests failures in msvcrt:string

svn path=/trunk/; revision=50286

13 years ago[MSVCRT_WINETEST]
Johannes Anderwald [Tue, 4 Jan 2011 17:27:57 +0000 (17:27 +0000)]
[MSVCRT_WINETEST]
- Revert 50283

svn path=/trunk/; revision=50285

13 years ago[KERNEL32]
Roel Messiant [Tue, 4 Jan 2011 17:26:25 +0000 (17:26 +0000)]
[KERNEL32]
- ReadDirectoryChangesW: Treat the OVERLAPPED structure as an IO_STATUS_BLOCK, not one of its fields.

svn path=/trunk/; revision=50284

13 years ago[WIN32K]
Timo Kreuzer [Tue, 4 Jan 2011 16:53:23 +0000 (16:53 +0000)]
[WIN32K]
- Simplify error checks, by reordering code in NtGdiScaleViewportExtEx
- Simplify exception handling, use _SEH2_YIELD
- Change function order
- Minor code improvements

svn path=/trunk/; revision=50283

13 years ago[MSVCRT_WINETEST]
Johannes Anderwald [Tue, 4 Jan 2011 16:45:03 +0000 (16:45 +0000)]
[MSVCRT_WINETEST]
- Comment out test which fails in WinXP SP3

svn path=/trunk/; revision=50282

13 years ago[WIN32K]
Timo Kreuzer [Tue, 4 Jan 2011 15:52:59 +0000 (15:52 +0000)]
[WIN32K]
- Access the DC member directly instead of using IntGdiGetDCOrg
- Remove unused IntGdiGetDCOrg, GdiSetDCOrg, GdiGetDCOrgEx

svn path=/trunk/; revision=50281

13 years ago[WIN32K]
Timo Kreuzer [Tue, 4 Jan 2011 12:36:19 +0000 (12:36 +0000)]
[WIN32K]
Implement NtGdiGetBoundsRect and NtGdiSetBoundsRect. Patch by Samuel Serapion with modifications by me.

svn path=/trunk/; revision=50280

13 years agofix build
Timo Kreuzer [Mon, 3 Jan 2011 20:00:25 +0000 (20:00 +0000)]
fix build

svn path=/trunk/; revision=50279

13 years ago[CRT]
Timo Kreuzer [Mon, 3 Jan 2011 19:39:17 +0000 (19:39 +0000)]
[CRT]
Fix a number of errors in floating point output.

svn path=/trunk/; revision=50278

13 years ago[CMAKE]
Sylvain Petreolle [Mon, 3 Jan 2011 11:24:54 +0000 (11:24 +0000)]
[CMAKE]
Add apitests and pseh2_test.

svn path=/trunk/; revision=50277

13 years ago[CRT]
Timo Kreuzer [Mon, 3 Jan 2011 11:22:46 +0000 (11:22 +0000)]
[CRT]
Enable new printf implementation.

svn path=/trunk/; revision=50276

13 years ago[CRT]
Timo Kreuzer [Mon, 3 Jan 2011 11:00:28 +0000 (11:00 +0000)]
[CRT]
Fix a bug in _ecvt that makes msvcrt_winetest::printf crash

svn path=/trunk/; revision=50275

13 years ago[CRT]
Timo Kreuzer [Mon, 3 Jan 2011 10:33:58 +0000 (10:33 +0000)]
[CRT]
Fix several bugs in new printf implementation.

svn path=/trunk/; revision=50274

13 years ago[CRT]
Timo Kreuzer [Mon, 3 Jan 2011 01:07:54 +0000 (01:07 +0000)]
[CRT]
Improve new printf implementation:
- remove duplicated code and implement a generic function for all (v)s(w)(n)printf
- don't call _flsbuf for string streams, while this works on windows, it doesn't work correctly on reactos (bug!)
- Fix return error codes

svn path=/trunk/; revision=50273

13 years ago[SETUPAPI]
Roel Messiant [Mon, 3 Jan 2011 00:45:34 +0000 (00:45 +0000)]
[SETUPAPI]
- SetupDiClassNameFromGuidExW: Simplify interaction with registry.
- SetupDiCreateDeviceInfoW: Check for correct error value.
- SetupDiGetClassDescriptionExW: Rewrite to return the correct required size and prevent WCHAR sized buffer overflow.
- SetupDiGetClassDevsExW: Return INVALID_HANDLE_VALUE instead of NULL in failure case.

svn path=/trunk/; revision=50272

13 years ago[MSVCRT]
Timo Kreuzer [Sun, 2 Jan 2011 21:17:03 +0000 (21:17 +0000)]
[MSVCRT]
Apply a hack to msvcrt spec file to avoid duplicate definition of atexit. Mingw-w64 has an identical hack.

svn path=/trunk/; revision=50270

13 years ago[MINGW]
Timo Kreuzer [Sun, 2 Jan 2011 21:14:58 +0000 (21:14 +0000)]
[MINGW]
Revert r50267

svn path=/trunk/; revision=50269

13 years ago[MSVCRT_WINETEST]
Timo Kreuzer [Sun, 2 Jan 2011 20:39:40 +0000 (20:39 +0000)]
[MSVCRT_WINETEST]
Link explicitly to msvcrt, instead of importing half of the functions from ntdll.

svn path=/trunk/; revision=50268

13 years ago[MINGW]
Timo Kreuzer [Sun, 2 Jan 2011 20:38:42 +0000 (20:38 +0000)]
[MINGW]
Don't compile atonexit.c. atexit is exported from msvcrt.

svn path=/trunk/; revision=50267

13 years ago[MSVCRT]
Timo Kreuzer [Sun, 2 Jan 2011 20:15:14 +0000 (20:15 +0000)]
[MSVCRT]
Don't export _matherr

svn path=/trunk/; revision=50266

13 years ago[RBUILD]
Eric Kohl [Sun, 2 Jan 2011 20:04:53 +0000 (20:04 +0000)]
[RBUILD]
Fix "format not a string literal and no format arguments" build warnings.

svn path=/trunk/; revision=50265

13 years ago[NPFS]
Eric Kohl [Sun, 2 Jan 2011 19:37:08 +0000 (19:37 +0000)]
[NPFS]
- Add support for FileFullDirectoryInformation and FileBothDirectoryInformation.
- Fix an off-by-one bug in the buffer size calculation.
- Zero-initialize the return buffer.

svn path=/trunk/; revision=50264

13 years ago[NTOS]
Roel Messiant [Sun, 2 Jan 2011 19:30:26 +0000 (19:30 +0000)]
[NTOS]
- Reduce PDE/PTE confusion a little more.
- MiQueryMemoryBasicInformation: Fall back on MEMORY_AREA data in sections until the MM rewrite also covers these. See issue #5791 for more info.

svn path=/trunk/; revision=50263

13 years ago[KERNEL32]
Johannes Anderwald [Sun, 2 Jan 2011 16:54:00 +0000 (16:54 +0000)]
[KERNEL32]
- Fix heap corruptions in MoveFileWithProgress
- Fixes kernel32_winetest change crash
- Introduced in rev 18073 (25.Sept 2005)

svn path=/trunk/; revision=50262

13 years ago[PSDK]
Christoph von Wittich [Sun, 2 Jan 2011 14:21:47 +0000 (14:21 +0000)]
[PSDK]
sync urlmon.idl with wine 1.3.10

svn path=/trunk/; revision=50261

13 years ago[WIN32K]
Timo Kreuzer [Sun, 2 Jan 2011 13:05:51 +0000 (13:05 +0000)]
[WIN32K]
Improve LDEVOBJ_bLoadImage, use ExportSectionPointer from the GdiDriverInfo structure instead of calling RtlImageDirectoryEntryToData

svn path=/trunk/; revision=50260

13 years ago[NTOS]
Aleksey Bragin [Sun, 2 Jan 2011 09:30:24 +0000 (09:30 +0000)]
[NTOS]
- Temporary bring back the old boot image until I or sir_richard commit a proper fix.

svn path=/trunk/; revision=50259

13 years ago[NETCFGX]
Johannes Anderwald [Sat, 1 Jan 2011 21:34:17 +0000 (21:34 +0000)]
[NETCFGX]
- Fix case where there is only one static dns server set

svn path=/trunk/; revision=50258

13 years ago[IPHLPAPI]
Johannes Anderwald [Sat, 1 Jan 2011 21:13:07 +0000 (21:13 +0000)]
[IPHLPAPI]
- Rewrite name server enumeration routines
- Check if static dns entries are present before checking for dynamic dns entries
- Fixes static dns entries
[NETCFGX]
- GetPerAdapterInfo requires IP_PER_ADAPTER_INFO struct
- Fix reading static dns entries
- Delete static name server key, when changing dns servers to automatic (dhcp)
- Don't delete DhcpNameServer key yet, as more interaction is needed with dhcp service when changing from static dns to dynamic dhcp
- Should finally fix static dns when dhcp is active

svn path=/trunk/; revision=50257

13 years ago[VIDEOPRT/WIN32K]: Synchronize and share PEVENT/ENG_EVENT/VIDEO_PORT_EVENT implementa...
Sir Richard [Sat, 1 Jan 2011 18:15:25 +0000 (18:15 +0000)]
[VIDEOPRT/WIN32K]: Synchronize and share PEVENT/ENG_EVENT/VIDEO_PORT_EVENT implementation, as these objects are actually the same (and VideoPrt Event* APIs can be used on GRE Event Objects). Use ENG_EVENT structure from ntddvdeo.h instead of re-creating our own. Drivers using these interfaces will no longer explode.
[VIDEOPRT]: Add parameter checks to DeleteEvent and WaitForSingleObject.
[VIDEOPRT]: Fix WaitForSingleObject. It was waiting on the Object paramter itself -- which is the VideoPrt/ENG Event, not a real object, we have to wait on ->pKEvent instead.
[VIDEOPRT]: Fix WaitForSingleObject round two, it was returning the NT_STATUS, while VideoPrt should return VP_STATUS/Win32 error codes.
[WIN32K]: Allocate/free GRE events directly from pool, instead of using Eng APIs. Use documented tag for GRE Events (Dfsm), found in pooltag.txt
[WIN32K]: Implement EngMapEvent and EngUnmapEvent.

svn path=/trunk/; revision=50256

13 years agoProper fix for r50248 ;-)
Colin Finck [Sat, 1 Jan 2011 15:54:31 +0000 (15:54 +0000)]
Proper fix for r50248 ;-)
Happy New Year from my side as well!

svn path=/trunk/; revision=50254

13 years ago[CRT]
Timo Kreuzer [Sat, 1 Jan 2011 13:50:07 +0000 (13:50 +0000)]
[CRT]
Fix bugs in new printf implementation: use buffer size in _snprintf and check for the right failure return value of streamout_char.

svn path=/trunk/; revision=50251

13 years ago[NPFS]
Eric Kohl [Sat, 1 Jan 2011 12:40:24 +0000 (12:40 +0000)]
[NPFS]
- Add NpfsDirectoryControl routine in order to enumerate pipes.
- Use NpfsGetFcb and NpfsGetCcb to retrieve the FCB or CCB and use SEH to protect these routines.

svn path=/trunk/; revision=50250

13 years ago[usb/usbehci]:
Michael Martin [Sat, 1 Jan 2011 12:20:19 +0000 (12:20 +0000)]
[usb/usbehci]:
- Remove all hardware related routines from fdo.c as they are now in hardware.c
- Replace ExecuteControlRequest with new SubmitControlTransfer.
- For internal control requests (originating from ehci driver) use an event to signal request completion.
- When submitting non internal control request save the Irp in the software part of the QueueHead.
For these requests check for errors and complete the Irp with the appropriate URB Status when the QueueHead is complete.
- Misc code cleanup and dead code removal.
- UsbEhci now works as before and should be ready for some forward progress.

svn path=/trunk/; revision=50249

13 years agoHappy New Year!
Aleksey Bragin [Fri, 31 Dec 2010 23:06:19 +0000 (23:06 +0000)]
Happy New Year!

Dear ReactOS team, you're the best.

svn path=/trunk/; revision=50248