Commit graph

46257 commits

Author SHA1 Message Date
Aleksey Bragin
d4a462fbad [KERNEL32_WINETEST]
- Sam Arun Raj Seeniraj: Added new test cases to QueryDosDevice(). Should be sent to Wine (tm).
See issue #993 for more details.

svn path=/trunk/; revision=51394
2011-04-18 21:56:44 +00:00
Aleksey Bragin
a63e424516 Sam Arun Raj Seeniraj:
[KERNEL32]
- DefineDosDeviceW() is implemented and calls into csrss.exe CsrDefineDosDevice().
- Fixed a minor bug in DefineDosDeviceA(), as calling RtlCreateUnicodeStringFromAsciiz() prevented NULL lpTargetPath to be passed down to DefineDosDeviceW().
- Fixed a minor bug in QueryDosDeviceW() that causes lpTargetPath buffer to be returned with NULL string terminator placed at the wrong point in the buffer.

[WIN32CSR.DLL]
- Implemented CsrDefineDosDevice() in win32csr.dll, the symbolic links are created in global name space currently.

[SUBST.EXE]
- Implemented a subst.exe clone.
See issue #993 for more details.

svn path=/trunk/; revision=51393
2011-04-18 21:48:19 +00:00
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
eed6bbd835 [CMAKE]
* Remove duplicate set_rc_compiler calls.

svn path=/branches/cmake-bringup/; revision=51383
2011-04-17 17:10:37 +00:00
Amine Khaldi
e564c595f2 [CMAKE]
* Addendum to the previous commit.

svn path=/trunk/; revision=51382
2011-04-17 16:55:24 +00:00
Amine Khaldi
0bc61591d7 [CMAKE]
* Adopt the retar, I mean, actual way of handling resource files. This is a temporary measure until a windres issue is fixed.

svn path=/branches/cmake-bringup/; revision=51381
2011-04-17 16:54:57 +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
Rafal Harabien
e720b65b6d [CMAKE/RAPPS]
* Inform compiler about encoding in resource files using pragma. No pragmas caused problem because *.mc parser in cmake branch inserts pragma in its output files, which was included before other rc files
* Change RC files encoding to UTF-8 (without BOM)
* Fixes broken non-latin characters in rapps

svn path=/branches/cmake-bringup/; revision=51373
2011-04-17 09:31:31 +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
Amine Khaldi
8d86d0dbf1 [CMAKE]
* browseui: Don't link to mingw32 and coldname unconditionally (msvc).

svn path=/branches/cmake-bringup/; revision=51364
2011-04-15 22:54:00 +00:00
Amine Khaldi
ff5bcc8009 [CMAKE]
* Fix a typo.

svn path=/branches/cmake-bringup/; revision=51363
2011-04-15 22:51:17 +00:00
Amine Khaldi
54beb0a8e7 [CMAKE]
* Remove inflib from build. It's been superseded by newinflib.
* Rename newinflibhost and newinflib targets into inflibhost and inflib respectively.
* Update mkhive and usetup to link to the new targets.

svn path=/branches/cmake-bringup/; revision=51362
2011-04-15 22:49:50 +00:00
Amine Khaldi
f474fd859c [CMAKE]
* Back out r51360. The export in question is in ole32 (DllGetClassObject). This fixes comcat msvc build.

svn path=/branches/cmake-bringup/; revision=51361
2011-04-15 22:41:41 +00:00
Amine Khaldi
9d694e9d1c [CMAKE]
- Silence a linker warning about DllInitialize.

svn path=/branches/cmake-bringup/; revision=51360
2011-04-15 22:36:17 +00:00
Amine Khaldi
05e0ad424b [CMAKE]
* Empty CMAKE_C_STANDARD_LIBRARIES_INIT

svn path=/branches/cmake-bringup/; revision=51359
2011-04-15 22:34:20 +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
Amine Khaldi
b5250fa114 [CMAKE]
* Sync with trunk r51339.
* Move the static lib creation command from the toolchain file to gcc.cmake

svn path=/branches/cmake-bringup/; revision=51340
2011-04-14 12:50:32 +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
Amine Khaldi
46a8da69da [CMAKE]
* Sync with trunk r51323.

svn path=/branches/cmake-bringup/; revision=51329
2011-04-13 08:39:17 +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
Johannes Anderwald
2e8b524c99 [USBEHCI]
- Re-implement DMA buffer routines. It is now faster and consumes less memory overhead per allocated memory block.
- IoGetDeviceProperty needs a PDO
- Add few comments
- No need to clear buffer twice in CreateQueueHead / CreateDescriptor




svn path=/branches/cmake-bringup/; revision=51324
2011-04-13 01:37: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