Commit graph

45213 commits

Author SHA1 Message Date
Timo Kreuzer 46662954bd [WIN32K]
- Use shared locks for surfaces and palettes

svn path=/trunk/; revision=51392
2011-04-18 19:09:05 +00:00
Timo Kreuzer 186ed6e13d [WIN32K]
Set ulShareCount of static palettes to 1, so they won't get dereferenced to 0

svn path=/trunk/; revision=51391
2011-04-18 14:15:18 +00:00
Giannis Adamopoulos f53d1fd407 [win32k]
- GetKeyboardState and SetKeyboardState should use the thread key state and not the global key state

svn path=/trunk/; revision=51389
2011-04-18 09:13:31 +00:00
Amine Khaldi e564c595f2 [CMAKE]
* Addendum to the previous commit.

svn path=/trunk/; revision=51382
2011-04-17 16:55:24 +00:00
Eric Kohl 1b2a6e5f37 [ADVAPI32]
Implement EnumServiceGroupW.

svn path=/trunk/; revision=51380
2011-04-17 14:43:32 +00:00
Giannis Adamopoulos 3026082bde [win32k]
- Improve IS_KBD_MESSAGE macro. Should fix some more tests

svn path=/trunk/; revision=51379
2011-04-17 12:33:29 +00:00
Eric Kohl 4321ac7baa [EVENTVWR]
- Change string resource id prefix from IDC to IDS.
- Add missing string resources.

svn path=/trunk/; revision=51378
2011-04-17 11:58:26 +00:00
Giannis Adamopoulos cde9d99bc3 [win32k]
- Do not distinguish left and right keys in WH_KEYBOARD and key messages. Based on wine
Fixes several tests

svn path=/trunk/; revision=51377
2011-04-17 10:38:06 +00:00
Giannis Adamopoulos c280a2b6ae [user32_apitest]
- Some more tests for GetKeyState

svn path=/trunk/; revision=51376
2011-04-17 10:35:09 +00:00
Olaf Siejka 9c44037679 [VIDEOPRT]
- Check for the correct, just created, registry key. Fix
a wrong comparison. Patch by Thomas Faber.
See issue #6123 for more details.

svn path=/trunk/; revision=51375
2011-04-17 10:20:22 +00:00
Matthias Kupfer 7ce75cdf13 fix accidentally set property svn:executable
svn path=/trunk/; revision=51374
2011-04-17 09:50:07 +00:00
Olaf Siejka 04603e0af6 [CALC]
- Swedish translation by Jaix Bly.

See issue #6113 for more details.

svn path=/trunk/; revision=51371
2011-04-16 22:29:55 +00:00
Olaf Siejka 7de326fe0e [VIDEOPRT]
- Fix whitespace and logic order (formatting only). Patch by Thomas Faber
See issue #6123 for more details.

svn path=/trunk/; revision=51370
2011-04-16 22:16:25 +00:00
Rafal Harabien 66a33a5246 [SYSSETUP]
* Generate random computer name (REACTOS-xxxxxxx) in Setup. Patch by David Quintana <gigaherz at gmail dot com> modified by me
See issue #6099 for more details.

svn path=/trunk/; revision=51358
2011-04-15 20:42:07 +00:00
Timo Kreuzer 46a8c8f9fa [WIN32K]
Implement gdi pool. An allocator for user mode gdi object attributes.
The old method allocated a 4k page for every object, wasting 4k physical memory and 64k address space (allcoation granularity)
The new allocator creates a per process pool for each object attribute type. Allocations are done from "sections" that start with 1 page and grow dynamically up to 64k, if neccessary a new section is allocated. This will use about 1/10 of memory for dc attributes and 1/512 for brush attributes. Also allocation is way faster. Caching object attributes is not neccessary anymore.

svn path=/trunk/; revision=51357
2011-04-15 20:14:44 +00:00
Rafal Harabien 99c3b4ec57 [WIN32K]
* Revert part of 37148. One FontGDI is used for fonts with different sizes. Do not cache font metrics then and instead calculate them every time when needed. It fixes spacing in menus if some application uses default GUI font with size other than 11.
See issue #4106 for more details.

svn path=/trunk/; revision=51356
2011-04-15 20:03:44 +00:00
Rafal Harabien 423497b1b2 [SYSSETUP]
* Fix information about computer name length limit in Setup. Translators: please review

svn path=/trunk/; revision=51354
2011-04-15 16:54:25 +00:00
Timo Kreuzer 197cf31913 [WIN32K]
- Use shared locks for surfaces and palettes

svn path=/trunk/; revision=51352
2011-04-15 15:29:08 +00:00
Timo Kreuzer 8357192be7 [WIN32K]
- Use shared locks for surfaces and palettes
- Unimplement NtGdiEngUnlockSurface, it was wrong

