reactos.git
13 years ago[RBUILD]
Christoph von Wittich [Sat, 15 May 2010 20:37:24 +0000 (20:37 +0000)]
[RBUILD]
delete outdated codeblocks backend (codeblocks does not support all features needed to build ros)

See issue #5381 for more details.

svn path=/trunk/; revision=47227

13 years ago[win32k]
Michael Martin [Sat, 15 May 2010 19:40:33 +0000 (19:40 +0000)]
[win32k]
- Change the first parameter type from HWND to PWINDOW_OBJECT for IntKillTimer as it makes more sense.
Activate IntSetTimer, already done by James.
- Add flag TMRF_DELETEPENDING. Destroy timers when this flag is set in ProcessTimers to allow any timers that have expired to have the WM_SYSTIMER/WM_TIMER messages posted to message queue before being destroyed.
- Fix error in FindTimer, it was always returning a Timer and it needed to return NULL if the specified timer did not exist.
- Fix error in PostTimerMessages, need to handle cases where the Window object is NULL which occurs when requesting messages for any window belonging to the thread.
- In co_IntPeekMessage, simply call PostTimerMessages to have WM_SYSTIMER/WM_TIMER messages posted for expired timers. Remove call to old timer message handling.
- TODO: Code using the old timer implementation needs removed.
- Fixes bugs #2393, #3634, #2835. Commit dedicated to JT and Mr. Roboto.

svn path=/trunk/; revision=47226

13 years ago[SYSAUDIO]
Johannes Anderwald [Sat, 15 May 2010 19:05:58 +0000 (19:05 +0000)]
[SYSAUDIO]
- Don't build the pin descriptor as this will make problems with dynamic audio devices which dynamically adjust their audio pins
- Remove dead code

svn path=/trunk/; revision=47225

13 years ago[win32k]
Michael Martin [Sat, 15 May 2010 18:30:05 +0000 (18:30 +0000)]
[win32k]
- The description and changes made regarding WM_ACTIVATEAPP messages in r47126 were partially incorrect, the code was mostly correct.

svn path=/trunk/; revision=47224

13 years ago[PORTCLS]
Johannes Anderwald [Sat, 15 May 2010 17:57:09 +0000 (17:57 +0000)]
[PORTCLS]
- Disable debugging

svn path=/trunk/; revision=47223

13 years ago[PORTCLS]
Johannes Anderwald [Sat, 15 May 2010 17:17:05 +0000 (17:17 +0000)]
[PORTCLS]
- Pass subdevice interface to PcNewRegistryKey
- Fix multiple bugs in PcNewRegistryKey such as
- If key type is GeneralRegistryKey, the function is supposed to create a new key
- If key type is HwProfileRegistryKey, the type must be or'd with PLUGPLAY_REGKEY_DEVICE
- Implement opening keys of type DeviceInterfaceRegistryKey
- Free key handle if there is not enough memory to create a registry key object
- Add more comments

svn path=/trunk/; revision=47222

13 years ago[WINLOGON]
Eric Kohl [Sat, 15 May 2010 16:02:14 +0000 (16:02 +0000)]
[WINLOGON]
- Add a hack to fix the APPDATA environment variable. This hack will be removed after bug #5372 has been fixed. Fixes bug #4102.

svn path=/trunk/; revision=47220

13 years agoRevert part of 47209. Hope this time is the good one
Jérôme Gardou [Sat, 15 May 2010 09:59:42 +0000 (09:59 +0000)]
Revert part of 47209. Hope this time is the good one

svn path=/trunk/; revision=47218

13 years ago[NTOSKRNL]
Cameron Gutman [Sat, 15 May 2010 03:21:54 +0000 (03:21 +0000)]
[NTOSKRNL]
- Fix a bug that broke /NODEBUG and /CRASHDEBUG

svn path=/trunk/; revision=47216

13 years ago[NTOSKRNL]
Timo Kreuzer [Sat, 15 May 2010 03:02:10 +0000 (03:02 +0000)]
[NTOSKRNL]
Fix paramter parsing in KdbpGetCommandLineSettings. Fixes KDSERIAL

svn path=/trunk/; revision=47215

13 years ago[OLEAUT32_WINETEST]
Timo Kreuzer [Sat, 15 May 2010 01:30:24 +0000 (01:30 +0000)]
[OLEAUT32_WINETEST]
Skip crashing tests test_apm and test_enhmetafile

See issue #5396 for more details.

svn path=/trunk/; revision=47214

13 years ago[WIN32CSR]
Timo Kreuzer [Sat, 15 May 2010 01:05:09 +0000 (01:05 +0000)]
[WIN32CSR]
Fix display of harderror message box for STATUS_UNHANDLED_EXCEPTION

svn path=/trunk/; revision=47213

13 years ago[GDIPLUS_WINETEST]
Timo Kreuzer [Sat, 15 May 2010 00:12:14 +0000 (00:12 +0000)]
[GDIPLUS_WINETEST]
Comment out GdipDisposeImage in 3 places, where it was crashing

