Commit graph

34635 commits

Author SHA1 Message Date
Michael Martin
afcde1e39c - rw.c: Better implementation of read/write for pipes.
The ReadPtr is there so use it. Duuhh.
    Only move memory to make room for more data when the buffer is full vice moving memory on every read.
    Call KeSetEvent at the correct time, when reading is done.
- fsctrl.c: Correct data returned from NpfsPeekPipe when read mode is byte stream.

svn path=/trunk/; revision=38818
2009-01-17 15:21:15 +00:00
Dmitry Chapyshev
7c93f03dc7 - Launch hardware wizard on hardware page
svn path=/trunk/; revision=38817
2009-01-17 15:13:10 +00:00
Dmitry Gorbachev
1598a20490 Fix a bug.
svn path=/trunk/; revision=38816
2009-01-17 15:05:21 +00:00
Christoph von Wittich
11f4f3033d use spaces instead of tabs (for real now)
svn path=/trunk/; revision=38815
2009-01-17 14:47:32 +00:00
Andrew Greenwood
e17583e14d Use spaces instead of tabs.
svn path=/trunk/; revision=38814
2009-01-17 14:44:24 +00:00
Andrew Greenwood
afff2765ab Treat "LiveCD" system path as a prefix rather than an entire path. This allows a custom path to be specified,
so FreeLDR can boot multiple ReactOS builds from the same CD. FreeLDR happily does this, ReactOS does not like
booting from a livecd path other than \reactos however. Updated livecd.ini to use the new style of livecd
system path.


svn path=/trunk/; revision=38813
2009-01-17 14:20:47 +00:00
Jeffrey Morlan
2429c7df65 Don't treat a slash as the beginning of a new argument for the MOVE command (Bug 4013). Patch by Víctor Martínez Calvo <vicmarcal at hotmail.com>.
svn path=/trunk/; revision=38811
2009-01-17 12:55:46 +00:00
Johannes Anderwald
f59378c1d0 - Check for valid DeviceExtensionSize
- Pass correct flags when creating the fdo
- set DO_DIRECT_IO flag
- clear DO_DEVICE_INITIALIZING flag
- Move all calls to ExAllocatePoolWithTag to a function AllocateItem which is also responsible for zeroing memory
- Fix ISubDevice GUID
- don't disconnect the interrupt on cleanup, IInterruptSync_fnDisconnect exist for that purpose
- If there is no interrupt yet connected, call the synchronized routine holding the internal spinlock
- Copy the current stack location  when forwarding a Irp PcForwardIrpSynchronous
- Implement ISubdevice interface for IPortTopology
- Initialize the dpc for calling Miniport object, as it might create an interrupt object which immediately fires an interrupt
- If the caller doesnt provide an IAdapterPowerManagement interface, clear the existing reference
- Fix 2 bugs in IRegistryKey_NewSubKey which made the system crashing 
- Pass the pdo to IoOpenDeviceRegistryKey
- Move all guids and IIDs to own file and initialize them
- portcls initializes now to the first interrupt fired (vbox+ICH AC97 driver | qemu+es1370 driver)


svn path=/trunk/; revision=38810
2009-01-17 11:19:27 +00:00
Aleksey Bragin
4ca6732fcd - RtlOemStringToCountedUnicodeString improvements:
* Fix STATUS_BUFFER_OVERFLOW when destination string's MaximumLength and Length are equal.
 * Add comments.

svn path=/trunk/; revision=38809
2009-01-17 08:38:25 +00:00
Aleksey Bragin
f8a4f92088 - RtlUnicodeStringToCountedOemString improvements:
* Fix zero-sized input string handling, result would be error instead of success and zero output string.
 * If destination string's MaximumLength and Length are equal, it's not an erroneous situation (in fact, a very common situation).
 * Add comments.

svn path=/trunk/; revision=38808
2009-01-17 07:44:28 +00:00
James Tabor
d80bf3ef94 - It is shameful, hacks like this.
svn path=/trunk/; revision=38807
2009-01-17 07:07:36 +00:00
James Tabor
1a0ed06ffc - Update DispathMessage and fix time stamp for system and standard timers. Tested with qemu bootcd, cmd and explorer. If any bugs arise please log them under Timer Rewrite then associate the older or newer related bugs under it.
svn path=/trunk/; revision=38803
2009-01-17 01:03:03 +00:00
Thomas Bluemel
6df90967f0 Fix background color used for DrawCaptionTemp with DC_INBUTTON
svn path=/trunk/; revision=38802
2009-01-16 23:56:11 +00:00
Art Yerkes
459110618d Prevent accessing NULL as a PE header when we have a bad file, found with Stefan100's help
svn path=/trunk/; revision=38801
2009-01-16 23:44:29 +00:00
Cameron Gutman
f55e4a2843 - Merge aicom-network-fixes up to r38799
- This should finally fix the "UNTRACK: SPECIFIED ALREADY FREE ITEM 0" bug

