Royce Mitchell III [Wed, 10 Aug 2005 03:32:15 +0000 (03:32 +0000)]
fix typo
svn path=/trunk/; revision=17252
Hervé Poussineau [Tue, 9 Aug 2005 20:12:35 +0000 (20:12 +0000)]
Active functions related to interfaces enumeration: SETUP_CreateSerialDeviceList, SETUP_CreateInterfaceList, SetupDiGetDeviceInterfaceDetailW. They were disabled since r17210
Replace ERROR_NO_SYSTEM_RESOURCES by ERROR_NOT_ENOUGH_MEMORY
Replace #ifdef __WINESRC__ by #ifndef __REACTOS__, as ReactOS also defines __WINESRC__
Minor fixes
svn path=/trunk/; revision=17251
Magnus Olsen [Tue, 9 Aug 2005 19:52:16 +0000 (19:52 +0000)]
Thx harmut you did see the small bug, I miss, do not use MAX_PATH as lenght of command line, it must be CMDLINE_LENGTH instead, patch by Brandon Turner
svn path=/trunk/; revision=17250
Hartmut Birr [Tue, 9 Aug 2005 19:35:07 +0000 (19:35 +0000)]
Silence a debug message.
svn path=/trunk/; revision=17249
Hartmut Birr [Tue, 9 Aug 2005 19:12:46 +0000 (19:12 +0000)]
If the file object is for a device, we must gather some information
from the object attribute (at least the OBJ_INHERIT flag). We cannot
use IoCreateStreamFileObject because a handle from such a file object
is never inheritable.
svn path=/trunk/; revision=17248
Maarten Bosma [Tue, 9 Aug 2005 19:11:57 +0000 (19:11 +0000)]
Full some additional Structs
svn path=/trunk/; revision=17247
Steven Edwards [Tue, 9 Aug 2005 17:55:47 +0000 (17:55 +0000)]
implemented ?name@type_info@@QBEPBDXZ.msvcr and __unDName based on code from Wine
svn path=/trunk/; revision=17246
Gunnar Dalsnes [Tue, 9 Aug 2005 16:15:52 +0000 (16:15 +0000)]
return timer id for windowed timers also
svn path=/trunk/; revision=17245
Hervé Poussineau [Tue, 9 Aug 2005 16:13:50 +0000 (16:13 +0000)]
Implement SetupDiGetSelectedDriverW/SetupDiSetSelectedDriverW
Define rank of a driver as in MSDN description
Fix comments in Flags/FlagsEx description
Factorise DeviceInfoElement structure creation in CreateDeviceInfoElement().
svn path=/trunk/; revision=17244
Hartmut Birr [Tue, 9 Aug 2005 16:08:00 +0000 (16:08 +0000)]
Update KeActiveProcessors if an application processor does start.
svn path=/trunk/; revision=17243
Emanuele Aliberti [Tue, 9 Aug 2005 16:01:42 +0000 (16:01 +0000)]
Minor change.
svn path=/trunk/; revision=17242
Hartmut Birr [Tue, 9 Aug 2005 15:47:14 +0000 (15:47 +0000)]
- Don't try to close the thread handle twice.
- Close the process handle on exit for _P_OVERLAY.
svn path=/trunk/; revision=17241
Hartmut Birr [Tue, 9 Aug 2005 15:44:54 +0000 (15:44 +0000)]
- Don't try to free the returned buffer from getenv.
- Split the path correctly from shell command.
svn path=/trunk/; revision=17240
Hartmut Birr [Tue, 9 Aug 2005 15:41:10 +0000 (15:41 +0000)]
Don't use the required access rights for the object attributes.
svn path=/trunk/; revision=17239
Maarten Bosma [Tue, 9 Aug 2005 13:57:03 +0000 (13:57 +0000)]
Add second call to DdQueryDirectDrawObject.
svn path=/trunk/; revision=17238
Magnus Olsen [Tue, 9 Aug 2005 11:18:48 +0000 (11:18 +0000)]
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
Alex Ionescu [Tue, 9 Aug 2005 08:54:56 +0000 (08:54 +0000)]
Return failure if native function failed. one more test passes
svn path=/trunk/; revision=17236
Alex Ionescu [Tue, 9 Aug 2005 08:50:57 +0000 (08:50 +0000)]
- 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
Alex Ionescu [Tue, 9 Aug 2005 08:02:05 +0000 (08:02 +0000)]
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
Magnus Olsen [Tue, 9 Aug 2005 07:42:00 +0000 (07:42 +0000)]
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
Alex Ionescu [Tue, 9 Aug 2005 06:28:23 +0000 (06:28 +0000)]
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
Alex Ionescu [Tue, 9 Aug 2005 06:23:16 +0000 (06:23 +0000)]
- 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
Alex Ionescu [Tue, 9 Aug 2005 05:54:57 +0000 (05:54 +0000)]
- 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
Alex Ionescu [Tue, 9 Aug 2005 04:59:19 +0000 (04:59 +0000)]
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
Alex Ionescu [Tue, 9 Aug 2005 04:56:29 +0000 (04:56 +0000)]
remove another invalid ObjectAttribute
svn path=/trunk/; revision=17228
Alex Ionescu [Tue, 9 Aug 2005 04:43:54 +0000 (04:43 +0000)]
- Fix a large amount of bugs in ObpAllocateObjectAttributes & Name
svn path=/trunk/; revision=17227
Alex Ionescu [Tue, 9 Aug 2005 04:03:14 +0000 (04:03 +0000)]
- Send the pointer to the handle, not the NULL handle itself. This fixes another winetest bugcheck.
svn path=/trunk/; revision=17226
Alex Ionescu [Tue, 9 Aug 2005 03:38:34 +0000 (03:38 +0000)]
- Use the actual previous mode (spotted by Thomas)
svn path=/trunk/; revision=17225
Alex Ionescu [Tue, 9 Aug 2005 03:31:22 +0000 (03:31 +0000)]
Fix invalid Object Attributes
svn path=/trunk/; revision=17224
Alex Ionescu [Tue, 9 Aug 2005 03:29:51 +0000 (03:29 +0000)]
Add some DDK limits that were missing
svn path=/trunk/; revision=17223
Alex Ionescu [Tue, 9 Aug 2005 01:07:06 +0000 (01:07 +0000)]
- Fix broken loop, this fixes the WINE thread wait tests
svn path=/trunk/; revision=17222
Alex Ionescu [Tue, 9 Aug 2005 00:02:24 +0000 (00:02 +0000)]
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
Hervé Poussineau [Mon, 8 Aug 2005 22:14:04 +0000 (22:14 +0000)]
Remove console debug output
svn path=/trunk/; revision=17220
Magnus Olsen [Mon, 8 Aug 2005 21:29:25 +0000 (21:29 +0000)]
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
Magnus Olsen [Mon, 8 Aug 2005 18:59:56 +0000 (18:59 +0000)]
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
Thomas Bluemel [Mon, 8 Aug 2005 16:58:30 +0000 (16:58 +0000)]
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
Magnus Olsen [Mon, 8 Aug 2005 16:36:39 +0000 (16:36 +0000)]
fix a simple bug that I did intrudes with my last commit
svn path=/trunk/; revision=17215
Hervé Poussineau [Mon, 8 Aug 2005 16:21:35 +0000 (16:21 +0000)]
I forgot to add SetupDiDeleteDeviceInfo to .spec file in rev 17212
svn path=/trunk/; revision=17214
Maarten Bosma [Mon, 8 Aug 2005 16:18:44 +0000 (16:18 +0000)]
Fix another bug thanks to GreatLord.
svn path=/trunk/; revision=17213
Hervé Poussineau [Mon, 8 Aug 2005 16:09:48 +0000 (16:09 +0000)]
Implement SetupDiBuildDriverInfoList, SetupDiOpenDeviceInfoA/W, SetupDiEnumDriverInfoA/W, SetupDiCreateDeviceInfoW
Add stubs for SetupDiDeleteDeviceInfo, SetupDiDestroyDriverInfoList
svn path=/trunk/; revision=17212
Hervé Poussineau [Mon, 8 Aug 2005 16:06:52 +0000 (16:06 +0000)]
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
Maarten Bosma [Mon, 8 Aug 2005 15:56:27 +0000 (15:56 +0000)]
Fix a bug, thanks to Salamander again.
svn path=/trunk/; revision=17209
Thomas Bluemel [Mon, 8 Aug 2005 15:49:37 +0000 (15:49 +0000)]
don't dereference a NULL pointer
svn path=/trunk/; revision=17208
Thomas Bluemel [Mon, 8 Aug 2005 15:46:41 +0000 (15:46 +0000)]
remove a bugcheck that was only used for debug purpose
svn path=/trunk/; revision=17207
Magnus Olsen [Mon, 8 Aug 2005 15:41:02 +0000 (15:41 +0000)]
Fix some error checking for DireactDrawCreate and DireactDrawCreateEx, we checking if the param is right or not.
svn path=/trunk/; revision=17206
Thomas Bluemel [Mon, 8 Aug 2005 15:39:35 +0000 (15:39 +0000)]
- 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
Thomas Bluemel [Mon, 8 Aug 2005 15:33:04 +0000 (15:33 +0000)]
pass the correct access mode to ObOpenObjectByName
svn path=/trunk/; revision=17204
Steven Edwards [Mon, 8 Aug 2005 15:01:03 +0000 (15:01 +0000)]
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
Maarten Bosma [Mon, 8 Aug 2005 14:54:24 +0000 (14:54 +0000)]
Remove exclamation mark that does not belong there. Thanks to Salamander again.
svn path=/trunk/; revision=17202
Maarten Bosma [Mon, 8 Aug 2005 14:20:05 +0000 (14:20 +0000)]
Forgot it again. :)
svn path=/trunk/; revision=17201
Maarten Bosma [Mon, 8 Aug 2005 14:19:20 +0000 (14:19 +0000)]
Fix wrong syntax, missing file and non existing module in makefile. Thanks to Salamander and Usurp.
svn path=/trunk/; revision=17200
Maarten Bosma [Mon, 8 Aug 2005 13:29:50 +0000 (13:29 +0000)]
The beginning of a ddraw implementation. Does not work yet for unknown reason.
svn path=/trunk/; revision=17199
Thomas Bluemel [Mon, 8 Aug 2005 10:54:32 +0000 (10:54 +0000)]
enter a critical region before looking up a CID handle
svn path=/trunk/; revision=17198
Thomas Bluemel [Mon, 8 Aug 2005 10:41:34 +0000 (10:41 +0000)]
delete no longer used file
svn path=/trunk/; revision=17197
Thomas Bluemel [Mon, 8 Aug 2005 10:08:34 +0000 (10:08 +0000)]
unlock the CID in PsLookupProcessByProcessId, PsLookupProcessThreadByCid and PsLookupThreadByThreadId when the lookup succeeded, not failed
svn path=/trunk/; revision=17196
Filip Navara [Mon, 8 Aug 2005 09:24:20 +0000 (09:24 +0000)]
Revert part of #17156 and #17157 changes.
svn path=/trunk/; revision=17195
Art Yerkes [Mon, 8 Aug 2005 04:26:23 +0000 (04:26 +0000)]
Fixes for various 64-bit hosting problems.
svn path=/trunk/; revision=17194
Hartmut Birr [Mon, 8 Aug 2005 01:47:52 +0000 (01:47 +0000)]
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
Thomas Bluemel [Mon, 8 Aug 2005 00:45:04 +0000 (00:45 +0000)]
use loops instead of gotos
svn path=/trunk/; revision=17192
Thomas Bluemel [Sun, 7 Aug 2005 23:43:58 +0000 (23:43 +0000)]
directly translate handles to indexes in ex/handle.c
svn path=/trunk/; revision=17191
Thomas Bluemel [Sun, 7 Aug 2005 23:37:59 +0000 (23:37 +0000)]
use the correct pointer to free the string. Thx to Hartmut for spotting this bug
svn path=/trunk/; revision=17190
Alex Ionescu [Sun, 7 Aug 2005 23:22:18 +0000 (23:22 +0000)]
Retry waiting if STATUS_ALERTED is returned
svn path=/trunk/; revision=17189
Thomas Bluemel [Sun, 7 Aug 2005 23:19:15 +0000 (23:19 +0000)]
RtlFreeHandle only should call RtlIsValidHandle in debug builds.
svn path=/trunk/; revision=17188
Alex Ionescu [Sun, 7 Aug 2005 23:18:40 +0000 (23:18 +0000)]
Fix horridly wrong SignalObjectAndWait return values, should make more wine tests pass
svn path=/trunk/; revision=17187
Hartmut Birr [Sun, 7 Aug 2005 23:08:07 +0000 (23:08 +0000)]
Allocate the map registers according to the dma controllers properties (boundary and highest possible address).
svn path=/trunk/; revision=17186
Hartmut Birr [Sun, 7 Aug 2005 23:07:17 +0000 (23:07 +0000)]
- Changed MmGetContinuousPages from using an alignment to using a boundary.
- Removed MmAllocateContiguousAlignedMemory.
svn path=/trunk/; revision=17185
Thomas Bluemel [Sun, 7 Aug 2005 23:05:57 +0000 (23:05 +0000)]
fixed differences in signedness warnings
svn path=/trunk/; revision=17184
Alex Ionescu [Sun, 7 Aug 2005 23:00:51 +0000 (23:00 +0000)]
- Fix return value.
svn path=/trunk/; revision=17183
Alex Ionescu [Sun, 7 Aug 2005 22:48:07 +0000 (22:48 +0000)]
- Remove cid.c
- Do direct handle creation/deletion where needed.
svn path=/trunk/; revision=17182
Alex Ionescu [Sun, 7 Aug 2005 21:48:14 +0000 (21:48 +0000)]
- Return correct error. Spotted by Thomas.
svn path=/trunk/; revision=17181
Alex Ionescu [Sun, 7 Aug 2005 21:45:12 +0000 (21:45 +0000)]
- Send proper ClientID structure
svn path=/trunk/; revision=17180
Alex Ionescu [Sun, 7 Aug 2005 21:29:51 +0000 (21:29 +0000)]
- Completely reimplement NtWaitForMultipleObjects:
- Check for invalid Objectcount and wait type
- Don't use 2.6KB of stack space (kernel threads only get 4...)
- Don't call ObReferenceObjectByHandle since it does a lot of superflous checks, continous locking/unlocking and makes us extremly slow for a large wait and also doesn't give us the full flexibility we need.
- Detect if a Waitall is being done with the same object duplicated.
- Protect wait with SEH.
- General fixes for all NtWaitXXX:
- Use DefaultObject from Object Header and remove all previous associated hacks, including the IO_TYPE hack. The DefaultObject will either be NULL, an offset to an internal Object Event, or a pointer to a default event. We handle all three.
- Guard the KeWaitXXX call with SEH since it can raise exceptions.
- Fix all object type intiailizers regarding DefaultObject.
svn path=/trunk/; revision=17179
Eric Kohl [Sun, 7 Aug 2005 20:33:11 +0000 (20:33 +0000)]
Replace Win32 types by native ones.
svn path=/trunk/; revision=17178
Thomas Bluemel [Sun, 7 Aug 2005 18:47:26 +0000 (18:47 +0000)]
also actually rename the files...
svn path=/trunk/; revision=17177
Alex Ionescu [Sun, 7 Aug 2005 18:38:37 +0000 (18:38 +0000)]
- Initialize more fields when creating an Object Type
- Correct the Pool Charge for Object Types, select a Default Object, always use a security procedure, read global flag for maintaing type lists, set the pool type
- Initialize a Default Wait Object.
- Fix security callback for objects.
- Implement SeDefaultObjectMethod for security callbacks of objects which don't have a custom one.
svn path=/trunk/; revision=17176
Steven Edwards [Sun, 7 Aug 2005 17:12:11 +0000 (17:12 +0000)]
no need for long xml filenames
svn path=/trunk/; revision=17174
Eric Kohl [Sun, 7 Aug 2005 17:11:13 +0000 (17:11 +0000)]
Remove trailing whitespace and fix the indentation.
svn path=/trunk/; revision=17173
Steven Edwards [Sun, 7 Aug 2005 17:07:35 +0000 (17:07 +0000)]
change rostest name back to dllname_test.exe
svn path=/trunk/; revision=17172
Steven Edwards [Sun, 7 Aug 2005 17:07:00 +0000 (17:07 +0000)]
rename tests to dllname_winetest to make it less trouble on exception to change build system rules for ros tests
svn path=/trunk/; revision=17171
Magnus Olsen [Sun, 7 Aug 2005 16:22:37 +0000 (16:22 +0000)]
GdiEntry11 (not tested, we can not test it yet in ros, until we got ddraw.dll and some api in win32k/ntdraw been implement)
svn path=/trunk/; revision=17170
Filip Navara [Sun, 7 Aug 2005 15:55:01 +0000 (15:55 +0000)]
Change the module type to win32gui. We really don't want to attempt to create consoles at this stage.
svn path=/trunk/; revision=17169
Hartmut Birr [Sun, 7 Aug 2005 14:01:17 +0000 (14:01 +0000)]
Fixed the comment from my last commit.
svn path=/trunk/; revision=17167
Hartmut Birr [Sun, 7 Aug 2005 13:59:05 +0000 (13:59 +0000)]
- Removed the exclusive deletion because '-' is a valid file name character.
- Optimized the recursive deletion in directories.
- Preload some nice strings.
svn path=/trunk/; revision=17166
Filip Navara [Sun, 7 Aug 2005 13:06:30 +0000 (13:06 +0000)]
Fix setupapi build and prototypes.
svn path=/trunk/; revision=17165
Magnus Olsen [Sun, 7 Aug 2005 12:54:41 +0000 (12:54 +0000)]
Implement Gdintry4 (not tested, we can not test it yet in ros, until we got ddraw.dll and some api in win32k/ntdraw been implement)
svn path=/trunk/; revision=17164
Hervé Poussineau [Sun, 7 Aug 2005 11:59:43 +0000 (11:59 +0000)]
Implement SetupGetInfFileListW and SetupGetInfInformationW
Inf file parser now accept UNICODE files with FF FE header
Return required buffer size when buffer is too small in SetupGetLineTextA/W, SetupGetStringFieldA/W
svn path=/trunk/; revision=17162
Filip Navara [Sun, 7 Aug 2005 11:47:50 +0000 (11:47 +0000)]
Fix a race condition in input packet processing.
svn path=/trunk/; revision=17160
Thomas Bluemel [Sun, 7 Aug 2005 11:47:45 +0000 (11:47 +0000)]
fixed the order of the parameters of RtlIsValidIndexHandle
svn path=/trunk/; revision=17159
Eric Kohl [Sun, 7 Aug 2005 11:44:41 +0000 (11:44 +0000)]
Support size_is(*Length) attributes for strings.
svn path=/trunk/; revision=17158
Filip Navara [Sun, 7 Aug 2005 11:25:36 +0000 (11:25 +0000)]
Readd check that I accidently removed.
svn path=/trunk/; revision=17157
Filip Navara [Sun, 7 Aug 2005 10:56:57 +0000 (10:56 +0000)]
Correctly set internal state in NpfsDisconnectPipe and fix some return values in NpfsRead.
svn path=/trunk/; revision=17156
Maarten Bosma [Sun, 7 Aug 2005 10:13:46 +0000 (10:13 +0000)]
A simple test app for DirectDraw.
svn path=/trunk/; revision=17155
Filip Navara [Sun, 7 Aug 2005 10:08:25 +0000 (10:08 +0000)]
Fix mutex unlocking in NpfsWaiterThread and add ASSERT.
svn path=/trunk/; revision=17154
Thomas Bluemel [Sun, 7 Aug 2005 09:55:54 +0000 (09:55 +0000)]
SVN maintainance
svn path=/trunk/; revision=17153
Thomas Bluemel [Sun, 7 Aug 2005 09:55:08 +0000 (09:55 +0000)]
fixed uninitialized variable warning
svn path=/trunk/; revision=17152
Thomas Bluemel [Sun, 7 Aug 2005 09:48:38 +0000 (09:48 +0000)]
fixed uninitialized variables warnings
svn path=/trunk/; revision=17151
Alex Ionescu [Sun, 7 Aug 2005 09:40:00 +0000 (09:40 +0000)]
Fix NtSignalAndwaitForSingleObject: Use SEH when appropriate, use direct Mutant release call, query handle info and write fixmes when permission checking needed, optimize failure cases, fix horrid tab/space formatting mismatches
svn path=/trunk/; revision=17150
Thomas Bluemel [Sun, 7 Aug 2005 09:24:10 +0000 (09:24 +0000)]
added a newline at the end of the file to fix a warning
svn path=/trunk/; revision=17149
Filip Navara [Sun, 7 Aug 2005 09:12:10 +0000 (09:12 +0000)]
- Fix size check in SystemBasicInformation and SystemTimeOfDayInformation.
- Add SEH protection to SystemProcessInformation.
- Implement SystemKernelDebuggerInformation.
- Fix returning of ResultLength in NtQuerySystemInformation.
svn path=/trunk/; revision=17148
Eric Kohl [Sun, 7 Aug 2005 09:03:35 +0000 (09:03 +0000)]
Fix CM_Get_Registry_Property_ExW.
Implement CM_Set_Registry_Property_ExA.
svn path=/trunk/; revision=17147