reactos.git
9 years ago[NTOS:IO]
Thomas Faber [Fri, 24 Oct 2014 10:02:14 +0000 (10:02 +0000)]
[NTOS:IO]
- Introduce IopDriverLoadResource to protect against concurrent driver loading
CORE-8696 #resolve

svn path=/trunk/; revision=64951

9 years ago[NTOS:IO]
Thomas Faber [Fri, 24 Oct 2014 09:39:15 +0000 (09:39 +0000)]
[NTOS:IO]
- Don't delete the device node for root enumerated device objects on failure. It's pointless, since IopEnumerateDevice will just recreate it, and more importantly it causes a use-after-free because IopFreeDeviceNode does not unset the DeviceNode member of the device object extension, so IopEnumerateDevice will try to access the freed node
- Set the device object's DeviceNode pointer to NULL in IopFreeDeviceNode
- Use consistent pool tagging for device nodes
CORE-8671 #resolve

svn path=/trunk/; revision=64950

9 years ago[USER32]
Thomas Faber [Fri, 24 Oct 2014 09:26:03 +0000 (09:26 +0000)]
[USER32]
- Zero-initialize result in SendMessageTimeout
CORE-8699 #resolve

svn path=/trunk/; revision=64949

9 years ago[USER32_APITEST]
Thomas Faber [Fri, 24 Oct 2014 09:16:04 +0000 (09:16 +0000)]
[USER32_APITEST]
- Add a test for SendMessageTimeout failure case
- Remove a pointless (and broken) memset (Coverity)
CORE-8699

svn path=/trunk/; revision=64948

9 years ago[NTOSKRNL]
Timo Kreuzer [Fri, 24 Oct 2014 07:16:44 +0000 (07:16 +0000)]
[NTOSKRNL]
Do not try to dereference Irp->UserIosb if it is NULL, to avoid unnecessary exceptions (inside SEH).

svn path=/trunk/; revision=64947

9 years ago[NTOS:IO]
Thomas Faber [Thu, 23 Oct 2014 22:05:56 +0000 (22:05 +0000)]
[NTOS:IO]
- Normalize, er.. simplify IopNormalizeImagePath a bit and use pool tagging

svn path=/trunk/; revision=64946

9 years ago[FREELDR]
Timo Kreuzer [Thu, 23 Oct 2014 21:52:39 +0000 (21:52 +0000)]
[FREELDR]
Move the BIOS call buffer to physical address 0x4000, making another page available at the top, moving the margin down to 0x9E000. Should fix boot with machines that have a large EBDA.
CORE-8692 #comment please retest.

svn path=/trunk/; revision=64945

9 years ago[WIN32K]
Jérôme Gardou [Thu, 23 Oct 2014 20:08:03 +0000 (20:08 +0000)]
[WIN32K]
 - Fix hook leaks.
User object manager creates object with 2 (two, deux, zwei, dos) reference counts.

svn path=/trunk/; revision=64942

9 years ago[WIN32K]
Jérôme Gardou [Thu, 23 Oct 2014 19:41:52 +0000 (19:41 +0000)]
[WIN32K]
 - Properly free classes small icon handles
 - Do not use LR_SHARED when copying them from the large icon. There's no reason for them to outlive the class.
Should fix remaining failures in user32:class that I introduced.

svn path=/trunk/; revision=64939

9 years ago[WIN32K/USER32]
Jérôme Gardou [Thu, 23 Oct 2014 19:41:42 +0000 (19:41 +0000)]
[WIN32K/USER32]
 - Simplify an overcomplicated way to get buffer size from win32k
 - Do not spaghettize between string length and buffer size.
 - Properly use GetModuleFileName.

svn path=/trunk/; revision=64938

9 years ago[ADVAPI32]
Amine Khaldi [Thu, 23 Oct 2014 18:58:35 +0000 (18:58 +0000)]
[ADVAPI32]
* Introduce a wine folder to group the Wine synced source files.
* Use the crypt folder as a starting point. More will follow.
CORE-8540

svn path=/trunk/; revision=64937

