Commit graph

8309 commits

Author SHA1 Message Date
Filip Navara
0e8946cb44 - Implemented IoGetDriverObjectExtension and IoAllocateDriverObjectExtension.
- Fixed the parts of IoGetDeviceProperty that were incorrectly sending IRP_MN_QUERY_BUS_INFORMATION.

svn path=/trunk/; revision=8663
2004-03-12 19:40:29 +00:00
Filip Navara
5c45ab6ac0 - Support for IRP_MN_QUERY_BUS_INFORMATION and devices on multiple PCI buses.
svn path=/trunk/; revision=8662
2004-03-12 19:40:05 +00:00
Art Yerkes
7b9bc747c8 Added bit counting and inverting functions to address.
Broke out some functions in info.c -- They still don't work properly but
are improving.
Added setting of netmask in datalink/lan.c from the registry, broke out
registry reading function.

svn path=/trunk/; revision=8661
2004-03-12 04:21:59 +00:00
Vizzini
29d063166b - Added arc path support
- Fixed disk change support
 - Fixed the priority boosts to be saner
 - Fixed some start/stop motor timing bugs
 - Figured out the Real Deal with Model 30 support (I hope...)
 - Cleaned up DMA init a bit
 - Improved return values, freed things on fail, etc
 - General code cleanup

svn path=/trunk/; revision=8660
2004-03-12 03:36:32 +00:00
David Welch
f12f44e036 - Actually I realised it isn't valid to touch the object at all after
decrementing the reference count unless the reference count was one. I
also removed the retention check in ObfReferenceObject since I couldn't
see how this would ever be needed.

svn path=/trunk/; revision=8659
2004-03-12 00:46:35 +00:00
David Welch
c61a3955d5 - Use the return value from calling InterlockedDecrement on the reference
count when checking whether the object should be retained. This fixes
a race whereby one thread decrements the value to one, another thread
come in and decrements the value to zero and starts the delete, the
first thread then comes back, does retention checks and finds the
reference count is now zero and then bugchecks because the object is
already being deleted.

svn path=/trunk/; revision=8658
2004-03-12 00:28:13 +00:00
Vizzini
abc17a4830 Lots of code clean-up; correctly copies files of any size to/from disk;
clean under prefast, lint, verifier, and checked win2k

svn path=/trunk/; revision=8657
2004-03-11 23:12:03 +00:00
David Welch
304ff0ba96 - Return any error code from the miniport device i/o control to the display
driver. Fixes crash when running with ati drivers.

svn path=/trunk/; revision=8656
2004-03-11 23:07:16 +00:00
Gé van Geldorp
162e4ee1f5 Sync to Wine-20040309:
Francois Gouget <fgouget@free.fr>
- Assorted spelling and case fixes.
Dmitry Timoshkov <dmitry@codeweavers.com>
- Add SHMenuIndexFromID and SHCoCreateInstanceAC.
Patrik Stridvall <ps@leissner.se>
- Fixed some issues found by winapi_check.
Jon Griffiths <jon_p_griffiths@yahoo.com>
- Stub the stopwatch API.
- Implement DoesStringRoundTripW,@371-3,@392.
- Move a couple of string functions into string.c
Robert Shearman <R.J.Shearman@warwick.ac.uk>
- Add IntlStrEqWorkerA/W.
- StrCmp tests.
- Implement string functions in comctl32.
- Use CompareString in shlwapi wherever possible instead of ugly
  helpers.
Kevin Koltzau <kevin@plop.org>
- Fix UrlCanonicalize and add regression test.
- Prevent crash with invalid args in a few URL functions.

svn path=/trunk/; revision=8655
2004-03-11 22:30:40 +00:00
Gé van Geldorp
778b9378b6 Sync to Wine-20040309:
Marcelo Duarte <wine-devel@bol.com.br>
- Update of Portuguese resources.

svn path=/trunk/; revision=8654
2004-03-11 22:00:19 +00:00
David Welch
01d3124925 - Made KeBugCheckEx into a call to KeBugCheckExWithTf.
- If file logging is in use then dump the last messages from the ringbuffer
on a bugcheck so the user can see them if the system was in graphics mode
when it crashed.

