Thomas Faber [Sat, 12 Nov 2011 00:21:57 +0000 (00:21 +0000)]
[KMTESTS]
- Fix some typos in previous commit
- Make the driver object accessible to tests
svn path=/trunk/; revision=54355
Thomas Faber [Sat, 12 Nov 2011 00:07:42 +0000 (00:07 +0000)]
[USBDRV]
- Get rid of some inline assembly
svn path=/trunk/; revision=54354
Thomas Faber [Fri, 11 Nov 2011 23:04:26 +0000 (23:04 +0000)]
[KMTESTS]
- Fix AMD64 build
svn path=/trunk/; revision=54353
Cameron Gutman [Fri, 11 Nov 2011 20:41:10 +0000 (20:41 +0000)]
[PNP]
- Kill some debug spam
svn path=/trunk/; revision=54352
James Tabor [Fri, 11 Nov 2011 13:04:37 +0000 (13:04 +0000)]
[Shell32]
- Fix edit control window procedure, see Bug 4856.
svn path=/trunk/; revision=54351
Pierre Schweitzer [Fri, 11 Nov 2011 12:22:05 +0000 (12:22 +0000)]
[KERNEL32]
No need to init string to empty
This will make Coverity happier
svn path=/trunk/; revision=54350
Aleksey Bragin [Fri, 11 Nov 2011 11:55:49 +0000 (11:55 +0000)]
[RTL]
- A bit more of the DPH code cleanup, no bugs found so far.
svn path=/trunk/; revision=54349
Thomas Faber [Thu, 10 Nov 2011 22:56:22 +0000 (22:56 +0000)]
[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
Cameron Gutman [Thu, 10 Nov 2011 22:42:16 +0000 (22:42 +0000)]
[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
Thomas Faber [Thu, 10 Nov 2011 22:34:31 +0000 (22:34 +0000)]
[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
Thomas Faber [Thu, 10 Nov 2011 22:21:11 +0000 (22:21 +0000)]
[SERVICES]
- Move utility functions to the top
svn path=/trunk/; revision=54345
Thomas Faber [Thu, 10 Nov 2011 21:29:34 +0000 (21:29 +0000)]
[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
Aleksey Bragin [Thu, 10 Nov 2011 15:13:21 +0000 (15:13 +0000)]
[RTL]
- DPH: Improve RtlpPageHeapAllocate() code, make variable names consistent with the generic available/busy terms. Logic is absolutely unchanged.
svn path=/trunk/; revision=54343
Eric Kohl [Wed, 9 Nov 2011 23:18:37 +0000 (23:18 +0000)]
[SERVICES]
Improve the parameter checks in RCreateServiceW.
svn path=/trunk/; revision=54342
Thomas Faber [Wed, 9 Nov 2011 18:52:09 +0000 (18:52 +0000)]
[USER32]
- Fix a TRACE. Spotted by Victor Martinez
svn path=/trunk/; revision=54341
Kamil Hornicek [Tue, 8 Nov 2011 17:08:04 +0000 (17:08 +0000)]
[FASTFAT]
Don't report success for unsupported file information classes.
See issue #6628 for more details.
svn path=/trunk/; revision=54340
Alex Ionescu [Mon, 7 Nov 2011 17:49:10 +0000 (17:49 +0000)]
[KERNEL32]: Fix a bug when converting EXECUTE access.
svn path=/trunk/; revision=54339
Thomas Faber [Mon, 7 Nov 2011 16:53:04 +0000 (16:53 +0000)]
[KERNEL32]
- Do not fail in CreateFileMappingW if write or execute access is requested
svn path=/trunk/; revision=54338
Alex Ionescu [Mon, 7 Nov 2011 15:44:07 +0000 (15:44 +0000)]
Hurray for misisng includes.
svn path=/trunk/; revision=54337
Alex Ionescu [Mon, 7 Nov 2011 15:43:37 +0000 (15:43 +0000)]
[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
Dmitry Gorbachev [Mon, 7 Nov 2011 08:01:58 +0000 (08:01 +0000)]
[TRANSLATION]
- Add some Romanian strings to the registry. Fulea Stefan, bug #6603.
- Add a few Russian strings, too.
svn path=/trunk/; revision=54335
Alex Ionescu [Mon, 7 Nov 2011 07:41:52 +0000 (07:41 +0000)]
[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
Pierre Schweitzer [Mon, 7 Nov 2011 06:45:17 +0000 (06:45 +0000)]
[KERNEL32]
Fix wrong L usage in new code.
svn path=/trunk/; revision=54333
Alex Ionescu [Mon, 7 Nov 2011 05:07:58 +0000 (05:07 +0000)]
[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
Cameron Gutman [Mon, 7 Nov 2011 02:02:59 +0000 (02:02 +0000)]
[TCPIP]
- Fix a potential double-completion of an IRP
svn path=/trunk/; revision=54331
Cameron Gutman [Mon, 7 Nov 2011 01:47:55 +0000 (01:47 +0000)]
[NPFS]
- Fix an access-after-free bug
svn path=/trunk/; revision=54330
Alex Ionescu [Mon, 7 Nov 2011 01:40:33 +0000 (01:40 +0000)]
Forgotten file.
svn path=/trunk/; revision=54329
Cameron Gutman [Mon, 7 Nov 2011 01:37:35 +0000 (01:37 +0000)]
[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
Cameron Gutman [Mon, 7 Nov 2011 00:52:32 +0000 (00:52 +0000)]
[NPFS]
- Fix several cancellation races and broken checks
svn path=/trunk/; revision=54327
Alex Ionescu [Mon, 7 Nov 2011 00:18:13 +0000 (00:18 +0000)]
[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
Cameron Gutman [Sun, 6 Nov 2011 23:40:06 +0000 (23:40 +0000)]
[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
Thomas Faber [Sun, 6 Nov 2011 23:38:39 +0000 (23:38 +0000)]
[KERNEL32_WINETEST]
- Do not use strcat_s. It is not guaranteed to exist on Windows.
svn path=/trunk/; revision=54324
Alex Ionescu [Sun, 6 Nov 2011 23:01:04 +0000 (23:01 +0000)]
[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
Alex Ionescu [Sun, 6 Nov 2011 22:46:31 +0000 (22:46 +0000)]
[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
Alex Ionescu [Sun, 6 Nov 2011 21:00:10 +0000 (21:00 +0000)]
[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
Alex Ionescu [Sun, 6 Nov 2011 19:42:59 +0000 (19:42 +0000)]
[KERNEL32]: Fix some bugs in previous two commits (thanks Thomas).
svn path=/trunk/; revision=54320
Cameron Gutman [Sun, 6 Nov 2011 18:47:51 +0000 (18:47 +0000)]
[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
Alex Ionescu [Sun, 6 Nov 2011 17:17:16 +0000 (17:17 +0000)]
[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
Thomas Faber [Sun, 6 Nov 2011 15:52:20 +0000 (15:52 +0000)]
[KERNEL32]
- Use the correct buffer length in GetDllDirectoryA
- Do not always return FALSE from BasepIsCurDirAllowedForPlainExeNames
- Some cosmetic fixes
svn path=/trunk/; revision=54317
Alex Ionescu [Sun, 6 Nov 2011 15:34:39 +0000 (15:34 +0000)]
[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
Thomas Faber [Sun, 6 Nov 2011 14:23:39 +0000 (14:23 +0000)]
[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
Thomas Faber [Sun, 6 Nov 2011 13:33:29 +0000 (13:33 +0000)]
[ADVAPI32][SERVICES]
- Remove unnecessary casts, fix some const-ness, fix a DPRINT, some spacing
svn path=/trunk/; revision=54314
Thomas Faber [Sun, 6 Nov 2011 13:07:43 +0000 (13:07 +0000)]
[MSVCRTEX]
- Fix some warnings
- Remove a ros-diff in favor of mingw-w64's solution
svn path=/trunk/; revision=54313
Thomas Faber [Sun, 6 Nov 2011 12:51:18 +0000 (12:51 +0000)]
[CRT]
- Export _resetstkoflw from msvcrt. Implementation from Wine 1.3.32
svn path=/trunk/; revision=54312
Thomas Faber [Sun, 6 Nov 2011 12:17:42 +0000 (12:17 +0000)]
[SYSSETUP]
- Do not rely on setupapi's FileExists function, which shouldn't even be exported
svn path=/trunk/; revision=54311
Alex Ionescu [Sun, 6 Nov 2011 04:13:21 +0000 (04:13 +0000)]
[KERNEL32]: The ANSI/OEM stubs were never initialized... it's a miracle this ever worked, probably because someone added a #define to at least one of them to hack it into working. Initialize the value snow, fixes boot.
svn path=/trunk/; revision=54310
Alex Ionescu [Sun, 6 Nov 2011 02:00:56 +0000 (02:00 +0000)]
[KERNEL32]: Move path-related APIs away from dir.c, and into path.c instead.
[KERNEL32]: Fix SetDllDirectoryW:
- Fail if ";" is in path
- Use RtlCreateUnicodeString instead of manual string management -- if the allocation fails, do not free the current base directory string! Older API would always free the current directory string, even if setting up the new one failed.
- Don't assume lpPathName is filled out, it can be NULL, and this means the DLL directory should be cleared.
[KERNEL32]: Fix SetDllDirectoryA as above, additionally use RtlInitAnsiStringEx to protect against overflow, and use Basep8BitStringToUnicodeString, to add support for OEM paths instead of assuming ANSI.
[KERNEL32]: GetDllDirectoryW: correctly NULL-terminate and check lengths
[KERNEL32]: GetDllDirectoryA: same as above, plus use BasepUnicodeString* APIs to correctly support OEM paths instead of assuming ANSI.
[KERNEL32]: NeedCurrentDirectoryForExePath(A/W): call internal BasepIsCurDirAllowedForPlainExeNames instead of converting from A->W, this isn't needed.
[KERNEL32]: GetFullPathNameW just calls RtlGetFullPathName_U, no extra checks/etc are needed.
Next steps are GetFullPathNameA, GetShort/LongPathNameA, GetShort/LongPathNameW, hoping to bring the wine test failures closer to zero.
svn path=/trunk/; revision=54309
Alex Ionescu [Sun, 6 Nov 2011 01:47:49 +0000 (01:47 +0000)]
[KERNEL32]: Actually properly support ANSI vs OEM SetFileAPI instead of assuming Unicode->ANSI for most things. Note this just adds support, there's still many wine-synched APIs that are using the FileNameA2W hacks and similar, which force ANSI. But it's a step in the right direction.
svn path=/trunk/; revision=54308
Alex Ionescu [Sun, 6 Nov 2011 01:34:06 +0000 (01:34 +0000)]
[NTDLL]: Export RtlImageNtHeaderEx and LodrLoadAlternateResourceModule.
[NDK]: Add LdrLoadAlternateResourceModule. Fix RtlDosApplyFileIsolationRedirection_UStr and add flags.
[NTDLL]: Halfplement LdrLoad/UnloadAlternateResourceModule.
svn path=/trunk/; revision=54307
Pierre Schweitzer [Sun, 6 Nov 2011 00:09:33 +0000 (00:09 +0000)]
[KERNEL32]
Fix c/p mistake.
Brought to you by Vincenzo Cotugno
svn path=/trunk/; revision=54306
Sylvain Petreolle [Sun, 6 Nov 2011 00:04:57 +0000 (00:04 +0000)]
-Add missing struct to winnt.h.
svn path=/trunk/; revision=54305
Thomas Faber [Sat, 5 Nov 2011 20:40:59 +0000 (20:40 +0000)]
[MSHTML][SHDOCVW]
- Initialize OLEINPLACEFRAMEINFO.cb for IOleInPlaceSite::GetWindowContext. Fixes explorer "Web" button assert. Already applied upstream.
See issue #6011 for more details.
svn path=/trunk/; revision=54304
Claudiu Mihail [Sat, 5 Nov 2011 20:09:30 +0000 (20:09 +0000)]
[shell32]
- Fix a few more winetests in shlfolder tests.
svn path=/trunk/; revision=54303
Cameron Gutman [Sat, 5 Nov 2011 18:54:49 +0000 (18:54 +0000)]
[LWIP]
- Properly sync to lwIP 1.4.0
- No code changes (except unit tests)
svn path=/trunk/; revision=54302
Amine Khaldi [Sat, 5 Nov 2011 17:56:10 +0000 (17:56 +0000)]
[SHELL32]
* Fix rbuild build.
* Remove a debug breakpoint that is no longer needed.
svn path=/trunk/; revision=54301
Claudiu Mihail [Sat, 5 Nov 2011 16:40:42 +0000 (16:40 +0000)]
[shell32]
- Fix ParseDisplayName based on wine by checking for paths that are parsable through IEParseDisplayNameWithBCW. Score 2 failed wine tests in shlfolder
svn path=/trunk/; revision=54300
Thomas Faber [Sat, 5 Nov 2011 11:39:37 +0000 (11:39 +0000)]
[KERNEL32]
- Fix MSVC build
svn path=/trunk/; revision=54299
Thomas Faber [Sat, 5 Nov 2011 10:24:24 +0000 (10:24 +0000)]
[CRT]
- Gracefully fail on NULL for gmtime functions. Fixes msvcrt:time crash
svn path=/trunk/; revision=54298
Thomas Faber [Sat, 5 Nov 2011 10:08:06 +0000 (10:08 +0000)]
[CRT]
- Sync heap.c and undname.c with Wine 1.3.32
- Remove incorrect casts. Undo an incorrect warning fix. Fixes hang in msvcrt:cpp test
svn path=/trunk/; revision=54297
Thomas Faber [Sat, 5 Nov 2011 09:54:41 +0000 (09:54 +0000)]
[MSVCRT_WINETEST]
- Sync to Wine 1.3.32
svn path=/trunk/; revision=54296
Thomas Faber [Sat, 5 Nov 2011 09:07:39 +0000 (09:07 +0000)]
[PSDK][KERNEL32]
- Fix some DWORD vs SIZE_T confusion for memory functions
svn path=/trunk/; revision=54295
James Tabor [Sat, 5 Nov 2011 06:01:05 +0000 (06:01 +0000)]
[Win32k]
- Reposition IntCallWndProc/Ret so it call when sending to client.
svn path=/trunk/; revision=54294
James Tabor [Sat, 5 Nov 2011 05:18:57 +0000 (05:18 +0000)]
[User32]
- Fixed Dialog Ansi and color control brush acquisition.
- Added stack protection for message recursion. Due to wine message bug when in dialog initialization. See bug 6126.
- Miscellaneous fixups.
svn path=/trunk/; revision=54293
Alex Ionescu [Sat, 5 Nov 2011 04:53:18 +0000 (04:53 +0000)]
[KERNEL32]: Fix a missing "~" in GlobalReAlloc and LocalReAlloc, which caused a flag never to be removed.
svn path=/trunk/; revision=54292
Alex Ionescu [Sat, 5 Nov 2011 01:19:52 +0000 (01:19 +0000)]
[KERNEL32]: Implement CreateJobSet
[KERNEL32]: Acquire SE_INCREASE_WORKING_SET_PRIVILEGE in SetInformationJobObject if needed.
[KERNEL32]: Only do conversion of Process Priority Class in SetInformationJobObject if the limit flags request it.
[KERNEL32]: Add missing size checks in QueryInformationJobObject.
[KERNEL32]: Use RtlEncode/DecodePointer to protect the top level exception handler pointer, as done on NT 5.2+
[KERNEL32]: Fix IsBadRead/WritePtr to use the correct page size from the CSRSS shared section.
[KERNEL32]: Fix IsBad(String)Read/WritePtr loops
[KERNEL32]: SetErrorMode now handles SEM_NOALIGNMENTFAULTEXCEPT.
[KERNEL32]: Set/GetErrorMode do not set LastError on failure.
[KERNEL32]: RaiseException can simply use memcpy instead of copying argument by argument.
[KERNEL32]: Minor formatting changes.
svn path=/trunk/; revision=54291
Thomas Faber [Fri, 4 Nov 2011 23:07:16 +0000 (23:07 +0000)]
[RICHED20_WINETEST]
- Sync to Wine 1.3.32
svn path=/trunk/; revision=54290
James Tabor [Fri, 4 Nov 2011 13:21:13 +0000 (13:21 +0000)]
- Fix build.
svn path=/trunk/; revision=54289
James Tabor [Fri, 4 Nov 2011 13:16:48 +0000 (13:16 +0000)]
[Win32k|User32]
- Move control color support to Win32k.
svn path=/trunk/; revision=54288
Kamil Hornicek [Thu, 3 Nov 2011 13:48:23 +0000 (13:48 +0000)]
[KERNEL32]
Fix a copypasta.
See issue #6635 for more details.
svn path=/trunk/; revision=54287
Alex Ionescu [Thu, 3 Nov 2011 07:00:48 +0000 (07:00 +0000)]
[KERNEL32]: BaseNamedObjectDirectory should work on demand, instead of on startup. Also, support cases when the thread is doing impersonation, to make sure it uses its real session ID and security access. Also, support cases when the BNO directory is not available, and use the BNO\Restricted directory instead (we should have our CSRSS create it).
svn path=/trunk/; revision=54286
Alex Ionescu [Thu, 3 Nov 2011 06:46:22 +0000 (06:46 +0000)]
[KERNEL32]: Fix multiple issues in BaseCreateStack:
- StackLimit was set incorrectly.
- Code was not using BaseStaticServerdata, but querying NT instead.
- Fix memory leak in failure case.
- StackCommit and StackReserved values were not aligned correctly.
- Windows Server 2003+ feature of "Guaranteed Stack Commit Size" was not respected.
- Some math was screwy.
- Failure to get NT headers was not handled.
svn path=/trunk/; revision=54285
Alex Ionescu [Thu, 3 Nov 2011 00:30:44 +0000 (00:30 +0000)]
[KERNEL32]: Rearrange and rename some base functions.
[KERNEL32]: Fix some error cases in the helper string functions.
[KERNEL32]: Implement BasepIsRealtimeAllowed.
[KERNEL32]: Don't need RPL_MASK when setting up the CONTEXT, this now matches what Windows sets up (and also helps us validate the kernel is doing the right thing).
svn path=/trunk/; revision=54284
Jérôme Gardou [Wed, 2 Nov 2011 23:37:38 +0000 (23:37 +0000)]
[KERNEL32]
- Small performance improvement : Directly reference dll when getting its handle instead of just checking it's there and then load it
svn path=/trunk/; revision=54283
Kamil Hornicek [Wed, 2 Nov 2011 20:10:02 +0000 (20:10 +0000)]
[KERNEL32]
Fix GetEnvironmentStringsA/W.
See issue #6633 for more details.
svn path=/trunk/; revision=54282
Eric Kohl [Tue, 1 Nov 2011 17:47:18 +0000 (17:47 +0000)]
[SYSDM]
Handle the user wait interval.
svn path=/trunk/; revision=54281
Cameron Gutman [Mon, 31 Oct 2011 07:32:00 +0000 (07:32 +0000)]
[USETUP]
- Fix FAT32 boot sector pointer arithmetic
- Fixes setup error when installing FAT32 boot sector to file
svn path=/trunk/; revision=54280
Alex Ionescu [Sun, 30 Oct 2011 21:41:12 +0000 (21:41 +0000)]
[KERNEL32]: In failure cases we should return one more byte for ANSI_NULL as well. Also fix another length check.
svn path=/trunk/; revision=54279
Jérôme Gardou [Sun, 30 Oct 2011 19:19:49 +0000 (19:19 +0000)]
[NTOSKRNL]
- Fix typo
svn path=/trunk/; revision=54278
Jérôme Gardou [Sun, 30 Oct 2011 18:37:30 +0000 (18:37 +0000)]
[WIN32K]
- Allocate lokkaside lists from non paged pool.
- Add allocation failure check.
svn path=/trunk/; revision=54277
Alex Ionescu [Sun, 30 Oct 2011 16:49:25 +0000 (16:49 +0000)]
[KERNEL32]: Fix many bugs and confusion regarding string sizes in previous commit.
svn path=/trunk/; revision=54276
James Tabor [Sun, 30 Oct 2011 15:44:31 +0000 (15:44 +0000)]
[Win32k]
- don't hangup on the user while in send message.
svn path=/trunk/; revision=54275
Alex Ionescu [Sun, 30 Oct 2011 01:07:09 +0000 (01:07 +0000)]
[KERNEL32]: Rewrite (in some cases, simply clean-up) environment handling functions for better string handling, error codes, and performance. Part of ongoing kernel32 work.
svn path=/trunk/; revision=54274
Jérôme Gardou [Sun, 30 Oct 2011 00:58:21 +0000 (00:58 +0000)]
[CDFS]
- Read all blocks at once for misaligned read.
svn path=/trunk/; revision=54273
Eric Kohl [Sat, 29 Oct 2011 21:54:24 +0000 (21:54 +0000)]
[UMPNPMGR]
- Implement PNP_GetHwProfInfo.
- Fix PNP_GetClassRegProp: Set the transfer length only in case of success.
svn path=/trunk/; revision=54272
Jérôme Gardou [Sat, 29 Oct 2011 20:34:08 +0000 (20:34 +0000)]
[CDFS]
- fix non cached reading when offset or length is not aligned on block size
svn path=/trunk/; revision=54271
Jérôme Gardou [Sat, 29 Oct 2011 16:25:11 +0000 (16:25 +0000)]
[NTOSKRNL]
- add missing lock/unlock of kernel address space
svn path=/trunk/; revision=54270
Cameron Gutman [Sat, 29 Oct 2011 15:10:11 +0000 (15:10 +0000)]
[USETUP]
- Use a separate function, InstallFat12BootCodeToFloppy(), to install the floppy boot code
- Format the floppy to FAT12 before writing to it
- Booting FreeLoader from floppy works again (bug #6495)
svn path=/trunk/; revision=54269
Cameron Gutman [Sat, 29 Oct 2011 15:03:01 +0000 (15:03 +0000)]
[FSLIB]
- Don't call the callback if the caller didn't give one
svn path=/trunk/; revision=54268
Cameron Gutman [Sat, 29 Oct 2011 14:19:30 +0000 (14:19 +0000)]
[FLOPPY]
- Prevent a deadlock on very old controllers by sending the configure and version commands before resetting the controller
svn path=/trunk/; revision=54267
Cameron Gutman [Sat, 29 Oct 2011 13:22:18 +0000 (13:22 +0000)]
[FLOPPY]
- Improve the floppy controller initialization code to fix several cases where the controller could deadlock or otherwise malfunction on us
svn path=/trunk/; revision=54266
Cameron Gutman [Sat, 29 Oct 2011 12:18:25 +0000 (12:18 +0000)]
[NTOSKRNL]
- Fix handling of HAL returning a different address space than we thought
svn path=/trunk/; revision=54265
Thomas Faber [Fri, 28 Oct 2011 22:15:53 +0000 (22:15 +0000)]
[USER32]
- Fix MSVC build
svn path=/trunk/; revision=54264
Cameron Gutman [Fri, 28 Oct 2011 18:58:43 +0000 (18:58 +0000)]
[WININET]
- Disable connection keep-alive to avoid calling into msafd to close the connection later during DLL_PROCESS_DETACH
svn path=/trunk/; revision=54263
Jérôme Gardou [Fri, 28 Oct 2011 16:34:48 +0000 (16:34 +0000)]
[NTOSKRNL]
- remove unused variables/arguments
- Add small check in MmNotPresentFaultSectionView
svn path=/trunk/; revision=54262
James Tabor [Fri, 28 Oct 2011 12:00:07 +0000 (12:00 +0000)]
[User32]
- Icon title, menu and scroll bar do not set the death bit. Menu and scroll bar set the id only on specific window messages.
svn path=/trunk/; revision=54261
Cameron Gutman [Thu, 27 Oct 2011 19:11:22 +0000 (19:11 +0000)]
[FREELDR]
- Check VESA BIOS signature before reporting VESA extensions are present
svn path=/trunk/; revision=54260
James Tabor [Thu, 27 Oct 2011 12:17:44 +0000 (12:17 +0000)]
[User32]
- Fix function ids, setting of the death bit when in NC destroy.
- Implement get control brush and color.
- Patch by Alexander LAW, Replicate Windows behavior of WM_SETTEXT handler regarding WM_CTLCOLOR*
svn path=/trunk/; revision=54259
Sylvain Petreolle [Thu, 27 Oct 2011 09:38:14 +0000 (09:38 +0000)]
[KERNEL32]
Use ERROR_SUCCESS instead of 0.
Dedicated to Pierre.
svn path=/trunk/; revision=54258
Sylvain Petreolle [Wed, 26 Oct 2011 19:02:32 +0000 (19:02 +0000)]
[KERNEL32]
CreateFile has to set last error on success.
Fixes kernel32:file test cancellation.
svn path=/trunk/; revision=54257
Cameron Gutman [Wed, 26 Oct 2011 14:38:57 +0000 (14:38 +0000)]
[NTOSKRNL]
- Pass a placeholder trap information, indicating that we are unlocked, to MmAccessFault in MmProbeAndLockPages as temporary hack until Mm locking is fixed
- Fixes "Assertion 'GuardedMutex->Owner == KeGetCurrentThread()' failed" when faulting in pages via MmProbeAndLockPages
- Dedicated to Jim :)
svn path=/trunk/; revision=54256