Commit graph

45295 commits

Author SHA1 Message Date
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
Rafal Harabien ee795b8b1e [APITESTS]
* Add GetDriveType tests. Some fails in ReactOS
* Fix few rbuild files

svn path=/trunk/; revision=51484
2011-04-28 22:10:51 +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