See issue #5395 for more details.

svn path=/trunk/; revision=47212

13 years ago[ROSTESTS]
Jérôme Gardou [Fri, 14 May 2010 23:21:04 +0000 (23:21 +0000)]
[ROSTESTS]
  - something went wrong with previous commit...

svn path=/trunk/; revision=47211

13 years ago[ROSTESTS]
Jérôme Gardou [Fri, 14 May 2010 23:19:16 +0000 (23:19 +0000)]
[ROSTESTS]
  - more tests for direct DC creation/deletion

svn path=/trunk/; revision=47210

13 years ago[GDI32_WINETEST]
Timo Kreuzer [Fri, 14 May 2010 23:13:13 +0000 (23:13 +0000)]
[GDI32_WINETEST]
Skip test in gdi32_winetest metafile, that crashes

See issue #5392 for more details.

svn path=/trunk/; revision=47209

13 years ago[NEWINFLIB] Fix an off-by-one bug, which lead to the crash of mkhive after parsing...
Gregor Schneider [Fri, 14 May 2010 21:20:40 +0000 (21:20 +0000)]
[NEWINFLIB] Fix an off-by-one bug, which lead to the crash of mkhive after parsing ~3 files on Windows or ~5 files on Linux
See issue #5338 for more details.

svn path=/trunk/; revision=47208

13 years ago[MKHIVE]
Gregor Schneider [Fri, 14 May 2010 21:13:33 +0000 (21:13 +0000)]
[MKHIVE]
- Active the planned cleanup function to motivate people to actually free resources: mkhive currently leaks ~500kb of memory after a usual run
- Improve debug print

svn path=/trunk/; revision=47207

13 years ago[INFLIBNEW] Free allocated memory on error
Gregor Schneider [Fri, 14 May 2010 20:56:43 +0000 (20:56 +0000)]
[INFLIBNEW] Free allocated memory on error

svn path=/trunk/; revision=47206

13 years ago[MKHIVE] Check parameters before accessing them, update usage information
Gregor Schneider [Fri, 14 May 2010 17:46:14 +0000 (17:46 +0000)]
[MKHIVE] Check parameters before accessing them, update usage information

svn path=/trunk/; revision=47200

13 years ago[MSGINA]
Eric Kohl [Fri, 14 May 2010 17:12:35 +0000 (17:12 +0000)]
[MSGINA]
- Fix the order of controls to match the expected tab order. This makes the focus stop jumping around like crazy when you press the Tab key.

svn path=/trunk/; revision=47199

13 years ago[WINLOGON]
Eric Kohl [Fri, 14 May 2010 17:08:20 +0000 (17:08 +0000)]
[WINLOGON]
- Store all environment variables that were passed from msgina.dll in the volatile environment key.
- Add the APPDATA environment variable to the volatile environment. Unfortunately SHGetFolderPath does not seem to expand the appdata path. Bug or Feature??
- Create the environment block for the shell process after the volatile environment key has been filled, so its variables are included.
- Yet another step to fixing bug #4102.

svn path=/trunk/; revision=47198

13 years ago[PORTCLS]
Johannes Anderwald [Fri, 14 May 2010 15:47:00 +0000 (15:47 +0000)]
[PORTCLS]
- Don't request initializing delayed service request as this is the task of the miniport driver
- Reimplement the service group object:
- Use the initialized timer object when RequestService is called
- Fix possible race conditions when adding / removing a service sink by protecting it with a lock
- Acquire the service group list lock when executing the shared dpc routine

svn path=/trunk/; revision=47197

13 years ago[IPHLPAPI]
Cameron Gutman [Fri, 14 May 2010 01:30:37 +0000 (01:30 +0000)]
[IPHLPAPI]
- Implement GetAdaptersAddresses
- Fixes the last iphlpapi winetest

svn path=/trunk/; revision=47195

13 years ago[USERENV]
Eric Kohl [Thu, 13 May 2010 20:38:16 +0000 (20:38 +0000)]
[USERENV]
CreateEnvironmentBlock: Also add the volatile environment values to the users environment block.

svn path=/trunk/; revision=47194

13 years ago[NTOS]: Fix definition of unused MI_MAKE_SOFTWARE_PTE macro.
Sir Richard [Wed, 12 May 2010 22:47:46 +0000 (22:47 +0000)]
[NTOS]: Fix definition of unused MI_MAKE_SOFTWARE_PTE macro.
[NTOS]: Correctly setup the PFN entries for freshly allocated paged pool pages. Fixes a problem where the page could've still had stale/garbage data.
[NTOS]: Add some extra assertions in the code to catch memory corruption and detect invalid logic.
[NTOS]: Fix some typos in the code (comments/whitespace).
[NTOS]: Make the dreaded page fault message that breaks paged pool on some systems more verbose for future debugging.

svn path=/trunk/; revision=47189

