reactos.git
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

13 years ago[NETCFGX]
Cameron Gutman [Mon, 3 May 2010 00:06:31 +0000 (00:06 +0000)]
[NETCFGX]
- Remove the hack that set DI_NEEDRESTART for all network adapters which prevented us from starting the miniport driver
- Part of the fix for bug 3716

svn path=/trunk/; revision=47089

13 years ago[NTDLL]
Timo Kreuzer [Sun, 2 May 2010 23:26:06 +0000 (23:26 +0000)]
[NTDLL]
The harderror message for STATUS_DLL_NOT_FOUND expects an ANSI dll name.

svn path=/trunk/; revision=47088

13 years ago[VGA]
Cameron Gutman [Sun, 2 May 2010 21:04:47 +0000 (21:04 +0000)]
[VGA]
- Return SPS_ACCEPT_NOEXCLUDE from DrvSetPointerShape because we completed the requested operation successfully
- Patch by Daniel Zimmermann
- Fixes bug 4347

svn path=/trunk/; revision=47087

13 years ago[SETUPAPI]
Johannes Anderwald [Sun, 2 May 2010 19:19:28 +0000 (19:19 +0000)]
[SETUPAPI]
- Store device settings in the "Device Parameters" key, as the kernel now does it too
- Fixes display of AC97 device in audio cpl

svn path=/trunk/; revision=47084

13 years ago[win32k]
Michael Martin [Sun, 2 May 2010 16:40:05 +0000 (16:40 +0000)]
[win32k]
- co_UserDestroyWindow: ThreadInfo->pDeskInfo->hShell holds the hWnd of the Shells Desktop Window. Set it to NULL if that windows is being destroyed. Fixes bug #4902.

svn path=/trunk/; revision=47082

13 years agoGabriel Ilardi:
Aleksey Bragin [Sun, 2 May 2010 11:47:19 +0000 (11:47 +0000)]
Gabriel Ilardi:
- Update spanish %temp% path, part of bug 2482.

svn path=/trunk/; revision=47081

13 years ago[win32k]
Michael Martin [Sun, 2 May 2010 11:34:13 +0000 (11:34 +0000)]
[win32k]
- IntMouseInput: Add the state of virtual keys to wParam before calling MsqInsertSystemMessage. Fixes bug #5066.
- Add and Remove MK_XBUTTON1/2 flags to CurInfo->ButtonsDown vice XBUTTON1/2.
- Code based on patches in bug #5066.

svn path=/trunk/; revision=47080

13 years ago- Convert hivedef_i386.inf to Unicode.
Eric Kohl [Sat, 1 May 2010 22:17:34 +0000 (22:17 +0000)]
- Convert hivedef_i386.inf to Unicode.
- Add Strings-Sections for several languages and add TEMP_DIR string.

Please translate the TEMP_DIR string as this is the sollution for bug #2482.

svn path=/trunk/; revision=47079

13 years agoDelete ANSI version.
Eric Kohl [Sat, 1 May 2010 22:16:44 +0000 (22:16 +0000)]
Delete ANSI version.

svn path=/trunk/; revision=47078

13 years agoRemove duplicate line. WRC complains about the control id already being in use.
Eric Kohl [Sat, 1 May 2010 22:00:09 +0000 (22:00 +0000)]
Remove duplicate line. WRC complains about the control id already being in use.

svn path=/trunk/; revision=47077

13 years ago[CMLIB/NEWINFLIB/MKHIVE]
Eric Kohl [Sat, 1 May 2010 20:17:11 +0000 (20:17 +0000)]
[CMLIB/NEWINFLIB/MKHIVE]
- Make cmlib, newinflib and mkhive use the Wine unicode lib instead of the host_wcsfuncs lib.
- Only the header file include/host/wcsfuncs.h is still used to map str*W functions to wcs* functions in WIN32 builds.
- Remove obsolete rtl functions.
- Make mkhive use the newinflib instead of inflib.

