reactos.git
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

9 years ago[FASTFAT]
Pierre Schweitzer [Sun, 19 Oct 2014 21:38:32 +0000 (21:38 +0000)]
[FASTFAT]
- Implement vfatPrepareTargetForRename() that prepares for renaming. It tries to open target and deletes it if it exists and if allowed. And then, it opens the parent directory.
- Implement VfatSetRenameInformation() that actually does the renaming (call as SetInformationFile). It handles cases we we have (or we don't have) TargetDirectory provided. It sends notifications as appropriated on demands.
- Implement vfatRenameEntry() that renames an entry in place. So far, it only supports FATX entries renaming. FAT entries are a bit more complex. It falls back to vfatMoveEntry() in later cases.
- Implement VfatMoveEntry() that will move an entry accross directories (or in place for FAT). Its principles are simple: it deletes the entry in old parent, and recreate it in new parent, keeping file metadata & data.
- Modify VfatDelEntry() and VfatAddEntry() so that they can handle deleting an entry without touching its data and adding an entry with an already provided FCB and thus use the given metadata.
- Implement vfatDelFCBFromTable() which is just old code moved to new routine to allow reuse. It deletes a FCB entry from hash table. Doesn't deal with references!
- Implement vfatMakeFullName() which is mostly old code moved to new routine to allow reuse. It allocates buffer and copy data for FCB full name.
- Implement vfatUpdateFCB() that will update a FCB with new names and parent. It will remove anything related to old name and will recreate using new data. It will adjust references count.
- Modify vfatMakeFCBFromDirEntry() so that it calls vfatMakeFullName().
- Modify vfatReleaseFCB() so that it calls vfatDelFCBFromTable().
- Revert VfatOpenFile() to its previous features.
- Modify VfatCreateFile() to reimplement support for SL_OPEN_TARGET_DIRECTORY. It is way less hackish than previously. It also properly opens parent now, by incrementing its handle count and by setting appropriate access rights.

[KERNEL32]
- Rewritten MoveFileWithProgressW() to implement all the missing features that are used in Windows 2k3 including links and reparse points.
- Implemented BasepMoveFileDelayed() to replace deprecated add_boot_rename_entry(). This functions is matching the features implemented in SMSS.
- Implemented BasepMoveFileCopyProgress() which is used in MoveFileWithProgressW().
- Stubbed BasepNotifyTrackingService() which is not use at the moment (FastFAT, even in Windows doesn't provide such feature).
- Reimplemented ReplaceFileA(), MoveFileWithProgressA() to quit Winisms and use our internal helpers.
- Make MoveFileX() use MoveFileWithProgressX() directly.
- Fixed a few prototypes.

TL;DR:
This (huge) commit implements file and directory renaming in FastFAT driver. This allows getting rid of old implementation in kernel32 where files were force copied.

A feature is still missing, but Jérôme should implement it anytime soon (he prototyped it already): moving directories across volumes. This requires some work in BasepCopyFileExW().

Kudos to all the devs who helped me on this: Christoph, Hervé, Jérôme, Thomas.
This finally allows killing CR-52... It was about time!

svn path=/trunk/; revision=64836

9 years ago[regsrv32]
Christoph von Wittich [Sun, 19 Oct 2014 21:30:26 +0000 (21:30 +0000)]
[regsrv32]
don't free hDll twice

svn path=/trunk/; revision=64835

9 years ago[NET]
Eric Kohl [Sun, 19 Oct 2014 20:12:19 +0000 (20:12 +0000)]
[NET]
- Add the localgroup command. It does not work properly on ReactOS yet.
- Print a warning when the domain option of the accounts command is used.

svn path=/trunk/; revision=64834

9 years ago[NTFS]
Pierre Schweitzer [Sun, 19 Oct 2014 20:12:14 +0000 (20:12 +0000)]
[NTFS]
Bugfixing... Part 9/X:
- Return the appropriate size for file size.
- Round the allocation to cluster size (as requested by the API).

This fixes metadata display when enumerating a directory in CMD.
What you get now: http://www.heisspiter.net/~Pierre/rostests/NTFS_listing_fixed.png

Time to fix all the rest!
D'oh!

svn path=/trunk/; revision=64833

9 years ago[NTFS]
Pierre Schweitzer [Sun, 19 Oct 2014 19:48:52 +0000 (19:48 +0000)]
[NTFS]
Bugfixing... Part 8/X:
- Actually, the files timestamp are already stored in the correct format on-disk... I should have listened to Thomas...

This fixes incorrect dates display when enumerating a directory contents. My apologies Thomas :-(.
Last to fix: the file size which is broken.

svn path=/trunk/; revision=64832

9 years ago[NTDLL_APITEST] Disable NtContinue test when runtime checks are enabled
Timo Kreuzer [Sun, 19 Oct 2014 19:37:55 +0000 (19:37 +0000)]
[NTDLL_APITEST] Disable NtContinue test when runtime checks are enabled
[USER32_APITEST] Disable WndProc test when runtime checks are enabled
[KERNEL32_WINETEST] Zero initialize a buffer. This is necessary, since we fail all calls to GetVolumePathNamesForVolumeNameW and thus never get any data into the buffer, which can later result in a buffer-overrun, when doing a lstrlenW on it.

svn path=/trunk/; revision=64831

9 years ago[NTFS]
Pierre Schweitzer [Sun, 19 Oct 2014 17:43:37 +0000 (17:43 +0000)]
[NTFS]
Bugfixing... Part 6/X:
- Properly return the size of the NTFS volume (and not a buggy size)
- Properly return the characteristics of the NTFS volume

svn path=/trunk/; revision=64829

9 years ago[NTVDM]: fix MIPS count in cases display delays get longer than 1 sec...
Hermès Bélusca-Maïto [Sun, 19 Oct 2014 17:24:57 +0000 (17:24 +0000)]
[NTVDM]: fix MIPS count in cases display delays get longer than 1 sec...

svn path=/trunk/; revision=64828

9 years ago[USER32]
Amine Khaldi [Sun, 19 Oct 2014 17:24:43 +0000 (17:24 +0000)]
[USER32]
* We're not using any debugging routines here.

svn path=/trunk/; revision=64827

9 years ago[WIN32K]
Timo Kreuzer [Sun, 19 Oct 2014 16:37:27 +0000 (16:37 +0000)]
[WIN32K]
Fix uninitialized variable use.

svn path=/trunk/; revision=64826

9 years ago[NTFS]
Pierre Schweitzer [Sun, 19 Oct 2014 16:29:38 +0000 (16:29 +0000)]
[NTFS]
Bugfixing... Part 6/X:
- Properly compute file name length.

This makes directory enumeration return complete file/directory names.
Note that it's also possible to enumerate the files in open dialog of notepad (for instance :-))

Opening a subdirectory/file is broken though. To be investigated.

svn path=/trunk/; revision=64825

9 years ago[FAST486]
Aleksandar Andrejevic [Sun, 19 Oct 2014 15:02:37 +0000 (15:02 +0000)]
[FAST486]
The r64823 patch was not properly merged.

svn path=/trunk/; revision=64824

9 years ago[FAST486]
Aleksandar Andrejevic [Sun, 19 Oct 2014 14:46:02 +0000 (14:46 +0000)]
[FAST486]
Implement the HLT instruction.
Remove the IdleCallback, since it's unused and probably won't be used.
(The load reduction will be implemented in NTVDM instead.)

svn path=/trunk/; revision=64823

9 years ago[USER32]
Timo Kreuzer [Sun, 19 Oct 2014 13:17:49 +0000 (13:17 +0000)]
[USER32]
Fix uninitialized variable use/warnings in
- RegisterClassExWOWW (found by MSVC runtime checks)
- IntDrawState (CID-514399)
- IntCallWindowProcA (CID-514389)
- IntCallWindowProcW (CID-414390)
- SendMessageA (CID-514392)
- SendMessageW (CID-514393)
- SendMessageTimeoutA (CID-514441)
- SendMessageCallbackA (CID-514442)
- SendNotifyMessageW (CID-514443)
- SendNotifyMessageA (CID-514444)
- User32CallWindowProcFromKernel (CID-514445)
- DesktopWndProcA (CID-716765)

svn path=/trunk/; revision=64822

9 years ago[CRT]
Timo Kreuzer [Sun, 19 Oct 2014 10:27:22 +0000 (10:27 +0000)]
[CRT]
Fix MSVC global constructor initialization.

svn path=/trunk/; revision=64821

9 years agoOk Arch, it's good to remove unuseful brackets, but don't exaggerate too much. Also...
Hermès Bélusca-Maïto [Sun, 19 Oct 2014 00:05:18 +0000 (00:05 +0000)]
Ok Arch, it's good to remove unuseful brackets, but don't exaggerate too much. Also check how the RtlInsertAsLeft/RightChild macros are defined. Since MS don't use the nice do { ... } while(0) for them, you cannot just use the if (blah) foo(); else bar(); to do the job, but you need the extra-brackets. And you cannot just change the macros definitions to not "break" headers compatibility (or... idiocies).

svn path=/trunk/; revision=64820

9 years agoFix whitespace, and get rid of that sh*tty K&R style.
Hermès Bélusca-Maïto [Sat, 18 Oct 2014 23:59:25 +0000 (23:59 +0000)]
Fix whitespace, and get rid of that sh*tty K&R style.

svn path=/trunk/; revision=64819

9 years ago[RTL]
Hermès Bélusca-Maïto [Sat, 18 Oct 2014 23:51:35 +0000 (23:51 +0000)]
[RTL]
Implement RtlDeleteNoSplay which is really just a copy/paste of RtlDelete, but without splaying the tree after deletion of the node. Needed by the filter driver fltmgr.sys. Dedicated to Mr. V ;)

svn path=/trunk/; revision=64818

9 years ago[CRT]
Timo Kreuzer [Sat, 18 Oct 2014 21:38:07 +0000 (21:38 +0000)]
[CRT]
Implement __do_global_ctors for MSVC

svn path=/trunk/; revision=64817

9 years ago[RunTmChk]
Timo Kreuzer [Sat, 18 Oct 2014 21:22:52 +0000 (21:22 +0000)]
[RunTmChk]
- Implement _RTC_GetErrDesc, _RTC_SetErrorFuncW, add stubs for _RTC_NumErrors, _RTC_SetErrorType, _RTC_SetErrorFunc
- Implement _RTC_DefaultErrorFuncW which will be used, when no other error func was set
- Implement _RTC_InitBase, which will be called from _RTC_Initialize, and which in turn calls either _CRT_RTC_INITW, if CRT was linked, or a local _CRT_RTC_INITW0, which in turn will return the error function to use. This allows us to use a custom error function for all modules that link to (MSV)CRT. Only user32 does not really fit into here, since it uses the same startup code but does not link to MSVCRT.

[CRT]
- Call _RTC_Initialize from __main before initializing the global constructors, but fall back to a dummy _RTC_NoInitialize(), when RunTmChk.lib was not linked. Now we properly initialize both our own as well as MS RunTmChk lib.

svn path=/trunk/; revision=64816

9 years ago[FREELDR]
Timo Kreuzer [Sat, 18 Oct 2014 21:12:12 +0000 (21:12 +0000)]
[FREELDR]
- Improve memory layout by moving the 32/64 bit stack to 0x7000-0xF000 and moving the BIOSCALLBUFFER up a bit. This gives us 56 KB additional space for freeldr itself. This allows to compile freeldr with /RTC1 (x86 only, the x64 version would get too big). And yes, it works.
- Implement FrLdrBugCheckWithMessage to get some useful messages on the screen and use it in MmCheckFreeldrImageFile
- Merge the .rtc section into the .text section, when we use RTC1
- Check the location of the Extended BIOS Data Area, add it to the memory descriptors and make sure we have enough space to put freeldr in. If the location of the EBDA is too low, print out a nice message on a blue screen :)

svn path=/trunk/; revision=64815

9 years ago[ACPI] Fix some traces
Hervé Poussineau [Sat, 18 Oct 2014 21:09:31 +0000 (21:09 +0000)]
[ACPI] Fix some traces

svn path=/trunk/; revision=64814

9 years ago[CMLIB] Add an assert to track potential registry corruptions
Hervé Poussineau [Sat, 18 Oct 2014 21:08:40 +0000 (21:08 +0000)]
[CMLIB] Add an assert to track potential registry corruptions

svn path=/trunk/; revision=64813

9 years ago[AMD64]
Timo Kreuzer [Sat, 18 Oct 2014 21:01:17 +0000 (21:01 +0000)]
[AMD64]
Fix build

svn path=/trunk/; revision=64812

9 years ago[FREELDR]
Timo Kreuzer [Sat, 18 Oct 2014 19:01:53 +0000 (19:01 +0000)]
[FREELDR]
Apply proper indentation, no code change.

svn path=/trunk/; revision=64811

9 years ago[USER32]
Amine Khaldi [Sat, 18 Oct 2014 18:41:15 +0000 (18:41 +0000)]
[USER32]
* WINEMessageTypeNames is only used in a case wrapped inside #ifndef __REACTOS__.

svn path=/trunk/; revision=64810

9 years ago[USER32]
Amine Khaldi [Sat, 18 Oct 2014 18:37:28 +0000 (18:37 +0000)]
[USER32]
* We're not using any debugging routines here.

svn path=/trunk/; revision=64809

9 years ago[CMAKE/MSVC]
Amine Khaldi [Sat, 18 Oct 2014 14:45:02 +0000 (14:45 +0000)]
[CMAKE/MSVC]
* Rename the lib to runtmchk. Really.
CORE-8626

svn path=/trunk/; revision=64808

9 years ago[CMAKE/MSVC]
Amine Khaldi [Sat, 18 Oct 2014 14:22:09 +0000 (14:22 +0000)]
[CMAKE/MSVC]
* Use the runtime checks globally in ReactOS now, not just for user mode modules.
* We no longer need the MS support lib, as Timo kindly implemented one for ReactOS.
* Rename the lib to runtmchk.
[PSEH][CRT]
* Remove some constrictions to seh.s source files, we no longer need them.
[KERNEL32]
* We no longer need to explicitly link to the runtime checks lib.
[FREELDR][KEYBOARD][NTOS][SETUPLDR]
* Link to the runtime checks lib when this mode is enabled.
CORE-8626

svn path=/trunk/; revision=64807

9 years ago[BMFD]
Amine Khaldi [Sat, 18 Oct 2014 14:16:54 +0000 (14:16 +0000)]
[BMFD]
* Use set_module_type() instead of the combination of set_entrypoint(), set_subsystem() and set_image_base().
* Remove the now redundant bugcodes dependency.
[FRAMEBUF_NEW]
* Remove redundant bugcodes dependency.

svn path=/trunk/; revision=64806

9 years ago[FRAMEBUF_NEW]
Amine Khaldi [Sat, 18 Oct 2014 14:12:41 +0000 (14:12 +0000)]
[FRAMEBUF_NEW]
* Use set_module_type() instead of the combination of set_entrypoint(), set_subsystem() and set_image_base().

svn path=/trunk/; revision=64805

9 years ago[CMAKE]
Amine Khaldi [Sat, 18 Oct 2014 14:09:11 +0000 (14:09 +0000)]
[CMAKE]
* Fix inconsistencies around kernel mode dlls handling.

svn path=/trunk/; revision=64804

9 years ago[FAST486]: Implement a basic support for the Trap Flag.
Hermès Bélusca-Maïto [Sat, 18 Oct 2014 14:08:50 +0000 (14:08 +0000)]
[FAST486]: Implement a basic support for the Trap Flag.

svn path=/trunk/; revision=64803

9 years ago[APITESTS/W32KDLL_*]
Amine Khaldi [Sat, 18 Oct 2014 14:00:20 +0000 (14:00 +0000)]
[APITESTS/W32KDLL_*]
* Use set_module_type() instead of set_entrypoint().

svn path=/trunk/; revision=64802

9 years ago[CMAKE]
Amine Khaldi [Sat, 18 Oct 2014 13:13:20 +0000 (13:13 +0000)]
[CMAKE]
* Let the minimum required CMake version be 2.8.12 so that *cough* people with old RosBE would be warned to update it! (I'm looking at you, Arch).

svn path=/trunk/; revision=64801

9 years ago[NTFS]
Pierre Schweitzer [Sat, 18 Oct 2014 12:18:37 +0000 (12:18 +0000)]
[NTFS]
Bugfixing... Part 5/X:
- Actually, we don't care about the name in the file index. We don't need it to read the data attribute, it's unnamed. And the returned name was buggy (this still needs work though)
- When we are getting a file record which is a directory, there is NO data attribute. Don't attempt to read it. This prevents failure on directory entry return.

These fixes enable NTFS directory listing in ReactOS!
Even though, more fixes are required. So far, the metadata of the files are kind of broken. Explorer seems to be unable to list files.
This keeps anyway being a major step forward, as this was totally impossible a month ago ;-).

For these willing to see NTFS in action in ReactOS: http://www.heisspiter.net/~Pierre/rostests/NTFS_listing.png

svn path=/trunk/; revision=64800

9 years ago[SHELL32]
Kamil Hornicek [Sat, 18 Oct 2014 10:33:49 +0000 (10:33 +0000)]
[SHELL32]
- fix a copy paste error
CID 1101990

svn path=/trunk/; revision=64799

9 years ago[MOUNTMGR]
Thomas Faber [Sat, 18 Oct 2014 10:11:02 +0000 (10:11 +0000)]
[MOUNTMGR]
- Fix IsDriveLetter. CID 1206760.

svn path=/trunk/; revision=64798

9 years ago[CDROM]
Thomas Faber [Sat, 18 Oct 2014 09:52:14 +0000 (09:52 +0000)]
[CDROM]
- Remove invalid frees. CID 511759.

svn path=/trunk/; revision=64797

9 years ago[CMAKE]
Amine Khaldi [Fri, 17 Oct 2014 23:29:24 +0000 (23:29 +0000)]
[CMAKE]
* Addendum to r64795.
* Also remove unneeded wine linking and ntdll importing.
* Remove redundant defines.

svn path=/trunk/; revision=64796

9 years ago[CMAKE]
Amine Khaldi [Fri, 17 Oct 2014 23:28:29 +0000 (23:28 +0000)]
[CMAKE]
* Make the minimum required version 2.8.
* Remove redundant psdk dependencies.
* Tidy up CMake files.

svn path=/trunk/; revision=64795

9 years ago[NTVDM]: simplify code and add a reference link concerning the CrtColorPaletteMask...
Hermès Bélusca-Maïto [Fri, 17 Oct 2014 22:27:34 +0000 (22:27 +0000)]
[NTVDM]: simplify code and add a reference link concerning the CrtColorPaletteMask mask.

svn path=/trunk/; revision=64794

9 years ago[NTFS]
Pierre Schweitzer [Fri, 17 Oct 2014 22:17:59 +0000 (22:17 +0000)]
[NTFS]
Bugfixing... Part 4/X:
- Fix a nasty bug in NtfsLookupFileAt() (how did it work before?). The name parsing was wrong (no progress was being made) and thus was leading to an infinite loop in directory browsing.
- Fix a lovely bug coming from a non-documented feature in NTFS. To properly read the MFT index, you've to apply a mask. Do this to properly handles MFT record. This fixes returned MFT index which allows resuse.
- Do not allow returning MFT records < 0x10 for now. Not sure whether it should be allowed, but so far, these are MFT special records, so let's forget about it. IIRC, they are available on Windows. But trying to chase another bug for the moment.

This does not fix yet directory enumeration.

svn path=/trunk/; revision=64793

9 years ago[NTVDM]
Hermès Bélusca-Maïto [Fri, 17 Oct 2014 22:08:51 +0000 (22:08 +0000)]
[NTVDM]
- Use a helper function for copying little chunks of memory (1, 2, 4 and 8 bytes) because a profiling of ntvdm showed that especially 1 and 2 bytes of memory were read the most, and calling RtlCopy/MoveMemory for intensively copying 1 or 2 bytes was shown to be inefficient. We also don't use directly intrinsics/builtins because the compiler cannot know in advance the size of the memory to be copied, it cannot perform the required optimizations. It was checked that using the builtin-memcpy or memmove of GCC when compiling the program in release+full optimization mode just embedded a call to _memcpy, and naively using the movsX intrinsics of MSVC does not do the job of "moving" memory taking into account for the possible overlaps. Therefore, for small sizes (<= 8 bytes), we use copy assignments, whereas for large sizes (and for 3, 5, 7, 9+ bytes) we use the regular method of calling RtlMoveMemory. We gain ~=10% speed with this optimization.
- Also I use >> and & for dividing by 4 and 2 instead of the regular / and % operations because they are not optimized otherwise by default by MSVC (they are however, if you explicitely enable optimizations).

svn path=/trunk/; revision=64792

9 years ago[CMAKE/KEYBOARD]
Amine Khaldi [Fri, 17 Oct 2014 20:41:58 +0000 (20:41 +0000)]
[CMAKE/KEYBOARD]
* Improve the way we handle keyboard layouts.

svn path=/trunk/; revision=64791

9 years ago[EXT2FS]
Sylvain Petreolle [Fri, 17 Oct 2014 19:27:29 +0000 (19:27 +0000)]
[EXT2FS]
Properly fix warnings on MSVC, introduced in r38302.
"- 'allowwarnings=true' -- not anymore", they said.
Advice by ThFabba.

svn path=/trunk/; revision=64790

9 years ago[User32Test]
James Tabor [Fri, 17 Oct 2014 17:48:35 +0000 (17:48 +0000)]
[User32Test]
- Turn off tracking pop up menu tests. See CORE-8299.

svn path=/trunk/; revision=64789

9 years ago[User32]
James Tabor [Fri, 17 Oct 2014 16:43:46 +0000 (16:43 +0000)]
[User32]
- Patch by Michael Müller : Also set cch member in GetMenuItemInfo when passing a null pointer.
- Fix two menu tests.

svn path=/trunk/; revision=64788

9 years ago[CMD]
Kamil Hornicek [Fri, 17 Oct 2014 16:39:54 +0000 (16:39 +0000)]
[CMD]
- prevent a buffer underrun (fixes stray quotes being appended on autocomplete in some cases)
- check if the input string is not empty (fixes first file in directory getting skipped on autocomplete)
- fix some typos
CORE-8623

svn path=/trunk/; revision=64787

9 years ago[NTVDM]
Aleksandar Andrejevic [Fri, 17 Oct 2014 14:15:43 +0000 (14:15 +0000)]
[NTVDM]
Add an 8x14 font to the video BIOS.
Font data provided by Roy Tam.

svn path=/trunk/; revision=64786

9 years ago[USER32_WINETEST]
Amine Khaldi [Fri, 17 Oct 2014 13:49:22 +0000 (13:49 +0000)]
[USER32_WINETEST]
* Sync with Wine 1.7.27.
* Jim! help!
CORE-8540

svn path=/trunk/; revision=64785

9 years ago[ADVAPI32_WINETEST]
Amine Khaldi [Fri, 17 Oct 2014 13:36:13 +0000 (13:36 +0000)]
[ADVAPI32_WINETEST]
* Sync with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64784

9 years ago[PSDK]
Amine Khaldi [Fri, 17 Oct 2014 13:35:59 +0000 (13:35 +0000)]
[PSDK]
* Add missing PROCESS_SET_LIMITED_INFORMATION and THREAD_RESUME.

svn path=/trunk/; revision=64783

9 years ago[PING]
Thomas Faber [Fri, 17 Oct 2014 13:21:06 +0000 (13:21 +0000)]
[PING]
- Remove a broken "optimization"
CORE-7509 #resolve

svn path=/trunk/; revision=64782

9 years ago[KDCOM]
Amine Khaldi [Fri, 17 Oct 2014 11:12:03 +0000 (11:12 +0000)]
[KDCOM]
* Use set_module_type() instead of combining set_entrypoint() and set_image_base().

svn path=/trunk/; revision=64781

9 years ago[CMAKE]
Amine Khaldi [Fri, 17 Oct 2014 11:10:47 +0000 (11:10 +0000)]
[CMAKE]
* Fix IMAGEBASE handling.

svn path=/trunk/; revision=64780

9 years ago[LIBXML2]
Amine Khaldi [Fri, 17 Oct 2014 10:58:01 +0000 (10:58 +0000)]
[LIBXML2]
* Update to v2.9.2.
CORE-8642

svn path=/trunk/; revision=64779

9 years ago[NPFS]
Thomas Faber [Fri, 17 Oct 2014 10:04:57 +0000 (10:04 +0000)]
[NPFS]
- Arch, pool tags are specified in reverse order

svn path=/trunk/; revision=64778

9 years ago[WIN32K]
Amine Khaldi [Fri, 17 Oct 2014 07:59:29 +0000 (07:59 +0000)]
[WIN32K]
* Workaround for CORE-8525, CORE-6023, CORE-7735 and CORE-8635.
* Brought to you by V and Amine. Thanks to Timo and Jerome for the reviews.
CORE-8525 CORE-6023 CORE-7735 CORE-8635 #comment Please retest with r64777 or later.

svn path=/trunk/; revision=64777

9 years ago[NTFS]
Pierre Schweitzer [Fri, 17 Oct 2014 06:55:52 +0000 (06:55 +0000)]
[NTFS]
Bugfixing... Part 3/X:
- Really release the allocated memory in NtfsFindFileAt() and NtfsLookupFileAt(). Don't attempt to release caller pointer!

This fixes crashes on directory enumeration failure. Even though this latter still doesn't work.

svn path=/trunk/; revision=64776

9 years ago[FAST486]: Use psh/poppack.h here too.
Hermès Bélusca-Maïto [Fri, 17 Oct 2014 02:31:14 +0000 (02:31 +0000)]
[FAST486]: Use psh/poppack.h here too.

svn path=/trunk/; revision=64775

9 years ago[FAST486]: rename some structs and use #include <pshpack/poppack.h> for portability...
Hermès Bélusca-Maïto [Fri, 17 Oct 2014 02:29:48 +0000 (02:29 +0000)]
[FAST486]: rename some structs and use #include <pshpack/poppack.h> for portability purposes.

svn path=/trunk/; revision=64774

9 years ago[FAST486]: Do not call RtlCopyMemory for copying few bytes (2 and 4).
Hermès Bélusca-Maïto [Thu, 16 Oct 2014 21:48:18 +0000 (21:48 +0000)]
[FAST486]: Do not call RtlCopyMemory for copying few bytes (2 and 4).

svn path=/trunk/; revision=64773

9 years ago[NPFS]
Thomas Faber [Thu, 16 Oct 2014 21:43:03 +0000 (21:43 +0000)]
[NPFS]
- Don't return a canceled IRP from NpRemoveDataQueueEntry.

svn path=/trunk/; revision=64772

9 years ago[NTFS]
Pierre Schweitzer [Thu, 16 Oct 2014 21:37:27 +0000 (21:37 +0000)]
[NTFS]
Bugfixing... Part 2/X:
- Please welcome yet another structure in our NTFS driver... The INDX buffer which is used for non resident index entries. Doc (incomplete) here: http://bos.asmhackers.net/docs/filesystems/ntfs/INDX.html
- Make use of it in NtfsFindMftRecord() to replace some totally obscure code.
- Add some asserts to verify we read somehow what we expect. One of the assert is not working properly... Hum! Need to find out why.

We don't go any farther so far. Good news though: a FIXME has been replaced by another FIXME.
NB: This would deserve being ported to FreeLDR to fix the same FIXME.

svn path=/trunk/; revision=64771

9 years ago{NTOSKRNL]
Timo Kreuzer [Thu, 16 Oct 2014 21:33:32 +0000 (21:33 +0000)]
{NTOSKRNL]
Handle int 0x2c (assertion failure) in KDBG by breaking into the debugger instead of ignoring it and pretending it was handled. Now NT_ASSERT works on GCC builds as well. (As good as things work in KDBG...)

svn path=/trunk/; revision=64770

9 years ago[TCPIP]
Jérôme Gardou [Thu, 16 Oct 2014 20:15:33 +0000 (20:15 +0000)]
[TCPIP]
 - Fix potential NULL pointer dereference

svn path=/trunk/; revision=64769

9 years ago[INCLUDE/IDL]
Jérôme Gardou [Thu, 16 Oct 2014 20:15:26 +0000 (20:15 +0000)]
[INCLUDE/IDL]
 - Properly mark some arguments as [out] only for wlansvc interface.

svn path=/trunk/; revision=64768

9 years ago[USERENV]
Jérôme Gardou [Thu, 16 Oct 2014 20:15:13 +0000 (20:15 +0000)]
[USERENV]
 - Add proper stubs for GetAppliedGPOList[A,W]
CORE-8636

svn path=/trunk/; revision=64767

9 years ago[PSDK]
Jérôme Gardou [Thu, 16 Oct 2014 20:14:25 +0000 (20:14 +0000)]
[PSDK]
 - Add GetAppliedGPOList[A,W] declarations
CORE-8636

svn path=/trunk/; revision=64766

9 years ago[NTFS]
Pierre Schweitzer [Thu, 16 Oct 2014 20:05:36 +0000 (20:05 +0000)]
[NTFS]
Bugfixing... Part 1/X:
- FixupUpdateSequenceArray() returns a NTSTATUS, so properly handle it.
- Actually... Attributes name can be unicode in case of a file name, but it can also be ansi, for streams name... So, don't force UNICODE_STRING, it causes more troubles than it solves.

So, now, we really progress in reading directory. Instead of finding no files because we improperly read attributes, we now corrupt memory somewhere and crash ReactOS.

svn path=/trunk/; revision=64765

9 years ago[WIN32K]
Amine Khaldi [Thu, 16 Oct 2014 19:14:52 +0000 (19:14 +0000)]
[WIN32K]
* Zap EGAColorsTriples and DefLogPaletteTriples.
* Remove extra () around a comparison.

svn path=/trunk/; revision=64764

9 years ago[NPFS]
Thomas Faber [Thu, 16 Oct 2014 16:57:11 +0000 (16:57 +0000)]
[NPFS]
- Don't truncate pipe name in the RootPipe case in NpCreateFcb. Found by Windows's RtlInsertUnicodePrefix implementation -- which might indicate that ours is broken.

svn path=/trunk/; revision=64763

9 years ago[NPFS]
Thomas Faber [Thu, 16 Oct 2014 16:40:13 +0000 (16:40 +0000)]
[NPFS]
- Don't call RtlEqualUnicodeString (paged code) while holding a spin lock. Powered by Driver Verifier.

svn path=/trunk/; revision=64762

9 years ago[NPFS]
Thomas Faber [Thu, 16 Oct 2014 16:36:17 +0000 (16:36 +0000)]
[NPFS]
- Use NpAcquire*Vcb/NpReleaseVcb instead of using NpVcb directly
- CaseInsensitiveIndex is integer, not boolean
- Minor fixes involving unnecessary casts and magic numbers

svn path=/trunk/; revision=64761

9 years ago[SPEC2DEF]
Jérôme Gardou [Thu, 16 Oct 2014 09:23:33 +0000 (09:23 +0000)]
[SPEC2DEF]
 - Fix typo: PRix64 --> PRIx64
 - Use GUID to trace 'int128' arguments, as that's what they almost always are.

svn path=/trunk/; revision=64760

9 years ago[NTVDM]
Aleksandar Andrejevic [Thu, 16 Oct 2014 01:41:24 +0000 (01:41 +0000)]
[NTVDM]
Fix the IRQ priority and routing in PicGetInterrupt.

svn path=/trunk/; revision=64759

9 years ago[RunTmChk]
Timo Kreuzer [Wed, 15 Oct 2014 22:44:26 +0000 (22:44 +0000)]
[RunTmChk]
Fix a typo, remove a spare int 3, add file headers with BSD license

svn path=/trunk/; revision=64758

9 years ago[NTOSKRNL]
Timo Kreuzer [Wed, 15 Oct 2014 22:03:50 +0000 (22:03 +0000)]
[NTOSKRNL]
Don't use an uninitialized variable in MmArmAccessFault (Alex, please review). Brought to you by MSVC runtime checks.

svn path=/trunk/; revision=64757

9 years ago[RunTmChk]
Timo Kreuzer [Wed, 15 Oct 2014 21:54:12 +0000 (21:54 +0000)]
[RunTmChk]
Implement a simple version of RunTmChk.lib for MSVC runtime check support, which can also be used in kernel mode. This one is good enough to compile ntoskrnl with it.

svn path=/trunk/; revision=64756

9 years ago[NTVDM]: Arch, please do *not* reinitialize twice the keyboard and the video (first...
Hermès Bélusca-Maïto [Wed, 15 Oct 2014 21:31:51 +0000 (21:31 +0000)]
[NTVDM]: Arch, please do *not* reinitialize twice the keyboard and the video (first time before initializing the BDA, second time after), otherwise some programs won't display correct things!!

svn path=/trunk/; revision=64755

9 years ago[NTFS]
Pierre Schweitzer [Wed, 15 Oct 2014 21:02:05 +0000 (21:02 +0000)]
[NTFS]
- Implement NtfsGetNameInformation()
- Implement NtfsGetDirectoryInformation()
- Implement NtfsGetFullDirectoryInformation()
- Implement NtfsGetBothDirectoryInformation()
- Implement NtfsQueryDirectory() which makes use of all the functions upper + all the previous fixes to make it able to look for a file using WC and file entry index

This is supposed to bring directory enumeration in line on NTFS volumes. BUT, there's a bug at some point which makes it fail (or my test volume is corrupted :-P (which is unlikely (Scheme, get out of this commit message!))). Will look into it later on. Committing so far because it's quite major work anyway.
More to follow~

svn path=/trunk/; revision=64754

9 years ago[NTFS]
Pierre Schweitzer [Wed, 15 Oct 2014 20:36:30 +0000 (20:36 +0000)]
[NTFS]
Implement NtfsFileFlagsToAttributes() to fix some of the attributes of the MFT to make them usable by ReactOS.
Would deserve a double-check

svn path=/trunk/; revision=64753

9 years ago[NTFS]
Pierre Schweitzer [Wed, 15 Oct 2014 20:23:47 +0000 (20:23 +0000)]
[NTFS]
Implement NtfsDateTimeToFileTime() which convert epoch time (1970) to Windows time (1601)

svn path=/trunk/; revision=64752

9 years ago[TRANSLATIONS]
Amine Khaldi [Wed, 15 Oct 2014 17:46:49 +0000 (17:46 +0000)]
[TRANSLATIONS]
* Turkish translations update by Erdem Ersoy.
CORE-7861

svn path=/trunk/; revision=64750

9 years ago[PSDK]
Thomas Faber [Wed, 15 Oct 2014 16:38:13 +0000 (16:38 +0000)]
[PSDK]
- Use macro version of RtlUlonglongByteSwap in winternl.h because using the fastcall version causes stack corruption
CORE-8632 #resolve

svn path=/trunk/; revision=64749

9 years ago[NTVDM]: Implement double-width and double-height separately; used when eg. an app...
Hermès Bélusca-Maïto [Wed, 15 Oct 2014 00:42:19 +0000 (00:42 +0000)]
[NTVDM]: Implement double-width and double-height separately; used when eg. an app displays in 640*180, etc...

svn path=/trunk/; revision=64748