13 years ago[MSGINA]
Eric Kohl [Wed, 12 May 2010 22:10:07 +0000 (22:10 +0000)]
[MSGINA]
Use WLX_PROFILE_V2_0 instead of WLX_PROFILE_V1_0 and create an environment string that is filled with a single environment variable. WIP for bug #4102.

svn path=/trunk/; revision=47187

13 years ago[NTOS]: When grabbing physically contigous pages from the zero or free list, make...
Sir Richard [Wed, 12 May 2010 21:37:19 +0000 (21:37 +0000)]
[NTOS]: When grabbing physically contigous pages from the zero or free list, make sure to re-initialize their PFN entries correctly, since their data might be stale. Fixes potential weird memory corruption bugs.
[NTOS]: Physically contiguous memory allocations are not guaranteed to be zeroed, so do not zero the pages.
[NTOS]: When allocating contigous memory, mark the PFN entries appropriately after mapping the I/O ranges.
[NTOS]: When freeing contiguous memory, assert that all the freed pages correspond to PFN entries that we expect to have allocated for this purpose. Detects (not neccessarily fixes) memory corruption issues in contiguous memory allocations.
[NTOS]: These changes mostly affect certain network card and sound card systems/real hardware, they fix possible bugs and detect corruption that was otherwise going by unnoticed.

svn path=/trunk/; revision=47186