ATTENTION: This might break the build bot although it has been tested on Windows and Linux!!!

svn path=/trunk/; revision=47076

13 years ago[win32k]
Michael Martin [Sat, 1 May 2010 13:32:38 +0000 (13:32 +0000)]
[win32k]
- Only call ExFreePool.. if Buffer is not NULL, which can occur if the Unicode String MessageNameUnsafe coming from user mode is incorrect. Fixes a bugcheck when using OllyDbg V2.0.

svn path=/trunk/; revision=47075

13 years ago[GDI32]
Timo Kreuzer [Sat, 1 May 2010 13:02:46 +0000 (13:02 +0000)]
[GDI32]
- Fix pointer arithmetics in the gdi batch code (&pTeb->GdiTebBatch.Buffer[0] is a PULONG, but pTeb->GdiTebBatch.Offset is a byte offset)
- To prevent this from happening again, refactor the code to use one common routine GdiAllocBatchCommand to do most of the stuff.
- Reenable gdi batch for SelectObject
- Fixes gdi handle leak, causes some drawing problems in Acrobat reader, but those are less critical and I'll investigate those.

svn path=/trunk/; revision=47074

13 years ago[win32k]
Michael Martin [Sat, 1 May 2010 12:02:23 +0000 (12:02 +0000)]
[win32k]
- Revert the hack done in 47059 to apply a better solution.
- co_IntCreateWindowEx: Add the WNDS2_WMCREATEMSGPROCESSED flag to state2 member of WND after sending the WM_CREATE message.
- By setting this flag it can be examined elsewhere to determine if the window was created successfully.
- co_UserDestroyWindow: Examine above mentioned flag to make sure the windows was created before calling hook procedure to inform of destroying window.

svn path=/trunk/; revision=47073

13 years ago- Partly revert 470470
Johannes Anderwald [Sat, 1 May 2010 10:47:23 +0000 (10:47 +0000)]
- Partly revert 470470

svn path=/trunk/; revision=47072

13 years ago[NEWINFLIB]
Eric Kohl [Sat, 1 May 2010 10:43:39 +0000 (10:43 +0000)]
[NEWINFLIB]
- Change Unicode string functions from wcs* to str*W because glibc (Linux build) provides the wcs* functions but they use a wchar_t size of 32 bits instead of the required 16 bits.
- Add a str*W to wcs* wrapper (infrosrtl.c) in order to use the wcs* function for the WIN32 build.
- Add required str*W functions to the host library.

ATTENTION: This might break the build bot although it has been tested on Windows and Linux!!!

svn path=/trunk/; revision=47071

13 years ago[WIN32K]
Johannes Anderwald [Sat, 1 May 2010 10:42:45 +0000 (10:42 +0000)]
[WIN32K]
- Add an assert to PostTimerMessages to catch null pointer windows
- Add another assert to catch special windows (Window == 1)
- Improve check if the window is '1'

svn path=/trunk/; revision=47070

13 years ago[WIN32K]
Johannes Anderwald [Sat, 1 May 2010 09:55:16 +0000 (09:55 +0000)]
[WIN32K]
<bug>
- The timer implementation uses a bitmap to store window-less timers. As an optimization to find the first free index, it uses the variable "HintIndex" which points to the first timer index. In order to find the next free index, the RtlFindClearBitsAndSet function is used. When a new timer is allocated, the "HintIndex" variable is increased, which increases the search offset. Now if more than NUM_WINDOW_LESS_TIMERS (1024) timers are allocated, no more timers can be allocated because RtlFindClearBitsAndSet will claim no more index are available, because the free indexes are below the search offset.
</bug>
<fix>
Everytime a timer gets freed, store the freed index in "HintIndex". As a result the timer implementation will always find a free timer index (when there is one)
</fix>

svn path=/trunk/; revision=47069

