Commit graph

16383 commits

Author SHA1 Message Date
Hartmut Birr
0d961d4d80 - Don't try to close the thread handle twice.
- Close the process handle on exit for _P_OVERLAY.

svn path=/trunk/; revision=17241
2005-08-09 15:47:14 +00:00
Hartmut Birr
fa6916cb11 - Don't try to free the returned buffer from getenv.
- Split the path correctly from shell command.

svn path=/trunk/; revision=17240
2005-08-09 15:44:54 +00:00
Hartmut Birr
b4c4fdb519 Don't use the required access rights for the object attributes.
svn path=/trunk/; revision=17239
2005-08-09 15:41:10 +00:00
Maarten Bosma
225642a5f6 Add second call to DdQueryDirectDrawObject.
svn path=/trunk/; revision=17238
2005-08-09 13:57:03 +00:00
Magnus Olsen
c2fcc4a380 fix a minor bug, for bad writen driver. some drv checking for two DDRAWI_DDRAWSURFACE_LCL array instead for one. But it is not the bug
svn path=/trunk/; revision=17237
2005-08-09 11:18:48 +00:00
Alex Ionescu
1d1e963067 Return failure if native function failed. one more test passes
svn path=/trunk/; revision=17236
2005-08-09 08:54:56 +00:00
Alex Ionescu
61ffdb3516 - Last patch was incomplete, apologies. SVN @ 5AM = bad idea.
- Do not report that ROS is running on 0 active processors, that's a bad idea.
- Actually check the affinity mask set by NtSetInformationThread
- Fix the check in KeSetAffinityThread
- Give a valid affinity to the system thread (corresponding to the active cpu affinity set).

This removes all bugchecks from the kernel32 thread winetest.