svn path=/trunk/; revision=38800
2009-01-16 23:30:40 +00:00
Art Yerkes
12f2920bba This actually used to work due to the work csrss does setting up low memory
space.  This fixes it to pass a QOS parameter as it isn't optional.

svn path=/trunk/; revision=38798
2009-01-16 21:03:10 +00:00
Michael Martin
9ae3084028 - Reply 38790, with fix for npfsPeekPipe which was breaking rosautotests.
svn path=/trunk/; revision=38797
2009-01-16 19:30:55 +00:00
Stefan Ginsberg
1ae5ee225a - Add function tags
- Documentary fix from last commit -- DbgkpPostFakeThreadMessage: Implement missing handling of 2 failure cases

svn path=/trunk/; revision=38796
2009-01-16 16:56:00 +00:00
Dmitry Chapyshev
78042b35fd - Fix bug with addition of duplicates to the devices list
- Other small changes

svn path=/trunk/; revision=38795
2009-01-16 16:53:32 +00:00
Stefan Ginsberg
ae838b1c30 - DbgkpPostFakeThreadMessage: Implement missing
- DbgkpSetProcessDebugObject: Fix the traversing of the debug object's event list
- Implement DbgkClearProcessDebugObject

svn path=/trunk/; revision=38794
2009-01-16 16:48:17 +00:00
Michael Martin
c8ed77432a - Revert 38790 as i broke autotests.
svn path=/trunk/; revision=38793
2009-01-16 15:59:03 +00:00
Dmitry Chapyshev
a12d7cd371 - Partly implement hardware types page
svn path=/trunk/; revision=38792
2009-01-16 15:21:32 +00:00
Christoph von Wittich
c58b26652e reapply 36982
WIDL: Enable the use of scalar types (non-pointer types) as custom binding handles.

svn path=/trunk/; revision=38791
2009-01-16 15:16:09 +00:00
Michael Martin
9e097bc205 - create.c: All instances of a pipe must be the same pipe mode as when first instance was created.
Clients start of in byte stream mode, regardless of the pipe's mode.
- finfo.c:  NPFS does not allow changing read mode to message for byte stream mode pipes.
- rw.c:     The format in which data is in the pipe's buffer is based on the pipe mode vice read mode.
            Implement reads in byte stream mode for pipes using message mode.
            Fixed a bug that could caused buffer data to be corrupted due to incorrect calc of WritePtr position.
- fsctrl.c: Return buffer from NpfsPeekPipe if caller requested. 
            Use a mutex before reading the pipe's buffer.
            Return the correct length in Irp info.

svn path=/trunk/; revision=38790
2009-01-16 14:33:45 +00:00
Dmitry Chapyshev
deb282d9e1 - More dialogs implementation
svn path=/trunk/; revision=38789
2009-01-16 14:28:07 +00:00
KJK::Hyperion
1b524afb98 Echo [HOST-CC] and [HOST-LD] instead of [HOSTCC] and [HOSTLD]
Also echo [HOST-AR] for invocations of the host "ar"
Use [HOST-CC], [HOST-LD] and [HOST-AR] in bootstrap makefiles as well

svn path=/trunk/; revision=38788
2009-01-16 13:19:14 +00:00
KJK::Hyperion
8f5afcde25 ... and echo "[HOSTLD]" for the link phase of host modules
svn path=/trunk/; revision=38786
2009-01-16 12:50:20 +00:00
KJK::Hyperion
c3fc8b5daf Echo "[HOSTCC]" instead of "[CC]" in short-hand build output when invoking the host compiler
svn path=/trunk/; revision=38785
2009-01-16 12:44:55 +00:00
KJK::Hyperion
af89bbaaa9 modified tools/rbuild/backend/mingw/modulehandler.cpp
Don't precompile headers with g++: g++ is stupid and, ironically, will precompile .h headers but not .hpp headers (it will mistake them for linker input files). Always use gcc instead
   Don't let gcc guess the language of the header, either: we detect "C++ modules" automatically in rbuild, use that for consistency

svn path=/trunk/; revision=38784
2009-01-16 10:44:36 +00:00
Aleksey Bragin
7f47ebc3d5 - Set version override in pnp_* IDL modules too, since we use Vista's APIs there. Fixes implicitly declared PNP_* functions.
svn path=/trunk/; revision=38783
2009-01-16 08:59:56 +00:00
Dmitry Chapyshev
3d8bbde4fa - Implement RequestDeviceWakeup
- Implement CancelDeviceWakeupRequest

svn path=/trunk/; revision=38782
2009-01-16 06:44:40 +00:00
Dmitry Chapyshev
ccd60957e3 - Implement SetSystemPowerState
svn path=/trunk/; revision=38781
2009-01-16 06:33:19 +00:00
Thomas Bluemel
56f1f5bf69 Create band site's rebar control with styles CCS_NORESIZE and CCS_NOPARENTALIGN
svn path=/trunk/; revision=38780
2009-01-16 03:19:42 +00:00
James Tabor
a0d07a719b - Rewrite Timers, nothing is using it except a bogus system timer for raw input thread is loaded and running.
svn path=/trunk/; revision=38779
2009-01-15 23:15:31 +00:00
Aleksey Bragin
a3c29b9686 - Delete npfs_new skeleton. One rewrite less.
svn path=/trunk/; revision=38776
2009-01-15 19:15:26 +00:00
KJK::Hyperion
936851e20d Sync widl, comcat, ole32, oleaut32 and rpcrt4 to wine 1.1.12
widl can now automatically generate boilerplate code for DLLs hosting RPC proxies (and ole32 and oleaut32 now use this feature): invoke the generation automatically from rbuild rules for rpcproxy modules