13 years ago[PCI]
Cameron Gutman [Sat, 1 May 2010 01:52:47 +0000 (01:52 +0000)]
[PCI]
- Store correct bus and slot information in resource lists that we give in response to IRP_MN_QUERY_RESOURCES and IRP_MN_QUERY_RESOURCE_REQUIREMENTS
- Fixes bug 4354

svn path=/trunk/; revision=47068

13 years ago[WIN32K]
Timo Kreuzer [Fri, 30 Apr 2010 22:48:43 +0000 (22:48 +0000)]
[WIN32K]
- Fix IntDumpHandleTable, it was very broken.

svn path=/trunk/; revision=47067

13 years ago[NTOSKRNL]
Timo Kreuzer [Fri, 30 Apr 2010 22:47:44 +0000 (22:47 +0000)]
[NTOSKRNL]
- Fix RtlWalkFrameChain to do usermode back traces for threads that are not system threads. Also use _SEH2_YIELD when leaving the SEH block.

svn path=/trunk/; revision=47066

13 years ago[win32k]
Michael Martin [Fri, 30 Apr 2010 11:23:17 +0000 (11:23 +0000)]
[win32k]
- When calling NtUserCallNextHookEx check that the current hook is not the first in the chain. If so don't call the hook proc and just return, as it has already been called and it makes no sense for the NextHook function to call the first hook proc. Fixes bugs #4461 and #4407.
- The previous commit claiming to fix bug #4461 was incorrect, it may have actually fixed bug #5320. Testers please test.

svn path=/trunk/; revision=47065

13 years ago[NTOSKRNL]
Cameron Gutman [Thu, 29 Apr 2010 22:35:49 +0000 (22:35 +0000)]
[NTOSKRNL]
- Fix a horrible casting bug
- EventCategoryData1 is a pointer to a GUID not a pointer to a UNICODE_STRING
- Convert the GUID into a UNICODE_STRING properly by using RtlStringFromGUID and pass that string to RtlCompareUnicodeString
- Fix another bug which results in us sending EventCategoryHardwareProfileChange and EventCategoryTargetDeviceChange events to everyone registered for PnP notifications
- Fixes sending EventCategoryDeviceInterfaceChange notifications that happen after calling IoRegisterPlugPlayNotification

svn path=/trunk/; revision=47064

13 years ago[MSIMTF]
Timo Kreuzer [Thu, 29 Apr 2010 20:51:28 +0000 (20:51 +0000)]
[MSIMTF]
Silence debug spam

svn path=/trunk/; revision=47063

13 years ago[PAINT]
Benedikt Freisen [Thu, 29 Apr 2010 19:56:18 +0000 (19:56 +0000)]
[PAINT]
- angle rounding for lines and polygons when SHIFT key is pressed
- equal width and height for (rounded) rectangles and ellipses when SHIFT key is pressed
Based on a patch by Katayama Hirofumi, see #5285

svn path=/trunk/; revision=47062

13 years ago[INF]
Cameron Gutman [Thu, 29 Apr 2010 19:20:32 +0000 (19:20 +0000)]
[INF]
- Comment out the service installation for VBE and VGA so the configuration set in first-stage won't get overwritten
- Nasty graphical glitches still remain in VGA mode
- Fixes bug 2073 and bug 4192

svn path=/trunk/; revision=47061

13 years ago[NTOSKRNL]
Timo Kreuzer [Thu, 29 Apr 2010 16:39:52 +0000 (16:39 +0000)]
[NTOSKRNL]
- On backtraces, print the address of the call instruction (assumed 5 bytes lentgh) instead of the return address, which in many cases does not make sense. (WinDbg does it this way, too)
- Fix Ke386SaveFpuState to store the fpu state in the buffer, but in the pointer to the buffer
- Anable Ke386SaveFpuState to save the floating point state in KiNpxHandler and KiTrap13Handler, so we know what error we got.
- Disable saving debug registers in the trap frame, as long as the kernel doesn't support this
- Fixes ntdll_winetest exception / OllyDbg freeze/reboot

See issue #5301 for more details.

svn path=/trunk/; revision=47060