9 years ago[PCIX]
Amine Khaldi [Thu, 23 Oct 2014 18:51:12 +0000 (18:51 +0000)]
[PCIX]
* PciIdPrintfAppend is a vararg too.

svn path=/trunk/; revision=64936

9 years ago[PCIX]
Amine Khaldi [Thu, 23 Oct 2014 18:42:39 +0000 (18:42 +0000)]
[PCIX]
* PciIdPrintf is a vararg.

svn path=/trunk/; revision=64935

9 years ago[NET]
Eric Kohl [Thu, 23 Oct 2014 18:36:11 +0000 (18:36 +0000)]
[NET]
Implement the first part of the NET USER command.

svn path=/trunk/; revision=64934

9 years ago[COMPBATT]
Amine Khaldi [Thu, 23 Oct 2014 18:33:21 +0000 (18:33 +0000)]
[COMPBATT]
* Arch, don't return NTSTATUS instead of PCOMPBATT_BATTERY_DATA!

svn path=/trunk/; revision=64933

9 years ago[DSOUND]
Amine Khaldi [Thu, 23 Oct 2014 18:07:43 +0000 (18:07 +0000)]
[DSOUND]
* ProjectVector is used in commented out code.

svn path=/trunk/; revision=64932

9 years ago[NTOS:FORMATTING]
Thomas Faber [Thu, 23 Oct 2014 17:59:16 +0000 (17:59 +0000)]
[NTOS:FORMATTING]
- Try to fix indentation in iomgr/driver.c. Whitespace changes only

svn path=/trunk/; revision=64931

9 years ago[WINSPOOL.DRV]
Amine Khaldi [Thu, 23 Oct 2014 17:55:42 +0000 (17:55 +0000)]
[WINSPOOL.DRV]
* We're not using any debugging routines here.

svn path=/trunk/; revision=64930

9 years ago[USER32]
Jérôme Gardou [Thu, 23 Oct 2014 15:40:13 +0000 (15:40 +0000)]
[USER32]
 - Fix wrong size check.
Spotted by Thomas

svn path=/trunk/; revision=64926

9 years ago[NTOS:IO]
Thomas Faber [Thu, 23 Oct 2014 14:37:51 +0000 (14:37 +0000)]
[NTOS:IO]
- Simplify how IopLoadUnloadDriver is called by making the function queue a work item instead of its caller

svn path=/trunk/; revision=64925

9 years ago[USER32]
Amine Khaldi [Thu, 23 Oct 2014 12:24:07 +0000 (12:24 +0000)]
[USER32]
* Merge r64866 from the shell branch which had:

* Fix wrong array length passed to GetClassNameW. CID 716222
* Replace other instances of explicit array length to GetWindowTextW with _countof(x).
Based on a patch by Christoph von Wittich.

svn path=/trunk/; revision=64924

9 years ago[NTVDM]: Addendum to revision 64917: remove unnecessary casts.
Hermès Bélusca-Maïto [Thu, 23 Oct 2014 12:21:46 +0000 (12:21 +0000)]
[NTVDM]: Addendum to revision 64917: remove unnecessary casts.

svn path=/trunk/; revision=64923

9 years ago[WIN32SS]
Jérôme Gardou [Thu, 23 Oct 2014 11:46:06 +0000 (11:46 +0000)]
[WIN32SS]
 - In an incredibly daring move, enable the long awaited new cursors & icons implementation, featuring:
   - Alpha channeled cursors
   - Animated cursors (only the first frame is displayed now)
   - Less leaks (tm)
   - Tests that pass(tm)
   - Copying icons and cursors from DLL resources, for beautifuler ReactOS, your turn gigaherz ;-)
   - A lot of other things which I am very proud of.
CORE-7575 #resolve

svn path=/trunk/; revision=64921

9 years ago[WIN32K]
Jérôme Gardou [Thu, 23 Oct 2014 11:46:01 +0000 (11:46 +0000)]
[WIN32K]
 - Use shared icon handles when copying the small class icon from the larger one.
CORE-7575

svn path=/trunk/; revision=64920

