Commit graph

48814 commits

Author SHA1 Message Date
Alex Ionescu 549dd7a686 [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
2011-11-03 07:00:48 +00:00
Alex Ionescu 4ba4fdcb2c [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
2011-11-03 06:46:22 +00:00
Alex Ionescu e5f31ab0a9 [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
2011-11-03 00:30:44 +00:00
Jérôme Gardou b63701a2c9 [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
2011-11-02 23:37:38 +00:00
Kamil Hornicek b9abf0ef06 [KERNEL32]
Fix GetEnvironmentStringsA/W.
See issue #6633 for more details.

svn path=/trunk/; revision=54282
2011-11-02 20:10:02 +00:00
Eric Kohl 09de8a1431 [SYSDM]
Handle the user wait interval.

svn path=/trunk/; revision=54281
2011-11-01 17:47:18 +00:00
Cameron Gutman 7be8df8976 [USETUP]
- Fix FAT32 boot sector pointer arithmetic
- Fixes setup error when installing FAT32 boot sector to file

svn path=/trunk/; revision=54280
2011-10-31 07:32:00 +00:00
Alex Ionescu 5671dd839b [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
2011-10-30 21:41:12 +00:00
Jérôme Gardou 5ef1d7f8d2 [NTOSKRNL]
- Fix typo

svn path=/trunk/; revision=54278
2011-10-30 19:19:49 +00:00
Jérôme Gardou daf8019f6c [WIN32K]
- Allocate lokkaside lists from non paged pool.
- Add allocation failure check.

svn path=/trunk/; revision=54277
2011-10-30 18:37:30 +00:00
Alex Ionescu 9f4d272bac [KERNEL32]: Fix many bugs and confusion regarding string sizes in previous commit.
svn path=/trunk/; revision=54276
2011-10-30 16:49:25 +00:00
James Tabor 12f502c35b [Win32k]
- don't hangup on the user while in send message.

svn path=/trunk/; revision=54275
2011-10-30 15:44:31 +00:00
Alex Ionescu 0bf4287f08 [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
2011-10-30 01:07:09 +00:00
Jérôme Gardou bfc68fc3a1 [CDFS]
- Read all blocks at once for misaligned read.

svn path=/trunk/; revision=54273
2011-10-30 00:58:21 +00:00
Eric Kohl f39c8938c3 [UMPNPMGR]
- Implement PNP_GetHwProfInfo.
- Fix PNP_GetClassRegProp: Set the transfer length only in case of success.

svn path=/trunk/; revision=54272
2011-10-29 21:54:24 +00:00
Jérôme Gardou f6d2cc099e [CDFS]
- fix non cached reading when offset or length is not aligned on block size

svn path=/trunk/; revision=54271
2011-10-29 20:34:08 +00:00
Jérôme Gardou d028b2cb22 [NTOSKRNL]
- add missing lock/unlock of kernel address space

svn path=/trunk/; revision=54270
2011-10-29 16:25:11 +00:00
Cameron Gutman 79721ed8cb [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
2011-10-29 15:10:11 +00:00
Cameron Gutman daaf78f524 [FSLIB]
- Don't call the callback if the caller didn't give one

svn path=/trunk/; revision=54268
2011-10-29 15:03:01 +00:00
Cameron Gutman f89a5c926a [FLOPPY]
- Prevent a deadlock on very old controllers by sending the configure and version commands before resetting the controller

svn path=/trunk/; revision=54267
2011-10-29 14:19:30 +00:00
Cameron Gutman 9267b63627 [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
2011-10-29 13:22:18 +00:00
Cameron Gutman fabd252d70 [NTOSKRNL]
- Fix handling of HAL returning a different address space than we thought

svn path=/trunk/; revision=54265
2011-10-29 12:18:25 +00:00
Thomas Faber 5fc47e3025 [USER32]
- Fix MSVC build

svn path=/trunk/; revision=54264
2011-10-28 22:15:53 +00:00
Cameron Gutman 48f72b0826 [WININET]
- Disable connection keep-alive to avoid calling into msafd to close the connection later during DLL_PROCESS_DETACH

svn path=/trunk/; revision=54263
2011-10-28 18:58:43 +00:00
Jérôme Gardou ae2c3ea022 [NTOSKRNL]
- remove unused variables/arguments
- Add small check in MmNotPresentFaultSectionView

svn path=/trunk/; revision=54262
2011-10-28 16:34:48 +00:00
James Tabor 7a4e31a240 [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
2011-10-28 12:00:07 +00:00
Cameron Gutman 9485661218 [FREELDR]
- Check VESA BIOS signature before reporting VESA extensions are present

svn path=/trunk/; revision=54260
2011-10-27 19:11:22 +00:00
James Tabor c59fc2237c [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
2011-10-27 12:17:44 +00:00
Sylvain Petreolle 3c1d785188 [KERNEL32]
Use ERROR_SUCCESS instead of 0.
Dedicated to Pierre.

svn path=/trunk/; revision=54258
2011-10-27 09:38:14 +00:00
Sylvain Petreolle 7d118f02b6 [KERNEL32]
CreateFile has to set last error on success.
Fixes kernel32:file test cancellation.

svn path=/trunk/; revision=54257
2011-10-26 19:02:32 +00:00
Cameron Gutman f8459fbb45 [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
2011-10-26 14:38:57 +00:00
James Tabor c796f0b844 [User32]
- Up Dialog.c to 1.3.31, sync port and minimized differences.
- Sync Information:
  Alexandre Julliard <julliard@winehq.org> : Don't overwrite the default button id when creating the dialog structure.
  Michael Stefaniuc <mstefani@redhat.de>: Avoid using long. Avoid using HIWORD() on atoms/resources.

svn path=/trunk/; revision=54255
2011-10-26 02:17:02 +00:00
James Tabor 46520a9bbe - Port wine right.
svn path=/trunk/; revision=54254
2011-10-25 02:53:44 +00:00
James Tabor ee477c63ed - Fix crash in cursoricon test.
svn path=/trunk/; revision=54253
2011-10-25 02:14:38 +00:00
Cameron Gutman 9bd7961e1c [NTOSKRNL]
- Fix debug prints for 64-bit values

svn path=/trunk/; revision=54252
2011-10-24 21:09:58 +00:00
Cameron Gutman 84409cef86 [NDIS]
- Implement NdisMSetupDmaTransfer, NdisMCompleteDmaTransfer, NdisSetupDmaTransfer, NdisCompleteDmaTransfer, and NdisAllocateDmaChannel

svn path=/trunk/; revision=54251
2011-10-24 20:38:36 +00:00
James Tabor da83a8919e [User32]
- Fix class window procedure checks, prevents misbehaving applications from calling wrong class procs.

svn path=/trunk/; revision=54250
2011-10-24 14:49:25 +00:00
James Tabor 519e75748d [User32]
- Fix class window procedure checks, prevents misbehaving applications from calling wrong class procs.
- Fixed callout for static control color brush.

svn path=/trunk/; revision=54249
2011-10-24 14:47:59 +00:00
James Tabor 3581e033d0 [User32]
- Use SetWindowTextA/W so that it passes through defwnd to be processed for themes.
- Fix validation of the dialog window and procedure.

svn path=/trunk/; revision=54248
2011-10-24 14:16:53 +00:00
James Tabor 6027ff60e6 [User32]
- Fix SetWindowTextA/W so that it passes through defwnd to be processed for themes.
- Fix desktop checks.
- Add create window flags.

svn path=/trunk/; revision=54247
2011-10-24 14:13:19 +00:00
Cameron Gutman 27c384324c [NDIS]
- Stub and export NdisMSetupDmaTransfer and NdisMCompleteDmaTransfer

svn path=/trunk/; revision=54246
2011-10-24 09:33:29 +00:00
Cameron Gutman d8f0d214d2 [NDIS]
- Fix addressing constraints for slave DMA devices that don't have 32-bit address support

svn path=/trunk/; revision=54245
2011-10-24 09:12:34 +00:00
Cameron Gutman bc55323de3 [NDIS]
- Demote some debug prints

svn path=/trunk/; revision=54244
2011-10-24 08:22:56 +00:00
Sylvain Petreolle 3361be2360 [ROSAPPS]
Add rosapps to build.

svn path=/trunk/; revision=54243
2011-10-23 12:30:42 +00:00
Sylvain Petreolle 3ed5f76537 [ROSAPPS]
Add cmake base files with ssstars.

svn path=/trunk/; revision=54242
2011-10-23 12:30:27 +00:00
Eric Kohl 813bcdc401 [DISKPART]
- Add a simple usage function (/? option).
- Simplify the interpreter loop a little bit.

svn path=/trunk/; revision=54241
2011-10-23 12:04:48 +00:00
Cameron Gutman 51ca9e5645 [VIDEOPRT]
- Store the slot number we find in the device extension by legacy detection

svn path=/trunk/; revision=54240
2011-10-23 04:04:17 +00:00
Cameron Gutman c64e8b00c0 [VIDEOPRT]
- Support passing a resource requirements list to VideoPortGetAccessRanges

svn path=/trunk/; revision=54239
2011-10-23 03:55:35 +00:00
Cameron Gutman 69fdb2ac71 [NTOSKRNL]
- Fix a major off-by-one bug in resource conflict checking
- Respect requested alignment when checking for valid port/memory ranges

svn path=/trunk/; revision=54238
2011-10-23 03:06:23 +00:00
Cameron Gutman 25eae4b916 [VIDEOPRT]
- Report legacy resources to the PnP manager via IRP_MN_FILTER_RESOURCE_REQUIREMENTS
- Report legacy access ranges in response to VideoPortGetAccessRanges
- TODO: Handle an optional resource requirements list in VideoPortGetAccessRanges

svn path=/trunk/; revision=54237
2011-10-23 02:45:09 +00:00