13 years ago[win32k]
Michael Martin [Thu, 29 Apr 2010 13:41:32 +0000 (13:41 +0000)]
[win32k]
- Fix a problem where application that used WH_CBT hook procedures were receiving destroy window notification on windows that were never created. The window was never created because the application had returned a non zero value when it was notified of window creation, which effectively destroys the window and returns failure for window creation. See CBTProc Function on MSDN. Fixes bug #4461.

svn path=/trunk/; revision=47059

13 years ago[win32k]
Giannis Adamopoulos [Thu, 29 Apr 2010 07:48:43 +0000 (07:48 +0000)]
[win32k]
- Do not do callbacks to user mode while holding a lock
- Fix when WH_MOUSE_LL and WH_JOURNALRECORD are called
See issue #4926 for more details.

svn path=/trunk/; revision=47058

13 years ago[NTOSKRNL]
Cameron Gutman [Thu, 29 Apr 2010 01:44:20 +0000 (01:44 +0000)]
[NTOSKRNL]
- Rewrite IoOpenDeviceInterfaceRegistryKey using the same helper function that is used in IoGetDeviceInterfaces and IoSetDeviceInterfaceState to reduce complexity and chance of bugs (tested and confirmed working)
- Revert r46748
- Fixes bug #5321 (AC97)

svn path=/trunk/; revision=47057

13 years ago[NTOSKRNL]
Cameron Gutman [Wed, 28 Apr 2010 20:06:28 +0000 (20:06 +0000)]
[NTOSKRNL]
- Fix length calculation of symbolic links with reference strings attached
- Fixes opening registry keys for symbolic links with reference strings (such as audio devices)

svn path=/trunk/; revision=47056

13 years agoHardcode GeckoCabDir to C:\ReactOS.
Sylvain Petreolle [Wed, 28 Apr 2010 19:15:17 +0000 (19:15 +0000)]
Hardcode GeckoCabDir to C:\ReactOS.
the mshtml installer now wants a REG_SZ string for it, which excludes using %SystemRoot%.

Fixes bootcdregtest.

svn path=/trunk/; revision=47055

13 years ago[MKHIVE/USETUP]
Eric Kohl [Wed, 28 Apr 2010 11:35:34 +0000 (11:35 +0000)]
[MKHIVE/USETUP]
- Fix buffer size calculation for the parser.
- Do not try to execute an empty registry instruction
Patches by Roel Messiant.

- Stop the parser at the first NULL character.
Patch by me.

svn path=/trunk/; revision=47053

13 years ago[FREELDR]
Cameron Gutman [Wed, 28 Apr 2010 03:07:21 +0000 (03:07 +0000)]
[FREELDR]
- Remove the useless function MachDiskNormalizeSystemPath
- Rewrite DiskGetBootPath to be much less hacky (but still not hack free)
- Freeloader doesn't have to be installed on multi(0)disk(0)rdisk(0)partition(1) (IDE primary master) anymore :)
- Freeloader successfully booted ROS after loading itself from multi(0)disk(0)rdisk(1)partition(1)

svn path=/trunk/; revision=47052

13 years ago[FREELDR]
Cameron Gutman [Tue, 27 Apr 2010 22:12:11 +0000 (22:12 +0000)]
[FREELDR]
- Set the partition count to 0 for a floppy drive so it can be told apart from a cd-rom drive
- Add a last-chance sector size detection algorithm based on the partition number
- Add the same detection code to the xbox code too (it is essentially the same as what was already there just with more comments)
- Change DiskNormalizeSystemPath so it doesn't try to "normalize" a floppy boot path
- Fixes bug #5233

svn path=/trunk/; revision=47051

13 years ago[MKHIVE]
Eric Kohl [Tue, 27 Apr 2010 21:47:54 +0000 (21:47 +0000)]
[MKHIVE]
- Add RegDeleteKeyW stub.
- Implement RegDeleteKeyA so that it calls RegDeleteKeyW.

svn path=/trunk/; revision=47050