svn path=/trunk/; revision=8653
2004-03-11 21:50:24 +00:00
Gé van Geldorp
14a834a699 Sync to Wine-20040309:
Mike Hearn <mh@codeweavers.com>
- To reduce debugging noise, make IMalloc32/IMallocSpy implementations
  output to the new olemalloc debug channel.
Patrik Stridvall <ps@leissner.se>
- Fixed some issues found by winapi_check.
Alexandre Julliard
- Sync some of the dll registrations with the contents of
  winedefault.reg.

svn path=/trunk/; revision=8652
2004-03-11 21:46:41 +00:00
David Welch
060aa03ca6 - Added KeSaveFloatingPoint and KeRestoreFloatingPointState to the old
ddk so win32k can use them.

svn path=/trunk/; revision=8651
2004-03-11 21:42:01 +00:00
David Welch
2f596c1ce8 - Implemented EngSaveFloatingPointState and EngRestoreFloatingState.
svn path=/trunk/; revision=8650
2004-03-11 21:38:58 +00:00
Gé van Geldorp
0581a7d1a6 Fix DocumentPropertiesW declaration
svn path=/trunk/; revision=8649
2004-03-11 21:16:56 +00:00
Gé van Geldorp
4798e9d2db Sync to Wine-20040309
svn path=/trunk/; revision=8648
2004-03-11 21:15:50 +00:00
Gé van Geldorp
dbdb5a1f76 Sync to Wine-20040309
svn path=/trunk/; revision=8647
2004-03-11 20:08:15 +00:00
Gé van Geldorp
63c72aa8a8 Move declaration of GetLastError() to match PSDK
svn path=/trunk/; revision=8646
2004-03-11 20:05:11 +00:00
Thomas Bluemel
c07e181b14 forgot this one, sorry
svn path=/trunk/; revision=8645
2004-03-11 19:22:21 +00:00
Thomas Bluemel
169c5abd20 simplified calls to MsqPostMessage()
svn path=/trunk/; revision=8644
2004-03-11 16:17:25 +00:00
Thomas Bluemel
1988a7b8ea first attempt to implement SendMessageTimeout()
svn path=/trunk/; revision=8643
2004-03-11 14:47:44 +00:00
Thomas Bluemel
241b66d3bd added buttons to test if a thread is hung
svn path=/trunk/; revision=8642
2004-03-11 14:44:48 +00:00
Gé van Geldorp
7bbe8a0aec New cursor
svn path=/trunk/; revision=8641
2004-03-11 11:34:51 +00:00
Gé van Geldorp
41f97f6862 Create image list for toolbar with same depth as display
svn path=/trunk/; revision=8640
2004-03-11 11:14:52 +00:00
Gé van Geldorp
6477510568 Sync to Wine-20040309:
Robert Shearman <R.J.Shearman@warwick.ac.uk>
- Implement the drag list control.
- Fix tabs in LBItemFromPt.
- Move string functions to separate file.
- Implement string functions in comctl32.
- Use CompareString in shlwapi wherever possible instead of ugly
  helpers.
- Forward some wrapper functions since we don't care about compatibility
  with Win98 in this case.
- Documentation update.
- Update common control function documentation.
- Don't allocate space for text when nMaxTextRows = 0.
- Support custom check background.
- Reduce number of parameters needed for DrawString function.
- Fix some traces.
- The TBM_GET*HOTLIST functions take imagelist ID in wParam.
- Implement TBM_GETSTRING{A,W}.
- Implement undocumented 0x462 message.
Alexandre Julliard
- Removed a couple of unneeded helper functions.
Maxime BellengT <maxime.bellenge@laposte.net>
- Fix a regression in ImageList_Create when creating a dibsection.
Ulrich Czekalla <ulrich@codeweavers.com>
- Use dibsections for the images.
Dimitrie O. Paun <dpaun@rogers.com>
- LVN_BEGINRDRAG is implemented now. Fix typo.
Aric Stewart <aric@codeweavers.com>
- Implemented LISTVIEW_ApproximateViewRect for LVS_REPORT.
Fabian Cenedese <Cenedese@indel.ch>
- ListView should behave in OWNERDRAW as in FULLROWSELECT. This allows
  to select cells not in the first column in REPORT mode with OWNERDRAW
  style set.