svn path=/trunk/; revision=51351
2011-04-15 15:20:17 +00:00
Rafal Harabien ce720bbf52 [SYSSETUP]
* Computer name length is limited to 15 characters, not 63. Fixes possible buffer overflow
* Spotted by Victor Martinez

svn path=/trunk/; revision=51349
2011-04-15 14:29:14 +00:00
Matthias Kupfer ae8ebc72e4 property svn:executable removed
svn path=/trunk/; revision=51347
2011-04-15 12:17:50 +00:00
Matthias Kupfer 706a9911e2 potential memory problem fixed, obsolete assignment removed
svn path=/trunk/; revision=51346
2011-04-15 12:16:26 +00:00
Michael Martin a2b8986a0d [win32k]
- Move dereferencing of the MessageQueue from co_UserDestroyWindow to co_UserFreeWindow.
A reference is added to the MessageQueue for all windows created.co_UserFreeWindow is called for all windows and needs to be where the dereferencing of MessageQueue occurs.
This fixes NonPagedPool memory leak. See bug 6112 for more info.

svn path=/trunk/; revision=51345
2011-04-15 07:10:00 +00:00
Michael Martin 3b717045b6 [usbdriver]
- KbdDispatch: Set Status vice IoStatus.Status for all branches of switch. Use break instead of goto intcontfailure.
The previous code would set Status to what ever was in the IoStatus.Status of the IRP and return that Status.
Some times this would be STATUS_PENDING, which IIRC is a no-no.
This caused the kbdclass to enter into a wait that would never be satisifed hence blocking the keyboard thread.
This should fix the failure of keyboard input bugs.

svn path=/trunk/; revision=51344
2011-04-15 06:44:13 +00:00
Aleksey Bragin 1b2e00d581 [RTL]
- If there is no data provided and parameters are valid, fail with STATUS_SXS_KEY_NOT_FOUND.

svn path=/trunk/; revision=51339
2011-04-14 12:20:47 +00:00
Amine Khaldi c512ea5c43 [TRANSLATIONS]
Igor Paliychuk (mansonigor at gmail dot com):
* Update Ukrainian localization.
* Leftover from r51055: Update reactos.exe strings and resource sizes.
* Fix displaying of doskey localizations.

svn path=/trunk/; revision=51338
2011-04-14 12:13:38 +00:00
Amine Khaldi 4ae88bb7a4 [CMAKE]
- Reflect the recent user32_apitest changes. Please consider updating the cmake files when you alter the rbuild files in the future.

svn path=/trunk/; revision=51336
2011-04-14 11:55:40 +00:00
Aleksey Bragin 9561880163 [RTL]
- Properly check parameters in RtlFindActivationContextSectionString. Almost the same as Wine did, but factored out into a standalone function, improved undocumented flags checks and allowing null data pointer in certain cases.

svn path=/trunk/; revision=51333
2011-04-14 09:57:08 +00:00
Michael Martin 3203ddd6e1 [Win32k]
- Fix implementation of message callbacks,  now callbacks can be called across processes. 
- Fix some comments.

svn path=/trunk/; revision=51332
2011-04-14 01:21:38 +00:00
Matthias Kupfer 1968375672 remove obsolete object handling
svn path=/trunk/; revision=51331
2011-04-13 20:20:16 +00:00
Giannis Adamopoulos 45fc0e0951 [explorer]
- Use the shell default auto-arrangement positioning. Aloow using custom positioning when configured. This fixes the positioning of icons of the desktop to look like windows

svn path=/trunk/; revision=51330
2011-04-13 18:25:58 +00:00
Rafal Harabien b69fae78db [GDI32]
* DPtoLP/LPtoDP functions should return TRUE even if they get 0 or less points or if pointer to points is invalid. See gdi32:DPtoLP apitest.
* Fixes 24 gdi32:DPtoLP apitests.

svn path=/trunk/; revision=51328
2011-04-13 08:14:37 +00:00
Michael Martin 35e6c5fe82 [USB\USBEHCI]
- Implement ExecuteTransfer to replace SubmitTransfer.
- Start implentation for BulkTransfers and needed DMA. This needs much more work to be done correctly. We will get to it.
- Implement URB_FUNCTION_CLASS_INTERFACE.
- Add comments.
Change 3 of 3.

svn path=/trunk/; revision=51327
2011-04-13 04:48:50 +00:00
Michael Martin fe97558adf [USB\USBEHCI]
- For common buffer memory, only allocate one page and allocate more as needed. This implementation will most likely be replaced with janderwalds.
- Use a safecount while attempting to stop and start the controller, so that an error can be displayed vice doing endless loop for controllers that are misbehaving.
- Reorganize a few structuers and remove members of structures that are not used.
- Add comments for some of the DirectCall Interface Functions.
Change 2 of 3.