13 years ago[ntoskrnl/io]
Michael Martin [Tue, 27 Apr 2010 13:41:37 +0000 (13:41 +0000)]
[ntoskrnl/io]
- Check for null pointers before attempting to copy or free memory.

svn path=/trunk/; revision=47049

13 years ago[ntoskrnl\mm]
Michael Martin [Tue, 27 Apr 2010 13:35:52 +0000 (13:35 +0000)]
[ntoskrnl\mm]
- Fix a continuous loop bug in MiWriteProtectSystemImage.

svn path=/trunk/; revision=47048

13 years ago[KMTEST]
Aleksey Bragin [Tue, 27 Apr 2010 13:06:42 +0000 (13:06 +0000)]
[KMTEST]
- Add KeStallExecutionProcessor test.

svn path=/trunk/; revision=47047

13 years agoUpdate rapps Database to recent Versions.
Daniel Reimer [Tue, 27 Apr 2010 06:31:32 +0000 (06:31 +0000)]
Update rapps Database to recent Versions.

svn path=/trunk/; revision=47046

13 years ago[SHELL32]
Johannes Anderwald [Mon, 26 Apr 2010 19:50:11 +0000 (19:50 +0000)]
[SHELL32]
- Start implementing file copy / move / delete dialog
- Not yet enabled

svn path=/trunk/; revision=47043

13 years ago[EXPLORER] Add missing 24bpp start menu icon, created by Gabriel Ilardi
Gregor Schneider [Mon, 26 Apr 2010 19:01:37 +0000 (19:01 +0000)]
[EXPLORER] Add missing 24bpp start menu icon, created by Gabriel Ilardi
See issue #5007 for more details.

svn path=/trunk/; revision=47042

13 years ago[NETSHELL] Fix LAN status icon resource
Gregor Schneider [Mon, 26 Apr 2010 18:30:08 +0000 (18:30 +0000)]
[NETSHELL] Fix LAN status icon resource
See issue #3813 for more details.

svn path=/trunk/; revision=47041

13 years ago[MKHIVE]
Eric Kohl [Mon, 26 Apr 2010 16:06:17 +0000 (16:06 +0000)]
[MKHIVE]
Revert remaining changes of r47019.

svn path=/trunk/; revision=47040

13 years agoComment out an ASSERT that gets trigged frequently.
Timo Kreuzer [Mon, 26 Apr 2010 15:46:16 +0000 (15:46 +0000)]
Comment out an ASSERT that gets trigged frequently.

See issue #5320 for more details.

svn path=/trunk/; revision=47039

13 years ago[MKHIVE]
Eric Kohl [Mon, 26 Apr 2010 15:35:57 +0000 (15:35 +0000)]
[MKHIVE]
Partial revert of r47019 because mkhive failed on Linux machines.

svn path=/trunk/; revision=47038

13 years ago[USETUP]
Eric Kohl [Mon, 26 Apr 2010 15:10:23 +0000 (15:10 +0000)]
[USETUP]
- Use newinflib instead of inflib.
- Pass the user-selected language to the inf parser.
- Convert registry code from ANSI APIs to UNICODE APIs.
ATTENTION: This commit might break the build bot because it was not tested on a Linux system.

svn path=/trunk/; revision=47037

13 years ago[win32k]
Giannis Adamopoulos [Mon, 26 Apr 2010 13:58:46 +0000 (13:58 +0000)]
[win32k]
-rename w32k.h to win32k.h and win32k.h to win32kp.h

svn path=/trunk/; revision=47036

13 years ago[USERINIT]
Johannes Anderwald [Mon, 26 Apr 2010 13:58:09 +0000 (13:58 +0000)]
[USERINIT]
- Fix Startup Folder
- ShellExecuteEx needs lots of work
See issue #4568 for more details.

svn path=/trunk/; revision=47035

13 years ago[SHELL32]
Johannes Anderwald [Mon, 26 Apr 2010 12:56:32 +0000 (12:56 +0000)]
[SHELL32]
- Assume it is an empty cdrom drive when there is no root mounted