9 years ago[USER32]
Jérôme Gardou [Thu, 23 Oct 2014 11:45:55 +0000 (11:45 +0000)]
[USER32]
 - Implement CopyImage(LR_SHARED) case.
CORE-7575

svn path=/trunk/; revision=64919

9 years ago[USER32]
Jérôme Gardou [Thu, 23 Oct 2014 11:45:50 +0000 (11:45 +0000)]
[USER32]
 - Cursoricon objects are allocated on the user heap, not the desktop heap.
CORE-7575

svn path=/trunk/; revision=64918

9 years ago[FAST486][NTVDM]
Aleksandar Andrejevic [Thu, 23 Oct 2014 11:44:07 +0000 (11:44 +0000)]
[FAST486][NTVDM]
Arch, I/O port numbers should always be stored in USHORT variables!

svn path=/trunk/; revision=64917

9 years ago[USER32_APITEST]
Jérôme Gardou [Thu, 23 Oct 2014 11:19:21 +0000 (11:19 +0000)]
[USER32_APITEST]
 - Add a test showing that CopyImage accepts LR_SHARED flag.
CORE-7575

svn path=/trunk/; revision=64916

9 years ago[WIN32K]
Jérôme Gardou [Thu, 23 Oct 2014 09:52:57 +0000 (09:52 +0000)]
[WIN32K]
 - Call IntDestroyCurIconObject instead of explicitly destroying the handle.
CORE-7575

svn path=/trunk/; revision=64915

9 years ago[WIN32K]
Jérôme Gardou [Thu, 23 Oct 2014 09:32:46 +0000 (09:32 +0000)]
[WIN32K]
 - Reference cursor and icon objects when copying a class from one heap to another.
CORE-7575

svn path=/trunk/; revision=64914

9 years ago[USER32]
Jérôme Gardou [Thu, 23 Oct 2014 09:32:43 +0000 (09:32 +0000)]
[USER32]
 - Return the right value in CopyImage when copying cursors/icons
CORE-7575

svn path=/trunk/; revision=64913

9 years ago[WIN32K]
Jérôme Gardou [Thu, 23 Oct 2014 09:32:39 +0000 (09:32 +0000)]
[WIN32K]
 - Remove the cursor from the process cache when its handle is deleted, not after.
 - Do not return an invalid handle in NtUserSetCursor.
CORE-7575

svn path=/trunk/; revision=64912

9 years ago[USER32]
Jérôme Gardou [Thu, 23 Oct 2014 09:32:21 +0000 (09:32 +0000)]
[USER32]
 - Fix LookupIconIdFromDirectoryEx, returning 0 when no matching entry is found.
 - Fix error handling when opening a cursor file.
 - Various code beautification here and there
CORE-7575

svn path=/trunk/; revision=64911

9 years ago[CRT/OLDNAMES]
Timo Kreuzer [Thu, 23 Oct 2014 09:22:45 +0000 (09:22 +0000)]
[CRT/OLDNAMES]
Fix ARM build, patch by Yuntian Zhang with minor adjustment by me.
CORE-8666 #resolve #comment Committed in r64910, thanks!

svn path=/trunk/; revision=64910

9 years ago[CRT]
Timo Kreuzer [Thu, 23 Oct 2014 09:05:32 +0000 (09:05 +0000)]
[CRT]
Do not raise an exception in _invalid_parameter, which is only done in later MSVCRTs. Wine uses a symbolic constant (_MSVCR_VER) to handle this and other things and compiles their CRT code multiple times. As an alternative we could use a global version variable to avoid recompiling, once we implement other CRT dlls.
CORE-8670 #resolve

svn path=/trunk/; revision=64909

9 years ago[I8042PRT]
Kamil Hornicek [Wed, 22 Oct 2014 20:05:32 +0000 (20:05 +0000)]
[I8042PRT]
- check the right buffer's length
[WIN32K]
- simplify IntKeyboardUpdateLeds a bit and mind previous mode
- fixes keyboard indicators
CORE-8547

svn path=/trunk/; revision=64908

