[FREELDR] Move down the requirement of highest usable address

This fixes PXE boot in QEMU, where highest usable address is 0x9c400.

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65127 97493ccd-5924-5043-b1f5-66cb403b36ce
[APPWIZ][SYSSETUP]
Enforce focus of the Wine Gecko download prompt in second stage.
Patch by Ismael Ferreras Morezuelas (swyter)


git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65128 97493ccd-5924-5043-b1f5-66cb403b36ce
[FASTFAT]
On the road for getting rid of IopParseDevice() hack....

- Add support for FSCTL_LOCK_VOLUME, FSCTL_UNLOCK_VOLUME, FSCTL_DISMOUNT_VOLUME in VfatFileSystemControl()
- Implement VfatLockOrUnlockVolume(). This brings some kind of volume locking to FastFAT FSD. It's likely not fully accurate and welcome to race conditions. But, its main purpose is to be used in usetup. So, this is fine for now.
- Stubplement VfatDismountVolume(). This will be implemented later on, but should be relatively straightforward as it requires volume to be locked (so, we're the last ones on it :-)).


git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65129 97493ccd-5924-5043-b1f5-66cb403b36ce
[VFATLIB]
When we're done with formatting, attempt to umount the volume, so that it can be remounted properly by FastFAT.


git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65130 97493ccd-5924-5043-b1f5-66cb403b36ce
[WIN32K]
- check for an attached surface a bit earlier in GreExtTextOutW
- fixes Foobar 2000
CORE-7425

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65131 97493ccd-5924-5043-b1f5-66cb403b36ce
[SHELL32]
* Plug a leak. CID 716474.
CORE-7975

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65132 97493ccd-5924-5043-b1f5-66cb403b36ce
[LOGOFF]
* Plug some leaks. CIDs 716284 and 716285.
CORE-7975

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65133 97493ccd-5924-5043-b1f5-66cb403b36ce
[FINGER]
* Plug a leak. CID 1102406.
CORE-7975

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65134 97493ccd-5924-5043-b1f5-66cb403b36ce
[FINGER]
* Addendum to r37084.
* Really fixes CIDs 500624 and 500625 which were marked as fixed.
CORE-7975

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65135 97493ccd-5924-5043-b1f5-66cb403b36ce
[IPCONFIG]
* Plug some leaks. CIDs 716301 => 716305.
CORE-7975

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65136 97493ccd-5924-5043-b1f5-66cb403b36ce
[LOGOFF]
* LocalFree should only be executed if AllocAndLoadString() succeeds. Spotted by Thomas Faber.

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65137 97493ccd-5924-5043-b1f5-66cb403b36ce
[FTP]
* Plug a leak. CID 513875.
CORE-7975

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65138 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOS/SE]
 - Allocate the new ACL for the token with the right pool.
Fixes google chrome BAD_POOL_CALLER bugcheck.

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65139 97493ccd-5924-5043-b1f5-66cb403b36ce
[FASTFAT]
 - Fix renaming files in case the target file already exists.
 - Plug a few reference count leaks on FCBs.
CORE-8660 #comment fixed in r65140 #resolve
CORE-8633 #comment fixed in r65140 #resolve
CORE-4758 #comment fixed in r65140 #resolve

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65140 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL]
Some fixes and missing implementations in RawFS:
- Remove some magic values for VCB state
- Add a local VPB in our VCB. This will allow diverting the IO VPB with ours in case of dismount (and thus, will fix dismount)
- Implement support for said VPB in both RawCheckForDismount() and RawInitializeVcb()
- Now, dismount is handled in RawCheckForDismount() directly, and not in functions calling it
- Handle streams in RawClose
- Handle VCB being dismounted in RawCreate()
- Handle dismount also in RawCleanup() (not only in RawClose())

This fixes volume locking and dismounting in RawFS. And thus, allows FS swap in case of raw volume formating in first stage :-).
More to follow!


git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65141 97493ccd-5924-5043-b1f5-66cb403b36ce
[NTOSKRNL]
Revert r65120...
Which was reverting r65119...
Which was reverting r65117...
Which was reverting r65110...
Which was reverting r65107...
Which was reverting r65104!

To make it short? Fuck you IopParseDevice() hack!
And this time, I hope this is the right one!
I couldn't reproduce any of the previous issues in my WC.


git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65142 97493ccd-5924-5043-b1f5-66cb403b36ce
[OPENGL32]
 - Do not crash if thread data was not allocated

git-svn-id: svn://svn.reactos.org/reactos/trunk/reactos@65143 97493ccd-5924-5043-b1f5-66cb403b36ce