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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 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

14 years ago[MKHIVE]
Eric Kohl [Sun, 25 Apr 2010 19:54:57 +0000 (19:54 +0000)]
[MKHIVE]
- Use newinflib instead of inflib.
- Add RegDeleteKeyW stub.
- Convert registry generation 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=47019

14 years ago[NEWINFLIB]
Eric Kohl [Sun, 25 Apr 2010 19:20:59 +0000 (19:20 +0000)]
[NEWINFLIB]
- Use LANGID instead of LCID.
- Move LANGID and language macros into the host typedefs header.
- Remove dead code.

svn path=/trunk/; revision=47018

14 years ago[HOSTS]
Cameron Gutman [Sun, 25 Apr 2010 18:36:15 +0000 (18:36 +0000)]
[HOSTS]
- Add a simple hosts file
- Not used yet

svn path=/trunk/; revision=47017

14 years ago[NEWINFLIB]
Eric Kohl [Sun, 25 Apr 2010 15:58:34 +0000 (15:58 +0000)]
[NEWINFLIB]
Add a UNICODE-aware version of the inflib library.
It is not used by other components yet but usetup and mkhive will use it in the future.
ATTENTION: This commit might break the build bot because I could not test a build on a Linux system.

svn path=/trunk/; revision=47016

14 years ago[SYSSETUP]
Gregor Schneider [Sun, 25 Apr 2010 12:13:01 +0000 (12:13 +0000)]
[SYSSETUP]
- Create a modeless syssetup dialog so we can explicitly ignore intermediate WM_CLOSE messages (modal property sheets handle them automatically)
See issue #4960 for more details.

svn path=/trunk/; revision=47011

14 years ago[NETCFGX]
Gregor Schneider [Sun, 25 Apr 2010 10:47:10 +0000 (10:47 +0000)]
[NETCFGX]
- Save DHCP and DNS settings from the basic TCP/IP panel independently of each other
See issue #5193 for more details.

svn path=/trunk/; revision=47010

14 years ago[NETCFGX]
Gregor Schneider [Sun, 25 Apr 2010 10:45:06 +0000 (10:45 +0000)]
[NETCFGX]
- Improve the DNS data exchange between the basic IP settings and the advanced DNS panel
- Simplify LaunchAdvancedTcpipSettings

svn path=/trunk/; revision=47009

14 years ago[IP]
Cameron Gutman [Sat, 24 Apr 2010 22:37:45 +0000 (22:37 +0000)]
[IP]
- Don't try to close the connection again if it has already been terminated by the remote peer

svn path=/trunk/; revision=47007

14 years ago[NETSHELL]
Gregor Schneider [Sat, 24 Apr 2010 18:12:31 +0000 (18:12 +0000)]
[NETSHELL]
- Load all LAN status icons with the same size
- Only set the status icon if the icon occurred, don't set NULL icons (properties of LAN adapter window)
See issue #3813 for more details.

svn path=/trunk/; revision=47006

14 years ago[NETSHELL] Fix some German resources:
Gregor Schneider [Sat, 24 Apr 2010 18:08:11 +0000 (18:08 +0000)]
[NETSHELL] Fix some German resources:
- Use BS_MULTILINE instead of embedding newline characters into text
- Make groupboxes and text fit into the window

svn path=/trunk/; revision=47005

14 years ago[RBUILD]
Johannes Anderwald [Sat, 24 Apr 2010 08:51:07 +0000 (08:51 +0000)]
[RBUILD]
- Fix cleaning of msvc 10 project files

svn path=/trunk/; revision=47004

14 years ago[FORMATTING]
Timo Kreuzer [Fri, 23 Apr 2010 22:16:59 +0000 (22:16 +0000)]
[FORMATTING]
- Apply consistent indentation

svn path=/trunk/; revision=47003

14 years agoDisable gdi batch for SelectObject with fonts. Fixes font regression.
Timo Kreuzer [Thu, 22 Apr 2010 22:28:49 +0000 (22:28 +0000)]
Disable gdi batch for SelectObject with fonts. Fixes font regression.

svn path=/trunk/; revision=46998

14 years ago[NTOSKRNL]
Cameron Gutman [Thu, 22 Apr 2010 21:07:46 +0000 (21:07 +0000)]
[NTOSKRNL]
- Add a stub for IRP_MN_REMOVE_DEVICE in PnpRoot
- Revert 2 incorrect changes from r46983 (DNF_ENUMERATED added to the DNF_ADDED assertion and setting the DNF_RESOURCE_REPORTED flag in IopStartDevice2)
- Set the DNF_LEGACY_DRIVER flag if the AddDevice handler is missing
- Add a helper function called IopSendRemoveDevice which sends IRP_MN_REMOVE_DEVICE to a device object
- Call IopSendRemoveDevice if IRP_MN_START_DEVICE fails
- Set the DNF_STARTED and DNF_ADDED flags for legacy drivers
- Enable the DNF_ADDED assertion in IopStartDevice2

svn path=/trunk/; revision=46997

14 years ago[PCI]
Cameron Gutman [Thu, 22 Apr 2010 20:35:58 +0000 (20:35 +0000)]
[PCI]
- Forward IRPs to our PDO instead of just completing them
- Handle IRP_MN_START_DEVICE on the way back up the stack (allows the PDO code to assign resources to the bus)
- Add some synchronous IRP forwarding copied from i8042prt

svn path=/trunk/; revision=46996

14 years ago[REGEDIT]
Gregor Schneider [Thu, 22 Apr 2010 12:49:20 +0000 (12:49 +0000)]
[REGEDIT]
- Don't assign an uninitialized custom filter buffer to the OPENFILENAME structure, clean up commented out code
- Allows standard file type filters to show up
See issue #5307 for more details.

svn path=/trunk/; revision=46992

14 years ago[REGEDIT] Only set a registry path if the root node is not selected, adjust checks
Gregor Schneider [Thu, 22 Apr 2010 11:25:56 +0000 (11:25 +0000)]
[REGEDIT] Only set a registry path if the root node is not selected, adjust checks
See issue #5297 for more details.

svn path=/trunk/; revision=46991