9 years ago[RTL]
Thomas Faber [Wed, 22 Oct 2014 19:40:13 +0000 (19:40 +0000)]
[RTL]
- Address a review comment by Timo -- use more explicit comparison

svn path=/trunk/; revision=64907

9 years ago[NTOS:FORMATTING]
Thomas Faber [Wed, 22 Oct 2014 19:34:46 +0000 (19:34 +0000)]
[NTOS:FORMATTING]
- Trip trailing whitespace in Io/Pnp

svn path=/trunk/; revision=64906

9 years ago[XDK/DDK]
Timo Kreuzer [Wed, 22 Oct 2014 19:30:27 +0000 (19:30 +0000)]
[XDK/DDK]
Improve debugprint in __assert_annotationA/W

svn path=/trunk/; revision=64905

9 years ago[SERVMAN]
Kamil Hornicek [Wed, 22 Oct 2014 19:28:33 +0000 (19:28 +0000)]
[SERVMAN]
- better fix for CDI 513719, LVText might not be null terminated - spotted by Timo

svn path=/trunk/; revision=64904

9 years ago[NTOSKRNL]
Timo Kreuzer [Wed, 22 Oct 2014 19:20:03 +0000 (19:20 +0000)]
[NTOSKRNL]
- Fix potential use-after-free CID 732509
- Fix buffer size in call to ObQueryNameString

svn path=/trunk/; revision=64903

9 years ago[NTOS:IO] Replace an error message by an assert
Hervé Poussineau [Wed, 22 Oct 2014 19:17:13 +0000 (19:17 +0000)]
[NTOS:IO] Replace an error message by an assert

This was expected to be done soon after r32518.

svn path=/trunk/; revision=64902

9 years ago[ADVAPI32/CRED]
Amine Khaldi [Wed, 22 Oct 2014 18:41:40 +0000 (18:41 +0000)]
[ADVAPI32/CRED]
* Sync with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64901

9 years ago[ADVAPI32/CRYPT]
Amine Khaldi [Wed, 22 Oct 2014 18:29:59 +0000 (18:29 +0000)]
[ADVAPI32/CRYPT]
* Sync with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64900

9 years ago[PSDK]
Amine Khaldi [Wed, 22 Oct 2014 18:26:47 +0000 (18:26 +0000)]
[PSDK]
* Add missing PFE_IMPORT_FUNC and WriteEncryptedFileRaw.

svn path=/trunk/; revision=64899

9 years ago[KERNEL32]
Amine Khaldi [Wed, 22 Oct 2014 18:05:36 +0000 (18:05 +0000)]
[KERNEL32]
* Zap szCountryListName.
* Comment out unused charset_names and strcpynAtoW.
CORE-8540

svn path=/trunk/; revision=64898

9 years ago[KERNEL32]
Amine Khaldi [Wed, 22 Oct 2014 17:58:58 +0000 (17:58 +0000)]
[KERNEL32]
* Sync GetStringTypeW with Wine 1.7.27.
* Allows more kernel32:locale tests to run.
CORE-8540

svn path=/trunk/; revision=64897

9 years ago[KERNEL32]
Amine Khaldi [Wed, 22 Oct 2014 17:52:18 +0000 (17:52 +0000)]
[KERNEL32]
* Sync LCMapString{A,W} with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64896

9 years ago[CMAKE]
Amine Khaldi [Wed, 22 Oct 2014 16:56:56 +0000 (16:56 +0000)]
[CMAKE]
* Allow the use of the LOCATION property with new CMake versions.

svn path=/trunk/; revision=64894

9 years ago[TASKMGR]
Amine Khaldi [Wed, 22 Oct 2014 16:51:25 +0000 (16:51 +0000)]
[TASKMGR]
* Minor style changes in wWinMain.

svn path=/trunk/; revision=64893

9 years ago[KERNEL32]
Amine Khaldi [Wed, 22 Oct 2014 16:43:19 +0000 (16:43 +0000)]
[KERNEL32]
* Zap NLS_RegEnumSubKey.

svn path=/trunk/; revision=64892