Matt Chapman <matthewc@cse.unsw.edu.au>
- Fix a reentrancy issue in the property sheet implementation by not
  caching a pointer that can change.
- REBAR_Layout should respect the minimum size of bands even when
  RBBS_FIXEDSIZE is not set.
- REBAR_ShowBand needs to force layout of the rebar after a band is
  hidden/unhidden.
Vitaliy Margolen <wine-patch@kievinfo.com>
- Adjust all dimensions to match native.
- Invalidate whole tab area when multi-line.
- In vertical tab placement go from top to bottom.
- Fix annoying visual artifacts.
Huw Davies <huw@codeweavers.com>
- If TBSTYLE_EX_HIDECLIPPEDBUTTONS is set then invalidate the area that
  changes in a resize.
- Don't call SWP unless we're actually adjusting anything.
Christian Costa <titan.costa@wanadoo.fr>
- Accept null module instance, Loadstring can handle it.
Steve Lustbader <slustbader@verizon.net>
- Handle the firstVisible item being NULL in
Mike Hearn <mike@theoretic.com>
- Grow the treeview control expander button by 1px in each direction to
  match the native look.

svn path=/trunk/; revision=8639
2004-03-11 11:13:28 +00:00
Vizzini
8e37499a90 Fixed a length calculation bug introduced with transfer-splitting code
--> big file transfers work now

svn path=/trunk/; revision=8638
2004-03-11 07:01:58 +00:00
Vizzini
8438bc1293 fixed CHS computation bug
svn path=/trunk/; revision=8637
2004-03-11 06:48:22 +00:00
Vizzini
6ef65a3872 - Implement support for split DMA transfers
- Remove assert from CreateClose handler (still doesn't seem to get called
   consistently though)
 - Fixed an off-by-one bug for sector calculation

 --> Medium-sized files transfer to/from disk now

