Commit graph

41888 commits

Author SHA1 Message Date
Eric Kohl 45e1070d6d [EVENTLOG]
Fix the calculation of the number of event records.

svn path=/trunk/; revision=51598
2011-05-05 20:27:05 +00:00
Gregor Schneider e2d00b9f53 [shell32]
* Igor Paliychuk <mansonigor at gmail dot com>:
- Remove duplicate string and add some missing resources
- Increase buffer sizes in FolderOptionsFileTypesDlg
- Update RU and UA translations
* Myself: update German translation

svn path=/trunk/; revision=51596
2011-05-05 20:22:06 +00:00
Gregor Schneider c2fdf7156e [libpng] Vincenzo Cotugno: update libpng to 1.52
See issue #6034 for more details.

svn path=/trunk/; revision=51595
2011-05-05 19:43:44 +00:00
Gregor Schneider 40fc5d623a [fonts]
- Update Dejavu fonts & documentation to version 2.33 (by Jon Voris, bug #6106)
- Update GNU FreeFonts & documentation to version 2010-09-19 (by Jon Voris, bug #6115)
- Update 3rdparty version info including recent Freetype sync

svn path=/trunk/; revision=51594
2011-05-05 18:30:18 +00:00
Gregor Schneider 720bbb3f51 [ping] Return 1 if an error occurs during parameter parsing or socket setup
See issue #6206 for more details.

svn path=/trunk/; revision=51593
2011-05-05 18:12:05 +00:00
Gregor Schneider 5ca533b988 [shell32] Re-add spaces to German translation
svn path=/trunk/; revision=51592
2011-05-05 17:54:32 +00:00
James Tabor 8273f88beb [User32|Win32k]
- Standardize keyboard flags for the input thread and send input. Next round will update the rest of user32 defwnd.c, combo.c and appswitch.c.
- Add the missing keyboard flags needed for menu operations for in-user applications.
- Setup a function to be used to get, set and clear queue flags of special use for User32 functions.

svn path=/trunk/; revision=51587
2011-05-05 12:43:31 +00:00
Gabriel Ilardi c10792a4a1 [shell32]
Folder options:
- Load text from language file.
- Fill in the extension and description.
Patch by Edijs Kolesnikovics <terminedijs at yahoo dot com>
- Fix an Italian string.
See issue #6208 for more details.

svn path=/trunk/; revision=51586
2011-05-05 12:06:34 +00:00
James Tabor ae63513829 [Win32k]
- Move hook call close to the keyboard message post. This allows the registering of Aly keys before the hook call. This fixes all but one GetKeyState Api Test.
- Fix GetAsync/KeyState error codes and the return for GetAsyncKeyState. See http://appdb.winehq.org/objectManager.php?sClass=version&iId=8516&iTestingId=13644
- Fix TranslateMessage, check for window and use the window pti for re-posting to message queue.
- Peeking hardware queue should be the same as other Peek queue.

svn path=/trunk/; revision=51583
2011-05-04 23:37:35 +00:00
Pierre Schweitzer dd5eeec0f9 [DESK]
Fix & complete French translation

svn path=/trunk/; revision=51578
2011-05-04 17:33:08 +00:00
Gabriel Ilardi 0b6d767a29 [LIBXML2]
- Update to version 2.7.8. Patch by Carlo Bramini.
- Installed and booted successfully to the desktop. Tested
abiword 2.6.4 and FF 2.0.0.20.

See issue #4988 for more details.

svn path=/trunk/; revision=51577
2011-05-04 15:48:34 +00:00
James Tabor 0c937e4c37 [User32]
- Fix loop when using arrow keys in menu mode, other miscellaneous code changes.

svn path=/trunk/; revision=51574
2011-05-04 12:18:57 +00:00
James Tabor 40222f1c75 [Win32k]
- Move up the chain to convert F10 to system key mode before going into the queue, so when in menu tracking, the message can be removed and processed, see bug 1009.

svn path=/trunk/; revision=51571
2011-05-04 01:31:47 +00:00
Gregor Schneider fd8c53e19c [explorer] Remove debug outputs added in r51524
svn path=/trunk/; revision=51568
2011-05-03 21:05:41 +00:00
Gabriel Ilardi a3c6e37bce [win32k]
- Handle font height == 0 also in TextIntGetTextExtentPoint (bug 5305)
- Remove hardcoded font height (11) and replace it with 
the default font height from the device context by Timo.

svn path=/trunk/; revision=51566
2011-05-03 14:55:52 +00:00
James Tabor 7aadf33a61 [Win32k]
- Fix TranslateAccelerator and added the missing routines. User32 wine msg test_accelerators works.
- Test application: http://www.transmissionzero.co.uk/computing/win32-apps-with-mingw/

svn path=/trunk/; revision=51562
2011-05-02 22:44:48 +00:00
Gregor Schneider 68e29fb6fc [libjpeg] Forgotten files from r51559
svn path=/trunk/; revision=51561
2011-05-02 21:01:14 +00:00
Rafal Harabien f4e0b88a0a [KERNEL32]
* Revert 51485. It needs more work.

svn path=/trunk/; revision=51560
2011-05-02 20:56:02 +00:00
Gregor Schneider 4fd826df1f [libjpeg] Update to version 8c
See issue #6022 for more details.

svn path=/trunk/; revision=51559
2011-05-02 20:13:40 +00:00
Eric Kohl ec3f21cfa2 [EVENTVWR/EVENTLOG]
Fix a double off-by-one bug:
- The eventlog service was reporting one event more than was available (+1).
- The event viewer did not display the latest event from the eventlog service (-1).

See issue #6182 for more details.

svn path=/trunk/; revision=51558
2011-05-02 19:38:23 +00:00
Matthias Kupfer 702353b092 firefox4 added
svn path=/trunk/; revision=51557
2011-05-02 17:32:43 +00:00
Rafal Harabien 94aaa3b4d5 [TASKMGR]
* Don't compare NTSTATUS to NO_ERROR. Use NT_SUCCESS macro instead. Spotted by dmex.

svn path=/trunk/; revision=51556
2011-05-02 16:45:41 +00:00
Rafal Harabien 6774978a84 [WIN32K]
* Fix ShowingCursor counter interpretation. Values >= 0 means cursor is shown, values <0 means cursor is hidden. Fixes few user32:cursoricon tests.

svn path=/trunk/; revision=51552
2011-05-02 11:38:30 +00:00
Timo Kreuzer 8d7e24af8f [FREETYPE]
Add freetype/freetype_ros.diff
See r46246

svn path=/trunk/; revision=51543
2011-05-02 09:53:03 +00:00
Timo Kreuzer 341e9e4d23 [FREETYPE]
Sync to version 2.4.4

svn path=/trunk/; revision=51542
2011-05-02 09:43:01 +00:00
Gabriel Ilardi 19c2502076 [EVENTVWR]
Italian and Spanish translation updates.

svn path=/trunk/; revision=51541
2011-05-02 07:59:16 +00:00
James Tabor 110864eec5 [Win32k]
- Fix shift key handling, see bug 6175.

svn path=/trunk/; revision=51540
2011-05-02 07:40:04 +00:00
Aleksey Bragin b86b0d1048 [KERNEL32]
- Initialize ViewSize to 0 when mapping view of section. Fixes DLLs registration problems in 2nd stage (happening all the time with the ldr rewrite).

svn path=/trunk/; revision=51539
2011-05-01 22:00:14 +00:00
Olaf Siejka 8b5ab2d248 [CHARMAP]
- Translation update

[EVENTVWR]
- Translation update

svn path=/trunk/; revision=51538
2011-05-01 21:36:15 +00:00
Gregor Schneider e2dfab00f4 [charmap]
- Carlo Bramini: implement a skeleton for the charmap advanced view, Italian translation included
- German translation added by myself
See issue #6065 for more details.

svn path=/trunk/; revision=51537
2011-05-01 19:16:58 +00:00
Eric Kohl 2b77604a9f [EVENTVWR]
Replace some hard-coded strings by resource strings.

svn path=/trunk/; revision=51536
2011-05-01 18:47:13 +00:00
Rafal Harabien 8ba552d1a3 [RAPPS]
* Change color of description richedit when system colors are changed

svn path=/trunk/; revision=51533
2011-05-01 15:45:50 +00:00
Gregor Schneider c81830d2e6 [regedit] Process WM_COMMAND button click messages in the local window as well
See issue #5927 for more details.

svn path=/trunk/; revision=51532
2011-05-01 15:16:55 +00:00
Rafal Harabien 16b032b455 [DESK]
* Fix a bug when after changing color scheme Apply and then OK is clicked. Background color was restored to the previous one in this case. Spotted by Gabriel Ilardi.

svn path=/trunk/; revision=51531
2011-05-01 15:07:35 +00:00
Rafal Harabien aea7bfcd56 [TASKMGR]
* Make buttons on applications page longer, so polish text fits

svn path=/trunk/; revision=51530
2011-05-01 14:35:58 +00:00
Eric Kohl 957e387479 [EVENTLOG]
- Add event sources "EventLog" and "Service Control Manager" to the registry.
- Implement an internal event reporting function and report the successful start of the event logging service.

svn path=/trunk/; revision=51529
2011-05-01 13:35:51 +00:00
Eric Kohl 18ea9e1c9d [NETEVENT]
Fix a little typo.

svn path=/trunk/; revision=51528
2011-05-01 13:23:59 +00:00
Rafal Harabien 3fe6ca77a5 [WIN32K]
* Do not reference current thread before sending message to it. It was causing thread to be a ghost if ExitThread was called in WndProc.
* Hold only UserRefObjectCo reference on windows when sending messages to them.

svn path=/trunk/; revision=51527
2011-05-01 13:15:30 +00:00
Rafal Harabien 606747e15c [SHELL32]
* Properly support WM_SYSCOLORCHANGE in ShellView window. Changing system colors in ReactOS works perfectly now :)

svn path=/trunk/; revision=51526
2011-05-01 13:01:38 +00:00
Rafal Harabien e094f54623 [WIN32K]
* Redraw desktop after change of system colors. Inspired by Wine

svn path=/trunk/; revision=51525
2011-05-01 12:59:48 +00:00
Rafal Harabien 9bee914885 [EXPLORER]
* Properly support WM_SYSCOLORCHANGE

svn path=/trunk/; revision=51524
2011-05-01 12:58:15 +00:00
Rafal Harabien 0bbfb26d0f [APPLICATIONS]
* Properly support WM_SYSCOLORCHANGE in msconfig, mspaint, rapps, regedit and regedit

svn path=/trunk/; revision=51523
2011-05-01 12:53:10 +00:00
Rafal Harabien 8311cfe217 [COMCTL32]
* Sync Rebar to Wine 1.3.19
* Properly support WM_SYSCOLORCHANGE in Rebars
* Update comctl32_ros.diff

svn path=/trunk/; revision=51522
2011-05-01 12:49:38 +00:00
James Tabor 0f43b7af51 [Win32k]
- Patch by Erich HooverSend: WM_SYSKEYDOWN and WM_SYSKEYUP when the 'F10' key is used. See wine bug 19383 and http://www.winehq.org/pipermail/wine-patches/2009-October/079871.html for details.
- Update key state for all hardware postings.

svn path=/trunk/; revision=51521
2011-05-01 11:51:22 +00:00
Giannis Adamopoulos 2aaa0b9e08 [winlogon]
- Implement restarting the shell in case of a failure. kudos to hpoussin

svn path=/trunk/; revision=51520
2011-05-01 09:59:01 +00:00
Giannis Adamopoulos 5f8889d8b2 [win32k]
- Do not try to initialize thread info in UserGetWindowObject. Do it in thread callout. Removing this hack is needed in order to use UserPostMessage in ProcessCallout when a process is terminating
- Notify winlogon that the shell is exiting in order to restart the shell

svn path=/trunk/; revision=51519
2011-05-01 09:20:15 +00:00
Hervé Poussineau 4f0424990b Fix compilation
svn path=/trunk/; revision=51518
2011-05-01 08:17:26 +00:00
Hervé Poussineau f9d566f139 [freeldr] Add PXE "filesystem"
svn path=/trunk/; revision=51517
2011-05-01 08:11:43 +00:00
Hervé Poussineau d4e292197b [freeldr] ramdisk: allocate memory with right type
This fixes NT boot type with a ramdisk, but ntoskrnl part is still broken

svn path=/trunk/; revision=51516
2011-05-01 08:01:05 +00:00
Hervé Poussineau 8973f39c75 [freeldr] Handle ramdisks < 8MB
svn path=/trunk/; revision=51515
2011-05-01 07:57:47 +00:00
Eric Kohl a6edd599e3 [NETEVENT]
- Remove netevent.c and netevent.spec because netevent.dll is a resource-only dll.
- Set entrypoint to 0.

svn path=/trunk/; revision=51514
2011-04-30 23:41:40 +00:00
Eric Kohl 5dd119d642 [EVENTLOG]
Implement an event source list and use it to find the event log file for a given event source when an event was reported.

svn path=/trunk/; revision=51513
2011-04-30 22:33:53 +00:00
James Tabor 94050d9e54 [Win32k]
- Update key state when key and hardware is set before the event set. This allows input.c to post and set key states.

svn path=/trunk/; revision=51512
2011-04-30 22:17:55 +00:00
Eric Kohl a4b0bea539 [SMSS]
Fix for the loading of the "KnownDlls" in SMSS. Patch by Hermès BÉLUSCA - MAÏTO.
The patch was applied without changes to comments, indentation and coding style. 

See issue #6159 for more details.

svn path=/trunk/; revision=51511
2011-04-30 22:09:16 +00:00
Rafal Harabien a41476b164 [COMCTL32]
* Properly support WM_SYSCOLORCHANGE in ListView controls with default background. Should be sent to Wine (tm)

svn path=/trunk/; revision=51510
2011-04-30 21:41:15 +00:00
James Tabor 452b5fc972 [Win32k]
- Clear and set send erase background bit when sending WM_ERASEBKGND and if return zero reset the bit. This prevents a message loop in riched20 when calling GetUpdateRect. Spotted by Michael Martin.

svn path=/trunk/; revision=51509
2011-04-30 21:14:11 +00:00
Rafal Harabien dde695503b [SNDVOL32 & TASKMGR]
* Properly support WM_SYSCOLORCHANGE

svn path=/trunk/; revision=51508
2011-04-30 19:32:37 +00:00
Gabriel Ilardi 68b271c187 [SUBST]
Italian update by Paolo Devoti.
See issue #6178 for more details.

svn path=/trunk/; revision=51505
2011-04-30 15:55:13 +00:00
Amine Khaldi dd8253dc8c [CRT/MINGW-W64]
* Reorganize dll entry and C runtime initialization. By Kai Tietz.

svn path=/trunk/; revision=51504
2011-04-30 14:26:21 +00:00
Matthias Kupfer 426f261823 Add Python 3
svn path=/trunk/; revision=51503
2011-04-30 11:56:02 +00:00
Gabriel Ilardi 89ea3624be [NOTEPAD]
Revert 51497, this is really a hack, sorry.

svn path=/trunk/; revision=51500
2011-04-30 00:49:10 +00:00
Giannis Adamopoulos b68a7983f1 [explorer]
- Return 1 when explorer terminates. This value lets winlogon know that explorer terminated without errors and it doesn't need to restart

svn path=/trunk/; revision=51499
2011-04-29 21:59:48 +00:00
Giannis Adamopoulos 8a518bb78d [taskmgr]
- When terminating an application use 1 as exit code. This is used by Task Manager in windows. It also prevents explorer from restarting in windows
- Disable redrawing the list of processes while the list is updated. Fixes flicker in windows

svn path=/trunk/; revision=51498
2011-04-29 21:49:37 +00:00
Gabriel Ilardi 5197d7eb95 [NOTEPAD]
Patch by Edijs Kolesnikovics: Write default font, weight and point size when run for the first time. That's what ms notepad does too.
See issue #5305 for more details.

svn path=/trunk/; revision=51497
2011-04-29 21:47:53 +00:00
Giannis Adamopoulos 1396412b7c [win32k]
- UserSetProcessWindowStation: Use PsGetProcessWin32WindowStation and PsSetProcessWindowStation. Close the prevoious window station handle only when the window station was not set by UserSetProcessWindowStation (should be the case for console apps)

svn path=/trunk/; revision=51496
2011-04-29 17:50:30 +00:00
Gabriel Ilardi 3ff2ee5566 [DESK]
French translation by Jeisson Toscano. I adjusted some dialogs to make text fit in.
See issue #6028 for more details.

svn path=/trunk/; revision=51495
2011-04-29 15:58:37 +00:00
Gabriel Ilardi 540ec7e00a [rapps]
Jeisson Toscano: French update + some Spanish translation updates (with corrections from vicmarcal and me)
See issue #6012 for more details.

svn path=/trunk/; revision=51494
2011-04-29 14:01:03 +00:00
Olaf Siejka 2081b4bf88 - Swedish translation of charmap, find, dxdiag, mmc, mplay32, msconfig, devmgmt, eventvwr, servman, mstsc, ipconfig, ping, notepad, rapps, regedit, 3dtext, logon, shutdown, sndrec32, sndvol32, usetup, vminst and cmd. Patch by Jan Blomqvist Kinander (JaixBly [at] spray [dot] se)
[SETUP][USETUP]
- Translation update by Adam "Saibamen" Stachowicz. See issue #6171 for more details

svn path=/trunk/; revision=51492
2011-04-29 13:07:12 +00:00
Rafal Harabien 541978ae64 [KERNEL32]
* Fix formatting. No code changes.

svn path=/trunk/; revision=51486
2011-04-28 22:33:50 +00:00
Rafal Harabien 6fd65190b1 [KERNEL32]
* Use current directory in GetDriveType if no path is given
* Check if path is properly ended
* Remove slash from end when calling NtCrateFile function
* Fixes few kernel32_apitest tests and floppy icon in My Computer if no floppy is inserted
See issue #6148 for more details.

svn path=/trunk/; revision=51485
2011-04-28 22:15:39 +00:00
Giannis Adamopoulos 16afe3648f [win32k]
- Store the initial desktop handle and use it evey time a new thread is created.

svn path=/trunk/; revision=51483
2011-04-28 20:33:16 +00:00
Gregor Schneider f80c0cc156 [calc] Fix degree to radians conversion
See issue #3018 for more details.

svn path=/trunk/; revision=51482
2011-04-28 20:17:14 +00:00
Gregor Schneider 7d857e4ff3 [win32csr] Implement routines to allow copy, paste and select all on console windows
See issue #4068 for more details.

svn path=/trunk/; revision=51481
2011-04-28 19:59:16 +00:00
Giannis Adamopoulos f2fa7073c4 [win32k]
- Use ObCloseHandle instead of ZwClose when closing window station handles

svn path=/trunk/; revision=51480
2011-04-28 19:52:23 +00:00
Giannis Adamopoulos 654d08212e [win32k]
- Call update_input_key_state correctly

svn path=/trunk/; revision=51479
2011-04-28 19:26:09 +00:00
Timo Kreuzer f685f1aeb0 [WIN32K]
- Don't use exclusive locks for pens
- Don't try to delete the window update region
- Don't ignore pid in GreIsHandleValid
- Check if handle is valid before deleting it in DC_Cleanup
- Silence a DPRINT

svn path=/trunk/; revision=51475
2011-04-28 14:29:47 +00:00
Timo Kreuzer c0dcdb6728 Fix release build
svn path=/trunk/; revision=51472
2011-04-28 08:50:27 +00:00
Gabriel Ilardi 3c6f59eacf [mshtml]
Revert associations for ie, we can't use them. Spotted by encoded.
See issue #6158 for more details.

svn path=/trunk/; revision=51471
2011-04-28 08:26:49 +00:00
Timo Kreuzer 9ff568fd7d [WIN32K]
Rewrite of the GDI handle manager

- The old handle manager used a completely retarded spinlock in combination with KeDelayExecutionThread() for both exclusive
and shared locks. This is probably the most uneffective algorithm possible. It was also duplicating code everywhere and it was a overall mess It 

is now replaced with a lock-free reference counter for shared locks and a pushlock for exclusive locks. -> Better performance and scalability.
- Allocate user mode object attributes from the new gdi pool. This way, we don't need any caching, since the pool serves as a cache. Its also 

much faster and uses much less memory.
- Allow object allocations of different size, instead of fixed size from a table. This way a single allocation can take care of actual needs.
- Allow allcoating objects without a handle and insert them into the handle table later
- Properly synchronize the process GDIHandleCount. Now gdiview and taskmanager show the correct number of gdi handles.
- Implement a new event tracking system, that is capable of tracking all reverences and locks of objects and pool allocations to help track 

possible leaks
- Make sure that all objects of a process are deleted in cleanup
- Make sure all usermode memory allocations are freed, when cleaning up the process pool.
- Make sure that each object type is using the correct type of lock (either shared or exclusive, not a mixture)
- Fix some object / reference leaks
- Lots of inferface improvements
- Use global variables for certain things instead of members in the mapped gdi handle table
- Make IntSysCreateRectpRgn create a region without a handle
- Fix detection od source and mask use in GreStretchBltMask
- Use GDIOBJ_bLockMultipleObjects in NtGdiCombineRegion to avoid possible deadlocks
- Fix NtGdiAbortPath to reset DCPATH_ACTIVE flag in the dc and only bail out on error, instead of always
- Replace DC_AllocateDcAttr and DC_AllocDcAttr with DC_bAllocDcAttr using the new user mode pool
- Remove DCU_SyncDcAttrtoUser and DCU_SynchDcAttrtoUser. Those functions were unused and didn't do anything useful anyway,
- Replace IntGdiSetDCOwnerEx and DC_SetOwnership with GreSetDCOwner, remove unused NoSetBrush parameter
- Replace GDIOBJ_bValidateHandle and IsObjectDead with GreIsHandleValid
- Chage GDIOBJ_bLockMultipleObjects: pass object type, return a BOOL, whether all objects could be locked, cleanup on failure

svn path=/trunk/; revision=51470
2011-04-28 08:26:46 +00:00
Timo Kreuzer de078e7357 [WIN32K]
Don't send messages from or to a thread in cleanup. Fixes possible deadlock.

svn path=/trunk/; revision=51469
2011-04-27 23:49:09 +00:00
James Tabor b39193c83d [Win32k]
- Fix KsStudios actions with Hooks. 

svn path=/trunk/; revision=51468
2011-04-27 23:09:45 +00:00
Giannis Adamopoulos e29b0d8b1f [win32k]
-Fix a case when a window is created and we don't have a monitor created yet. (This can happen when we may attempt to use gui on demand)

svn path=/trunk/; revision=51464
2011-04-27 12:33:16 +00:00
Gabriel Ilardi 7ed79f5ff3 [SUBST]
Add Italian and Spanish translations.

svn path=/trunk/; revision=51463
2011-04-27 07:09:47 +00:00
James Tabor 0f669f42d6 [User32]
- Sync up menu without the Right to Left support. Still missing needed changes for adding it.
- Patches by Alexandre Julliard and Dmitry Timoshkov.

svn path=/trunk/; revision=51461
2011-04-26 03:31:15 +00:00
James Tabor ee43f54510 [Win32Csr]
- Hack ReactOS to boot again! See bug 5655.

svn path=/trunk/; revision=51460
2011-04-26 00:01:03 +00:00
James Tabor 16f7899e27 [User32|Win32csr]
- Move AppSwitch to User32.

svn path=/trunk/; revision=51459
2011-04-25 23:14:06 +00:00
Amine Khaldi e9b2fe6591 [CRT/MINGW-W64]
* Call pei and __main before possible invocation of DllEntryPoint. By Kai Tietz.

svn path=/trunk/; revision=51458
2011-04-25 21:55:41 +00:00
Timo Kreuzer 7ba64c2ad6 [win32k]
Acquire ownership of the window clip region, before deleting it. Fixes a region leak.

svn path=/trunk/; revision=51457
2011-04-25 21:53:06 +00:00
Johannes Anderwald 2e7e8bb0f6 [MMIXER]
- Merge 50674 to trunk:
- Allocate memory for the logical pin array
- Use the correct counter variable for logical pin array
- Found by msvc
See issue #6143 for more details.

svn path=/trunk/; revision=51455
2011-04-25 20:34:41 +00:00
Sylvain Petreolle d3561afa95 [SHIMGVW]
Implement imageview_fullscreenW.

svn path=/trunk/; revision=51454
2011-04-25 19:02:07 +00:00
Sylvain Petreolle 50c0e55317 sndrec32, clb, shimgvw:
French translations by Jason Toscano <JasonGenie at gmail dot com>
Corrections/adjustements by me

svn path=/trunk/; revision=51453
2011-04-25 18:59:20 +00:00
Aleksey Bragin 3d60cef193 Sam Arun Raj Seeniraj:
[NTOSKRNL.EXE]
- Complemented existing stub routines ObpDeleteSymbolicLinkName() and ObpCreateSymbolicLinkName(). Now when symbolic links are created, they are checked for dos drive mapping and ObSystemDeviceMap is updated accordingly.
- Updates to ObpDeviceMapLock are protected by a guarded mutex (changed from fast mutex by Aleksey Bragin).
- Aleksey Bragin: Fix concurrent access issues in ObDereferenceDeviceMap. The DeviceMap read/write operation must be atomic (within the ObpDeviceMapLock region).

[SUBST.EXE]
- Removed hard coded strings and moved it to resource file.

[WIN32CSR.DLL]
- Added a workaround, when target path end with a trailing '\', the substituted drive fails to parse to the target, this is a bug in the object manager, but working around it in CsrDefineDosDevice() by stripping trailing '\'.

See issue #993 for more details.

svn path=/trunk/; revision=51452
2011-04-25 16:08:00 +00:00
James Tabor f34a5b0b2d [Win32k]
- Need this file too.

svn path=/trunk/; revision=51451
2011-04-25 15:31:49 +00:00
James Tabor 6c4a25f386 [User32|Win32k]
- Isolated Alt-Tab/Esc issues. Placed update_input_key_state when posting to a queue like wine. This fixed the shift key checks. The Alt-Space is handled after a Translate Message call (WM_SYSCHAR), developers need to check application code to help support it (ConCtrl32). Will move AltSwitch.c from win32csr and port patch from bug 5378 to User32. ReactOS registers the Switch Class in Win32k and it is not used.
- Implemented the rest of HotKey Support. ReactOS Explorer does not save hotkey actions.
- See related bugs 1091.

svn path=/trunk/; revision=51450
2011-04-25 15:18:39 +00:00
Eric Kohl 30fde9e816 [PSDK]
Add some missing device class GUIDs.

svn path=/trunk/; revision=51449
2011-04-25 14:01:54 +00:00
Olaf Siejka 6b21aeb9a3 - Slovakian translation updates for rapps, shell32 and win32csr.
[CALC] 
- Conversion fix for Farenheit.

Patches by Mario Kacmar

svn path=/trunk/; revision=51448
2011-04-25 11:32:28 +00:00
Amine Khaldi 2a9813d015 [PEFIXUP]
* Set IMAGE_SCN_MEM_NOT_PAGED flag for read-only data section (.rdata). Patch by Pavel Pisa.
See issue #5618 for more details.

svn path=/trunk/; revision=51447
2011-04-24 17:15:23 +00:00
Aleksey Bragin 0e5118d97b [NTOSKRNL/KE]
- Correctly return whether there is a kernel APC pending in KiSwapContextExit. Fixes IRQL asserts seen in bugs 5955 and 5777. Michael Martin's help in finding and fixing this bug was invaluable. Also thanks to Art Yerkes and testing team for additional information.
See issue #5955 for more details.

svn path=/trunk/; revision=51445
2011-04-24 11:24:37 +00:00
Olaf Siejka 28b188a8e9 - Swedish translation of calcs, charmap, doskey, more, dxdiag, fontview, kbswitch, logoff, magnify and mmc
- Swedish translation adjustments of calc and find

- Fix comments in magnify

Patch by Jan Blomqvist Kinander (JaixBly [at] spray [dot] se)

svn path=/trunk/; revision=51444
2011-04-24 10:05:12 +00:00
Michael Martin 7e9f462dbd [ntoskrnl]
- Fix a type from rev 19847. Only if the KernelMode List is not empty are there pending APCs.

svn path=/trunk/; revision=51442
2011-04-24 06:48:50 +00:00
Eric Kohl 39eeae29f8 [SERVICES]
Disable more debug messages.

svn path=/trunk/; revision=51439
2011-04-23 14:40:30 +00:00
Eric Kohl 5e449dfe39 [NPFS]
Silence some debug messages.

svn path=/trunk/; revision=51438
2011-04-23 11:26:16 +00:00
Eric Kohl 2ec4368714 [CLASS2]
Prepare ReactOS for the change from the ancient 32 sectors / 64 tracks disk layout (used until Windows NT4) to the modern 63 sectors / 255 tracks disk layout (used since Windows 2000).

svn path=/trunk/; revision=51437
2011-04-23 10:52:01 +00:00
Gregor Schneider 87a668d95f [shell32] Split declarations and operations, in case any pure C compiler cares
svn path=/trunk/; revision=51436
2011-04-22 22:58:09 +00:00
Gregor Schneider 2fda6e7d2a [shell32] Pass an argument array to FormatMessage to insert the filename details into error messages (instead of failing)
See issue #5977 for more details.

svn path=/trunk/; revision=51435
2011-04-22 22:53:31 +00:00
Gregor Schneider 6a89b41bff [ipconfig] Respect the size parameter in the LoadStringAndOem helper function, fixes "ipconfig /?"
See issue #6146 for more details.

svn path=/trunk/; revision=51434
2011-04-22 21:29:30 +00:00
Eric Kohl 63bd3c88e9 [SERVICES]
RChangeServiceConfig2W: Use the error code of a call to RegSetValueExW.

svn path=/trunk/; revision=51429
2011-04-22 15:18:31 +00:00
Amine Khaldi d05dbec4a3 [NETID]
* Use EDITTEXT instead of LTEXT. Patch by Edijs Kolesnikovics <terminedijs at yahoo dot com>
See issue #6129 for more details.

svn path=/trunk/; revision=51428
2011-04-22 14:23:49 +00:00
Eric Kohl d58660ce71 [SERVICES]
Lock the service database in order to protect it from concurrent access.

svn path=/trunk/; revision=51427
2011-04-22 14:09:21 +00:00
Amine Khaldi 295e7d388c [Translations]
* explorer-new: Fix some wrong UK and RU translations.
* shell32: Update UK and RU translations.
* Patch by Igor Paliychuk <mansonigor at gmail dot com>

svn path=/trunk/; revision=51426
2011-04-22 14:07:22 +00:00
Gabriel Ilardi b0d9033638 [shimgvw]
Add Italian translation.
[mplay32]
Fix Italian translation for play.

svn path=/trunk/; revision=51424
2011-04-22 12:30:50 +00:00
Rafal Harabien d8e1c6609b [MPLAY32]
* Move "Play" string from shell32. It will be used in audio files context menu in explorer

[SHIMGVW]
* Move "Preview" string from shell32. It will be used in image files context menu in explorer
* Add Polish translation

[SHELL32]
* Remove "Play" and "Preview" translations - they shouldn't be in shell32
* Add "explore" translation for folder context menu

svn path=/trunk/; revision=51423
2011-04-22 11:51:08 +00:00
Gregor Schneider 0314742b01 [kernel32] Radek Liska: sync czech NLS resources to Wine
See issue #6122 for more details.

svn path=/trunk/; revision=51419
2011-04-21 21:59:17 +00:00
Timo Kreuzer 3b11a6bdbc [CRT]
Fix a typo in a comment

svn path=/trunk/; revision=51418
2011-04-21 21:49:46 +00:00
Timo Kreuzer 35a1d66de7 [WIN32K/GDI32]
Add official ENTRY structure definition

svn path=/trunk/; revision=51417
2011-04-21 21:48:24 +00:00
Gregor Schneider 7037613d3d [cardlib] Install a button release callback
[spider] Use the button release callback instead of button click callbacks
See issue #6125 for more details.

svn path=/trunk/; revision=51416
2011-04-21 21:25:30 +00:00
Gregor Schneider f3aa24aa4f Rename paint to mspaint to maintain script compatibility
See issue #6071 for more details.

svn path=/trunk/; revision=51415
2011-04-21 21:05:47 +00:00
James Tabor a6294542d0 - Add Unicows to packing list.
svn path=/trunk/; revision=51414
2011-04-21 16:43:52 +00:00
Rafal Harabien a861f7c282 [KERNEL32]
* Properly check if buffer given to GetComputerName is too small. Fixes hostname.exe if computer name is MAX_COMPUTERNAME_LENGTH long (the default for bootcd since it's generated randomly in Setup).
* Simplify it a bit

svn path=/trunk/; revision=51412
2011-04-20 21:31:41 +00:00
Timo Kreuzer be4bb69ef8 [WIN32K]
Don't try to lock a dcs clip region if its NULL

svn path=/trunk/; revision=51411
2011-04-20 21:10:13 +00:00
Rafal Harabien 1e27c057e4 [FLOPPY]
Formatting only, no code changes.

svn path=/trunk/; revision=51410
2011-04-20 18:13:27 +00:00
Rafal Harabien 057f42a554 [FLOPPY]
Increase floppy drives count in global ConfigurationInformation. Fixes not working floppies in explorer.
See issue #4236 for more details.

svn path=/trunk/; revision=51409
2011-04-20 17:44:12 +00:00
James Tabor a75c77dfa7 [Unicows]
- Import wine unicows for Adobe Reader 7.1.0. See bug 5560.

svn path=/trunk/; revision=51408
2011-04-20 04:55:08 +00:00
James Tabor 81a19f5ad5 [Win32k]
- This should fix the dcattr leaked when deleting a DC, See bug 6119.

svn path=/trunk/; revision=51405
2011-04-19 18:18:19 +00:00
James Tabor b307a60502 [Win32k]
- Replace patch point for forced DC removal. See bug 6119.

svn path=/trunk/; revision=51403
2011-04-19 17:18:05 +00:00
Gabriel Ilardi e3c5f3cdd8 [win32csr/file.c]
Add missing new lines to some DPRINT1

svn path=/trunk/; revision=51399
2011-04-19 07:59:23 +00:00
Amine Khaldi 27bd630de0 * Fix build.
svn path=/trunk/; revision=51395
2011-04-18 22:17:25 +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
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
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