9 years ago[KERNEL32]
Amine Khaldi [Wed, 22 Oct 2014 16:40:54 +0000 (16:40 +0000)]
[KERNEL32]
* Replace EnumSystemGeoID with the one from Wine 1.7.27.
* Fixes some kernel32:locale tests.
CORE-8540

svn path=/trunk/; revision=64891

9 years ago[TASKMGR]
Kamil Hornicek [Wed, 22 Oct 2014 16:01:24 +0000 (16:01 +0000)]
[TASKMGR]
- fix CIDs 731628 (unlikely buffer overrun), 500038 (dead code), 1101977 (unchecked return value)

svn path=/trunk/; revision=64890

9 years ago[NTOS:MM]
Thomas Faber [Wed, 22 Oct 2014 13:26:50 +0000 (13:26 +0000)]
[NTOS:MM]
- Add a way to generate a pool tag from the calling driver name if none is specified. Disabled by default.

svn path=/trunk/; revision=64889

9 years ago[NTOS:MM]
Thomas Faber [Wed, 22 Oct 2014 13:18:10 +0000 (13:18 +0000)]
[NTOS:MM]
- Add missing call to ExpSeedHotTags

svn path=/trunk/; revision=64888

9 years ago[NTOS:KE]
Thomas Faber [Wed, 22 Oct 2014 13:13:31 +0000 (13:13 +0000)]
[NTOS:KE]
- Issue the appropriate bug check codes when faulting in special pool
CORE-8680

svn path=/trunk/; revision=64887

9 years ago[NTOS:MM]
Thomas Faber [Wed, 22 Oct 2014 13:04:57 +0000 (13:04 +0000)]
[NTOS:MM]
Make special pool usable:
- Invalidate PTEs on free to catch use-after-free situations (and not confuse Mm)
- Fix pattern check not to look for more than 8 bits in a byte
- Enable POOL_FLAG_SPECIAL_POOL if special pool has been initialized
- Implement MmExpandSpecialPool
- Issue the correct SPECIAL_POOL_DETECTED_MEMORY_CORRUPTION bugcheck when problems are detected
- Magic values--
To enable special pool for a single tag, set a value for MmSpecialPoolTag in ntoskrnl/mm/ARM3/pool.c.
To enable it for more than one tag, set MmSpecialPoolTag and modify MmUseSpecialPool in ntoskrnl/mm/ARM3/special.c (e.g. to return TRUE independent of Tag).
CORE-8680 #resolve

svn path=/trunk/; revision=64886

9 years ago[NTOS:MM]
Thomas Faber [Wed, 22 Oct 2014 12:29:31 +0000 (12:29 +0000)]
[NTOS:MM]
- Generate PAGE_FAULT_IN_NONPAGED_AREA bugcheck for PTEs that have their protection set to zero. This gives a more useful error description than the infamous 'TempPte.u.Long != 0' assertion*.
CORE-8679 #resolve

* and is also What Windows Does(TM)

svn path=/trunk/; revision=64885

9 years ago[MSCONFIG]
Kamil Hornicek [Wed, 22 Oct 2014 12:13:40 +0000 (12:13 +0000)]
[MSCONFIG]
- fix CID 503793 (unlikely NULL pointer dereference), 514558 (check return value)

svn path=/trunk/; revision=64884

9 years ago[KERNEL32]
Amine Khaldi [Tue, 21 Oct 2014 23:02:21 +0000 (23:02 +0000)]
[KERNEL32]
* Replace GetGeoInfo{A,W} with the ones from Wine 1.7.27.
* Fixes many kernel32:locale tests.
CORE-8540

svn path=/trunk/; revision=64883

9 years ago[SERVMAN]
Kamil Hornicek [Tue, 21 Oct 2014 22:58:23 +0000 (22:58 +0000)]
[SERVMAN]
- fix resource leaks CID 716292, 716293, 716294
- fix CID 716772 (double free), 513719 (wrong NULL check), 1206739 (cosmetic)
- make line endings CR LF when exporting the services list

svn path=/trunk/; revision=64882

