Commit graph

48890 commits

Author SHA1 Message Date
Pierre Schweitzer c24b5b0586 [MESA32]
Include headers in the proper order. Fixes mesa32 build.

svn path=/trunk/; revision=54362
2011-11-12 13:04:59 +00:00
Pierre Schweitzer 1558368570 [PSDK]
Revert r54359.

svn path=/trunk/; revision=54361
2011-11-12 12:27:01 +00:00
Pierre Schweitzer 29750a6026 [BLUE]
"Remove" dependencies with user-mode without breaking CSRSS.

svn path=/trunk/; revision=54360
2011-11-12 12:23:15 +00:00
Alex Ionescu 18e346207b [PSDK]: I forgot this was the OS where drivers (blue.sys) import from SDK headers. Fix header.
svn path=/trunk/; revision=54359
2011-11-12 08:20:30 +00:00
Alex Ionescu e84bdd4857 [KERNEL32]: Refactor Beep such that opening the device happens first -- this makes sure the error codes are generated in the same order/conditions as on Windows.
[KERNEL32]: Add notes on how DeviceIoControl and Beep should support TS scenarios in the future (nod to Ged).
[KERNEL32]: Make Beep call NotifySoundSentry, and implement the latter, which sends a message to CSRSS w.r.t the previous commit. Obviously we are not anywhere close real sound sentry support, but at least part of the path is there now.

svn path=/trunk/; revision=54358
2011-11-12 08:18:18 +00:00
Alex Ionescu c461e96188 [WIN32CSR/CSRSS]: Implement the Sound Sentry CSRSS API. Obviously won't work until a real winsrv.dll exists (and its job will be to call NtUserSoundSentry in win32k.sys).
svn path=/trunk/; revision=54357
2011-11-12 08:16:33 +00:00
Alex Ionescu bfac43fe4e [PSDK]: Add missing Console APIs.
[CSRSS]: Add definition for the Sound Sentry CSRSS API.

svn path=/trunk/; revision=54356
2011-11-12 08:15:29 +00:00
Thomas Faber 2bc2e85140 [KMTESTS]
- Fix some typos in previous commit
- Make the driver object accessible to tests

svn path=/trunk/; revision=54355
2011-11-12 00:21:57 +00:00
Thomas Faber d0133a99d0 [USBDRV]
- Get rid of some inline assembly

svn path=/trunk/; revision=54354
2011-11-12 00:07:42 +00:00
Thomas Faber 218b87ee29 [KMTESTS]
- Fix AMD64 build

svn path=/trunk/; revision=54353
2011-11-11 23:04:26 +00:00
Cameron Gutman ec82957d59 [PNP]
- Kill some debug spam

svn path=/trunk/; revision=54352
2011-11-11 20:41:10 +00:00
James Tabor 46ea3777a8 [Shell32]
- Fix edit control window procedure, see Bug 4856.

svn path=/trunk/; revision=54351
2011-11-11 13:04:37 +00:00
Pierre Schweitzer 5576067299 [KERNEL32]
No need to init string to empty
This will make Coverity happier

svn path=/trunk/; revision=54350
2011-11-11 12:22:05 +00:00
Aleksey Bragin 7ef16b3746 [RTL]
- A bit more of the DPH code cleanup, no bugs found so far.

svn path=/trunk/; revision=54349
2011-11-11 11:55:49 +00:00
Thomas Faber 3f5b04a9d5 [SERVICES]
- Allow changing the image path with ChangeServiceConfig. Fixes timeout that shouldn't actually be a timeout in advapi32:service test.
See issue #6646 for more details.

svn path=/trunk/; revision=54348
2011-11-10 22:56:22 +00:00
Cameron Gutman 6293041a3f [BOOTDATA]
- Disable usbdrv
- I've heard too many reports of it breaking boot and too few reports of it actually working on real hardware (although it does work perfectly in QEMU)

svn path=/trunk/; revision=54347
2011-11-10 22:42:16 +00:00
Thomas Faber bfebe892d9 [ADVAPI32_WINETEST]
- Skip service start timeout tests. They cannot time out until services uses asynchronous I/O.
See issue #6646 for more details.

svn path=/trunk/; revision=54346
2011-11-10 22:34:31 +00:00
Thomas Faber 33158a22a5 [SERVICES]
- Move utility functions to the top

svn path=/trunk/; revision=54345
2011-11-10 22:21:11 +00:00
Thomas Faber 8d6a6c95e5 [SERVICES]
- Do not use local memory functions (and possibly free the result using HeapFree!)
- Do not use double percent signs with _wcsnicmp
- DPRINT and style fixes

svn path=/trunk/; revision=54344
2011-11-10 21:29:34 +00:00
Aleksey Bragin 06d7831b89 [RTL]
- DPH: Improve RtlpPageHeapAllocate() code, make variable names consistent with the generic available/busy terms. Logic is absolutely unchanged.