See issue #2977 for more details.

svn path=/trunk/; revision=47033

13 years ago[SHELL32]
Johannes Anderwald [Mon, 26 Apr 2010 12:26:31 +0000 (12:26 +0000)]
[SHELL32]
- Let explorer open control panel class folder when there is no default action

See issue #4916 for more details.

svn path=/trunk/; revision=47032

13 years ago[SHELL32]
Johannes Anderwald [Mon, 26 Apr 2010 10:38:15 +0000 (10:38 +0000)]
[SHELL32]
- Rewrite enumerating folder options file type dialog

svn path=/trunk/; revision=47031

13 years ago- Fix file type description
Johannes Anderwald [Mon, 26 Apr 2010 09:37:08 +0000 (09:37 +0000)]
- Fix file type description

svn path=/trunk/; revision=47030

13 years ago[NTOSKRNL]
Cameron Gutman [Mon, 26 Apr 2010 04:54:25 +0000 (04:54 +0000)]
[NTOSKRNL]
- Create a helper function named OpenRegistryHandlesFromSymbolicLink which opens handles to various paths associated with a symbolic link
- Store the Linked value in IoSetDeviceInterfaceState
- Implement checking if an interface is enabled by reading the Linked value
- Interfaces reported from IoGetDeviceInterfaces are only active ones now (unless the caller explicitly says that they want disabled ones too)

svn path=/trunk/; revision=47029

13 years ago[NTOSKRNL]
Cameron Gutman [Mon, 26 Apr 2010 04:18:11 +0000 (04:18 +0000)]
[NTOSKRNL]
- Revert r46682
- The NULL terminator is not supposed to be included in the length
- Fixes corruption when printing the symbolic link

svn path=/trunk/; revision=47028

13 years ago[WIN32CSR]
Timo Kreuzer [Mon, 26 Apr 2010 01:23:21 +0000 (01:23 +0000)]
[WIN32CSR]
- Rewrite harderror handling.
The old code was a monster function, leaking memory, using ansi rather than unicode strings and not getting this right. It was also vulnerable to attacks, making csrss crash, when corrupt parameters were sent.

svn path=/trunk/; revision=47027

13 years ago[STRSAFE]
Timo Kreuzer [Mon, 26 Apr 2010 00:41:09 +0000 (00:41 +0000)]
[STRSAFE]
Add strsafe.h from amd64 branch.

svn path=/trunk/; revision=47026

13 years ago[OSKITTCP]
Cameron Gutman [Sun, 25 Apr 2010 21:00:04 +0000 (21:00 +0000)]
[OSKITTCP]
- Add a sanity check
- Dedicated to Caemyr

svn path=/trunk/; revision=47024

13 years ago[AFD]
Cameron Gutman [Sun, 25 Apr 2010 20:51:07 +0000 (20:51 +0000)]
[AFD]
- Add some sanity checks

svn path=/trunk/; revision=47023

13 years ago[MKHIVE]
Eric Kohl [Sun, 25 Apr 2010 20:49:29 +0000 (20:49 +0000)]
[MKHIVE]
Fix a buggy format string (%s --> %S).
Add _wcsicmp to rtl.c.

svn path=/trunk/; revision=47022

13 years ago[MKHIVE] wcsicmp -> _wcsicmp, should fix buildbot build
Gregor Schneider [Sun, 25 Apr 2010 20:26:37 +0000 (20:26 +0000)]
[MKHIVE] wcsicmp -> _wcsicmp, should fix buildbot build

svn path=/trunk/; revision=47021

13 years ago[WS2_32]
Cameron Gutman [Sun, 25 Apr 2010 20:01:59 +0000 (20:01 +0000)]
[WS2_32]
- Add support for reading the hosts file
- Fix an off-by-one error which prevented reading the last value in the services file
- Fixes bug 4410 and bug 4880

svn path=/trunk/; revision=47020