9 years ago[FAST486]: Rename some 0F0x opcodes to "ExtOpcode..." to clarify what they are and...
Hermès Bélusca-Maïto [Tue, 21 Oct 2014 21:18:23 +0000 (21:18 +0000)]
[FAST486]: Rename some 0F0x opcodes to "ExtOpcode..." to clarify what they are and where they are used.

svn path=/trunk/; revision=64881

9 years ago[USER32]
Kamil Hornicek [Tue, 21 Oct 2014 21:08:51 +0000 (21:08 +0000)]
[USER32]
- fix CID 514402 (by Christoph)
[MMIXER]
- fix CID 503774, 715945, 511119
[WS2_32_NEW]
- fix a debug print

svn path=/trunk/; revision=64880

9 years ago[WIN32K]
Jérôme Gardou [Tue, 21 Oct 2014 19:57:03 +0000 (19:57 +0000)]
[WIN32K]
 - Fix a few usages of UserSetCursor
 - Defer the actual freeing of cursor resources to when the object is freed for real.
CORE-7575

svn path=/trunk/; revision=64879

9 years ago[I_KNEW_IT]
Jérôme Gardou [Tue, 21 Oct 2014 19:14:47 +0000 (19:14 +0000)]
[I_KNEW_IT]
 - InterlockedDecrement(JeromesBuildFailures)

svn path=/trunk/; revision=64878

9 years ago[WIN32K]
Jérôme Gardou [Tue, 21 Oct 2014 18:59:44 +0000 (18:59 +0000)]
[WIN32K]
 - "Convert" new cursor & icons implementation to the new user object handle manager.
 - Fix a few idiosyncracies in the way cursor handles are used (only with USE_NEW_CURSORICON_ENABLED)
[WIN32SS]
 - Storm out the flowers out of how classes use icon and cursor objects, with proper refcounting and all those joyous things.
Handles are for the powerless, kernel mode use pointers.
Only with USE_NEW_CURSORICON enabled (soon!)
CORE-7575

svn path=/trunk/; revision=64877

9 years ago[WIN32K]
Jérôme Gardou [Tue, 21 Oct 2014 18:59:39 +0000 (18:59 +0000)]
[WIN32K]
 - Use the first frame of an animated cursor in case we're trying to use one.

svn path=/trunk/; revision=64876

9 years ago[WIN32K]
Jérôme Gardou [Tue, 21 Oct 2014 18:59:34 +0000 (18:59 +0000)]
[WIN32K]
 - Refcount++ the process info when we're adding it to a cursor process list.
CORE-8661

svn path=/trunk/; revision=64875

9 years ago[KERNEL32]
Amine Khaldi [Tue, 21 Oct 2014 18:42:12 +0000 (18:42 +0000)]
[KERNEL32]
* Sync casemap.c with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64874

9 years ago[IP]
Amine Khaldi [Tue, 21 Oct 2014 18:39:22 +0000 (18:39 +0000)]
[IP]
* Zap tcp_state_str.

svn path=/trunk/; revision=64873

9 years ago[KERNEL32]
Amine Khaldi [Tue, 21 Oct 2014 18:25:34 +0000 (18:25 +0000)]
[KERNEL32]
* Sync format_msg.c with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64872

9 years ago[CMD]
Kamil Hornicek [Tue, 21 Oct 2014 16:05:54 +0000 (16:05 +0000)]
[CMD]
- fix resource leaks CID 716324, 716323, 716322, 716321, 716320, 716319, 716318

svn path=/trunk/; revision=64871

9 years ago[STRMBASE]
Amine Khaldi [Tue, 21 Oct 2014 15:52:51 +0000 (15:52 +0000)]
[STRMBASE]
* Zap InputPin_Vtbl, OutputPin_Vtbl and impl_BaseInputPin_from_BasePin(). Already accepted upstream.

svn path=/trunk/; revision=64870

9 years ago[XCOPY_WINETEST]
Amine Khaldi [Tue, 21 Oct 2014 15:50:16 +0000 (15:50 +0000)]
[XCOPY_WINETEST]
* Import from Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64869

9 years ago[WIN32K]
Thomas Faber [Tue, 21 Oct 2014 14:28:16 +0000 (14:28 +0000)]
[WIN32K]
- Fix DCE list entry handling
CORE-8669 #resolve