svn path=/trunk/; revision=54343
2011-11-10 15:13:21 +00:00
Eric Kohl 725bbcb3aa [SERVICES]
Improve the parameter checks in RCreateServiceW.

svn path=/trunk/; revision=54342
2011-11-09 23:18:37 +00:00
Thomas Faber 3894ecbdc4 [USER32]
- Fix a TRACE. Spotted by Victor Martinez

svn path=/trunk/; revision=54341
2011-11-09 18:52:09 +00:00
Kamil Hornicek 63cc791584 [FASTFAT]
Don't report success for unsupported file information classes.
See issue #6628 for more details.

svn path=/trunk/; revision=54340
2011-11-08 17:08:04 +00:00
Alex Ionescu 6fc023d62d [KERNEL32]: Fix a bug when converting EXECUTE access.
svn path=/trunk/; revision=54339
2011-11-07 17:49:10 +00:00
Thomas Faber b25b405747 [KERNEL32]
- Do not fail in CreateFileMappingW if write or execute access is requested

svn path=/trunk/; revision=54338
2011-11-07 16:53:04 +00:00
Alex Ionescu f237a863e7 Hurray for misisng includes.
svn path=/trunk/; revision=54337
2011-11-07 15:44:07 +00:00
Alex Ionescu 6d37c787cd [KERNEL32]: Fix various bugs in the file mapping APIs, mainly related to lack of EXECUTE mappings and incorrect error codes.
svn path=/trunk/; revision=54336
2011-11-07 15:43:37 +00:00
Dmitry Gorbachev bef20836c3 [TRANSLATION]
- Add some Romanian strings to the registry. Fulea Stefan, bug #6603.
- Add a few Russian strings, too.

svn path=/trunk/; revision=54335
2011-11-07 08:01:58 +00:00
Alex Ionescu 40b0836010 [KERNEL32]: Show some love to Get/SetCurrent/Windows/SystemDirectoryA/W. Only SearchPathW and loader stuff remains to be fixed. Also handle SetCurrentDirectory when directory is already current.
[KERNEL32]: Rewrite the tape APIs to use a single generic function, and in the process support pending I/O now, which wasn't handled before.
[KERNEL32]: Moved the interlocked APIs to synch.c instead of dllmain.c

svn path=/trunk/; revision=54334
2011-11-07 07:41:52 +00:00
Pierre Schweitzer b7ad8c6fb9 [KERNEL32]
Fix wrong L usage in new code.

svn path=/trunk/; revision=54333
2011-11-07 06:45:17 +00:00
Alex Ionescu a458290ab1 [KERNEL32]: Fix multiple, multiple, bugs in the last commits. Path is now down to 12 failures (way lower than before the streak), most unrelated to actual path APIs.
svn path=/trunk/; revision=54332
2011-11-07 05:07:58 +00:00
Cameron Gutman c13946eae2 [TCPIP]
- Fix a potential double-completion of an IRP

svn path=/trunk/; revision=54331
2011-11-07 02:02:59 +00:00
Cameron Gutman 703b182d8f [NPFS]
- Fix an access-after-free bug

svn path=/trunk/; revision=54330
2011-11-07 01:47:55 +00:00
Alex Ionescu 1534ace5ad Forgotten file.
svn path=/trunk/; revision=54329
2011-11-07 01:40:33 +00:00
Cameron Gutman 945a5972a9 [NPFS]
- Fix a potential CCB state inconsistency if the IRP is canceled before adding it to the pending list
- Don't wait if the IRP has been canceled
- Preserve the return status of NpfsAddListeningServerInstance

svn path=/trunk/; revision=54328
2011-11-07 01:37:35 +00:00
Cameron Gutman 3eff89fe04 [NPFS]
- Fix several cancellation races and broken checks

svn path=/trunk/; revision=54327
2011-11-07 00:52:32 +00:00
Alex Ionescu 784e19a384 [KERNEL32]: Implement Wow64Enable/Disable/RevertWow64Direction, document the Rtl equivalents in NDK, export and implement them in NTDLL.
[KERNEL32]: Cleanup files a bit.
    - Bintype.c is gone and moved into VDM (these are functions for VDM support).
    - Npipe.c and pipe.c are merged.
    - Dosdev is moved into client, these are not quite File APIs.
    - Base(8Bit/Unicode) APIs are moved into utils.c
    - Wow64 APIs are moved into utils.c
    - The mess that was file.c has the Replace* file APIs going into move.c (similar behaviors), the Open* APIs into create.c (similar) and the Read/Write Scatter/Gather APIs into rw.c (where they belong). What remained in file.c were mostly Set/Query functions, so it becomes fileinfo.c
    - The remaining APIs in file.c were all about paths -- at the file level, specifically filenames, so they go into filename.c
    - Move some File API functions from certain files into other files where they belong more.