svn path=/trunk/; revision=17235
2005-08-09 08:50:57 +00:00
Alex Ionescu
6fd4c50fd3 Fix priority formulas, account for saturation, do proper km_um conversions for out of bounds or saturation priorirites, create an internal priority change function to be called if the lock is already held (however it's not efficient yet since ros dispatches instead of schedules, and so the lock is sometimes released, but i did write a small hack to account for that)... this fixes more wine tests
svn path=/trunk/; revision=17234
2005-08-09 08:02:05 +00:00
Magnus Olsen
2b0d98ed0e Thx Royce3 for notice's a typo error CreateData to CanCreateData in a if statement. But it is not the bug we are looking for.
svn path=/trunk/; revision=17233
2005-08-09 07:42:00 +00:00
Alex Ionescu
fe9647d739 It is generally considered a bad idea to dereference an object after the reference failed..... this fixes another wine test and avoids a bugcheck
svn path=/trunk/; revision=17232
2005-08-09 06:28:23 +00:00
Alex Ionescu
c2a85cd273 - Implement KeQueryBasePriorityThread to return the actual Base Priority Increment (or Saturation Increment) to NtQueryInformationThread. The value win32 works with is actually (usually) the difference between process and thread Base Priorities.
This fixes another WINE test.

svn path=/trunk/; revision=17231
2005-08-09 06:23:16 +00:00
Alex Ionescu
4c12530bbc - Fix NtSuspendThread: correct PreviousMode check, return error if thread is terminating, handle KeSuspendThread's possible exception, only attempt to return previous suspend count if asked to.
- Make KeSuspendThread return an exception if the thread has been suspended beyond the limit.

This fixes another wine test.

svn path=/trunk/; revision=17230
2005-08-09 05:54:57 +00:00
Alex Ionescu
2d51263ec6 Sigh... yet another misuse of Object Attributes. Developer Note: Object Attributes are used to pass OBJ_ flags. Not Access Flags.
svn path=/trunk/; revision=17229
2005-08-09 04:59:19 +00:00
Alex Ionescu
576de36736 remove another invalid ObjectAttribute
svn path=/trunk/; revision=17228
2005-08-09 04:56:29 +00:00
Alex Ionescu
56f8494362 - Fix a large amount of bugs in ObpAllocateObjectAttributes & Name
svn path=/trunk/; revision=17227
2005-08-09 04:43:54 +00:00
Alex Ionescu
66c8e646dc - Send the pointer to the handle, not the NULL handle itself. This fixes another winetest bugcheck.
svn path=/trunk/; revision=17226
2005-08-09 04:03:14 +00:00
Alex Ionescu
8cfb5e1c6b - Use the actual previous mode (spotted by Thomas)
svn path=/trunk/; revision=17225
2005-08-09 03:38:34 +00:00
Alex Ionescu
e22539a07b Fix invalid Object Attributes
svn path=/trunk/; revision=17224
2005-08-09 03:31:22 +00:00
Alex Ionescu
3ffa753a9b Add some DDK limits that were missing
svn path=/trunk/; revision=17223
2005-08-09 03:29:51 +00:00
Alex Ionescu
69c49f71df - Fix broken loop, this fixes the WINE thread wait tests
svn path=/trunk/; revision=17222
2005-08-09 01:07:06 +00:00
Alex Ionescu
40602e6777 Fix exception handling by not reseting PreviousMode to kernel when a user-mode exception occurs. This fixes some winetest bugchecks
svn path=/trunk/; revision=17221
2005-08-09 00:02:24 +00:00
Hervé Poussineau
c1c22f5f98 Remove console debug output
svn path=/trunk/; revision=17220
2005-08-08 22:14:04 +00:00
Magnus Olsen
d483bdfcae Add a check to see if surface can be create, it return it can be create, but still createsurface return invaild param
svn path=/trunk/; revision=17219
2005-08-08 21:29:25 +00:00
Magnus Olsen
c8a180611e fixing bug 690 by Brandon Turner. note ms only allown start "notepad" or "note"pad not notep"ad or notepad" but we do that, for we think it is a bug in ms cmd that only allowing " at start of a file name to start the apps.
svn path=/trunk/; revision=17218
2005-08-08 18:59:56 +00:00
Thomas Bluemel
3ed0977d46 revert my last changes back to Alex's version of ObpCaptureObjectAttributes as I'm being an incompetent ass. This will introduce several vulnerabilities and bugs again.
svn path=/trunk/; revision=17217
2005-08-08 16:58:30 +00:00
Magnus Olsen
4280eeb5a3 fix a simple bug that I did intrudes with my last commit
svn path=/trunk/; revision=17215
2005-08-08 16:36:39 +00:00
Hervé Poussineau
6ed3a7acd9 I forgot to add SetupDiDeleteDeviceInfo to .spec file in rev 17212
svn path=/trunk/; revision=17214
2005-08-08 16:21:35 +00:00
Maarten Bosma
d83ab72e69 Fix another bug thanks to GreatLord.
svn path=/trunk/; revision=17213
2005-08-08 16:18:44 +00:00
Hervé Poussineau
c4a2110e0f Implement SetupDiBuildDriverInfoList, SetupDiOpenDeviceInfoA/W, SetupDiEnumDriverInfoA/W, SetupDiCreateDeviceInfoW
Add stubs for SetupDiDeleteDeviceInfo, SetupDiDestroyDriverInfoList

svn path=/trunk/; revision=17212
2005-08-08 16:09:48 +00:00
Hervé Poussineau
6d963834ca Change structures used to keep information about devices/interfaces/drivers. This one is more logical and should be more extensible
Sorry, i've disabled code to enumerate devices implementing some interface (not ported)
Do related changes in the file

svn path=/trunk/; revision=17210
2005-08-08 16:06:52 +00:00
Maarten Bosma
f97732afbd Fix a bug, thanks to Salamander again.
svn path=/trunk/; revision=17209
2005-08-08 15:56:27 +00:00
Thomas Bluemel
273d211c94 don't dereference a NULL pointer
svn path=/trunk/; revision=17208
2005-08-08 15:49:37 +00:00
Thomas Bluemel
e779b15f24 remove a bugcheck that was only used for debug purpose
svn path=/trunk/; revision=17207
2005-08-08 15:46:41 +00:00
Magnus Olsen
079265d1a7 Fix some error checking for DireactDrawCreate and DireactDrawCreateEx, we checking if the param is right or not.
svn path=/trunk/; revision=17206
2005-08-08 15:41:02 +00:00
Thomas Bluemel
a3abeb83af - reverted ObpCaptureObjectAttributes back to my old implementation (slightly modified and extended) because that one at least does what it's supposed to correctly
svn path=/trunk/; revision=17205
2005-08-08 15:39:35 +00:00
Thomas Bluemel
910c9075f0 pass the correct access mode to ObOpenObjectByName
svn path=/trunk/; revision=17204
2005-08-08 15:33:04 +00:00
Steven Edwards
74a0c04f23 add setupapi test for stringtable functions. At this time they only pass on Ros and Windows 2000. I will fix the test to pass on later versions of Windows soon.
svn path=/trunk/; revision=17203
2005-08-08 15:01:03 +00:00
Maarten Bosma
b1b37ffc00 Remove exclamation mark that does not belong there. Thanks to Salamander again.
svn path=/trunk/; revision=17202
2005-08-08 14:54:24 +00:00
Maarten Bosma
ae51cca93f Forgot it again. :)
svn path=/trunk/; revision=17201
2005-08-08 14:20:05 +00:00
Maarten Bosma
f276da4448 Fix wrong syntax, missing file and non existing module in makefile. Thanks to Salamander and Usurp.
svn path=/trunk/; revision=17200
2005-08-08 14:19:20 +00:00
Maarten Bosma
2cacd67bcc The beginning of a ddraw implementation. Does not work yet for unknown reason.
svn path=/trunk/; revision=17199
2005-08-08 13:29:50 +00:00
Thomas Bluemel
1a2a435f9c enter a critical region before looking up a CID handle
svn path=/trunk/; revision=17198
2005-08-08 10:54:32 +00:00
Thomas Bluemel
da23cad0de delete no longer used file
svn path=/trunk/; revision=17197
2005-08-08 10:41:34 +00:00
Thomas Bluemel
e138304bf5 unlock the CID in PsLookupProcessByProcessId, PsLookupProcessThreadByCid and PsLookupThreadByThreadId when the lookup succeeded, not failed
svn path=/trunk/; revision=17196
2005-08-08 10:08:34 +00:00
Filip Navara
f61e4f1230 Revert part of #17156 and #17157 changes.
svn path=/trunk/; revision=17195
2005-08-08 09:24:20 +00:00
Art Yerkes
20732be74c Fixes for various 64-bit hosting problems.
svn path=/trunk/; revision=17194
2005-08-08 04:26:23 +00:00
Hartmut Birr
a3bc4d9c07 Fixed the load count in LdrpDetachProcess. That made it again possible to call the dll entry with DLL_PROCESS_DETACH.
svn path=/trunk/; revision=17193
2005-08-08 01:47:52 +00:00
Thomas Bluemel
e41e25c1e1 use loops instead of gotos
svn path=/trunk/; revision=17192
2005-08-08 00:45:04 +00:00
Thomas Bluemel
afcb29cc7c directly translate handles to indexes in ex/handle.c
svn path=/trunk/; revision=17191
2005-08-07 23:43:58 +00:00
Thomas Bluemel
ebe277b796 use the correct pointer to free the string. Thx to Hartmut for spotting this bug
svn path=/trunk/; revision=17190
2005-08-07 23:37:59 +00:00