svn path=/trunk/; revision=64868

9 years ago[RTL]
Thomas Faber [Tue, 21 Oct 2014 14:22:28 +0000 (14:22 +0000)]
[RTL]
- Fix a buffer overflow in RtlSetBits/RtlClearBits

svn path=/trunk/; revision=64867

9 years ago[WIN32K]
Thomas Faber [Tue, 21 Oct 2014 12:43:15 +0000 (12:43 +0000)]
[WIN32K]
- Remove bug-hiding list macros that accept NULL in LIST_ENTRYs.
CORE-8668 #resolve

svn path=/trunk/; revision=64865

9 years ago[WIN32K]
Jérôme Gardou [Tue, 21 Oct 2014 10:45:55 +0000 (10:45 +0000)]
[WIN32K]
 - reference the current process info structure while we're leaving win32k.
The process can die anytime while we're not looking.
CORE-8663 #resolve

svn path=/trunk/; revision=64863

9 years ago[WIN32K]
Jérôme Gardou [Tue, 21 Oct 2014 10:45:49 +0000 (10:45 +0000)]
[WIN32K]
 - Avoid use after free in debug configuration
CORE-8661 #resolve

svn path=/trunk/; revision=64862

9 years ago[CMAKE]
Jérôme Gardou [Tue, 21 Oct 2014 10:45:36 +0000 (10:45 +0000)]
[CMAKE]
 - link keyboard layout modules to gcc_ssp if the stack protector is enabled.

svn path=/trunk/; revision=64861

9 years ago[User32]
James Tabor [Tue, 21 Oct 2014 03:13:21 +0000 (03:13 +0000)]
[User32]
- Remove code that breaks wine release 1.7.29 user32 input tests. Code was there since r2505.
- So due to this commit, over compensating hacks can break.

svn path=/trunk/; revision=64860

9 years ago[Win32k]
James Tabor [Tue, 21 Oct 2014 03:02:07 +0000 (03:02 +0000)]
[Win32k]
- rpdeskParent can be NULL and should not be depended on! Fixes CORE-8665.

svn path=/trunk/; revision=64859

9 years ago[UNIATA]
Sylvain Petreolle [Mon, 20 Oct 2014 21:21:43 +0000 (21:21 +0000)]
[UNIATA]
Update to 0.45b1.
CORE-8280 #resolve

svn path=/trunk/; revision=64856

9 years ago[UNIATA]
Sylvain Petreolle [Mon, 20 Oct 2014 21:20:35 +0000 (21:20 +0000)]
[UNIATA]
Update to 0.45b.
CORE-8280

svn path=/trunk/; revision=64855

9 years ago[KERNEL32]
Pierre Schweitzer [Mon, 20 Oct 2014 20:26:07 +0000 (20:26 +0000)]
[KERNEL32]
Don't care for the return value (yet?) of StringCbPrintfW. This fixes release build.

svn path=/trunk/; revision=64853

9 years ago[NTVDM]: Now that HLT is implemented, use it in the INT32 handlers.
Hermès Bélusca-Maïto [Mon, 20 Oct 2014 19:45:37 +0000 (19:45 +0000)]
[NTVDM]: Now that HLT is implemented, use it in the INT32 handlers.

svn path=/trunk/; revision=64852

9 years ago[FAST486]
Hermès Bélusca-Maïto [Mon, 20 Oct 2014 19:42:52 +0000 (19:42 +0000)]
[FAST486]
- Control register 0 is CR0: use FAST486_REG_CR0 instead of 0, as it is done in the rest of the code.
- Improve a if/else if control.
- Don't halt the processor in the middle of prefixes processing.

svn path=/trunk/; revision=64851

9 years ago[STRMBASE]
Amine Khaldi [Mon, 20 Oct 2014 17:38:06 +0000 (17:38 +0000)]
[STRMBASE]
* Zap TransformFilter_Vtbl. Already accepted upstream.

svn path=/trunk/; revision=64850