svn path=/trunk/; revision=38774
2009-01-15 17:52:35 +00:00
Aleksey Bragin
dea2fe126b - Move batclass.h to PSDK, since it's a PSDK header.
- Remove inclusion of it from DDK's ntpoapi.h.

svn path=/trunk/; revision=38773
2009-01-15 17:22:28 +00:00
Dmitry Chapyshev
a45da19ead - Move SetThreadExecutionState to power.c
- Implement IsSystemResumeAutomatic
- Implement SetThreadExecutionState

svn path=/trunk/; revision=38772
2009-01-15 17:07:01 +00:00
Aleksey Bragin
75ee158474 - Revert 38770's modifications to NDK.
- Temporary move Nt power function prototypes inside power.c file.

svn path=/trunk/; revision=38771
2009-01-15 16:52:50 +00:00
Dmitry Chapyshev
6dea7537bb - Implement GetDevicePowerState
- Implement RequestWakeupLatency
- Add prototypes for GetDevicePowerState and RequestWakeupLatency to pofuncs.h

svn path=/trunk/; revision=38770
2009-01-15 16:09:03 +00:00
Dmitry Chapyshev
154c781d64 - Add power.c file for power management functions
- Move GetSystemPowerStatus, SetSystemPowerState, GetDevicePowerState, RequestDeviceWakeup, RequestWakeupLatency, CancelDeviceWakeupRequest, IsSystemResumeAutomatic, and SetMessageWaitingIndicator to power.c
- Implement GetSystemPowerStatus

svn path=/trunk/; revision=38769
2009-01-15 15:32:30 +00:00
Stefan Ginsberg
3c445f492d - DbgkpSendApiMessage/Lpc: Modification of EPROCESS flags must be interlocked, use PspSetProcessFlag.
- DbgkMap/UnmapViewOfSection: Don't check for the DeadThread flag, doing so is only necessary during early thread creation.
- DbgkCreateThread: Set the StartAddress pointer in the case where we only send the Create Thread message. Also, we should receive the target thread as the first parameter.
- NtDebugActiveProcess: Don't allow debugging the current process.
- NtDebugContinue: We should signal the Debug Object, not the Debug Event. Also make sure we pass the correct event to DbgkpWakeTarget.
- NtWaitForDebugEvent: Cleanup probe and capture of the input timeout.

svn path=/trunk/; revision=38768
2009-01-15 13:14:37 +00:00
Dmitry Chapyshev
a0520cb3ae - Implement FlashWindow
svn path=/trunk/; revision=38766
2009-01-15 10:18:10 +00:00
Johannes Anderwald
e284c5d6a8 - sorry folks
svn path=/trunk/; revision=38765
2009-01-14 21:47:54 +00:00
Stefan Ginsberg
2de45ffbc0 - Revert 38762 to fix build
svn path=/trunk/; revision=38764
2009-01-14 19:55:51 +00:00
Matthias Kupfer
67dd2ec87d Mario Kacmar <kario AT szm DOT sk>
- Fix Switch-To Button, enable only if one selected application.
- See issue #4028 for more details.

svn path=/trunk/; revision=38763
2009-01-14 18:12:43 +00:00
Johannes Anderwald
f8e5a94969 - Implement PcForwardIrpSynchronous
svn path=/trunk/; revision=38762
2009-01-14 17:14:20 +00:00
Stefan Ginsberg
be69d2aa50 - DBGK: Use flags instead of magic values for Debug Events -- names taken from http://neitsabes.online.fr/dc/index.php?2007/12/04/7-ntqueryinformationprocess-processinfoclass-30
svn path=/trunk/; revision=38761
2009-01-14 14:55:46 +00:00
KJK::Hyperion
d62fc8535e deleted lib/pseh/framebased-gcchack.c
added      lib/pseh/i386/framebased-gcchack-asm.S
added      lib/pseh/i386/framebased-gcchack.c
deleted    lib/pseh/i386/framebased-gcchack.S
modified   lib/pseh/pseh.rbuild
   framebased-gcchack.c is irreversibly married to the x86 architecture. Move it to the appropriate place
   Rename framebased-gcchack.S because its base name now conflicts with framebased-gcchack.c

svn path=/trunk/; revision=38760
2009-01-14 14:51:23 +00:00
Kamil Hornicek
53d48069ba [FORMATTING] Fix indentation. No code change.
svn path=/trunk/; revision=38759
2009-01-14 14:41:25 +00:00