svn path=/trunk/; revision=8636
2004-03-11 06:24:44 +00:00
Andrew Greenwood
d5044130a8 - Updated the version number in README.TXT to 0.2.x (maybe I'm just being pedantic...)
svn path=/trunk/; revision=8635
2004-03-11 02:09:14 +00:00
James Tabor
64c32ff6f4 Turn off debug print out
svn path=/trunk/; revision=8634
2004-03-11 00:05:00 +00:00
Filip Navara
15989c99be - Support for SS_REALSIZEIMAGE and SS_CENTERIMAGE flags for bitmap static controls.
svn path=/trunk/; revision=8633
2004-03-10 23:21:56 +00:00
Filip Navara
cf41719321 - Include eventlog.c in the build.
svn path=/trunk/; revision=8632
2004-03-10 21:56:04 +00:00
Filip Navara
fe0b173e6e - Export the event log functions and LookupAccountSid[AW].
svn path=/trunk/; revision=8631
2004-03-10 21:37:18 +00:00
Aleksey Bragin
2b24e33ce7 LookupAccountSidA and W stubs added (FAR needs them). Hope it is the right place for them.
svn path=/trunk/; revision=8630
2004-03-10 21:34:42 +00:00
Andrew Greenwood
c9c497dc9f - Implemented ChangeMenuA and ChangeMenuW, as implemented in WINE.
svn path=/trunk/; revision=8629
2004-03-10 20:36:19 +00:00
Filip Navara
e080b835d0 - Fixed querying of thread locale.
svn path=/trunk/; revision=8628
2004-03-10 20:26:40 +00:00
Vizzini
ab9a6623a2 Properly set the length of the transfer so FastFat won't assert on us
svn path=/trunk/; revision=8627
2004-03-10 20:17:26 +00:00
Vizzini
1984d3c175 Disabled disk-change notification because it was breaking on Model 30 controllers; read/write is starting to work as a result
svn path=/trunk/; revision=8626
2004-03-10 19:35:04 +00:00
Steven Edwards
c29a4bda2e Add -Wall to the Makefle and fix a few compiler warrnings for
depreceated C++

svn path=/trunk/; revision=8625
2004-03-10 18:57:36 +00:00
Andrew Greenwood
b2a9c5d1de - Boot into GUI again (I'd disabled this as GUI stopped working in my local tree) - sorry about that!
svn path=/trunk/; revision=8624
2004-03-10 17:32:16 +00:00
Casper Hornstrup
fc8e6d987a 2004-03-10 Casper S. Hornstrup <chorns@users.sourceforge.net>
* subsys/system/usetup/bootsup.c (UpdateFreeLoaderIni): Use existing
	ReactOS entry if available.

svn path=/trunk/; revision=8623
2004-03-10 16:57:36 +00:00
Filip Navara
d72790226a - Fixed the Andrew's NtGdiCreateCompatibleBitmap fix, it was using a wrong Bits array.
svn path=/trunk/; revision=8622
2004-03-10 16:55:03 +00:00
Filip Navara
7f3f39dc20 - Fixed bug in VideoPortSetBusData.
svn path=/trunk/; revision=8621
2004-03-10 16:10:13 +00:00
Andrew Greenwood
a306af21c2 *Major soundcard support update*
ReactOS remains silent for now, but for anyone wishing to further work on the Sound Blaster driver and/or mmdrv.dll, this should help immensely :)

- Imported midimap from WINE
- Imported wavemap from WINE
- Imported msacm from WINE (32-bit only)
- Minor changes to mpu401
- Basic IRP_MJ_WRITE dispatch routine for sndblst.sys (receives buffers, does nothing else.)
- Added various WINE headers to include\wine

svn path=/trunk/; revision=8620
2004-03-10 15:22:45 +00:00
Gé van Geldorp
69208dc611 Tell apps we're NT4 SP6, VB runtime will fail if we report SP0
svn path=/trunk/; revision=8619
2004-03-10 09:14:29 +00:00
Andrew Greenwood
025e88cba9 - Implemented GetDCOrg(), which is officially obsolete, but I've included it for completeness' sake :)
svn path=/trunk/; revision=8618
2004-03-09 23:21:56 +00:00
Casper Hornstrup
e2b29d7f6c 2004-03-09 Casper S. Hornstrup <chorns@users.sourceforge.net>
* regtests/Makefile: Make REGTEST_TARGETS depend on *.c.
	* regtests/kmregtests/driver.c: Update call to PerformTests().
	* regtests/kmrtint/kmrtint.c (RegTestMain): Update to match prototype.
	* regtests/kmrtint/kmrtint.def (RegTestMain): Ditto.
	* regtests/kmrtint/kmrtint.edf (RegTestMain): Ditto.
	* regtests/win32base/tests/ws2event.c: New file.
	* regtests/regtests/regtests.c (OUPUT_MODE_DbgPrint,
	OUPUT_MODE_OutputDebugString, OUPUT_MODE_printf): Define.
	(OutputMode): New variable.
	(OutputRoutine): New function.
	(RunTestDriver): Add TestName parameter.
	(main): Parse command line to find output routine and test name.
	* regtests/shared/regtests.c (PerformTest): Use specified output routine
	if specified. Run only specified test if specified.
	(PerformTests): Update call to PerformTest().
	* regtests/shared/regtests.h (TestOutputRoutine): Add prototype.
	(TestDriverMain): Add OutputRoutine and TestName parameter.
	(PerformTests): Ditto.
	* regtests/win32base/Makefile (TARGET_SDKLIBS): Add ws2_32.a.
	* regtests/win32base/driver.c (RegTestMain): Update to match prototype.
	* regtests/win32base/win32base.def (RegTestMain): Ditto.
	* regtests/win32base/win32base.edf (RegTestMain): Ditto.
	* tools/regtests.c (UMSTUB): Update call to PerformTests().

svn path=/trunk/; revision=8617
2004-03-09 22:08:04 +00:00
David Welch
6616abd532 - Forgot this one.
svn path=/trunk/; revision=8616
2004-03-09 22:04:47 +00:00
David Welch
1fbda72a7a - Replaced some common sequences of inline assembly with macros. Avoid
having compiler checks scattered all over the place.
- Added some disabled code to KiDumpTrapFrame that dumps every address
on the stack that could be a return address. This is quite handy for
debugging crashes in modules compiled with fpo.

svn path=/trunk/; revision=8615
2004-03-09 21:49:54 +00:00
David Welch
e04ce16d15 - Fixed check for an out of range index in {Get/Set}{Class/Window}Long
(signed vs. unsigned arithmetic). Fixes crash in 'user32_test win'.

svn path=/trunk/; revision=8614
2004-03-09 21:21:39 +00:00