svn path=/trunk/; revision=51326
2011-04-13 04:43:25 +00:00
Michael Martin b6256418e9 [USB\USBEHCI]
- Fix linking of QueueHeads. Implement LinkQueueHeadToCompletedList and CleanupAsyncList. These functions are used to software link the completed queueheads to a completed list. Only after the driver handshakes with the controller can this memory be freed.
Fix a few incorrect values for QueueHead.
- EhciDefferedRoutine: Implement handling of completed QueueHeads by removing them from the AnsycList and setting any errors for failure.
- Reserved a QueueHead that will always be in the AsyncList Address Register. By setting it as the Head of Reclamation the controller can know when it has reached the end of the QueueHead list.
- Remove all code from FdoDispatchInternalDeviceControl. This should never be called by upper level drivers.
Change 1 of 3.

svn path=/trunk/; revision=51325
2011-04-13 04:33:14 +00:00
Giannis Adamopoulos 9c9874002e [shell32]
- Properly arrange icons in explorer shell view window. This also fixes navigating in files with keyboard arrows

svn path=/trunk/; revision=51323
2011-04-12 20:59:50 +00:00
Rafal Harabien e58c66359a [SHELL32]
* Return 1 in WM_ERASEBKGND when desktop is painted
* Fix background for desktop icons and their labels
* Moreover fixes explorer_new background

svn path=/trunk/; revision=51322
2011-04-12 18:45:06 +00:00
Rafal Harabien 7db2a95a80 [COMCTL32]
* Sync listview to Wine 1.3.17
* Set background and text color before calling DrawFocusRect. Those colors are used by monochrome brush during painting. Tested this function in Windows and our implementation is correct. Wine has DrawFocusRect not correctly implemented and that's why they don't see this bug. Should be sent to wine (tm).

svn path=/trunk/; revision=51321
2011-04-12 18:38:38 +00:00
Eric Kohl 0dda24faea [NPFS]
PATCH: Arty's fixes based on CMake branch testing. Just the NPFS code.
See issue #6103 for more details.

svn path=/trunk/; revision=51320
2011-04-11 17:52:06 +00:00
Aleksey Bragin 0669ecfaf3 [RAPPS]
- Swedish translation by Jan Blomqvist-Kinander.

svn path=/trunk/; revision=51319
2011-04-11 17:36:44 +00:00
Aleksey Bragin bdf1dd8864 [WIN32CSR]
- Swedish translation by Jan Blomqvist-Kinander.

svn path=/trunk/; revision=51318
2011-04-11 17:03:20 +00:00
Gabriel Ilardi 7281838670 [SNDVOL32]
Italian and Spanish translation updates.

svn path=/trunk/; revision=51317
2011-04-11 12:26:16 +00:00
Gabriel Ilardi e52e2fbef6 [WIN32CSR]
Italian translation of command prompt's window title

svn path=/trunk/; revision=51316
2011-04-11 10:56:45 +00:00
James Tabor e059680fea [Win32k]
- PATCH: Arty's fixes based on CMake branch testing. Just the timer code. See bug 6103.

svn path=/trunk/; revision=51315
2011-04-11 03:24:14 +00:00
Rafal Harabien 52ce60c8d8 [ADVAPI32]
* Copy RegQueryValueExA from Wine. Fixes 24 winetests fails which appeared after r51222. They are caused by calling RegQueryValueExA with buffer size set to large value. Old implementation was allocating new buffer with specified size (it was failing) and using unicode function. New implementation use given buffer size only when coping data.
See issue #6105 for more details.

svn path=/trunk/; revision=51314
2011-04-10 21:24:49 +00:00
Eric Kohl 9f1ea5942e [NETAPI32]
NetUserModalsGet failed if the domain SID returned by LsaQueryInformationPolicy was NULL. Handle the NULL SID case correctly.
See issue #6102 for more details.

svn path=/trunk/; revision=51313
2011-04-10 15:42:55 +00:00
Giannis Adamopoulos c08567e81e [user32_apitest]
- Add some more tests for SetCursorPos

svn path=/trunk/; revision=51312
2011-04-10 15:14:15 +00:00
Olaf Siejka dcd0dff4cc Fix build. The translation patch was outdated.
svn path=/trunk/; revision=51311
2011-04-10 14:55:11 +00:00
Matthias Kupfer 70bef06a00 Radek Liska <radekliska AT gmail DOT com>
- Czech translations for sndrec32 and sndvol32.
- See issue #6098 for details.

svn path=/trunk/; revision=51310
2011-04-10 13:19:01 +00:00
Johannes Anderwald d896f82fa7 [SHELL32]
- Fix control style of property dialogs
- Patch Edijs Kolesnikovics, terminedijs@yahoo.com, irc:Edijus

svn path=/trunk/; revision=51309
2011-04-10 10:44:05 +00:00