9 years ago[CMAKE]
Amine Khaldi [Mon, 20 Oct 2014 17:35:22 +0000 (17:35 +0000)]
[CMAKE]
* Use the x86 toolchain for host tools if the targeting platform is ARM. Brought to you by Yuntian Zhang.
CORE-7407 #resolve #comment Committed in r64849. Thanks!

svn path=/trunk/; revision=64849

9 years ago[WIN32K]
Kamil Hornicek [Mon, 20 Oct 2014 14:26:47 +0000 (14:26 +0000)]
[WIN32K]
- add a missing break and reshuffle the code a tiny bit to fix CIDs 514466 and 513487
- don't skip the terminating debug print for ft_glyph_format_bitmap

svn path=/trunk/; revision=64847

9 years ago[devmgr]
Christoph von Wittich [Mon, 20 Oct 2014 13:32:33 +0000 (13:32 +0000)]
[devmgr]
don't free stack memory with LocalFree
CID 1101901

svn path=/trunk/; revision=64846

9 years ago[SETUPAPI]
Kamil Hornicek [Mon, 20 Oct 2014 13:08:42 +0000 (13:08 +0000)]
[SETUPAPI]
- actually use the icon source we get from registry instead of loading all icons from setupapi itself
CORE-8614

svn path=/trunk/; revision=64845

9 years ago[explorer]
Christoph von Wittich [Mon, 20 Oct 2014 10:05:30 +0000 (10:05 +0000)]
[explorer]
DragQueryFile expects size in characters

svn path=/trunk/; revision=64844

9 years ago[FASTFAT]
Thomas Faber [Mon, 20 Oct 2014 09:31:50 +0000 (09:31 +0000)]
[FASTFAT]
- Move FCB list removal to vfatDelFCBFromTable, since vfatAddFCBToTable does the insert. Fixes list corruption in vfatUpdateFCB.

svn path=/trunk/; revision=64843

9 years ago[cmd/help]
Christoph von Wittich [Mon, 20 Oct 2014 09:21:08 +0000 (09:21 +0000)]
[cmd/help]
do not call wcslen on uninitialized variable

svn path=/trunk/; revision=64842

9 years ago[cmd]
Christoph von Wittich [Mon, 20 Oct 2014 08:47:57 +0000 (08:47 +0000)]
[cmd]
GetDateFormat expects size in characters

svn path=/trunk/; revision=64841

9 years ago[KERNEL32]
Thomas Faber [Mon, 20 Oct 2014 08:30:55 +0000 (08:30 +0000)]
[KERNEL32]
- Fix MSVC build

svn path=/trunk/; revision=64840

9 years ago[NPFS]
Thomas Faber [Mon, 20 Oct 2014 08:08:50 +0000 (08:08 +0000)]
[NPFS]
- Correctly interpret SeCreateClientSecurity return value in NpInitializeSecurity
- Always charge quota when allocating client context
- Specify explicit 0 tag when freeing allocations with unknown pool tag
- Misc readability fixes

svn path=/trunk/; revision=64839

9 years ago[AFD]
Thomas Faber [Sun, 19 Oct 2014 22:12:06 +0000 (22:12 +0000)]
[AFD]
- Do not pass IO_STATUS_BLOCKs when creating IRPs for asynchronous use. Fixes a use-after-free where AfdCloseSocket would cancel IRPs without actually waiting for their completion, and proceed to free the FCB, which contained these IO_STATUS_BLOCKs.
Note that using TdiBuildInternalDeviceControlIrp for these requests is broken in the first place, since it is intended for synchronous requests and requires a guarantee about the calling thread's lifetime. These functions (and their completion routines) should use IoAllocateIrp/IoReuseIrp/IoFreeIrp instead. However this can be fixed later; the incredibly annoying nonpaged pool corruption due to this that has been around for 10 years should be fixed with this commit.
CORE-8640 #resolve

svn path=/trunk/; revision=64838

9 years ago[videoprt]
Christoph von Wittich [Sun, 19 Oct 2014 21:57:29 +0000 (21:57 +0000)]
[videoprt]
fix uninitialized variable usage in error case

svn path=/trunk/; revision=64837