svn path=/trunk/; revision=54326
2011-11-07 00:18:13 +00:00
Cameron Gutman 35a7096ebc [NPFS]
- Make the initial NpfsRead wait uninterruptible since it's really being used like a mutex (avoid the kernel stack being paged out during the wait causing memory corruption)
- Handle interrupted waits that were missed in certain cases
- Fix a potential deadlock that would happen if more I/O was done on a file object after the previous operation was interrupted by an APC or alert

svn path=/trunk/; revision=54325
2011-11-06 23:40:06 +00:00
Thomas Faber 1f8bcd7af2 [KERNEL32_WINETEST]
- Do not use strcat_s. It is not guaranteed to exist on Windows.

svn path=/trunk/; revision=54324
2011-11-06 23:38:39 +00:00
Alex Ionescu 1a2f9d3279 [KERNEL32]: Move the "curdir.c" APIs into path.c as well, as they are Path APIs. No code changes (just formatting and moving to DPRINTs).
svn path=/trunk/; revision=54323
2011-11-06 23:01:04 +00:00
Alex Ionescu bc813e0cee [KERNEL32]: Give the same treatement to SearchPathA. Also add a comment on why exactly the A<->W conversion has to be more complex than what Wine was attempting.
svn path=/trunk/; revision=54322
2011-11-06 22:46:31 +00:00
Alex Ionescu 504de2415f [KERNEL32]: Fix infinite loop in FindLFNorSFN_U.
[KERNEL32]: Reimplement GetFullPathNameA to implement similar functionality and checks as the other reimplemented A functions, especially w.r.t ANSI/OEM and DBCS strings.

svn path=/trunk/; revision=54321
2011-11-06 21:00:10 +00:00
Alex Ionescu 3bdf1b6e8a [KERNEL32]: Fix some bugs in previous two commits (thanks Thomas).
svn path=/trunk/; revision=54320
2011-11-06 19:42:59 +00:00
Cameron Gutman ee06a00c1a [NPFS]
- Fix wait parameters so we can break out of a wait if a user APC is delivered and the file object is opened with FILE_SYNCHRONOUS_IO_ALERT
- Fixes hanging ntdll:pipe winetest (only 1 failure out of 53 tests now)

svn path=/trunk/; revision=54319
2011-11-06 18:47:51 +00:00
Alex Ionescu 1bdbaed2a7 [KERNEL32]: Rewrite GetLong/ShortPathNameW away from Wine. Some changes:
- Windows allows the two input buffers to overlap. This means we have to be very careful with copying (and always use RtlMoveMemory) -- the old function was not handling this at all.
   - We also have to handle cases where we need to make our own local buffer copy.
   - Length validation is more stringent now.
   - Checking for short/long path names wasn't correct w.r.t ANSI file mode, as it was calling Rtl which assumes OEM.
   - Shortcuts were taken while parsing slashes and path separators. We now call into Rtl to support this, and also support unlimited slashes (note that \\??\c:\\\windows\\\\system32 is actully a valid path, for example).
   - ErrorMode is now correctly set for the thread, to avoid "Insert floppy" or "Close CDROM bay door" errors as we are using the FindFile API.
   - Correct LastError is set where appropriate.
   - An application compatibility flag is now supported.

svn path=/trunk/; revision=54318
2011-11-06 17:17:16 +00:00
Thomas Faber 61db405237 [KERNEL32]
- Use the correct buffer length in GetDllDirectoryA
- Do not always return FALSE from BasepIsCurDirAllowedForPlainExeNames
- Some cosmetic fixes

svn path=/trunk/; revision=54317
2011-11-06 15:52:20 +00:00
Alex Ionescu 36a7df4966 [KERNEL32]: Reimplement GetLong/ShortPathNameA to get rid of Wineisms and fix the fact they were forcing paths to MAX_PATH when doing A->W->A conversion. The correct behavior is to call W to get the true, real path length (no matter how big), and then deal with the sizing issues when downconverting back to A.
svn path=/trunk/; revision=54316
2011-11-06 15:34:39 +00:00
Thomas Faber 0b595ead09 [SERVICES]
- Use FIELD_OFFSET for variable-length structure sizes
- Handle an invalid parameter condition in RCreateServiceW. Fixes an advapi32:service test
- Do not dereference a NULL-pointer on out-of-memory

svn path=/trunk/; revision=54315
2011-11-06 14:23:39 +00:00
Thomas Faber ac825c5ef6 [ADVAPI32][SERVICES]
- Remove unnecessary casts, fix some const-ness, fix a DPRINT, some spacing

svn path=/trunk/; revision=54314
2011-11-06 13:33:29 +00:00
Thomas Faber 4cabf96ae6 [MSVCRTEX]
- Fix some warnings
- Remove a ros-diff in favor of mingw-w64's solution

svn path=/trunk/; revision=54313
2011-11-06 13:07:43 +00:00