13 years ago[SHELL32] Amendment to r47182: GetAsyncKeyState -> GetKeyState (thanks to Giannis...
Gregor Schneider [Wed, 12 May 2010 21:11:24 +0000 (21:11 +0000)]
[SHELL32] Amendment to r47182: GetAsyncKeyState -> GetKeyState (thanks to Giannis), simplify

svn path=/trunk/; revision=47185

13 years ago[NTOS]: Move MiFindContiguousPages to ARM3/contmem.c since I don't know what it was...
Sir Richard [Wed, 12 May 2010 20:57:21 +0000 (20:57 +0000)]
[NTOS]: Move MiFindContiguousPages to ARM3/contmem.c since I don't know what it was doing in freelist.c. No code change.

svn path=/trunk/; revision=47184

13 years ago[NTOS]: Add assertions to the paged pool and demand zero page faults, to catch possib...
Sir Richard [Wed, 12 May 2010 20:48:15 +0000 (20:48 +0000)]
[NTOS]: Add assertions to the paged pool and demand zero page faults, to catch possible errors and corruptions. These paths are not yet taken in today's builds, so they do not affect any runtime code.
[NTOS]: Add assertions regarding the portability of certain code, which will need changes on ARM/x64. These should probably be C_ASSERT's but I don't want to break Timo's build.
[NTOS]: Define MM_NOIRQL (found in assertions) instead of magical -1.
[NTOS]: Add MI_IS_SESSION_PTE macro.
[NTOS]: Export the MiXxxPte variables.
[NTOS]: Fix some typos in comments.

svn path=/trunk/; revision=47183

13 years ago[SHELL32] Add initial ctrl+c/v handling (WIP for bug #4850)
Gregor Schneider [Wed, 12 May 2010 20:41:55 +0000 (20:41 +0000)]
[SHELL32] Add initial ctrl+c/v handling (WIP for bug #4850)

svn path=/trunk/; revision=47182

13 years ago[SHELL32] Remove misplaced function header
Gregor Schneider [Wed, 12 May 2010 20:37:48 +0000 (20:37 +0000)]
[SHELL32] Remove misplaced function header

svn path=/trunk/; revision=47181

13 years ago[SHELL32] Improve debug print by printing text
Gregor Schneider [Wed, 12 May 2010 19:54:02 +0000 (19:54 +0000)]
[SHELL32] Improve debug print by printing text

svn path=/trunk/; revision=47180

13 years ago[USRMGR]
Gregor Schneider [Wed, 12 May 2010 19:19:44 +0000 (19:19 +0000)]
[USRMGR]
- Fix the friends of the bug of the month

svn path=/trunk/; revision=47179

13 years ago[NTOS]: Fix MiInsertPageInFreeList, it was using the ARM3 PFN Database macro, even...
Sir Richard [Wed, 12 May 2010 19:11:49 +0000 (19:11 +0000)]
[NTOS]: Fix MiInsertPageInFreeList, it was using the ARM3 PFN Database macro, even though we are still using the Mm PFN Database. Also, it was lacking the code to notify the zero-page thread, and to increase available pages.

svn path=/trunk/; revision=47178

13 years ago[WINLOGON]
Eric Kohl [Wed, 12 May 2010 19:10:04 +0000 (19:10 +0000)]
[WINLOGON]
Fixed bug of the month. I'm surprised that winlogon worked at all.

svn path=/trunk/; revision=47177

13 years ago[NTOS]: Fix 4MB assumptions and use PDE_MAPPED_VA instead, which accurately describes...
Sir Richard [Wed, 12 May 2010 18:42:05 +0000 (18:42 +0000)]
[NTOS]: Fix 4MB assumptions and use PDE_MAPPED_VA instead, which accurately describes the address space mapped by a PDE (which is different on PAE, x64, ARM, etc).

svn path=/trunk/; revision=47175

13 years ago[NTOS]: User pages are not used until Phase 1, they should not be setup in Phase...
Sir Richard [Wed, 12 May 2010 18:39:09 +0000 (18:39 +0000)]
[NTOS]: User pages are not used until Phase 1, they should not be setup in Phase 0. Fixes premature initalization.

svn path=/trunk/; revision=47174

13 years ago[NTOS]: Compute MiHighestUserPte, MiHighestUserPde, MiSessionImagePteStart, MiSession...
Sir Richard [Wed, 12 May 2010 18:36:15 +0000 (18:36 +0000)]
[NTOS]: Compute MiHighestUserPte, MiHighestUserPde, MiSessionImagePteStart, MiSessionImagePteEnd, MiSessionBasePte, MiSessionLastPte since these internal variables did not exit yet. Useful for debugging and also future PFN support. Just computes some values, no behavior changes.

svn path=/trunk/; revision=47173

13 years ago[NTOS]: MmSystemPageDirectory is an array of page directories, not just a value....
Sir Richard [Wed, 12 May 2010 18:33:18 +0000 (18:33 +0000)]
[NTOS]: MmSystemPageDirectory is an array of page directories, not just a value. On x86 there's just one page directory, but that's not the case on other architectures/PAE, so fix this bug.

svn path=/trunk/; revision=47172

13 years ago[HALX86]
Aleksey Bragin [Wed, 12 May 2010 09:45:43 +0000 (09:45 +0000)]
[HALX86]
- Revert changes to HalpGetPCIData made in r47162. There is no need to introduce ReactOS-specific behavior of this function. It's much better to aim real NT compatibility, and develop your drivers against NT first and only then hack ReactOS.
- Changes to buses scanning are left as they are.

svn path=/trunk/; revision=47169

13 years ago[USBDRIVER]
Aleksey Bragin [Wed, 12 May 2010 09:42:07 +0000 (09:42 +0000)]
[USBDRIVER]
- Implement deregistering HCD in a device manager. Now, the HCI which failed to initialize will be properly freed without calling NULL pointer or crashing with freed memory access.
See issue #4813 for more details.

svn path=/trunk/; revision=47168

13 years ago- Revert 47139 by cgutman: Don't try to be smarter than usbdriver's author. He especi...
Aleksey Bragin [Wed, 12 May 2010 09:34:36 +0000 (09:34 +0000)]
- Revert 47139 by cgutman: Don't try to be smarter than usbdriver's author. He especially put registering HCD interface before so that any error handling function would work correctly and free up allocated resources. Fixes one crash in VMWare. A proper solution for the problem which 47139 tried to "fix" will be committed next.

svn path=/trunk/; revision=47167

13 years agocommit file missing from r47165
Jeffrey Morlan [Wed, 12 May 2010 04:01:16 +0000 (04:01 +0000)]
commit file missing from r47165

svn path=/trunk/; revision=47166

13 years ago[KERNEL32] [WIN32CSR] Implement SetConsoleScreenBufferSize. FAR Manager now works...
Jeffrey Morlan [Wed, 12 May 2010 03:34:02 +0000 (03:34 +0000)]
[KERNEL32] [WIN32CSR] Implement SetConsoleScreenBufferSize. FAR Manager now works again.

svn path=/trunk/; revision=47165

13 years ago[FREELDR] Fix uninitialized variable warning. (Does anyone know why the warning isn...
Timo Kreuzer [Wed, 12 May 2010 03:29:08 +0000 (03:29 +0000)]
[FREELDR] Fix uninitialized variable warning. (Does anyone know why the warning isn't treated as an error?)
[SETUPLDR] Use mini_hal only on i386 builds

svn path=/trunk/; revision=47164

13 years ago[WIN32CSR] Get rid of dynamic "LineBuffer": it wasn't being resized properly in all...
Jeffrey Morlan [Wed, 12 May 2010 03:03:12 +0000 (03:03 +0000)]
[WIN32CSR] Get rid of dynamic "LineBuffer": it wasn't being resized properly in all cases, causing corruption of Win32CsrApiHeap. Replaced with fixed buffer (painting a line with multiple TextOutW calls if necessary).

svn path=/trunk/; revision=47163

13 years ago[HAL]
Cameron Gutman [Wed, 12 May 2010 02:34:04 +0000 (02:34 +0000)]
[HAL]
- Return the correct value if the PCI slot number is invalid
- Use the bus number from the PCI BIOS instead of doing a manual probe if we can because it is much more accurate (our probing code doesn't detect buses without devices present)
- Don't probe for devices at invalid locations on PCI type 2 buses
- Check for a valid bus number so we don't return the wrong value

svn path=/trunk/; revision=47162

13 years ago[NTOS]: We might get page faults before memory areas are setup, since so much ARM3...
Sir Richard [Wed, 12 May 2010 00:40:23 +0000 (00:40 +0000)]
[NTOS]: We might get page faults before memory areas are setup, since so much ARM3 work now gets done before the memory areas are ready to go. Since obviously these faults cannot be caused by non-ARM3 Mm, we assume them to be ARM3 faults (as long as they happened in KSEG0_BASE). Fixes a bug where early page faults in ARM3 PTEs would get treated as non-ARM3 faults and fail.

svn path=/trunk/; revision=47161

13 years ago[NTOS]: HEADERS: Add PDE_TOP. It is defined for IA64/AMD64 but not for i386 (in the...
Sir Richard [Wed, 12 May 2010 00:38:46 +0000 (00:38 +0000)]
[NTOS]: HEADERS: Add PDE_TOP. It is defined for IA64/AMD64 but not for i386 (in the public headers). Add a note that these addresses are bogus on PAE systems.

svn path=/trunk/; revision=47160

13 years ago[NTOS]: Restore previous correct ASM behavior of checking for success codes, not...
Sir Richard [Wed, 12 May 2010 00:36:52 +0000 (00:36 +0000)]
[NTOS]: Restore previous correct ASM behavior of checking for success codes, not only STATUS_SUCCESS, after a page fault. For example, a demand zero fault returns STATUS_PAGE_FAULT_DEMAND_ZERO upon success, and the new C code would treat it as a failure. Fixes a bug.

svn path=/trunk/; revision=47159

13 years ago[NTOSKRNL]
Cameron Gutman [Tue, 11 May 2010 00:36:56 +0000 (00:36 +0000)]
[NTOSKRNL]
- Fix a typo
- Safe mode with networking has an OptionValue of 2 not 1
- Currently unused (for now ;))

svn path=/trunk/; revision=47157

13 years ago[AFD]
Cameron Gutman [Mon, 10 May 2010 21:14:26 +0000 (21:14 +0000)]
[AFD]
- Fix signaling socket termination events on disconnect
- Fixes bug 4951

svn path=/trunk/; revision=47156

13 years agoUpdate the rapps Database to a valid FireFox Link once more...
Daniel Reimer [Mon, 10 May 2010 18:27:07 +0000 (18:27 +0000)]
Update the rapps Database to a valid FireFox Link once more...
+ update all apps to the recent versions

svn path=/trunk/; revision=47154

13 years ago[INF]
Eric Kohl [Sun, 9 May 2010 21:58:04 +0000 (21:58 +0000)]
[INF]
- Add 'PortSubClass' values for serial and parallel ports.

svn path=/trunk/; revision=47152

13 years agoUpdate WinFile to Wine 1.1.44
Daniel Reimer [Sun, 9 May 2010 20:23:07 +0000 (20:23 +0000)]
Update WinFile to Wine 1.1.44

svn path=/trunk/; revision=47151

13 years ago[NTOS]: Acquire PFN lock before setting up hyperspace PTE/page.
Sir Richard [Sun, 9 May 2010 18:17:53 +0000 (18:17 +0000)]
[NTOS]: Acquire PFN lock before setting up hyperspace PTE/page.
[NTOS]: Flush TLB after setting up hyperspace.
[NTOS]: Use new MiRemoveAnyPage interface instead of MmAllocPage(MC_SYSTEM), as the first test of the new Page API/ABI.
[NTOS]: Add support for creating software PTEs.

svn path=/trunk/; revision=47150

13 years ago[NTOS]: Implement MiRemoveAnyPage and MiRemovePageByColor, but only using the list...
Sir Richard [Sun, 9 May 2010 18:12:50 +0000 (18:12 +0000)]
[NTOS]: Implement MiRemoveAnyPage and MiRemovePageByColor, but only using the list heads, and not the color list heads. Unused.
[NTOS]: Fixup unused MiInsertPageInFreeList variables ot match the other functions (ColorTable vs ColorHead).

svn path=/trunk/; revision=47149

13 years ago[NTOS]: At times, pages may be removed from the zero or free page list, but without...
Sir Richard [Sun, 9 May 2010 18:06:38 +0000 (18:06 +0000)]
[NTOS]: At times, pages may be removed from the zero or free page list, but without being initialized as part of the PFN database, such that their PageLocation has not changed. However, we can detect these pages because their link pointers will be NULL, meaning they're not _really_ free or zeroed. Use this enhanced check when verifying if a page is in use or not, and additionally triple-check by making sure the reference count is zero. This now matches the Windows checks. We also consider Standby pages (not yet implemented) as usable, since we can always steal them.

svn path=/trunk/; revision=47148

13 years ago[INPUT]
Gregor Schneider [Sun, 9 May 2010 15:02:58 +0000 (15:02 +0000)]
[INPUT]
- Reorder keyboard layouts in the registry after one was deleted
- Fixes changing keyboard layouts from regional options
See issue #3317 for more details.

svn path=/trunk/; revision=47147

13 years ago[WIN32CSR]
Johannes Anderwald [Sun, 9 May 2010 13:39:48 +0000 (13:39 +0000)]
[WIN32CSR]
- Add primitive resizing support and automatic scrolling support
- Patch by Adam Kachwalla (IRC:Crocodile)

See issue #2622 for more details.

svn path=/trunk/; revision=47146

13 years ago[CONSOLE]
Johannes Anderwald [Sun, 9 May 2010 13:12:21 +0000 (13:12 +0000)]
[CONSOLE]
- Store console changes when screen buffer / window size changes
- Mark property sheet as changed when color control changes

svn path=/trunk/; revision=47144

13 years ago[win32k]
Michael Martin [Sun, 9 May 2010 12:27:57 +0000 (12:27 +0000)]
[win32k]
- When message are sent without waiting a reply (non-queued messages) the message queues are referenced and dereferenced in the call.
Message removal and cleanup functions for queues expected a reference on the queue. Add checks to determine if the message is a non-queued message and if so release memory for those that had pointers and more importantly skip dereferencing the queues. Possibly fixes random crashes and memory leaks.

svn path=/trunk/; revision=47142

13 years agoBug 5355: [PATCH] cacls: Add Japanese resource by Katayama Hirofumi
Daniel Reimer [Sun, 9 May 2010 12:14:25 +0000 (12:14 +0000)]
Bug 5355: [PATCH] cacls: Add Japanese resource by Katayama Hirofumi
Bug 5371: TRANSLATION: Italian translation updates by Paolo Devoti
Bug 5337: PATCH: Some kernel32 lang updates (de-DE updated, others fixed) by forenkrams@tuxproject.de
Bug 5366: TRANSLATION: Czech translation update by Radek Liska

svn path=/trunk/; revision=47141

13 years ago[USBDRIVER]
Cameron Gutman [Sun, 9 May 2010 11:18:16 +0000 (11:18 +0000)]
[USBDRIVER]
- Register the device with the device manager only after it has been successfully allocated to avoid a crash
- A device that failed in xhci_alloc would never get deregistered from the device manager so it would crash when it entered xhci_start with a partially set up device extension
- Define release_adapter to HalPutDmaAdapter to fix a DMA adapter leak
[HAL]
- Export HalPutDmaAdapter

svn path=/trunk/; revision=47139

13 years ago[WIN32K]
Gregor Schneider [Sat, 8 May 2010 22:26:48 +0000 (22:26 +0000)]
[WIN32K]
- Check the supplied scancode instead of the state buffer whether a key is up
- Fixes the calculator keyboard input regression introduced with r35117
- Ref: http://www.osronline.com/ddkx/w98ddk/keycnt_4ilz.htm and wine implementation
See issue #3727 for more details.

svn path=/trunk/; revision=47138

13 years ago[USBDRIVER]
Cameron Gutman [Sat, 8 May 2010 21:53:57 +0000 (21:53 +0000)]
[USBDRIVER]
- Fix an off-by-one error in the probing code
- Scan all PCI buses instead of just the first two
- Fix a horrible bug that resulted in reinitializing EHCI controllers as UHCI controllers which caused a crash on VirtualBox (with _MULTI_UHCI)
- Implement support for multiple EHCI controllers and enable support for multiple UHCI controllers (greatly increases compatibility with real hardware because the first controller detected is often internal)

svn path=/trunk/; revision=47136

13 years ago- Fix release build.
Aleksey Bragin [Sat, 8 May 2010 20:38:58 +0000 (20:38 +0000)]
- Fix release build.

svn path=/trunk/; revision=47135

13 years ago[WIN32K]
Kamil Hornicek [Sat, 8 May 2010 18:09:45 +0000 (18:09 +0000)]
[WIN32K]
- Bring back support for RLE compressed bitmaps.
- Merge the decompress functions for 4bb and 8bpp bitmaps to one generic function.
- Simplify SURFMEM_bCreateDib a bit by not allowing PNG/JPEG compression at all.
See issue #5276 for more details.

svn path=/trunk/; revision=47134

13 years agoRevert r47130, it was already comitted.
Timo Kreuzer [Sat, 8 May 2010 16:42:03 +0000 (16:42 +0000)]
Revert r47130, it was already comitted.

svn path=/trunk/; revision=47132

13 years ago[w32knapi}
Timo Kreuzer [Sat, 8 May 2010 16:38:05 +0000 (16:38 +0000)]
[w32knapi}
Patch by Jerome Gardou: add some more tests for NtGdiDeleteObjectApp

svn path=/trunk/; revision=47130

13 years ago[WINLOGON]
Eric Kohl [Sat, 8 May 2010 16:30:56 +0000 (16:30 +0000)]
[WINLOGON]
- Move environment creation to a separate file.
- Impersonate the new user and create the 'Volatile Environment' key for the new user.

svn path=/trunk/; revision=47129

13 years agoAdd some win32k/gdi DC tests created by Jerome Gardou
Gregor Schneider [Sat, 8 May 2010 16:27:36 +0000 (16:27 +0000)]
Add some win32k/gdi DC tests created by Jerome Gardou

svn path=/trunk/; revision=47128

13 years agoDisable test_GetLongPathNameW() in kernel32:path test for now.
Sylvain Petreolle [Sat, 8 May 2010 16:27:15 +0000 (16:27 +0000)]
Disable test_GetLongPathNameW() in kernel32:path test for now.
Fixes testbot crash, bug 5370

svn path=/trunk/; revision=47127

13 years ago[win32k]
Michael Martin [Sat, 8 May 2010 15:49:02 +0000 (15:49 +0000)]
[win32k]
- Modify how non-queued messages are send that originate from the Win23k subsystem.
Non-queued messages must go directly to the windows WNDPROC and not through the message pump (previews ROS behavior).
More importantly sending these messages must not cause the sending thread to block waiting for a reply.
- Add a messaging handling function that always sends message from Win32k to the windows thread without waiting.
This will also allow the implementation of message call back later.
- Modify PackParam and UnpackParam to accept a BOOL value to determine whether LParam needs to be allocated from NonPagedPool.
Use with new message handling as if message sent to another thread have any pointers they must be allocated from NonPagedPool.
- Fixed broken logic in can_active_window function and co_WinPosShowWindow.
- Fixed broken logic in co_IntSendActivateMessages.
The WM_ACTIVATEAPP message was being sent to every window belonging to the desktop twice.
Once with flag saying window was activated and again with deactivated.
- These changes should fix bugs #969, #3171, #4501, #4676, #4677, #4948.

svn path=/trunk/; revision=47126

13 years ago[EXPLORER]
Gregor Schneider [Sat, 8 May 2010 15:33:40 +0000 (15:33 +0000)]
[EXPLORER]
- Use proper buffer size, font type and an arbitrary high system time to create the size of the systray clock window
- Fixes clock clipping
See issue #2320 for more details.

svn path=/trunk/; revision=47125

13 years ago[WIN32K]
Timo Kreuzer [Sat, 8 May 2010 15:30:59 +0000 (15:30 +0000)]
[WIN32K]
Fix broken parameter passing from EngMaskBitBlt to (Alpha)BltMask. It was passing the wrong surface and the wrong point. Rename some parameters to reflect what their usage is. Add ASSERTs to make sure noone passes useless parameters. Fixes crippled text in startmenu.
The whole code is broken by design, anyway it will go away, once the new text rendering code is done.
See issue #4379 for more details.

svn path=/trunk/; revision=47124

13 years ago[PSDK]
Cameron Gutman [Sat, 8 May 2010 14:47:42 +0000 (14:47 +0000)]
[PSDK]
- Replace WINE's commctrl.h with mingw-w64's commctrl.h
- Move WINE-specific hacks to reactos/wine/commctrl.h
- Patch by Timo Kreuzer
- Fixes bug 4958

svn path=/trunk/; revision=47123

13 years ago[WINLOGON]
Eric Kohl [Sat, 8 May 2010 13:07:40 +0000 (13:07 +0000)]
[WINLOGON]
Add missing newline to a TRACE message.

svn path=/trunk/; revision=47122

13 years agoDisable GDI batch code for regions. "Fixes" broken drawing for AcrobatReader. Yes...
Timo Kreuzer [Sat, 8 May 2010 01:17:46 +0000 (01:17 +0000)]
Disable GDI batch code for regions. "Fixes" broken drawing for AcrobatReader. Yes, it's a "band aid over a bullet wound". I hope the man with the gun is a surgeon, too.

svn path=/trunk/; revision=47121

13 years ago[USERENV]
Eric Kohl [Fri, 7 May 2010 00:17:04 +0000 (00:17 +0000)]
[USERENV]
- Create the environment variables 'ProgramFiles' and 'CommonProgramFiles' from the registry.

Fixes bug #4008.
See issue #2972 for more details.

svn path=/trunk/; revision=47116

13 years ago[KERNEL32]
Aleksey Bragin [Thu, 6 May 2010 10:50:26 +0000 (10:50 +0000)]
[KERNEL32]
- Code committed in revision 846 was lazily initializing command line options with a first call to GetCommandLine. However, this is not really thread-safe. Move initialization to DLL_PROCESS_ATTACH, where it should actually happen.
See issue #5347 for more details.

svn path=/trunk/; revision=47113

13 years ago[ADVAPI32]
Aleksey Bragin [Thu, 6 May 2010 10:09:33 +0000 (10:09 +0000)]
[ADVAPI32]
- Katayama Hirofumi: Use a real computer name instead of an empty string when reporting events in ReportEventA and W.
See issue #5358 for more details.

svn path=/trunk/; revision=47112

13 years ago[ADVAPI32]
Aleksey Bragin [Thu, 6 May 2010 09:44:59 +0000 (09:44 +0000)]
[ADVAPI32]
- Katayama Hirofumi: Create GUID instead of hardcoding to 0 every time.
See issue #5364 for more details.

svn path=/trunk/; revision=47111

13 years ago[NTOSKRNL]
Cameron Gutman [Thu, 6 May 2010 01:45:10 +0000 (01:45 +0000)]
[NTOSKRNL]
- Don't enable the kernel debugger if the DEBUG option was not set
- Fixes displaying the BSOD when not booting in debug mode (broken in r41534)

svn path=/trunk/; revision=47110

13 years ago[VIDEOPRT]
Cameron Gutman [Wed, 5 May 2010 23:16:17 +0000 (23:16 +0000)]
[VIDEOPRT]
- Also check for the BASEVIDEO option set and return true in that case also
- Fixes a bug with boot time (F8) options on my WC

svn path=/trunk/; revision=47109

13 years ago[NTOSKRNL]
Cameron Gutman [Wed, 5 May 2010 23:06:32 +0000 (23:06 +0000)]
[NTOSKRNL]
- Implement Ke386IoSetAccessProcess, Ke386SetIoAccessMap, and Ke386QueryIoAccessMap
[NDK]
- Add definition of KIO_ACCESS_MAP

- Patch by Samuel Serapion
- Fixes bug 2641

svn path=/trunk/; revision=47108

13 years ago[FORMATTING]
Eric Kohl [Wed, 5 May 2010 22:53:01 +0000 (22:53 +0000)]
[FORMATTING]
No code changes.

svn path=/trunk/; revision=47107

13 years ago[USERENV]
Eric Kohl [Wed, 5 May 2010 22:30:14 +0000 (22:30 +0000)]
[USERENV]
- Create 'Default User' and 'All Users' directories without postfix and append a postfix only if they already exist.
- Create the user account directory without a prefix and append a prefix if the directory already exists.
- Acquire the restore privilege before unloading a hive and remove it after unloading the hive.

Patch is based on Gabriel Ilardi's patch. Fixes bug #2972.

svn path=/trunk/; revision=47106

13 years ago[MSTSC]
Aleksey Bragin [Wed, 5 May 2010 19:00:13 +0000 (19:00 +0000)]
[MSTSC]
- Katayama Hirofumi: Remove temporary tchar.h inclusion and usage of _tcslen (replaced with lstrlen).

See issue #5360 for more details.

svn path=/trunk/; revision=47105

13 years ago[FONTVIEW]
Aleksey Bragin [Wed, 5 May 2010 18:54:36 +0000 (18:54 +0000)]
[FONTVIEW]
- Katayama Hirofumi: Redraw the window when string is set.
See issue #5357 for more details.

svn path=/trunk/; revision=47104

13 years ago[win32k]
Giannis Adamopoulos [Wed, 5 May 2010 10:08:23 +0000 (10:08 +0000)]
[win32k]
-Fix sending WM_KILLFOCUS when we give focus to a window of a different thread

Fixes bugs 1546 and 1603

svn path=/trunk/; revision=47103

13 years ago[NTOSKRNL] In kdbg 'thread list', don't try to read from the kernel stack if there...
Jeffrey Morlan [Tue, 4 May 2010 23:17:30 +0000 (23:17 +0000)]
[NTOSKRNL] In kdbg 'thread list', don't try to read from the kernel stack if there isn't one. (Bug 5318)

svn path=/trunk/; revision=47102

13 years ago[SHELL32]
Johannes Anderwald [Tue, 4 May 2010 08:28:42 +0000 (08:28 +0000)]
[SHELL32]
- Use target path when there is no icon path specified

svn path=/trunk/; revision=47100

13 years ago[SETUP]
Eric Kohl [Mon, 3 May 2010 22:15:53 +0000 (22:15 +0000)]
[SETUP]
- Don't call InitializeProfiles() twice. This is one part of the fix for bug 2972. Patch by Gabriel Ilardi.

svn path=/trunk/; revision=47099

13 years ago[NTOSKRNL]
Cameron Gutman [Mon, 3 May 2010 22:03:15 +0000 (22:03 +0000)]
[NTOSKRNL]
- Fix a typo that results in ISRs being called at an unsafe IRQL (Interrupt->Irql instead of Interrupt->SynchronizeIrql) in certain situations (when Interrupt->Irql < Interrupt->SynchronizeIrql) that can result in ISR synchronization issues

svn path=/trunk/; revision=47098

13 years ago[SHELL32]
Johannes Anderwald [Mon, 3 May 2010 19:26:12 +0000 (19:26 +0000)]
[SHELL32]
- Show icons / folders from AllUsers\Desktop directory
- Fixes bug 4289

svn path=/trunk/; revision=47097

13 years ago- Remove a forgotten debug print
Cameron Gutman [Mon, 3 May 2010 00:30:49 +0000 (00:30 +0000)]
- Remove a forgotten debug print

svn path=/trunk/; revision=47091

13 years ago[NDIS]
Cameron Gutman [Mon, 3 May 2010 00:28:29 +0000 (00:28 +0000)]
[NDIS]
- Provide a IRP_MJ_CREATE and IRP_MJ_CLOSE handler for miniport drivers so IoGetDeviceObjectPointer doesn't fail (and consequently, IoSetDeviceInterfaceState)

svn path=/trunk/; revision=47090