Compare commits

...

5867 Commits

Author SHA1 Message Date
Hermès Bélusca-Maïto
b29c9e77b6 [BOOTDATA]: Import hybridcd/livecd modification from r70655.
svn path=/branches/ros-branch-0_4_0/; revision=70656
2016-01-29 01:20:00 +00:00
Hermès Bélusca-Maïto
406bab4012 [VERSION]: Sync versioning modifications from r70651.
svn path=/branches/ros-branch-0_4_0/; revision=70652
2016-01-29 00:57:17 +00:00
Amine Khaldi
048fd42f18 [0.4.0] * Merge the version improvements in r70641.
svn path=/branches/ros-branch-0_4_0/; revision=70642
2016-01-25 18:41:22 +00:00
Amine Khaldi
5cde7752ad [0.4.0] * Merge i8042prt's Dell Latitude D630 workaround by Thomas in r70639. CORE-10797
svn path=/branches/ros-branch-0_4_0/; revision=70640
2016-01-25 18:10:43 +00:00
Amine Khaldi
1a609600f3 [0.4.0] * Merge the missing Italian STRING_EXTENDED_PARTITION fix in r70627. CORE-10809
svn path=/branches/ros-branch-0_4_0/; revision=70628
2016-01-20 15:26:48 +00:00
Amine Khaldi
252a82f434 [0.4.0] * Merge the win32k fixes by Timo in revisions 70482, 70485, 70486 and 70487. CORE-10807
svn path=/branches/ros-branch-0_4_0/; revision=70620
2016-01-19 21:57:30 +00:00
Amine Khaldi
992785856d [0.4.0] * Merge Erdem Ersoy's Turkish translation update in r70616 except mmc and userinit. CORE-10805
svn path=/branches/ros-branch-0_4_0/; revision=70617
2016-01-18 19:25:52 +00:00
Amine Khaldi
3d70b834c7 [0.4.0] * And of course we need Hermès' lovely New Year celebration in r70477 ;)
svn path=/branches/ros-branch-0_4_0/; revision=70613
2016-01-18 13:17:43 +00:00
Amine Khaldi
5cb73acf77 [0.4.0] * Merge floppy driver fix by Sylvain in r70606. CORE-10761
svn path=/branches/ros-branch-0_4_0/; revision=70612
2016-01-18 09:28:44 +00:00
Amine Khaldi
a0758e6af2 [0.4.0] * Apply the wordpad related hack from CORE-5823 by Jared Smudde.
svn path=/branches/ros-branch-0_4_0/; revision=70599
2016-01-16 10:46:37 +00:00
Amine Khaldi
7f471302fa [0.4.0] * Merge the MCI Extensions fixes by Hermès in r70597.
svn path=/branches/ros-branch-0_4_0/; revision=70598
2016-01-16 10:11:58 +00:00
Amine Khaldi
e2000d687c [0.4.0] * Merge desk.cpl fixes by Mark Jansen in r70577. CORE-10786
svn path=/branches/ros-branch-0_4_0/; revision=70592
2016-01-13 18:07:32 +00:00
Amine Khaldi
70ea17266f [ROSVBOXMGMT] Enable auto starting rosvboxmgmt so that VBox shared folders are assigned drive letters. CORE-10032 ROSAPPS-303
svn path=/branches/ros-branch-0_4_0/; revision=70591
2016-01-13 16:24:59 +00:00
Amine Khaldi
ad186f071a [0.4.0] * Merge rosvboxmgmt work by Pierre in revisions 70536, 70537 and 70578. This reverts r70520 (shortcuts creation for VBox shared folders). CORE-10032 ROSAPPS-303
svn path=/branches/ros-branch-0_4_0/; revision=70590
2016-01-13 16:23:21 +00:00
Amine Khaldi
3a9481e167 [0.4.0] * Merge the spec2def fix by Timo in r70454.
svn path=/branches/ros-branch-0_4_0/; revision=70589
2016-01-13 16:11:35 +00:00
Amine Khaldi
2d4fcce6ac [0.4.0] * Merge the fatten work by Hermès in revisions 70545 => 70548.
svn path=/branches/ros-branch-0_4_0/; revision=70588
2016-01-13 16:09:48 +00:00
Amine Khaldi
db885f7599 [0.4.0] * Merge the cdmake work by Hermès in revisions 70552, 70553 and 70554.
svn path=/branches/ros-branch-0_4_0/; revision=70587
2016-01-13 16:08:08 +00:00
Amine Khaldi
5a4a191801 [0.4.0] * Merge the usetup work by Hermès in revisions 70468, 70557 and 70558.
svn path=/branches/ros-branch-0_4_0/; revision=70586
2016-01-13 16:06:09 +00:00
Amine Khaldi
4fc13100c8 [0.4.0] * Merge the smss fixes by Hermès in r70530.
svn path=/branches/ros-branch-0_4_0/; revision=70585
2016-01-13 15:59:39 +00:00
Amine Khaldi
8157860973 [0.4.0] * Merge the vfatlib work by Hermès and Eric in revisions 70433 => 70435, 70445 => 70449, 70576 and 70583.
svn path=/branches/ros-branch-0_4_0/; revision=70584
2016-01-13 15:40:37 +00:00
Hermès Bélusca-Maïto
6d8ed09fbe [FATTEN]: Set the directory volume label in addition to the bootsector label.
[FATFS]: For FAT12 volumes, do not expand the FAT size.

svn path=/trunk/; revision=70548
2016-01-08 13:51:45 +00:00
Hermès Bélusca-Maïto
dce360ba2c [FATFS]: When creating a directory (or setting the volume label), the create time should be set correctly.
svn path=/trunk/; revision=70547
2016-01-08 13:22:23 +00:00
Hermès Bélusca-Maïto
248ec2d9f1 [FATTEN:FATFS]: Minor code reshuffling to make ease for syncing with future versions of the FatFS library (currently 0.11a).
svn path=/trunk/; revision=70546
2016-01-08 12:59:19 +00:00
Hermès Bélusca-Maïto
349c0d0361 [FATTEN]: FAT FS month is 1-based.
svn path=/trunk/; revision=70545
2016-01-08 12:14:53 +00:00
Alex Ionescu
ae83268e16 [BOOTMGFW]: Last few straggling initialization checks.
[BOOTMGFW]: Recover the boot sequence from the BCD and entire the boot selection stage. Now the fun begins.

svn path=/trunk/; revision=70544
2016-01-08 06:19:14 +00:00
Alex Ionescu
44ab46cfa9 [BOOTMGFW]: Implement additional startup logic
[BOOTLIB]: Implement initial SecureBoot support.
[BOOTLIB]: Implement UEFI Variable query support.

svn path=/trunk/; revision=70543
2016-01-08 06:03:55 +00:00
Alex Ionescu
3bfe54c38c Three tiny squirmy subtle bugs combined themselves with the bug that was just fixed to make bootmgfw believe it was being booted from a raw removable disk (floppy). Because bootmgfw now correctly enumerates boot devices and detects the DVD/CDROM media, it could no longer 'find itself', believing it was on a floppy.
[BOOTLIB]: When failing to find a block device, keep going searching for more, instead of giving up (critical, because the CDROM FAT12 image is now device path #1, not #0).
[BOOTMGR]: Correctly use the right logical operator in EfiInitpGetDeviceNode to get the deepest-level media device node. We now get the CDROM node, not the raw node.
[CDMAKE]: Don't actually create an EFI/BOOT directory on the CDROM itself, but rather in the FAT12 image. Otherwise, this can confuse UEFI implementations to boot the boot manager off the raw CDROM, instead of the FAT12 image on the CDROM.

svn path=/trunk/; revision=70542
2016-01-08 01:18:08 +00:00
Alex Ionescu
79e72915d9 [BOOTLIB]: Fix a few subtle bugs which made us incorrectly believe that we were booting from a raw removable drive. We now correctly detect that we are booting off CDROM media. Of course, now everything else is hopelessly broken and we've regressed to die before we get anywhere. Progress.
svn path=/trunk/; revision=70540
2016-01-08 00:15:00 +00:00
Alex Ionescu
e0df0d3663 [BOOTLIB]: ACPI support (RSDP, XSDT/RSDT and arbitrary table lookup + mapping)
[BOOTLIB]: Additional text and graphics console support. Among other things, we have now gained the ability to fill a buffer with a particular color.
[BOOTLIB]: OEM Bitmap (ACPI 5!) support.
[BOOTMGR]: Continue making a few more initialization calls now that bootlib supports more functionality.

svn path=/trunk/; revision=70539
2016-01-07 23:43:15 +00:00
Alex Ionescu
55ef8d7cd2 [ACPI.H]: Fix broken definition of RSDP_SIGNATURE
[ACPI.H]: Add BGRT_TABLE definition.

svn path=/trunk/; revision=70538
2016-01-07 23:25:49 +00:00
Pierre Schweitzer
d31cc46a14 [ROSVBOXMGMT]
Update the registry configuration to reflect the recent changes to rosvboxmgmt.
Just uncomment the line matching the behavior you prefer.

CORE-10032
ROSAPPS-303

svn path=/trunk/; revision=70537
2016-01-07 22:44:33 +00:00
Pierre Schweitzer
5e903370dc [ROSVBOXMGMT]
Introduce another automagic thing. Instead of creating shortlinks once shared folders have been enumerated, just assign them a drive letter!
See it in action: https://twitter.com/HeisSpiter/status/685229912748371968

Choose the one you prefer for 0.4.0 :-)

CORE-10032
ROSAPPS-303

svn path=/trunk/; revision=70536
2016-01-07 22:43:00 +00:00
Hermès Bélusca-Maïto
63025d14ef [NTOS:PO]: Whitespace fixes only!
svn path=/trunk/; revision=70535
2016-01-07 20:00:05 +00:00
Amine Khaldi
2b45c71b50 [0.4.0] * Merge the network drives handling fix in drive properties dialog by Jared Smudde in r70527. CORE-10779
svn path=/branches/ros-branch-0_4_0/; revision=70534
2016-01-07 19:59:31 +00:00
Amine Khaldi
3283ccf304 [0.4.0] * Merge the smss fixes by Hermès in r70529.
svn path=/branches/ros-branch-0_4_0/; revision=70533
2016-01-07 19:54:20 +00:00
Amine Khaldi
c9fe6d8ec6 [0.4.0] * Merge the shell image viewer ICO, EMF, TIF and WMF files support fix by Hermès in r70528.
svn path=/branches/ros-branch-0_4_0/; revision=70532
2016-01-07 19:52:38 +00:00
Pierre Schweitzer
d5691eba70 [FDC]
Fix FdcPower() stub so that it doesn't leak IRP on shutdown
Dedicated to Thomas.

CORE-10117

svn path=/trunk/; revision=70531
2016-01-07 19:23:55 +00:00
Hermès Bélusca-Maïto
762e2a1af4 [SMSS]
- Reenable RTL_QUERY_REGISTRY_DELETE: the "PendingFileRenameOperations(2)" and "AllowProtectedRenames" registry values are deleted after being parsed: we don't retry at every reboot to remove/rename files that were already deleted/renamed.
- Remove superfluous parentheses.
- Warn a FIXME if SFC-protected file renames are allowed and we are processing file renames (the "protected file renames" stuff is unimplemented atm.)

svn path=/trunk/; revision=70530
2016-01-07 19:03:35 +00:00
Hermès Bélusca-Maïto
ae0b31a24a [SMSS]
- Use CRT string functions to loop through multi-strings.
- Do not fail the full KnownDll setup if one dll fails to load. Instead, just properly skip the file (and related to that, fix a bug when skipping excluded known dll files).
- Page files should be created only when we are not in WinPE mode (aka. MiniNTBoot = FALSE).
- Formatting fix in smloop.c, no code change.

svn path=/trunk/; revision=70529
2016-01-07 16:57:05 +00:00
Hermès Bélusca-Maïto
8ec9b6100f [BOOTDATA]
- Add support for opening ICO, EMF, TIF and WMF files with the shell image viewer since it already implements what is needed (via gdiplus).
- Add some missing "Content Type" (MIME type) and "PerceivedType" values for the image extensions.

[SHIMGVW]
- Enable the resource strings for EMF, TIF and WMF files since we actually support them.

Should be merged for 0.4 branch.

svn path=/trunk/; revision=70528
2016-01-07 15:14:40 +00:00
Hermès Bélusca-Maïto
b6c06cfb06 [SHELL32]: Nicely handle network drives in property dialog (and their icon). By Jared Smudde. To be synced for 0.4.0. CORE-10779
svn path=/trunk/; revision=70527
2016-01-07 14:04:07 +00:00
Hermès Bélusca-Maïto
e28db0eef1 [USBEHCI]: Fix a wrong DPRINT string (caught by Thomas).
svn path=/trunk/; revision=70526
2016-01-07 13:44:20 +00:00
Amine Khaldi
c7de9d4774 [0.4.0] * Merge the encoding and broken French translation fix by Hermès in r70523.
svn path=/branches/ros-branch-0_4_0/; revision=70525
2016-01-07 13:40:58 +00:00
Amine Khaldi
d6af3d177f [0.4.0] * Merge the bootvid font generator improvements by Hermès in revisions 70512 and 70513.
svn path=/branches/ros-branch-0_4_0/; revision=70524
2016-01-07 13:39:15 +00:00
Hermès Bélusca-Maïto
4b3b08c1ca [BOOTDATA]: Fix encoding and broken french translation caused by r70375.
svn path=/trunk/; revision=70523
2016-01-07 13:31:46 +00:00
Aleksey Bragin
d3d56d9cbc [LDR]
- Implement support for manifest prober routine in LdrpWalkImportDescriptor, in its simplest way
- Implement such routine in kernel32 (that's mostly a copy of Wine's create_module_activation_context which seems to nicely correspond to what Windows does).
- As create_module_activation_context is moved into kernel32, delete it from ntdll
- Improve debug output in RTL's Activation Context implementation to ease debugging
- Now, ReactOS indeed looks for and actually loads manifests when loading modules. Thanks to http://blog.tombowles.me.uk/2009/10/05/winsxs/ for a really good description of how activation contexts work
CORE-7313

svn path=/trunk/; revision=70522
2016-01-07 12:09:03 +00:00
Amine Khaldi
cc4227eabe [0.4.0] * Merge the Blue Screen font change work by Colin and co in revisions 70507, 70508 and 70509. CORE-10777
svn path=/branches/ros-branch-0_4_0/; revision=70521
2016-01-07 12:04:57 +00:00
Amine Khaldi
54a8053846 [ROSVBOXMGMT] Enable auto starting rosvboxmgmt so that shortcuts for VBox shared folders are properly created. CORE-10032 ROSAPPS-303
svn path=/branches/ros-branch-0_4_0/; revision=70520
2016-01-07 12:00:46 +00:00
Amine Khaldi
41b7d7cc64 [0.4.0] * Thank you for everything Colin! aka merge r70501.
svn path=/branches/ros-branch-0_4_0/; revision=70519
2016-01-07 11:57:13 +00:00
Amine Khaldi
5cf3adb049 [0.4.0] * Merge the recent rosvboxmgmt work by Pierre in revisions 70499, 70500 and 70510. CORE-10032 ROSAPPS-303
svn path=/branches/ros-branch-0_4_0/; revision=70518
2016-01-07 11:55:44 +00:00
Amine Khaldi
5b1c3ac5d1 [0.4.0] * Merge the README files update by Hermès in r70497.
svn path=/branches/ros-branch-0_4_0/; revision=70517
2016-01-07 11:50:57 +00:00
Alex Ionescu
b835d33a8c [BOOTLIB]: More debug print cleanups
[BOOTLIB]: Fix incorrect use of flag introduced a few revisions ago. This fixes <1MB RAM descriptors.
[BOOTLIB]: Enable BmFwMemoryInitialize, since it works now.
All (known) bugs are fixed, bootmgr is back on track.

svn path=/trunk/; revision=70516
2016-01-07 05:30:18 +00:00
Alex Ionescu
93d3cafa85 [BOOTLIB]: Cleanup some debug prints.
[BOOTLIB]: Fix two big device I/O bugs (it's a miracle it worked)
[BOOTLIB]: Use defined constants and comment some more device I/O code.

svn path=/trunk/; revision=70515
2016-01-07 05:14:26 +00:00
Alex Ionescu
69dbd65521 [BOOTLIB]: Add support for initializing the input console object.
[BOOTLIB]: Add a bunch more graphical console support functions.
[BOOTLIB]: Cleanup some older graphics-related code.
[BOOTLIB]: Support graphics re-initialization. We now correctly fallback to text mode since font loading is not implemented.

svn path=/trunk/; revision=70514
2016-01-07 04:28:13 +00:00
Hermès Bélusca-Maïto
fc458c3371 [BOOTVID_FONGEN]
- Fix a comment;
- Less hardcoded values.

svn path=/trunk/; revision=70513
2016-01-07 01:23:51 +00:00
Hermès Bélusca-Maïto
4219c4eed0 [BOOTVID_FONT_GEN]
Improve the bootvid font generator of Colin (see r70507) in many ways:
- Allow the user to specify the font name (optional), and optionally a font size and x- and y-offset so that (s)he doesn't have to recompile the generator each time (s)he wants to test a new font.
- The default settings (in case the user doesn't specify all or part of the font definition) are those of Windows' bootvid font (i.e. "Lucida Console", font size 10, x_offset = y_offset = 0).
- Create only once the DC and the font handle (to be used for all the generated characters) instead of each time a character is being generated. I still keep the recreation of the HBITMAP for each character (I don't know if we can also improve there by creating it once and zeroing it out before generating each character).

svn path=/trunk/; revision=70512
2016-01-07 00:29:41 +00:00
Hermès Bélusca-Maïto
0f3e09ea77 [USB(E|O|U)HCI]: Handle failure cases of BuildTransferDescriptorChain. By contributor 'vgal'. This is needed for gracefully handling failure cases hit during diagnosing CORE-8046.
CORE-10776

svn path=/trunk/; revision=70511
2016-01-06 23:43:38 +00:00
Pierre Schweitzer
b932a314ce [ROSVBOXMGMT]
Add a commented out way to automatically start `rosvboxmgmt auto' on start so that shortcuts for VBox shared folders are properly created.

This is to be enabled on 0.4.0.

CORE-10032
ROSAPPS-303 

svn path=/trunk/; revision=70510
2016-01-06 19:47:03 +00:00
Hermès Bélusca-Maïto
f16214d4ed [BOOTVID]: CORE-10777 #comment Sync the Plan-9 font to ARM bootvid. Addendum to r70508.
svn path=/trunk/; revision=70509
2016-01-06 17:39:08 +00:00
Amine Khaldi
678997dfe9 [BOOTVID] Use plan 9 8x13 font from Markus Kuhn. Patch by Roy Tam. CORE-10777
svn path=/trunk/; revision=70508
2016-01-06 15:43:24 +00:00
Colin Finck
471c9fdae6 [BOOTVID]
Change the Blue Screen Font hardcoded into bootvid.dll to the Open Source "Anonymous Pro" font, which makes a nice 8x13 font.
Blue Screens now look like this: http://fs5.directupload.net/images/160106/ehv6245t.png

[BOOTVID_FONT_GENERATOR]
In case you find an even better font, you now have a nice little tool to test that font and generate the corresponding FontData array for bootvid.

svn path=/trunk/; revision=70507
2016-01-06 09:31:53 +00:00
Alex Ionescu
23c811435c [BOOTLIB]: Add very early work around font loading.
[BOOTLIB]: Add mostly full support for resource and locale management.
[BOOTLIB]: Stub out bootstat.dat (Boot Status Data Log) support.
[BOOTLIB]: Some refactoring.
[BOOTMGFW]: Add a message table with a few initial strings. Also add an empty bootmgr.xsl stylesheet. We'll have to see what we want/need to do here.
[BOOTMGFW]: Correctly loading HTML and message table resource data, and add a few other additional initialization calls.
Next steps are to re-visit graphics code to support re-initialization.

svn path=/trunk/; revision=70504
2016-01-06 04:43:23 +00:00
Colin Finck
ab2853dee8 I think almost 10 years of participation suffice to get into this file :)
svn path=/trunk/; revision=70501
2016-01-06 02:19:53 +00:00
Pierre Schweitzer
9422fce209 [ROSVBOXMGMT]
Add a new feature to the tool:
Let it auto start VBox Shared folders and to browse all the available shares in order to create shell links on desktop.
The purpose is to workaround the missing network shares discovery feature in ReactOS while keeping the VBox shared folders usage 'user-friendly'.

It has been designed specifically for the coming 0.4.0 release: just put it on autostart for the default user. If there are shares (even new ones), it will create links, if there are no shares, no guest additions, no VBox, it will just exit.

See it in action: https://twitter.com/HeisSpiter/status/684506579555741696

CORE-10032
ROSAPPS-303

svn path=/trunk/; revision=70500
2016-01-05 22:56:20 +00:00
Pierre Schweitzer
ce8cc10e12 [ROSVBOXMGMT]
When displaying active shares, also display their names

svn path=/trunk/; revision=70499
2016-01-05 21:42:54 +00:00
Hermès Bélusca-Maïto
d407f4f1e3 [NTOS:MM]: Don't hardcode Mm tags since we have a #define
svn path=/trunk/; revision=70498
2016-01-05 19:53:07 +00:00
Hermès Bélusca-Maïto
e869e42c26 [REACTOS]
Update the README files for 0.4.x releases.

svn path=/trunk/; revision=70497
2016-01-05 19:52:35 +00:00
Ged Murphy
f8cbc3e48c [NTOSKRNL]
- Use the LockQueueIoDatabaseLock spinlock to guard the device list instead of blindly raising the IRQL
- Add missing lock to IopEditDeviceList

svn path=/trunk/; revision=70496
2016-01-05 18:58:32 +00:00
Ged Murphy
e77e4e378c [FLTMGR]
- Fix a bug in FltpDetachFromFileSystemDevice so it correctly bails when we've walked the attached device list.
- FltpDispatch can come in at high IRQL. Thanks to Thomas for noticing that err.
- Add newlines to the end of DPRINTS (it's been a while...)
- The filter now loads and runs in the reactos FS stack.

svn path=/trunk/; revision=70495
2016-01-05 18:43:26 +00:00
Alex Ionescu
d493b44e41 [DDK]: Add IMAGE_RESOURCE_DIRECTORY_ENTRY to NTIMAGE.H. I shudder to think how our current code currently parses resource directories without this.
svn path=/trunk/; revision=70494
2016-01-05 17:12:14 +00:00
Ged Murphy
d3c70e5b56 [FLTMGR]
- Mark the Dispatch / FastIo functions as paged code
- Fix declarations and remove casts

svn path=/trunk/; revision=70493
2016-01-05 13:04:52 +00:00
Alex Ionescu
6e87f8eab7 [BOOTLIB]: Separate out bcd.c into bcdopt.c, bootreg.c and bcd.c
[BOOTLIB]: Implement routines to enumerate subkeys and to read a key value.
[BOOTLIB]: Implement routines to parse, enumerate, and convert registry data into BCD elements, and to convert BCD elements into boot library BCD options.
[BOOTLIB/BOOTMGFW]: Lots of cleanups, mainly around the fact we now use ntintsafe.h instead of the manually self-inlined code from before, and from documenting additional flag values, and from using our newfound BCD powers.
[BOOTMGFW]: Implement BmGetOptionList, BmpUpdateApplicationOptions.
[BOOTMGFW]: Prepare for post-BCD library reinitialization. We correctly read the 3 BCD options so far in the hive.

svn path=/trunk/; revision=70492
2016-01-05 06:09:22 +00:00
Alex Ionescu
bdc681e191 [BOOTMGFW]: Implement the rtlcompat functions, so that Rtl string functions will actually work.
[HIVEBCD]: Start filling out a minimalistic BCD Hive layout to try out the BCD parsing/conversion code in my WC.

svn path=/trunk/; revision=70491
2016-01-05 05:12:01 +00:00
Alex Ionescu
de4c83cfb9 [CMLIB]: Attempt fix for Linux hosts.
svn path=/trunk/; revision=70490
2016-01-05 01:55:40 +00:00
Alex Ionescu
9a4cbe2cbe [CMLIB]: Move Value functions to CMLIB as well, so that they can be shared with the new boot code.
svn path=/trunk/; revision=70489
2016-01-05 01:51:54 +00:00
Ged Murphy
3789427f96 [FLTMGR]
- Plug in the dispatch routines. These are just pass through methods for now to get the filter up and running.
- Implement the FastIo handlers. The majority of these call the FastIo routines of the attached device object.
- Make sure we detach from devices that are being deleted in FastIoDetachDevice.
- Move the FastIoDetachDevice routine to a deferred call as it's too expensive to tie up a FastIo request.

svn path=/trunk/; revision=70488
2016-01-04 12:50:06 +00:00
Timo Kreuzer
7c033fc64b [WIN32K]
This ASSERT was actually supposed to be removed and only accidentally brought back.

svn path=/trunk/; revision=70487
2016-01-03 19:58:33 +00:00
Timo Kreuzer
7ba08f4ebf [WIN32K]
Fix the fix from r70482: Our DIBs are actually 32 bit aligned, so pass even uncompressed bits to GreCreateBitmapEx instead of copying them later with wrong alignment.

svn path=/trunk/; revision=70486
2016-01-03 19:46:57 +00:00
Timo Kreuzer
4b6f43dcfa [WIN32K]
Disable broken code to update a device palette. Should fix testbot crashes.

svn path=/trunk/; revision=70485
2016-01-03 18:10:31 +00:00
Amine Khaldi
1221a05a4f [NTDLL] Fix a typo.
svn path=/trunk/; revision=70484
2016-01-03 16:27:06 +00:00
Alex Ionescu
b8e0613a39 [NDK]: Document RtlPushFrame, RtlPopFrame, RtlGetFrame.
[NDK]: Add TEB_ACTIVE_FRAME_CONTEXT_FLAG_EXTENDED, TEB_ACTIVE_FRAME_EX, TEB_ACTIVE_FRAME_CONTEXT_EX from the CoreCLR sources (clrnt.h)
[RTL]: Implement RtlPushFrame, RtlPopFrame, RtlGetFrame.
[NTDLL]: Export the above.
[RTL]: Fix MSVC warning after someone's earlier WINE merge.

svn path=/trunk/; revision=70483
2016-01-03 16:23:38 +00:00
Timo Kreuzer
de7d65388d [WIN32K]
NtGdiCreateDIBitmapInternal: clear CBM_INIT flag, if no bits are given.
IntSetDIBits: Always calculate the bitmap size for uncompressed bitmaps, do not pass uncompressed bits to GreCreateBitmapEx, since they don't have the required alignment (the width in bytes for DIB is 16 bit aligned, bitmaps 32).
Remove a broken ASSERT.

svn path=/trunk/; revision=70482
2016-01-03 16:16:04 +00:00
Amine Khaldi
3d80c3ab79 [0.4.0] * Merge English strings improvements by Henry Tang Ih in r70480. CORE-10729
svn path=/branches/ros-branch-0_4_0/; revision=70481
2016-01-03 16:08:34 +00:00
Eric Kohl
4636e8a727 Improve English strings in ReactOS.
Patch by Henry Tang Ih.
CORE-10729 #resolve #comment Committed in r70480. Thanks a lot!

svn path=/trunk/; revision=70480
2016-01-03 15:40:57 +00:00
Eric Kohl
3c5e5eaf1b [LSASRV]
Implement LsarStorePrivateData and LsarRetrievePrivateData.

[ADVAPI32]
Implement LsaRetrievePrivateData and LsaStorePrivateData.

Encryption of secrets (aka private data) is NOT implemented yet!

svn path=/trunk/; revision=70479
2016-01-03 09:22:14 +00:00
Eric Kohl
94a6bf4cf5 [ADVAPI32]
CreateProcessAsUserA/W: Make hToken optional.

svn path=/trunk/; revision=70478
2016-01-01 14:16:04 +00:00
Hermès Bélusca-Maïto
42fdef7ea4 Happy New Year 2016 !!
☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´☆

⋱★⋰⋱☆⋰⋱★⋰⋱☆⋰⋱☆⋰⋱★⋰⋱☆⋰⋱★⋰
░░░░░░█░█ █▀█ █▀█ █▀█ █░█░░░░░░
░░░░░░█▀█ █▀█ █▀▀ █▀▀ ▀█▀░░░░░░
░░░░░░▀░▀ ▀░▀ ▀░░ ▀░░ ░▀░░░░░░░
█▄░█ █▀▀ █░█░█░░█░█ █▀▀ █▀█ █▀█
█░██ █▀▀ █░█░█░░▀█▀ █▀▀ █▀█ ██▀
▀░░▀ ▀▀▀ ░▀▀▀░░░░▀░ ▀▀▀ ▀░▀ ▀░▀
⋱☆⋰⋱★⋰⋱☆⋰⋱★⋰⋱★⋰⋱☆⋰⋱★⋰⋱☆⋰
░░░▄████▄░▄███▄░░▄██░▄████▄░░░
░░░▀▀░▄██░██░██░████░██▄▄▄░░░░
░░░░▄██▀░░██░██░░░██░██░░██░░░
░░░██████░▀███▀░░░██░▀████▀░░░

☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´☆

svn path=/trunk/; revision=70477
2015-12-31 23:05:23 +00:00
Eric Kohl
0a71365a59 [INCLUDE]
Fix a typo! :-/

svn path=/trunk/; revision=70476
2015-12-31 22:42:20 +00:00
Eric Kohl
61f58e20ec [INCLUDE]
Does this fix MSVC builds?

svn path=/trunk/; revision=70475
2015-12-31 22:39:12 +00:00
Eric Kohl
93c88d5c67 [SYSETUP]
- Implement pSetupDebugPrint and modify the LogItem macro accordingly.
- Add some log messages to the setup wizard.

svn path=/trunk/; revision=70474
2015-12-31 22:17:45 +00:00
Eric Kohl
fa4dd77466 [SYSSETUP]
Remove the NtUnloadKey hack.

svn path=/trunk/; revision=70473
2015-12-31 16:39:01 +00:00
Thomas Faber
e6491c8051 [ACPICA]
- Update to version 20151218
CORE-10765

svn path=/trunk/; revision=70472
2015-12-31 14:25:35 +00:00
Amine Khaldi
c442478f89 [0.4.0] * Merge the solitaire no action upon doubleclick fix by Carlo Bramini in r70470. CORE-6514
svn path=/branches/ros-branch-0_4_0/; revision=70471
2015-12-31 13:55:16 +00:00
Eric Kohl
7655453180 [SOLITAIRE]
solitaire: no action upon doubleclick
Patch by Carlo Bramini.
CORE-6514 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=70470
2015-12-31 12:58:18 +00:00
Hermès Bélusca-Maïto
c91100685b [USETUP]: Correctly check for existing "ReactOS" entries in FreeLdr in case ReactOS is reinstalled over an existing installation, and if no one does exist, then create a new one that actually works. Thanks tower for having reported the problem 8^)
svn path=/trunk/; revision=70469
2015-12-30 20:23:18 +00:00
Hermès Bélusca-Maïto
ef915b1472 [USETUP]: Formatting fix & remove a redundant function.
svn path=/trunk/; revision=70468
2015-12-30 18:52:07 +00:00
Hermès Bélusca-Maïto
c7272cefad [USETUP]
Factorize the code that creates ReactOS freeldr.ini entries, and use it to create a freeldr.ini at a clean ReactOS installation, and when it is installed in the same partition as Win9x/DOS.
CORE-4870 #comment Should be fixed with revision 70467, please retest.

svn path=/trunk/; revision=70467
2015-12-30 18:26:42 +00:00
Amine Khaldi
6e53d270f1 [0.4.0] * Merge the gdi32 and win32k fixes by Timo in r70464. CORE-10583
svn path=/branches/ros-branch-0_4_0/; revision=70465
2015-12-29 20:49:33 +00:00
Timo Kreuzer
89cb03b072 [WIN32K]
Properly check the bitmap size in IntSetDIBits, taking into account that it might be set to 0, then we have to calculate it ourselves. Fixes a crash when invalid data is passed to NtGdiCreateDIBitmapInternal.
[GDI32]
Convert COREINFOHEADER to BITMAPINFOHEADER before passing it to NtGdiCreateDIBitmapInternal, which doesn't support it.
CORE-10583 #resolve

svn path=/trunk/; revision=70464
2015-12-29 20:28:23 +00:00
Timo Kreuzer
64820cf82f [WIN32KDLL_2K3SP2]
Export NtUserGetClassInfoEx (as it's called in 2k3) both as NtUserGetClassInfo (as it's called on XP) and NtUserGetClassInfo. They have the same prototype.

svn path=/trunk/; revision=70463
2015-12-28 23:51:05 +00:00
Timo Kreuzer
0c24f4ecd6 [WIN32KDLL_2K3SP2]
- "Fix" an export name: NtUserGetClassInfoEx on 2k3 is the same as NtUserGetClassInfo on XP (note that we currently use the default, aka ros specific, win32kdll on the WHS testbot, but it's mostly identical.

[WIN32KNT_APITEST]
- Fix a typo
- add missing tests to testlist.c

svn path=/trunk/; revision=70462
2015-12-28 23:03:04 +00:00
Timo Kreuzer
7e81805878 [GDITOOLS]
3rd try to fix WHS rostests build

svn path=/trunk/; revision=70461
2015-12-28 20:53:34 +00:00
Timo Kreuzer
25b8fe488d [WIN32NT_APITEST]
2nd try to fix WHS rostests build

svn path=/trunk/; revision=70460
2015-12-28 20:51:28 +00:00
Timo Kreuzer
96071c690b [WIN32NT_APITEST]
Try to fix WHS rostests build

svn path=/trunk/; revision=70459
2015-12-28 20:46:05 +00:00
Timo Kreuzer
7ad21a4425 [APOTESTS]
- Convert win32k native api test to actual wine style api-tests
- Hack around a bit with the win32k dlls, some renaming, etc.
- Delete old apitest stuff

svn path=/trunk/; revision=70458
2015-12-28 20:31:10 +00:00
Timo Kreuzer
3ef0e98b4b [GDITOOLS]
Add a library with some helper routines for GDI tests

svn path=/trunk/; revision=70457
2015-12-28 20:24:57 +00:00
Timo Kreuzer
c88949294c [CRT_APITEST]
Fix sprintf tests to succeed on W2K3

svn path=/trunk/; revision=70456
2015-12-28 15:49:29 +00:00
Timo Kreuzer
42a833ef22 [CRT_APITEST]
Add tests for _snprintf, _snwprintf, strtoul, wcstoul
Patch by Thomas Faber (slightly modified by me)
CORE-6510

svn path=/trunk/; revision=70455
2015-12-28 15:24:47 +00:00
Timo Kreuzer
ec916c445e [SPEC2DEF]
Don't use DATA and PRIVATE together. DATA means no stub function is generated in the import lib, PRIVATE means nothing is generated in the export lib.

svn path=/trunk/; revision=70454
2015-12-28 14:42:41 +00:00
Timo Kreuzer
66908136d4 [CRT_APITEST]
- Disable a check for crtdll
- Fix an MSVC warning

svn path=/trunk/; revision=70453
2015-12-28 11:01:03 +00:00
Amine Khaldi
acb805aa6d [0.4.0] * Merge the streamout NULL buffer handling fix by Timo in r70443.
svn path=/branches/ros-branch-0_4_0/; revision=70452
2015-12-28 10:16:01 +00:00
Hermès Bélusca-Maïto
1d88ccffb2 [BOOTDATA]: ReactOS can install and run fine on volumes of at least 450 MB (for example, on a volume of 450 MB and after creation of the pagefile, it leaves you 60+ MB of free space, which should be enough for you if you're already happy using HDDs of such small sizes ^^).
svn path=/trunk/; revision=70451
2015-12-27 22:41:48 +00:00
Timo Kreuzer
68fce95f21 [CRT]
Fix a typo in a comment and make it clearer, what we do here.
CORE-10754 #resolve

svn path=/trunk/; revision=70450
2015-12-27 20:24:04 +00:00
Hermès Bélusca-Maïto
93d7931412 [VFATLIB]
Now, the fix: the FAT disk checker expected that the free cluster count member of the FAT32 FSInfo sector be really initialized (not to 0xFFFFFFFF), and it expected the presence of the backup of the FSInfo sector as well as the free sector following the FSInfo sector.

svn path=/trunk/; revision=70449
2015-12-27 20:01:24 +00:00
Hermès Bélusca-Maïto
8fa0b21364 Remove a forgotten DPRINT1.
svn path=/trunk/; revision=70448
2015-12-27 19:57:10 +00:00
Hermès Bélusca-Maïto
d70ce4face [VFATLIB]
- DPRINT messages printed via VfatPrint by the check-disk procedure.
- Addendum to r70434 and r70435 : The return value of fs_close is equal to the number of corrections made on the disk (0 corrections --> success; 1+ --> something was corrected).
  That way, the old code "return fs_close(FixErrors) ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL;" that we had since eons (which always happened to return STATUS_SUCCESS) was actually
  indicating to us that our FAT32-formatted volumes were corrupted.
  If you test this revision, you should see something happening if you try to install ReactOS now (something that should have happened since ages actually).

svn path=/trunk/; revision=70447
2015-12-27 19:55:47 +00:00
Hermès Bélusca-Maïto
5507695a9e [VFATLIB]
- Formatting + RtlZero/FillMemory modifications as addendum to r70445.
- Do not hardcode FSInfo signature values, use instead the same set of macros fastfat_new introduces.

svn path=/trunk/; revision=70446
2015-12-27 19:38:13 +00:00
Hermès Bélusca-Maïto
c3c0206133 [VFATLIB]
- Formatting fixes.
- Use RtlZeroMemory/RtlFillMemory instead of memset.

svn path=/trunk/; revision=70445
2015-12-27 19:30:53 +00:00
Hermès Bélusca-Maïto
d594928f07 [TASKMGR]: Use taskmgr's icon for its run file dialog. Inspired by Wine.
svn path=/trunk/; revision=70444
2015-12-27 19:06:16 +00:00
Timo Kreuzer
4479984cbe [CRT]
Fix handling of NULL buffer in streamout. Fixes a few msvcrt_crt_apitests, while it breaks a few for crtdll. crtdll is broken anyway and obsolete, nothing uses it, so it doesn't really matter.
CORE-9105 #resolve

svn path=/trunk/; revision=70443
2015-12-27 18:22:13 +00:00
Amine Khaldi
e65bfbdf74 [0.4.0] * Merge the ntvdm floppy read/write corruption fix by Hermès in r70424.
svn path=/branches/ros-branch-0_4_0/; revision=70442
2015-12-27 17:59:27 +00:00
Timo Kreuzer
97f52680ef [SETUPAPI]
Fix invalid use of wcslen with NULL pointer. Should fix crash in setupapi_winetest:install.

svn path=/trunk/; revision=70441
2015-12-27 17:55:14 +00:00
Amine Khaldi
3b537a1ef4 [0.4.0] * Merge the enumerating device lists fix by Ged in r70408.
svn path=/branches/ros-branch-0_4_0/; revision=70440
2015-12-27 17:49:53 +00:00
Amine Khaldi
0ab5d67525 [0.4.0] * Merge the fix for some usetup localization problems by Hermès in r70436.
svn path=/branches/ros-branch-0_4_0/; revision=70439
2015-12-27 17:26:25 +00:00
Amine Khaldi
e2c8edf486 [0.4.0] * Merge msgina's text improvements by Henry Tang Ih in r70437. CORE-10720
svn path=/branches/ros-branch-0_4_0/; revision=70438
2015-12-27 17:23:26 +00:00
Eric Kohl
4b7f7b68f1 [MSGINA]
Improve msgina's text in ReactOS.
Patch by Henry Tang Ih.
CORE-10720 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=70437
2015-12-27 16:36:32 +00:00
Hermès Bélusca-Maïto
64973789c5 [USETUP]: Fix some localization problems.
svn path=/trunk/; revision=70436
2015-12-27 15:22:39 +00:00
Hermès Bélusca-Maïto
11df9cf067 Fix build.
svn path=/trunk/; revision=70435
2015-12-27 02:04:09 +00:00
Hermès Bélusca-Maïto
ed1b816943 [VFATLIB]
It seems suspicious to directly return the value of fs_close as the NTSTATUS code of the check-disk operation (for FAT32 volumes it happens to return 1 whereas for FAT16 volumes it returns 0).
The documentation of this function says that it "returns a non-zero integer if the file system has been changed since the last fs_open, zero otherwise."
Maybe somebody has a more precise idea on that subject? In the meantime I also add some DPRINTs to attempt to diagnose the conditions where this problem occurs.

svn path=/trunk/; revision=70434
2015-12-27 02:01:52 +00:00
Hermès Bélusca-Maïto
c266fd3fb0 [VFATLIB]
- Gather common code in one file instead of duplicating it everywhere.
- Implement full format for FAT12 and FAT16 (using the same function Fat1216WipeSectors), based on similar code for FAT32 implemented by Eric Kohl in revision 63693.

svn path=/trunk/; revision=70433
2015-12-27 00:57:51 +00:00
Hermès Bélusca-Maïto
ccda8278da [BOOTSECTORS]
- fat.asm: remove trailing whitespace.
- fat32.asm: backport the fixes from fat32.S introduced a long time ago.
- fat32.S/faty.S: use .space 12, 0 instead of the long .byte array (generates the same code, but is better readable).
- isoboot/btrt: whitespace fix only.

svn path=/trunk/; revision=70432
2015-12-26 21:28:01 +00:00
Hermès Bélusca-Maïto
631d55b60c [BOOTSECTORS]: Sync the .asm files with their .S counterparts (make easier for diff'ing).
svn path=/trunk/; revision=70431
2015-12-26 20:43:50 +00:00
Timo Kreuzer
654e3f7743 [CRT]
Fix x86 asm implementation of strlen / wcslen.

svn path=/trunk/; revision=70430
2015-12-26 20:34:15 +00:00
Timo Kreuzer
2866514570 [CRT_APITEST]
Add another test for strlen, that tests, whether the direction flag in ELFAGS has been modified. While clearing it is legitimate to do according to the ABI, the native implementation does not change it, so we don't want to do it either.

svn path=/trunk/; revision=70429
2015-12-26 20:32:31 +00:00
Hermès Bélusca-Maïto
6a513178c3 [FATxxx BOOTSECTORS]: Whitespace changes mainly (makes easier for diffing). No code changes.
svn path=/trunk/; revision=70428
2015-12-26 20:13:27 +00:00
Timo Kreuzer
909f7439d0 [CRT_APITEST]
- disable GCC builtins
- Add simple tests for strlen, showing that a NULL pointer will cause an access violation, which is broken in our asm implementation

svn path=/trunk/; revision=70427
2015-12-26 19:20:54 +00:00
Pierre Schweitzer
c96de1a139 [BOOTSECT]
fatx.S isn't for the FATX filesystem, it's just a generic naming, so pick up the next variable

svn path=/trunk/; revision=70426
2015-12-26 17:44:07 +00:00
Timo Kreuzer
31adefcf04 [CRT] Add abs and labs to CRT lib
[MSVCRT] Explicitly pull in _vsnprintf, bsearch and strcspn from CRT, to prevent the MS linker from exporting stubs from libntdll instead.
See CORE-10753

svn path=/trunk/; revision=70425
2015-12-26 17:13:08 +00:00
Hermès Bélusca-Maïto
060e447a77 [NTVDM]: Cast all the number-of-sectors computations to DWORD/ULONG to prevent potential overflows. Should fix a strange floppy read/write corruption I noticed.
svn path=/trunk/; revision=70424
2015-12-26 17:08:13 +00:00
Hermès Bélusca-Maïto
c6ab198d15 [BOOTSECTORS]
- Use the old fat.S source for compiling the FAT12 boot sector, until FATX.S is completely implemented.
- Fix an assembly error in FATX.S
- In comments I added experimental FAT12/16/32 targets based on Timo's FATX.S.

svn path=/trunk/; revision=70423
2015-12-26 16:57:41 +00:00
Eric Kohl
9d67515773 [MKHIVE]
Fix indentation. No code changes!

svn path=/trunk/; revision=70422
2015-12-26 01:34:49 +00:00
Eric Kohl
4d1ea554c8 [BOOTDATA]
Add missing service groups.

svn path=/trunk/; revision=70421
2015-12-26 01:23:10 +00:00
Eric Kohl
f32ee3e8ff [ADVAPI32]
- Implement AbortSystemShutdownW by a call to BaseAbortSystemShutdown.
- Implement InitiateSystemShutdownW by a call to BaseInitiateSystemShutdown.
- Implement InitiateSystemShutdownExW by a call to BaseInitiateSystemShutdownEx.
- Add RPC binding code for the winreg server (in winlogon.exe).

svn path=/trunk/; revision=70420
2015-12-26 01:14:18 +00:00
Eric Kohl
1ce137ac92 [SHUTDOWN][WINLOGON]
SHUTDOWN: Fix the hack be calling InitiateSystemShutdownExW instead of ExitWindowsEx.
WINLOGON: Add a hack by calling ExitWindowsEx in BaseInitiateSystemShutdownEx.

svn path=/trunk/; revision=70419
2015-12-26 00:38:37 +00:00
Hermès Bélusca-Maïto
f17fe51f38 [NTOS]
Disable again the DR7 check until we correctly understand why bit 10 of DR7 (reserved) is almost always set (this lead to MSVC-built ReactOS crashing when being starting in non-debugging mode). See also r69244.
CORE-10165 #comment DR7 check again disabled in r70418.

svn path=/trunk/; revision=70418
2015-12-26 00:29:07 +00:00
Hermès Bélusca-Maïto
f4e200b907 [KDCOM]
For MSVC builds (using KDCOM kd64 WinDbg protocol): Bail out for droppable packets after a given number of retries, if no debugger is attached (list of droppable packets can be found in http://articles.sysprogs.org/kdvmware/kdcom.shtml section "KDCOM protocol", subsection "Droppable packets").
CORE-10541 #resolve #comment Finally fixed in revision r70417!
CORE-7106

svn path=/trunk/; revision=70417
2015-12-25 18:43:16 +00:00
Timo Kreuzer
385bbababc [NTOS/KDBK]
Fix the value for EIP used by KDBG after an INT3 set by KDBG itself. The address is already fixed by KiDispatchException, but only in the context frame, not in the trap frame and KDBG insists to use the trap frame for a lot of things. Also, after a cont from such an int3, KDBG uses a single step to re-enable the breakpoint (it needs to disable it after it was hit to be able to execute the actual instruction), but it used to dismiss *any* single steps after that. So make sure, that an actual single step, as created by the debugger is not being dismissed, but the break point is still restored after the next single step entry. You might expect that a kernel debugger would at least support setting breakpoints, but this is KDBG.

svn path=/trunk/; revision=70416
2015-12-23 22:38:46 +00:00
Amine Khaldi
c5a3cc589f [0.4.0] * Apply the second part of the hackfix from CORE-9836 by Joachim Henze. Addendum to r70393.
svn path=/branches/ros-branch-0_4_0/; revision=70415
2015-12-23 18:13:34 +00:00
Ged Murphy
98a34bceb7 [FLTMGR]
- Change the start type to demand. 
- Should stop free loader from throwing a tantrum because it can't load a non-existant boot driver

svn path=/trunk/; revision=70414
2015-12-23 16:29:33 +00:00
Hermès Bélusca-Maïto
07f2fe8cb5 [XDK]
Correctly fix the definition of DRIVER_FS_NOTIFICATION (done the same way as the other DRIVER_xxx "callback" functions; by the way you'll notice they are all NTAPI aka. __stdcall. This is not explicitely mentioned in the W(D)DK, because MS supposes you compile all your kernel-mode code in stdcall convention, the WDK environment coming with preset default compiler switches enabling that. But if you try changing them, you'll run into big troubles. In our headers on the contrary we explicitely mention the calling conventions).

[FLTMGR]
Fix FltpFsNotification to adhere to the correct DRIVER_FS_NOTIFICATION definition.

Addendum to r70410.

svn path=/trunk/; revision=70413
2015-12-23 16:15:08 +00:00
Timo Kreuzer
88d5b185b0 [WIN32K]
Pass cjMaxBits parameter from GreCreateDIBitmapInternal to IntCreateDIBitmap and check the image size before creating the bitmap.
Should fix crash when hitting about tab in Office2000 WinWord.
CORE-10583 #comment please retest

svn path=/trunk/; revision=70412
2015-12-23 14:55:34 +00:00
Ged Murphy
251805da99 [FLTMGR]
- Add the service key

svn path=/trunk/; revision=70411
2015-12-23 14:55:17 +00:00
Ged Murphy
d75c6beffe [XDK]
- hackfix just DRIVER_FS_NOTIFICATION until we decide how we want to declare them
- Should fix build

svn path=/trunk/; revision=70410
2015-12-23 14:45:15 +00:00
Ged Murphy
9b329d580d [FLTMGR]
- Add the beginning of the fltmgr. It's called rosfltmgr for now so I can test in Windows.
- It's currently just base code  which registers for file systems appearing (or disappearing), and attaches itself to them and all other mounted devices in their chain.
- Although it builds (touch wood), don't add it to a running system. The IRPs aren't plugged in yet and it'll just bugcheck lower down the stack.

svn path=/trunk/; revision=70409
2015-12-23 14:41:05 +00:00
Ged Murphy
645acc270a [NTOSKRNL]
- Raise the IRQL when enumerating device lists so it doesn't get edited mid-listing
- Don't hardcode the pointer size when checking the buffer size

svn path=/trunk/; revision=70408
2015-12-23 11:26:28 +00:00
Timo Kreuzer
cf2573f733 [FREELDR/AMD64]
Save parameter registers (rcx, rdx) before calling CallRealMode. Patch by andy-123, applied to a secondary location by me.
CORE-10511 #resolve #comment Thanks. I added the same fix to PnpBiosGet below.

svn path=/trunk/; revision=70407
2015-12-21 19:36:10 +00:00
Eric Kohl
03e066f2f1 [USERENV]
Hack, that fixes the "Volatile Environment" bug by deleting the "Volatile Environment" key before the user hive is unloaded.
CORE-10705

svn path=/trunk/; revision=70406
2015-12-20 22:30:51 +00:00
Hermès Bélusca-Maïto
716992c8c7 [KDCOM]
Do not use the "LoaderBlock->u.I386.CommonDataArea;" hack to use FreeLdr's DbgPrint function inside KDCOM, for the simple reason that while it works when KDCOM just initializes, the memory area where FreeLdr's DbgPrint function is, gets erased when ReactOS is running. As a result, all attempts to call the DbgPrint function when tracing something in KDCOM at the end of life of ReactOS, just fails lamentably (it hangs).
We therefore cannot rely on external code to provide us with DbgPrint. Instead, implement a very simple DbgPrint function inside KDCOM, as done by KDGDB.
The KD serial port serving for debugging KDCOM is chosen dynamically amongst the other free COM ports.

This needs to be also fixed in KDVM.

[KDGDB]
Instead of hardcoding the KD serial port number serving for debugging KDGDB, determine it dynamically amongst the other free COM ports.

svn path=/trunk/; revision=70405
2015-12-20 16:21:59 +00:00
Hermès Bélusca-Maïto
38814b24c9 [NTOS:KDBG]: Sync back the code that I copied in FreeLdr (r70403) for COM port selection.
svn path=/trunk/; revision=70404
2015-12-20 02:53:30 +00:00
Hermès Bélusca-Maïto
7642306ded [FREELDR]
- Allow to specify in freeldr.ini the debugging port parameters, similarly to what NTLDR allows to do: http://naesten.blogspot.fr/2010/07/undocumented-debug-section-in-bootini.html
- Update the FREELDR.INI example file to reflect these changes.
- Because some FreeLdr components, that need to be initialized before the debugging port parameters can be read from freeldr.ini, use debugging features, we still need to choose some default parameters. For serial ports, we select the possible port starting from COM4 down to COM1.

CORE-9023 #comment Revision 70403: Allow to specify a debugging port in freeldr.ini .

svn path=/trunk/; revision=70403
2015-12-20 02:06:40 +00:00
Eric Kohl
46c7cd186e [REGEDIT]
When the root item in the treeview is selected, remove all items from the listview and wipe the address bar and status bar.

svn path=/trunk/; revision=70402
2015-12-19 19:18:21 +00:00
Amine Khaldi
67e2ae7446 [0.4.0] * Merge the default user locale fixes by Eric Kohl in revisions 70389, 70398 and 70400. CORE-5989
svn path=/branches/ros-branch-0_4_0/; revision=70401
2015-12-19 10:55:49 +00:00
Eric Kohl
c6356f2a1a [BOOTDATA]
Remove obsolete default user locale values. They are now set by the 2nd stage installer.
#CORE-5989 #resolve

svn path=/trunk/; revision=70400
2015-12-19 08:57:56 +00:00
Hermès Bélusca-Maïto
f58cb5b81c [SHELL32]: Tray ToolTips: use the correct buffer size for when calling MultiByteToWideChar. Addendum to r70360. CORE-10497
svn path=/trunk/; revision=70399
2015-12-19 01:08:11 +00:00
Eric Kohl
13fbf3250a [USETUP]
Set the default user locale after registry setup.
#CORE-5989 #comment Please retest!

svn path=/trunk/; revision=70398
2015-12-18 21:36:16 +00:00
Amine Khaldi
ebf1904275 [0.4.0] * Merge rapps fixes by Thomas Faber in revisions 70339 and 70340.
svn path=/branches/ros-branch-0_4_0/; revision=70397
2015-12-18 15:19:56 +00:00
Aleksey Bragin
5570ee8746 [RTL]
- Improve implementation of RtlActivateActivationContextUnsafeFast / RtlDeactivateActivationContextUnsafeFast by replace magic numbers by flag values, which are already defined in rtltypes.h, and adding various debugging checks. Two of them are triggered for yet unknown reason:
 * Assert in RtlActivateActivationContextUnsafeFast
 * "Trying to activate already activated activation context"
They are commented out in trunk not to annoy everyone.

svn path=/trunk/; revision=70396
2015-12-18 14:58:32 +00:00
Robert Naumann
4a491c30ab [MSPAINT] Fix some English strings, to match Windows behaviour. Patch by Henry Tang Ih CORE-10716
svn path=/trunk/; revision=70395
2015-12-18 12:31:57 +00:00
Robert Naumann
d50e0e8b5d [LOGON.SCR] - improve the bitmaps
- remove the enterprise part (we are ReactOS and only ReactOS)
- Add an Application icon

svn path=/trunk/; revision=70394
2015-12-18 12:29:01 +00:00
Amine Khaldi
24c5b454f9 [0.4.0] * Apply the hackfix from CORE-9836 by Joachim Henze.
svn path=/branches/ros-branch-0_4_0/; revision=70393
2015-12-18 11:04:11 +00:00
Amine Khaldi
5f2c9608ab [0.4.0] * Merge the Add New Bitmap to the New Menu fix by Jared Smudde in r70385. CORE-10668
svn path=/branches/ros-branch-0_4_0/; revision=70392
2015-12-18 10:49:29 +00:00
Amine Khaldi
5ecc4d78bb [0.4.0] * Merge the styled lines and pen implementation fixes by Timo Kreuzer in revisions 70387 and 70388. CORE-9984
svn path=/branches/ros-branch-0_4_0/; revision=70391
2015-12-18 10:32:42 +00:00
Hermès Bélusca-Maïto
7e607b9fb8 [DBGHELP][RTL]
Fix usage of VirtualSize wrt. SizeOfRawData.
CORE-10523
CORE-9548 #comment Please retest with revision >= 70390

svn path=/trunk/; revision=70390
2015-12-17 23:10:56 +00:00
Eric Kohl
382ea14238 [SYSSETUP]
Initialize the defauls users locale settings based on the selected locale Id from first stage setup.
#CORE-5989 #resolve

svn path=/trunk/; revision=70389
2015-12-17 22:22:16 +00:00
Timo Kreuzer
fd01add9cf [WIN32K]
Fix bugs in pen implementation:
- Do not use the x coordinate to adjust styles, instead they start where the lines start
- Don't leak allocated styles
- Make sure the PEN fields are initialized correctly, even for BRUSHES, so that the destructor can do it's cleanup work
- Fix numerous parameter checks
gdi32_apitest:pen now shows 0 failures!

svn path=/trunk/; revision=70388
2015-12-17 22:05:06 +00:00
Timo Kreuzer
0f8f2f51ce [WIN32K]
Implement support for styled lines.
CORE-9984 #resolve

svn path=/trunk/; revision=70387
2015-12-17 17:44:42 +00:00
Amine Khaldi
5e0a50ef1a [0.4.0] * Merge rundll32 icon by Jared Smudde in r70384. CORE-10669
svn path=/branches/ros-branch-0_4_0/; revision=70386
2015-12-17 17:08:25 +00:00
Robert Naumann
d91023fb28 [HIVECLS] Add bmp images to the shell "new" menu. Patch by Jared Smudde CORE-10668
svn path=/trunk/; revision=70385
2015-12-17 14:23:21 +00:00
Robert Naumann
647ded523c [RUNDLL32] Add an icon. Patch by Jared Smudde. CORE-10669
svn path=/trunk/; revision=70384
2015-12-17 14:10:18 +00:00
Amine Khaldi
d508cf5a23 [0.4.0] * Merge the Traditional Chinese translation update by Henry Tang Ih in 70381. CORE-10655
svn path=/branches/ros-branch-0_4_0/; revision=70383
2015-12-17 11:16:39 +00:00
Amine Khaldi
dacfdb3f3a [0.4.0] * Merge the translation fixes to browseui and sysdm by Hermès in revisions 70375 => 70378.
svn path=/branches/ros-branch-0_4_0/; revision=70382
2015-12-17 11:14:34 +00:00
Amine Khaldi
d8fcc9875c [TRANSLATIONS] Traditional Chinese translation update by Henry Tang Ih. CORE-10655
svn path=/trunk/; revision=70381
2015-12-17 11:10:00 +00:00
Amine Khaldi
d0f7b82948 [0.4.0] * Merge the translation fixes by Hermès in r70373.
svn path=/branches/ros-branch-0_4_0/; revision=70380
2015-12-17 10:10:33 +00:00
Eric Kohl
93d31d0934 [NETCFGX]
Implement INetCfgPnpReconfigCallback stub.

svn path=/trunk/; revision=70379
2015-12-17 09:32:10 +00:00
Hermès Bélusca-Maïto
01f08ca699 Forgot this one...
svn path=/trunk/; revision=70378
2015-12-17 02:37:34 +00:00
Hermès Bélusca-Maïto
733b02b4ea [SYSDM]: Fix translations.
svn path=/trunk/; revision=70377
2015-12-17 02:36:38 +00:00
Hermès Bélusca-Maïto
5357781bfe [BROWSEUI]
- Add french translation (not complete, but enough for now: only what can be currently displayed is translated).
- Don't hardcode the "History" item in the travel-log, but use the localized string. Use the hardcoded string *only* if loading the translation failed.

svn path=/trunk/; revision=70376
2015-12-17 02:02:16 +00:00
Hermès Bélusca-Maïto
ab2976569f Update few french translations.
svn path=/trunk/; revision=70375
2015-12-17 00:24:28 +00:00
Hermès Bélusca-Maïto
b34568e9f6 [NTOS]: Fix comments only, no code changes.
svn path=/trunk/; revision=70374
2015-12-16 23:53:51 +00:00
Hermès Bélusca-Maïto
b555d0cffe [REGEDIT]
Fix hebrew "registry editor" translation.

[SHORTCUTS.INF]
Fix regedit shortcut name (localize it instead of using "regedit")

svn path=/trunk/; revision=70373
2015-12-16 23:50:56 +00:00
Amine Khaldi
685051a21b [0.4.0] * Merge the IopGetDeviceInterfaceList() null pointer freeing fix by Thomas Faber in r70356. CORE-10706
svn path=/branches/ros-branch-0_4_0/; revision=70372
2015-12-16 22:39:01 +00:00
Amine Khaldi
557bc89a2b [0.4.0] * Merge expanding the wallpaper by default from r70363. CORE-10709
svn path=/branches/ros-branch-0_4_0/; revision=70371
2015-12-16 22:08:25 +00:00
Amine Khaldi
4d0baaa1c0 [0.4.0] * Merge Hermès' clipboard related fixes.
svn path=/branches/ros-branch-0_4_0/; revision=70370
2015-12-16 22:05:19 +00:00
Amine Khaldi
90093639de [BOOTDATA] Default to wallpaper expanding. By Hermès BÉLUSCA - MAÏTO. CORE-10709
svn path=/trunk/; revision=70369
2015-12-16 21:54:11 +00:00
Amine Khaldi
92a3d2dfa2 [0.4.0] * Disable COMMAND.COM debugging messages for the release. This is r70365 but with NDEBUG defined. CORE-10710
svn path=/branches/ros-branch-0_4_0/; revision=70368
2015-12-16 21:44:38 +00:00
Pierre Schweitzer
df6860337a [IPHLPAPI_APITEST]
Rewrite the two existing tests for ICMP and add a third one (for IPv6).
Patch by Tim Crawford.

ROSTESTS-212 #resolve #comment Commited in r70367. Thanks!

svn path=/trunk/; revision=70367
2015-12-16 21:11:22 +00:00
Thomas Faber
42f54fdc45 [NTOS:IO]
- Add some missing OBJ_KERNEL_HANDLE.
CORE-10207

svn path=/trunk/; revision=70366
2015-12-16 18:08:38 +00:00
Hermès Bélusca-Maïto
7b6be00fcc [COMMAND.COM]
Surround welcome & debugging messages in #ifndef NDEBUG blocks, that should be compiled in trunk but will be disabled in the release.
This is to "cure" the bad-looking problem described in http://www.reactos.org/forum/viewtopic.php?f=25&t=14620 .

svn path=/trunk/; revision=70365
2015-12-16 17:28:59 +00:00
Amine Khaldi
c42e397894 [0.4.0] * Merge the blurry icons fix by Henry Tang Ih in r70363. CORE-10640
svn path=/branches/ros-branch-0_4_0/; revision=70364
2015-12-16 14:59:17 +00:00
Amine Khaldi
0a97bf2ccf [ICONS] Fix some blurry icons by Henry Tang Ih. CORE-10640
svn path=/trunk/; revision=70363
2015-12-16 14:57:14 +00:00
Amine Khaldi
4796a590d0 [0.4.0] * Merge VBoxTray tooltip text fix by Mark Jansen and David Quintana in r70360. CORE-10497
svn path=/branches/ros-branch-0_4_0/; revision=70362
2015-12-16 14:53:50 +00:00
Eric Kohl
1f72389128 [WINLOGON]
Get rid of setup.h.

svn path=/trunk/; revision=70361
2015-12-16 14:45:19 +00:00
David Quintana
a979e767d8 [SHELL32]
Apply patch by Mark Jansen (learn_more) with a few tweaks. Fixes calls to Shell_NotifyIconA such as those from VBoxTray.
CORE-10497 #resolve

svn path=/trunk/; revision=70360
2015-12-16 12:36:33 +00:00
Amine Khaldi
098f1d0707 [0.4.0] * Merge the Romanian translation update by Ștefan Fulea in revisions 70357 and 70358. CORE-10676
svn path=/branches/ros-branch-0_4_0/; revision=70359
2015-12-16 12:06:20 +00:00
Amine Khaldi
1017691f59 [CLIPBRD] Translate ERROR_INVALID_FILE_FORMAT to Romanian. By Ștefan Fulea.
svn path=/trunk/; revision=70358
2015-12-16 10:26:31 +00:00
Amine Khaldi
71b6bf7814 [TRANSLATIONS] Romanian translation update by Ștefan Fulea. CORE-10676
svn path=/trunk/; revision=70357
2015-12-16 10:22:00 +00:00
Thomas Faber
a6a9039032 [NTOS:PNP]
- Don't free NULL buffers returned from IopCaptureUnicodeString.
CORE-10706 #resolve

svn path=/trunk/; revision=70356
2015-12-16 10:05:15 +00:00
Hermès Bélusca-Maïto
67e52a6862 [WIN32K:CLIPBOARD]
- When cleaning the clipboard, cancel any pending delayed rendering and increment all the sequence&serial numbers.
- Fix the clipboard access check when performing a delay rendering. This fixes VBox host <-> guest copy/paste amongst others...
CORE-5512 CORE-9620
CORE-8367 CORE-8627 #comment Please retest with revision >= 70355.

svn path=/trunk/; revision=70355
2015-12-16 00:26:27 +00:00
Hermès Bélusca-Maïto
4e929985de [WIN32SS:CLIPBOARD]
- Reduce indentation level of some code.
- No need to initialize pWinStaObj when it is reinitialized just after.
- Fix some comments.

svn path=/trunk/; revision=70354
2015-12-16 00:10:58 +00:00
Amine Khaldi
fde549f9e8 [0.4.0] * Merge iphlpapi_apitest:SendARP tests fix by Pierre Schweitzer in r70323.
svn path=/branches/ros-branch-0_4_0/; revision=70353
2015-12-15 23:11:49 +00:00
Amine Khaldi
6605b25ca5 [0.4.0] * Merge magnifier improvements by David Quintana in revisions 70335 => 70337. CORE-10691
svn path=/branches/ros-branch-0_4_0/; revision=70352
2015-12-15 22:53:08 +00:00
Amine Khaldi
2eac40cac6 [0.4.0] * Apply the patch that allows us to dynamically change the resolution by resizing in VirtualBox. CORE-6742
svn path=/branches/ros-branch-0_4_0/; revision=70351
2015-12-15 22:41:59 +00:00
Eric Kohl
875158be3e [WINSRV]
Do not kill system processes when a user is logging off. Fixes user logoff.
#CORE-2391 #resolve

svn path=/trunk/; revision=70350
2015-12-15 21:38:36 +00:00
Hermès Bélusca-Maïto
e0b85f16d3 [CLIPBRD]
Fix the computation of where bitmap pixels start, depending on whether we are dealing with DIBs or DIBs version 5+ (depending on the header BITMAPINFOHEADER or BITMAPV5HEADER etc...).
I also noticed a bug in Windows that few other people already discovered, related to the automatic conversion of CF_DIBV5/CF_BITMAP to CF_DIB clipboard format. See the comment in the code.
CORE-10679

svn path=/trunk/; revision=70349
2015-12-15 02:54:24 +00:00
Aleksey Bragin
830c4ee4a0 [NTOS]
- Fix copypasta in the comments

svn path=/trunk/; revision=70348
2015-12-14 23:20:10 +00:00
Hermès Bélusca-Maïto
a62f0ac81c [CLIPBRD]
- Add support for scrolling with the mouse wheel, by Ricardo Hanke.
- No need to check for CloseClipboard failure & display an error message if the clipboard was successfully opened just before.
- Use ARRAYSIZE macro instead of hardcoding the length of available clipboard format list.
CORE-10679

svn path=/trunk/; revision=70347
2015-12-14 22:55:55 +00:00
David Quintana
2dbcc6fba0 [MAGNIFY]
* Implement AppBar docking (defaults to floating because we don't properly support AppBars yet -- works in Windows).
* Implement loading and saving the AppBar settings from the registry.
* Remove the minimize button from the options dialog.
CORE-10691

svn path=/trunk/; revision=70344
2015-12-14 05:03:06 +00:00
Thomas Faber
e30338c882 [RAPPS]
- Remove checksum from uTorrent download, since the only available URL is for the latest build (so it changes)

svn path=/trunk/; revision=70340
2015-12-13 13:20:31 +00:00
Thomas Faber
89a3034a75 [RAPPS]
- Fix PuTTY URL (don't use /latest/)

svn path=/trunk/; revision=70339
2015-12-13 13:05:00 +00:00
David Quintana
66d1d19b39 [WIN32K]
* GetGUIThreadInfo: When they said "foreground thread", they meant the one with the keyboard focus, not the currently running one.
NOTE: This needs verification, as I have no idea how to properly handle IntGetFocusMessageQueue() returning NULL.

[MAGNIFY]
* Make use of the new-found ability to call GetGUIThreadInfo with 0 as the threadId.

CORE-10691

svn path=/trunk/; revision=70338
2015-12-13 06:08:12 +00:00
David Quintana
901e051b93 [MAGNIFY]
* Use GetGUIThreadInfo instead of multiple separate "hacks" to obtain all the necessary data in one single call.
* Keep the off-screen DC for later use, and only recreate when needed.
* Restore caret follow back to default-on.
More changes toward CORE-10691

svn path=/trunk/; revision=70337
2015-12-13 05:07:37 +00:00
David Quintana
4faf7c3ef3 [MAGNIFY]
* Replace the menubar with a notification icon and context menu.
* Change the dialog button to "Ok" instead of "Exit" (applied to en-US and es-ES only, the translators will have to do the rest :P).
* Due to a rather bad problem presumably caused by AttachThreadInput, set the "Follow Caret" option to disabled by default. This can be re-enabled once the problem is fixed.
More changes toward CORE-10691

svn path=/trunk/; revision=70336
2015-12-13 02:57:14 +00:00
David Quintana
82f42c9c92 [MAGNIFY]
Some improvements to the drawing code:
* Draw as soon as the mouse/caret/focus changes, or after 100ms if nothing changed.
* Copy only the needed area of the screen into the internal buffer.
* Blank out the area of the buffer where the client region of the magnifier overlaps, to avoid re-zooming the pixels.
* Keep the source region contained within the closest monitor, instead of only the primary one.
* Invert colors when copying from the screen, instead of when stretching, since there's less pixels to draw.

First step toward the improvements described in CORE-10691

svn path=/trunk/; revision=70335
2015-12-13 00:34:18 +00:00
Hermès Bélusca-Maïto
70e2eedd98 [WIN32K:CLIP]
- Adjust the type of some variables.
- Correctly set the fClipboardChanged flag to TRUE when emptying the clipboard: now this correctly triggers sending the WM_DRAWCLIPBOARD message to windows. Adapted from a patch by Ricardo Hanke.
CORE-10351

svn path=/trunk/; revision=70334
2015-12-12 21:47:14 +00:00
Hermès Bélusca-Maïto
6518065a73 Whitespace fixes only.
svn path=/trunk/; revision=70333
2015-12-12 21:28:55 +00:00
Hermès Bélusca-Maïto
747395cee4 [CLIPBRD]: SVN failure again: for some reason this file was not added to the code when applying the patch. See r70331.
CORE-10679

svn path=/trunk/; revision=70332
2015-12-12 21:21:28 +00:00
Hermès Bélusca-Maïto
0e0df7b9e6 [CLIPBRD]
Start scrolling support, work in progress. By Ricardo Hanke
CORE-10679

svn path=/trunk/; revision=70331
2015-12-12 21:15:53 +00:00
Hermès Bélusca-Maïto
626de8ff8e [CLIPBRD]: Fix SVN patching failure & build; see r70329 and CORE-10662. Patch of r70329 was by Ricardo Hanke :)
svn path=/trunk/; revision=70330
2015-12-12 20:47:36 +00:00
Hermès Bélusca-Maïto
e19711eebf [CLIPBRD]
Handle WM_PALETTECHANGED and WM_QUERYNEWPALETTE: realizes any palette found on the clipboard, if there is any, if it receives one of those messages.

svn path=/trunk/; revision=70329
2015-12-12 20:40:19 +00:00
Hermès Bélusca-Maïto
1153d6397c [CLIPBRD]
- Display the application icon in program's about dialog.
- Add missing DT_NOPREFIX flag to DrawText() calls.
- Let ShowLastWin32Error() show an error message even if the last error code is zero.
- Remove the calls to OpenClipboard() and CloseClipboard() from the functions in winutils.c and let the caller open and close the clipboard instead.

Patch by Ricardo Hanke

CORE-10657

svn path=/trunk/; revision=70328
2015-12-12 20:34:21 +00:00
Sylvain Petreolle
c1d7cca159 Fixing several missing va_end issues in DHCP.
Patch by Victor Martinez.
CORE-10631

svn path=/trunk/; revision=70327
2015-12-12 12:02:37 +00:00
Pierre Schweitzer
1a18680120 [IPHLPAPI_APITEST]
Add more tests

svn path=/trunk/; revision=70326
2015-12-12 09:45:23 +00:00
Thomas Faber
18a30e3584 [0.4.0]
- Update version to 0.4.0
- Properly determine SVN revision
- Update CD root readme

svn path=/branches/ros-branch-0_4_0/; revision=70325
2015-12-12 08:32:56 +00:00
Thomas Faber
ab2c9e9eeb [VERSION]
- Properly determine SVN revision. We can't expect .svn folders to exist in each subdir anymore.

svn path=/trunk/; revision=70324
2015-12-12 08:27:07 +00:00
Pierre Schweitzer
a6577878cb [TCPIP]
Fix the last failing tests of iphlpapi_apitest:SendARP

svn path=/trunk/; revision=70323
2015-12-11 22:30:02 +00:00
Thomas Faber
09eac3a2be [0.4.0]
- Sync up to trunk r70321

svn path=/branches/ros-branch-0_4_0/; revision=70322
2015-12-11 10:47:15 +00:00
Eric Kohl
d8e9559dd9 [USETUP]
Check RtlCreateUnicodeString in SetupCreateSingleDirectory.
Patch by Victor Martinez.
CORE-10647 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=70321
2015-12-10 15:43:06 +00:00
Thomas Faber
f7500c28d1 [SYSSETUP]
- Don't disable the user profile creation hack until it's actually fixed (NtUnloadKey(NULL) doesn't do anything and I don't know what's actually supposed to go there). Should avoid some user profile corruption after crashes in 3rd stage (since 2nd stage will have flushed the registry).
CORE-10381

svn path=/trunk/; revision=70320
2015-12-10 09:14:19 +00:00
Ged Murphy
dcbfa5af55 [CHARMAP]
- Don't go past the scroll range
- Reset the grid/cell info when a new font is selected
- Should fix some of the issues Vort listed in CORE-10518

svn path=/trunk/; revision=70319
2015-12-09 21:55:19 +00:00
Thomas Faber
e7b5526683 [BROWSEUI]
- Stub out CACListISF
ROSTESTS-210 #resolve

svn path=/trunk/; revision=70318
2015-12-09 19:36:35 +00:00
Eric Kohl
d2fccd60e9 [USETUP]
Romanian code page related support.
Patch by Stefan Fulea.
CORE-10569 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=70317
2015-12-09 19:21:11 +00:00
Timo Kreuzer
ad89dba36e [PSEH3]
Remove do { } while (0) constructs from PSEH3 macros, so that a break from within a try block does what it is supposed to do.

svn path=/trunk/; revision=70316
2015-12-09 07:49:18 +00:00
Ged Murphy
fd2a84e434 [WIN32K/NTGDI]
- Fix setting the correct font in certain code paths
- non-eisting glyphs should return 0xffff, not 0x001f
- Don't set last error on failure, GDI APIs don't do that
- Remove GreGetGlyphIndicesW, it was mostly a copy of NtGdiGetGlyphIndicesW and it wasn't used
- Fixes the GetGlyphIndices tests and fixes showing invalid fonts in charmap

svn path=/trunk/; revision=70315
2015-12-09 00:09:32 +00:00
Robert Naumann
2a0e21d6cb [EXPLORER]Initialize the propInfo structure before using it. Spotted by Mark Jansen. See CORE-10560
svn path=/trunk/; revision=70314
2015-12-08 22:54:33 +00:00
Ged Murphy
78c2f01594 Caught out by unix again
svn path=/trunk/; revision=70313
2015-12-08 22:18:41 +00:00
Pierre Schweitzer
cba476574d [TCPIP]
Fix one test failure

svn path=/trunk/; revision=70312
2015-12-08 22:16:18 +00:00
Ged Murphy
452bc55d4b [GDI32_APITEST]
- Add some tests for GetGlyphIndices

svn path=/trunk/; revision=70311
2015-12-08 22:14:48 +00:00
Thomas Faber
b578474474 [CLASS2]
- Don't take a reference on the device object in ScsiClassClaimDevice since it's not going to be released before device removal. Inspired by classpnp. Fixes ejecting mass storage devices.
CORE-8911 #resolve

svn path=/trunk/; revision=70310
2015-12-08 17:46:33 +00:00
Eric Kohl
75fe25183f [SYSSETUP]
- Get rid of the global SetupData variable. Allocate the setup data struct from heap instead and pass its pointer to all wizard pages.
- Keep the setup data pointer in all wizard pages where it is needed.
- Keep the handle to the unattended.inf file open as long as the setup wizard exists.

svn path=/trunk/; revision=70309
2015-12-08 15:57:47 +00:00
Thomas Faber
4ed942b77e [CLASS2]
- Properly forward PNP IRPs to the lower device
CORE-8911

svn path=/trunk/; revision=70308
2015-12-08 13:54:35 +00:00
Thomas Faber
b56eae0abf [CLASS2]
- Fix build
CORE-8911

svn path=/trunk/; revision=70307
2015-12-08 13:30:06 +00:00
Thomas Faber
be9fbd0e66 [CLASS2]
- Add a Signature member to make devices created from class2's AddDevice recognizable
CORE-8911

svn path=/trunk/; revision=70306
2015-12-08 13:25:37 +00:00
Amine Khaldi
db44f7d8fd [WINSPOOL] Properly stub IsValidDevmodeW.
svn path=/trunk/; revision=70305
2015-12-08 13:01:28 +00:00
Thomas Faber
8b9fb19bab [FASTFAT]
- Always use the full path name when looking for FCB hashes
CORE-10483 #resolve

svn path=/trunk/; revision=70304
2015-12-08 12:57:45 +00:00
Amine Khaldi
99319d5ab2 [QEDIT_WINETEST] Welcome to the green family.
svn path=/trunk/; revision=70303
2015-12-08 12:43:26 +00:00
Amine Khaldi
fbb577130a [PSDK] Update d3dtypes.h. CORE-10536
svn path=/trunk/; revision=70302
2015-12-08 12:38:18 +00:00
Amine Khaldi
f95234c66b [WINSPOOL_WINETEST] Import from Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70301
2015-12-08 12:35:27 +00:00
Amine Khaldi
80622ac2ae [QEDIT_WINETEST] Import from Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70300
2015-12-08 11:26:07 +00:00
Amine Khaldi
5aca1de518 [NETCFGX_WINETEST] Import from Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70299
2015-12-08 11:18:34 +00:00
Amine Khaldi
bcd0f8711a [PSDK] Update stdole2.idl. CORE-10536
svn path=/trunk/; revision=70298
2015-12-08 11:15:23 +00:00
Amine Khaldi
4b1f6d1e0a [NETAPI32_WINETEST] Remove a meaningless line.
svn path=/trunk/; revision=70297
2015-12-08 11:06:25 +00:00
Amine Khaldi
67f97131ae [BROWSEUI_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70296
2015-12-08 10:49:38 +00:00
Amine Khaldi
3ac50badb6 [SHELL32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70295
2015-12-08 10:33:14 +00:00
Amine Khaldi
c4a7014182 [MMDEVAPI_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70294
2015-12-08 10:24:11 +00:00
Amine Khaldi
65ac753943 [USER32_WINETEST] Sync with Wine Staging 1.7.55 except clipboard tests. CORE-10536
svn path=/trunk/; revision=70293
2015-12-08 10:22:43 +00:00
Pierre Schweitzer
b8b86d432b [IPHLPAPI]
Properly return unicast addresses in GetAdaptersAddresses() by properly return a struct sockaddr_in.
This fixes a bunch of failing tests in iphlpapi_apitest, and it should fix any application relying on this API to know interfaces addresses.

svn path=/trunk/; revision=70292
2015-12-08 08:03:33 +00:00
Robert Naumann
b2a6aff94f [SYSSETUP] Set an owner name by default. Patch by Ismael Ferreras Morezuelas CORE-10476
svn path=/trunk/; revision=70291
2015-12-07 23:21:49 +00:00
Pierre Schweitzer
4042ba935e [IPHLPAPI_APITEST]
Add another check that shows that data returned by GetAdaptersAddresses() are incomplete and thus broken...
"This isn't the type you're looking for." would say an old man

svn path=/trunk/; revision=70290
2015-12-07 22:33:29 +00:00
Eric Kohl
c2a6fdaefb [INTL][USRMGR][SHELL32]
Minor corrections in GUI resources.
Patch by Stefan Fulea.
#CORE-10486 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=70289
2015-12-07 20:35:33 +00:00
Eric Kohl
1f8f0bae7c [SERVMAN]
Arrange large and small icons after changing the view.
Patch by Carlo Bramini.
#CORE-10350 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=70288
2015-12-07 18:19:05 +00:00
Eric Kohl
dd58b4a93f [USETUP]
Center the current list item before drawing the list.
#CORE-10659 #resolve

svn path=/trunk/; revision=70287
2015-12-07 16:10:09 +00:00
Pierre Schweitzer
ebb8c660f4 [IPHLPAPI]
Display the IP address used for tests
This highlights an issue with returned IP in ReactOS

svn path=/trunk/; revision=70286
2015-12-07 11:21:20 +00:00
Pierre Schweitzer
94fc8e0f0b [TCPIP]
In case of localhost arping, fail if local interface isn't remote interface

svn path=/trunk/; revision=70285
2015-12-07 10:56:58 +00:00
Thomas Faber
b625e9516d [NDIS]
- Avoid using an out-of-scope local variable in NdisReadNetworkAddress. Patch by Víctor Martínez.
CORE-10650 #resolve

svn path=/trunk/; revision=70284
2015-12-07 08:48:57 +00:00
Eric Kohl
1acc2401b3 [USETUP]
Little Improvements:
  * Duplicate code removement regarding the simple list pages (and now everyone has pageup/down + selection via char)
  * Duplicate code removement regarding the partition type string
  * Document the pages

Patch my Michael Fritscher
#CORE-10012 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=70283
2015-12-06 20:14:29 +00:00
Amine Khaldi
219b86a07a [IPHLPAPI] Include iphlpapi_private.h in icmp.c. CORE-10498
svn path=/trunk/; revision=70282
2015-12-06 10:55:46 +00:00
Hermès Bélusca-Maïto
ef0f12afbb [CONSRV]: Fix the code corresponding to ReadConsoleA/W API, now autocompletion from within windows' cmd.exe running on ReactOS works correctly. I add also some ASSERTs to be sure of certain invariants (I might simplify part of the code related to that later on).
svn path=/trunk/; revision=70281
2015-12-05 23:41:59 +00:00
Timo Kreuzer
4e7148104c [NDK]
Add more tests for structure offsets (not built by default)

svn path=/trunk/; revision=70280
2015-12-05 23:17:24 +00:00
Timo Kreuzer
6ec0298712 [NDK]
Fix a typo

svn path=/trunk/; revision=70279
2015-12-05 23:14:11 +00:00
Eric Kohl
9c7538820a [INTL]
GetLocalInfo needs the number of WCHARs and not the size of the buffer.
CORE-10651 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=70278
2015-12-05 19:34:40 +00:00
Pierre Schweitzer
eeec778bb2 [TCPIP]
DispTdiQueryIpHwAddress(): use the correct function to get the interface associated with an IP address.
Also, because local links aren't in the ARP table (obviously), handle them without the mechanism described previously

This fixes arpinging oneself.

svn path=/trunk/; revision=70277
2015-12-05 18:29:57 +00:00
Timo Kreuzer
667a3ce15c [EXPLORER] A DLGPROC returns INT_PTR, not BOOL.
[DDK] Fix invalid syntax in fltkernel.h

svn path=/trunk/; revision=70276
2015-12-05 18:29:33 +00:00
Amine Khaldi
658ef83c7f [IPHLPAPI::ICMP] Partially sync with Wine Staging 1.7.55 and mark our differences. Please inspect them. CORE-10536
svn path=/trunk/; revision=70275
2015-12-05 17:46:37 +00:00
Amine Khaldi
204f7eeb2f [IPHLPAPI] Properly return on invalid parameters in GetIcmpStatisticsEx(). Fixes two iphlpapi tests.
svn path=/trunk/; revision=70274
2015-12-05 17:11:25 +00:00
Amine Khaldi
1d17a74606 [RAPPS] Turkish translation update by Erdem Ersoy. CORE-10513
svn path=/trunk/; revision=70273
2015-12-05 16:59:23 +00:00
Amine Khaldi
bc5f8e59f8 [TRANSLATIONS] Turkish translation update by Erdem Ersoy. CORE-10513
svn path=/trunk/; revision=70272
2015-12-05 16:57:14 +00:00
Amine Khaldi
135c867330 [CMAKE/ROSTESTS] Define WINETEST_MSVC_IDE_FORMATTING in VS builds. By Mark Jansen. ROSTESTS-156 ROSTESTS-207
svn path=/trunk/; revision=70271
2015-12-05 16:46:04 +00:00
Amine Khaldi
e8ce0215cf [IPHLPAPI_WINETEST] Import htonl and co from ws2_32 instead of hacking things locally. ROSTESTS-206
svn path=/trunk/; revision=70270
2015-12-05 16:40:43 +00:00
Pierre Schweitzer
626e9cdf00 [TCPIP]
- Fix a bug IRPFinish(): do not touch the IRP if there's a pending return. Thanks to Thomas for his help!
- Implement DispTdiQueryIpHwAddress(): the current implementation is not optimal, but works. It first reset the ARP table entry corresponding the to target host, if it exists. Then, it sends the ARP probe and wait till the ARP table is updated to return the HW link address.
Could be improved, but it would require more important work in the driver, which is not a good solution when we're to release ;-).

Obviously, this fixes arping not working in ReactOS: https://twitter.com/HeisSpiter/status/673088515647930368
And this fixes a few iphlpapi_apitest tests.

svn path=/trunk/; revision=70269
2015-12-05 10:41:56 +00:00
Hermès Bélusca-Maïto
405c82f036 [CONSRV]: Implement the skeleton for the console server font APIs; reduces kernel32 console winetest failures to 5 (see r70258 also).
svn path=/trunk/; revision=70268
2015-12-05 00:51:48 +00:00
Pierre Schweitzer
248a8191f1 [PING]
Backport a change from arping: on ctrl+c hit, display statistics

svn path=/trunk/; revision=70267
2015-12-04 13:02:36 +00:00
Robert Naumann
2b39d4ecf5 [RAPPS] unuglify icons. CORE-10642
svn path=/trunk/; revision=70266
2015-12-04 12:47:26 +00:00
Hermès Bélusca-Maïto
8edf99ec1c [NTVDM]: "BytesRead is uninitialized in DosReadCharacter" (CID 1341427)
CORE-10644

svn path=/trunk/; revision=70265
2015-12-04 12:29:46 +00:00
Amine Khaldi
07cad9b0dd [SHELL32] Disable 'Empty Recycle Bin' when no items are present. By Mark Jansen. CORE-10438
svn path=/trunk/; revision=70264
2015-12-04 11:12:01 +00:00
Pierre Schweitzer
fc8900e547 [RAPPS]
Don't leak memory

CID 1341348

svn path=/trunk/; revision=70263
2015-12-04 11:10:52 +00:00
Amine Khaldi
556bb3b470 [ICMP][IPHLPAPI] Move the icmp functions to iphlpapi where they belong. Brought to you by Tim Crawford with my fixes. CORE-10498
svn path=/trunk/; revision=70262
2015-12-04 10:57:44 +00:00
Amine Khaldi
cc656f9803 [IPHLPAPI_APITEST] Move icmp tests from winetests to apitests where they belong. By Tim Crawford. ROSTESTS-201
svn path=/trunk/; revision=70261
2015-12-04 10:34:24 +00:00
Thomas Faber
f32001cd7e [PORTCLS]
- Fix error check in CPortPinWaveRT::Init. CID 511862

svn path=/trunk/; revision=70260
2015-12-04 09:36:34 +00:00
Thomas Faber
7d6da999d0 [USETUP]
- Fix copypasta'd error check in IsAcpiComputer. CID 715947

svn path=/trunk/; revision=70259
2015-12-04 09:24:52 +00:00
Hermès Bélusca-Maïto
60bc2b4a9e [KERNEL32]
Implement client-side only of console font APIs:
- documented: GetConsoleFontSize, GetCurrentConsoleFont;
- undocumented: GetConsoleFontInfo, GetNumberOfConsoleFonts, SetConsoleFont (see http://cboard.cprogramming.com/windows-programming/102187-console-font-size.html for a working usage example of these APIs).
(Also related to CORE-7931)

svn path=/trunk/; revision=70258
2015-12-04 00:43:31 +00:00
Robert Naumann
ed408ae82d [REG][DESKADP] Update polish translation. Based on a patch by Adam Stachowicz. CORE-10011
svn path=/trunk/; revision=70257
2015-12-03 22:45:14 +00:00
Robert Naumann
4dc4d45991 [TELNET][WINLOGON] Update icons. Work by Henry Tang Ih. CORE-10616
svn path=/trunk/; revision=70256
2015-12-03 22:35:38 +00:00
Robert Naumann
fd2023d313 [ICONS] Remove unneeded icon sizes, such as 24px. This slightly decreases ISO size.
This booooooring work was done by Jared Smudde (and Henry Tang Ih?!?). Thank you. CORE-10348

svn path=/trunk/; revision=70255
2015-12-03 22:26:58 +00:00
Daniel Reimer
e28d3d4c8f [RAPPS]
"Add free stop watch (cronometer) to rapps" by J. Manuel Mar H.
CORE-9547 #resolve #comment Added, thx ^^

svn path=/trunk/; revision=70254
2015-12-03 21:35:17 +00:00
Daniel Reimer
7ee29776b2 [RAPPS]
"update broken WinBoard" by reactosfanboy
CORE-10635 #resolve #comment Fixed. Thx ^^

svn path=/trunk/; revision=70253
2015-12-03 21:21:51 +00:00
Daniel Reimer
92e8586a27 [RAPPS]
"Add DiskInternals Linux Reader into RAPPS" by Alexander Rechitskiy
CORE-10622 #resolve #comment Added, thx ^^

svn path=/trunk/; revision=70252
2015-12-03 21:15:20 +00:00
Daniel Reimer
c11e4db15c [RAPPS]
"Add Adobe Air to Rapps" by J. Manuel Mar H.
CORE-10484 #resolve #comment Added, thx ^^

svn path=/trunk/; revision=70251
2015-12-03 21:07:43 +00:00
Daniel Reimer
b82999854f [RAPPS]
"add Everything Search Engine to ReactOS downloader" by Alexander Rechitskiy
(Silently remove some BOMs I created...)
CORE-8309 #resolve #comment Added, thx ^^

svn path=/trunk/; revision=70250
2015-12-03 20:56:16 +00:00
Daniel Reimer
5389fc942e [RAPPS]
rapps-database does not update automatically because of broken build scripts by reactosfanboy
CORE-10633 #resolve #comment Fixed by removing the copies completely and updating the ones in rapps. Not the best solution, but it works for the update task.

svn path=/trunk/; revision=70249
2015-12-03 20:26:56 +00:00
Daniel Reimer
3074e1e3a6 [SHELL32]
Fix Go button image not showing by Jared Smudde
CORE-10626 #resolve #comment SHAME ON YOU!! :P Committed ^^

svn path=/trunk/; revision=70248
2015-12-03 20:15:48 +00:00
Daniel Reimer
f39cede742 [FONTS]
oops

svn path=/trunk/; revision=70247
2015-12-02 23:52:45 +00:00
Daniel Reimer
5b9811f117 [FONTS]
Add LiberationSans Narrow to complete the font family

svn path=/trunk/; revision=70246
2015-12-02 23:42:27 +00:00
Daniel Reimer
b2185e118a [DLL]
Fix DLL control themeing by Jared Smudde
CORE-10563 #resolve #comment Hm, yeah, you are right. Somehow I really forgot that one when I did that manifest fun in the past ^^ Thx

svn path=/trunk/; revision=70245
2015-12-02 23:11:28 +00:00
Daniel Reimer
b11b185671 [SHELL32]
Improve the bitmaps by Jared Smudde
CORE-10620 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=70244
2015-12-02 23:02:23 +00:00
Daniel Reimer
b6c062f3a5 [RAPPS]
Apache Open Office 2.4.3 link is dead
CORE-10600 #resolve

svn path=/trunk/; revision=70243
2015-12-02 22:55:38 +00:00
Daniel Reimer
1d5a860b37 [TRANSLATION]
Add/Update Traditional Chinese (zh-TW) translation in ReactOS. [Wave 2/4] by Henry Tang Ih
CORE-10615 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=70242
2015-12-02 22:44:03 +00:00
Daniel Reimer
7145e7e1a2 [RAPPS]
Update LibreOffice rapps version to 4.4.6 by Henry Tang Ih
CORE-10599 #resolve #comment Fixed, thx

svn path=/trunk/; revision=70241
2015-12-02 22:36:08 +00:00
Daniel Reimer
ab1c0c3224 [RAPPS]
Small Database Update by Jared Smudde
CORE-10393 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=70240
2015-12-02 22:05:06 +00:00
Daniel Reimer
9d252cfe61 [RAPPS]
Update RosBE version to 2.1.3 by Hermes Belusca
CORE-10603 #resolve #comment Fixed. Does not work in ROS anyway, but fixed ^^

svn path=/trunk/; revision=70239
2015-12-02 21:59:45 +00:00
Daniel Reimer
1d31df587c [TRANSLATIONS]
Missing italian translations in ReactOS by Carlo Bramini
CORE-9725 #comment Applied/Committed lautus and services patches

svn path=/trunk/; revision=70238
2015-12-02 21:47:45 +00:00
Amine Khaldi
bc3f567f65 [T2EMBED] Leverage Wine Staging 1.7.55 code and put our remaining stubs into a proper source file. CORE-10536
svn path=/trunk/; revision=70237
2015-12-02 21:04:16 +00:00
Amine Khaldi
8d574be5a7 [PSDK] Add missing E_API_NOTIMPL.
svn path=/trunk/; revision=70236
2015-12-02 21:00:36 +00:00
Amine Khaldi
4f312a841f [MEDIA/DOC] Add Libxslt to the 3rd party modules list.
svn path=/trunk/; revision=70235
2015-12-02 11:41:50 +00:00
Amine Khaldi
452fef7fd2 [LIBXML2] Update to v2.9.3.
svn path=/trunk/; revision=70234
2015-12-02 11:36:52 +00:00
Amine Khaldi
c111843f51 [LIBMPG123] Update to v1.22.4.
svn path=/trunk/; revision=70233
2015-12-02 11:13:12 +00:00
Amine Khaldi
8df84d1614 [WIN-ICONV] Update to git commit 8765259.
svn path=/trunk/; revision=70232
2015-12-02 11:08:51 +00:00
Amine Khaldi
535acd2c2c [LIBPNG] Update to v1.6.19.
svn path=/trunk/; revision=70231
2015-12-02 11:03:22 +00:00
Amine Khaldi
1b600c59a8 [PSDK] Update shldisp.idl. CORE-10536
svn path=/trunk/; revision=70230
2015-12-02 09:02:07 +00:00
Ged Murphy
a3da2cac64 I forgot to put the minimalist headers back
svn path=/trunk/; revision=70229
2015-12-01 21:33:32 +00:00
Ged Murphy
4cb478b712 [CHARMAP]
- Hackfix the existing charmap for the 0.4 release (just in case I don't get time to finish the new one). This fixes showing invalid glyphs and also removes the advanced section as it was unimplemented.

svn path=/trunk/; revision=70228
2015-12-01 21:29:12 +00:00
Amine Khaldi
5da0e5c92a [PSDK] Add missing EBO_NOBORDER and EBO_NO.
svn path=/trunk/; revision=70227
2015-12-01 18:09:05 +00:00
Thomas Faber
7a677edbeb [KMTESTS:FSRTL]
- Add tests for FsRtlDissectName/FsRtlDissectDbcs and FsRtlIsFatDbcsLegal/FsRtlIsHpfsDbcsLegal

svn path=/trunk/; revision=70226
2015-12-01 14:22:17 +00:00
Amine Khaldi
72b880c604 [FREETYPE] Update to v2.6.2. CORE-10614
svn path=/trunk/; revision=70225
2015-12-01 10:36:24 +00:00
Amine Khaldi
98fc88e3d5 [SETUPAPI_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70224
2015-11-30 22:25:50 +00:00
Amine Khaldi
5002c53878 [PSDK] Update d3d9types.h. CORE-10536
svn path=/trunk/; revision=70223
2015-11-30 21:55:07 +00:00
Amine Khaldi
e77f59d073 [IPHLPAPI_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70222
2015-11-30 21:47:40 +00:00
Amine Khaldi
afd3e3aab5 [IPHLPAPI] Properly stub GetExtendedUdpTable().
svn path=/trunk/; revision=70221
2015-11-30 21:45:34 +00:00
Amine Khaldi
0d30715ea3 [PSDK] Attempt to improve the whole iphlpapi related headers situation. CORE-7685 CORE-10536
svn path=/trunk/; revision=70220
2015-11-30 20:08:57 +00:00
Amine Khaldi
5d02fb80e2 [TRANSLATIONS] Simplified Chinese translation update by Henry Tang Ih. CORE-10588
svn path=/trunk/; revision=70219
2015-11-30 19:01:56 +00:00
Amine Khaldi
5716b5bfb6 [TRANSLATIONS] Spanish translation update by Ismael Ferreras Morezuelas. CORE-10613
svn path=/trunk/; revision=70218
2015-11-30 18:53:22 +00:00
Ged Murphy
bc3c1a8ed6 [ATL]
- Implement CHandle

svn path=/trunk/; revision=70217
2015-11-30 12:07:18 +00:00
Thomas Faber
95fa8202a5 [FASTFAT]
- Gracefully handle empty filenames found on disk, and warn about them.

svn path=/trunk/; revision=70216
2015-11-30 11:25:14 +00:00
Ged Murphy
e828ff57bc [SHELL32]
- Add support for canonical/string verbs when using CMINVOKECOMMANDINFO. This fixes switching views and adding a new folder when using the button in the common dialogs. This really needs to go in a CDefFolderMenu class (which likely inherits the context menu class), but we don't use that design.
- Partially implement CDefaultContextMenu::GetCommandString 'while I was there' It's completely untested though.
CORE-10089

svn path=/trunk/; revision=70215
2015-11-30 11:17:26 +00:00
Thomas Faber
51c131bcb5 [FASTFAT]
- Handle multiple trailing backslashes without asserting
CORE-10483

svn path=/trunk/; revision=70214
2015-11-29 20:23:43 +00:00
Pierre Schweitzer
e7830d5ae9 [TCPIP]
Stub implementation of IOCTL_QUERY_IP_HW_ADDRESS.

This fixes 5 tests in iphlpapi_apitest!

svn path=/trunk/; revision=70213
2015-11-29 19:53:48 +00:00
Pierre Schweitzer
575842c05c [ARPING]
Implement an arping tool. Some portions of code are just plain copy/paste from ping tool code (booh, it's bad!).
It was designed and tested on W2K3.

It's in RosApps for two major reasons: such a tool doesn't exist by default in Windows 2K3.
And it doesn't work in ReactOS.

svn path=/trunk/; revision=70212
2015-11-29 19:44:29 +00:00
Amine Khaldi
fedd88382f [PSDK] Update d3d8types.h. CORE-10536
svn path=/trunk/; revision=70211
2015-11-29 19:38:09 +00:00
Pierre Schweitzer
1fe3047f6b [IPHLPAPI_APITEST]
Add a new apitest for iphlpapi.dll.
It includes tests for testing the SendARP() and its underlying IOCTL.

Tested against W2K3.
Obviously, most of these tests fail on ReactOS.

svn path=/trunk/; revision=70210
2015-11-29 19:31:33 +00:00
Thomas Faber
4cf4eebb95 [KMTESTS:IO]
- Add more path open tests
- Also test creating files
CORE-10483

svn path=/trunk/; revision=70209
2015-11-29 19:11:35 +00:00
Thomas Faber
774ff48872 [FASTFAT]
- Fail attempts to open files relative to the volume

svn path=/trunk/; revision=70208
2015-11-29 18:43:50 +00:00
Amine Khaldi
8e9e71dcfb [NOTEPAD] Let the user know when an opened file is modified. By Lee Schroeder. CORE-9721
svn path=/trunk/; revision=70207
2015-11-29 18:13:33 +00:00
Amine Khaldi
93fe673fa4 [SHELL32] Set the OK button in the run dialog as disabled by default unless text is added. By Mark Jansen. CORE-10436
svn path=/trunk/; revision=70206
2015-11-29 18:00:19 +00:00
Amine Khaldi
f9e53e90df [FDEBUG] Add an application manifest and change the window title from to "FreeLoader Debugger". By Ricardo Hanke. CORE-10410
svn path=/trunk/; revision=70205
2015-11-29 17:53:09 +00:00
Hermès Bélusca-Maïto
46edb74bda [IPCONFIG]: Fix word lost in translation.
svn path=/trunk/; revision=70204
2015-11-29 17:49:43 +00:00
Amine Khaldi
1d103c37ac [WIN32K] This looks more like a normal trace to me. Jim, please review. CORE-9604 CORE-5272
svn path=/trunk/; revision=70203
2015-11-29 17:45:09 +00:00
Amine Khaldi
4c37643684 [TRANSLATIONS] Russian translation update by Kudratov Olimjon. CORE-10589
svn path=/trunk/; revision=70202
2015-11-29 17:08:13 +00:00
Amine Khaldi
56e2616d19 [ADVAPI32] Apply Wine commit 985e226 by Hans Leidekker: Support parsing mandatory label ACE strings. CORE-10536
svn path=/trunk/; revision=70201
2015-11-29 16:50:05 +00:00
Amine Khaldi
4f7f9c423e [RTL] Partially sync wait.c with Wine Staging 1.7.55. By Samuel Serapión. CORE-10536 CORE-10577
svn path=/trunk/; revision=70200
2015-11-29 16:35:51 +00:00
Amine Khaldi
f995d57b93 [MBEDTLS] Update to v2.2.0. By Ismael Ferreras Morezuelas. CORE-10561
svn path=/trunk/; revision=70199
2015-11-29 16:30:45 +00:00
Amine Khaldi
dbf61f13bd [ADVAPI32] Apply Wine commit 4f3acf3 by Michael Müller: Add initial implementation for GetWindowsAccountDomainSid. CORE-10536
svn path=/trunk/; revision=70198
2015-11-28 21:47:43 +00:00
Amine Khaldi
c8433464e9 [ADVAPI32] Apply Wine commit d2f0bc2 by Dmitry Timoshkov: Add CreatePrivateObjectSecurityWithMultipleInheritance semi-stub. CORE-10536
svn path=/trunk/; revision=70197
2015-11-28 21:33:49 +00:00
Amine Khaldi
94e9662ec0 [README.WINE] Mark some advapi32 related entries as synced with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70196
2015-11-28 21:23:21 +00:00
Amine Khaldi
eea4a9e43c [ADVAPI32] Sync crypt.c with Wine Staging 1.7.55 and update the exports list accordingly. CORE-10536
svn path=/trunk/; revision=70195
2015-11-28 21:21:52 +00:00
Amine Khaldi
234bd67427 [README.WINE] Update some entires and remove some no longer relevant ones. CORE-10536
svn path=/trunk/; revision=70194
2015-11-28 21:13:41 +00:00
Amine Khaldi
b417d5296d [MSHTML_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70193
2015-11-28 21:11:14 +00:00
Eric Kohl
9179de2560 [MSGINA]
Fix exceptions while processing messages when the "Welcome to ReactOS" dialog is created.

svn path=/trunk/; revision=70192
2015-11-28 21:11:11 +00:00
Amine Khaldi
3d0a8a174a [MSHTML] Sync with Wine Staging 1.7.55. [APPWIZ][BOOTDATA] Update gecko package to 2.40. CORE-10536
svn path=/trunk/; revision=70191
2015-11-28 21:10:43 +00:00
Amine Khaldi
50d5b7acea [PSDK] Update mshtmdid.h and mshtml.idl. CORE-10536
svn path=/trunk/; revision=70190
2015-11-28 18:53:53 +00:00
Amine Khaldi
f9c8e766ac [USER32] Sync mdi.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70189
2015-11-28 18:51:17 +00:00
Amine Khaldi
50df902b08 [SECUR32] Partially sync sspi.c with Wine Staging 1.7.55. We don't need secext.c anymore. CORE-10536
svn path=/trunk/; revision=70188
2015-11-28 18:49:34 +00:00
Timo Kreuzer
547821d10d [WIN32K]
Use the actual DC attribute, not the embedded one, when checking iGraphicsMode in GreExtTextOutW.
CORE-4657 #resolve

svn path=/trunk/; revision=70187
2015-11-28 17:43:30 +00:00
Amine Khaldi
eb108acad4 [WINMINE] Apply Wine commit 3966aff by Jared Smudde: Load main icon in the about window. CORE-10536
svn path=/trunk/; revision=70186
2015-11-28 17:37:30 +00:00
Amine Khaldi
f9c372f1d4 [CRT] Sync undname.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70185
2015-11-28 16:33:35 +00:00
Amine Khaldi
e927e91575 [USER32] Sync spy.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70184
2015-11-28 16:29:14 +00:00
Amine Khaldi
b4abe066d4 [USER32] Sync exticon.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70183
2015-11-28 16:27:34 +00:00
Amine Khaldi
a6a7b6c127 [PSDK] Add missing TB_HASACCELERATOR.
svn path=/trunk/; revision=70182
2015-11-28 16:25:17 +00:00
Amine Khaldi
4328123d60 [RTL] Partially sync actctx.c with Wine Staging 1.7.55. Fixes 3 kernel32:actctx failures. CORE-10536
svn path=/trunk/; revision=70181
2015-11-28 16:24:53 +00:00
Timo Kreuzer
7ceb06e329 [WIN32K]
Fix DC reference leak in IntPolygon.

svn path=/trunk/; revision=70180
2015-11-28 15:52:20 +00:00
Timo Kreuzer
99cbcf396b [WIN32K]
Check for dc->dclevel.pSurface == NULL in IntGdiPolygon. 
CORE-10377 #resolve

svn path=/trunk/; revision=70179
2015-11-28 15:48:57 +00:00
Hermès Bélusca-Maïto
9e8af4769b [SHELL32]
Use the programs folder icon in the Open-With list box. By Jared Smudde.
CORE-10592

svn path=/trunk/; revision=70178
2015-11-28 15:35:33 +00:00
Thomas Faber
85fe2a25a0 [NTOS:PS]
- Properly acquire process rundown
- Reference job object when assigning a process to it
- Don't assert when creating a child process whose parent is in a job
Fixes crashes in kernel32_winetest:process

svn path=/trunk/; revision=70177
2015-11-28 12:45:16 +00:00
Thomas Faber
3638c8781a [KERNEL32]
- Use JOB_OBJECT_ALL_ACCESS for job objects instead of JOB_ALL_ACCESS (which is for print jobs). Dedicated to Samuel

svn path=/trunk/; revision=70176
2015-11-28 10:21:38 +00:00
Thomas Faber
d876ecae70 [GDIPLUS_WINETEST]
- Fix VS2010 build

svn path=/trunk/; revision=70175
2015-11-28 10:00:40 +00:00
Amine Khaldi
d95ba7f8c7 [README.WINE] Mark some modules as synced with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70174
2015-11-28 09:55:56 +00:00
Hermès Bélusca-Maïto
d06631bfb2 [CLIPBRD]
Implement loading the clipboard contents from a file. By Ricardo Hanke :)
CORE-10550

svn path=/trunk/; revision=70173
2015-11-28 01:22:34 +00:00
Amine Khaldi
bc29d4a7d5 [USER32] Sync ddemisc.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70172
2015-11-27 22:52:21 +00:00
Amine Khaldi
99429545d9 [USER32] Sync ddeserver.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70171
2015-11-27 22:51:40 +00:00
Amine Khaldi
8f1fa5e08f [USER32] Sync ddeclient.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70170
2015-11-27 22:50:54 +00:00
Amine Khaldi
fd71c4cbec [USER32] Partially sync resources.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70169
2015-11-27 22:49:47 +00:00
Amine Khaldi
82475df8f5 [USER32] Sync static.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70168
2015-11-27 22:48:33 +00:00
Amine Khaldi
b59d7b29a3 [USER32] Sync listbox.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70167
2015-11-27 22:47:40 +00:00
Amine Khaldi
f77b793535 [USER32] Sync icontitle.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70166
2015-11-27 22:46:41 +00:00
Amine Khaldi
069f8726cf [USER32] Sync edit.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70165
2015-11-27 22:45:32 +00:00
Amine Khaldi
35001c37a3 [USER32_WINETEST] Sync edit.c and listbox.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70164
2015-11-27 22:10:38 +00:00
Amine Khaldi
d7073f8614 [CMAKE/MSVC] It makes sense nowadays to enable the folder structure by default. Old express editions users, please disable it locally ;)
svn path=/trunk/; revision=70163
2015-11-27 21:46:54 +00:00
Amine Khaldi
26e88a8761 [PSDK] Add and annotate SetInformationJobObject.
svn path=/trunk/; revision=70162
2015-11-27 20:58:12 +00:00
Amine Khaldi
19bfe3af52 [KERNEL32] Sync sortkey.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70161
2015-11-27 20:11:40 +00:00
Amine Khaldi
27e62279a7 [KERNEL32] Sync lcformat.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70160
2015-11-27 20:11:02 +00:00
Amine Khaldi
c4b3aba60f [KERNEL32] Sync format_msg.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70159
2015-11-27 20:09:44 +00:00
Amine Khaldi
23a47e2ba0 [KERNEL32] Sync collation.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70158
2015-11-27 20:08:24 +00:00
Amine Khaldi
de30740d8d [KERNEL32] Sync casemap.c with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70157
2015-11-27 20:00:29 +00:00
Amine Khaldi
d8b1a50b04 [PSDK] Add missing CALINFO_ENUMPROCEXEX, DATEFMT_ENUMPROCEXEX and TIMEFMT_ENUMPROCEX.
svn path=/trunk/; revision=70156
2015-11-27 19:59:29 +00:00
Amine Khaldi
9b29c23667 [KERNEL32] Partially sync res.c with Wine Staging 1.7.55. Fixes 4 kernel32:resource tests and we're down to 0 failures here. CORE-10536
svn path=/trunk/; revision=70155
2015-11-27 18:49:07 +00:00
Amine Khaldi
1aa074a37d [KERNEL32] Partially sync profile.c with Wine Staging 1.7.55. Fixes 2 kernel32:profile tests. CORE-10536
svn path=/trunk/; revision=70154
2015-11-27 18:46:45 +00:00
Thomas Faber
71700db397 [NTDLL_WINETEST]
- Fix warnings

svn path=/trunk/; revision=70153
2015-11-27 18:27:41 +00:00
Amine Khaldi
f42267b75a [KERNEL32][NTDLL] Apply Wine commit ab91c01 by Sebastian Lackner: RtlFindActivationContextSectionString should accept a NULL pointer as data. Fixes 15 kernel32:actctx tests. CORE-10536
svn path=/trunk/; revision=70152
2015-11-27 18:06:47 +00:00
Thomas Faber
b73ac49f8c [NTOS:SE]
- Fail in SeAccessCheck if the resulting access would be zero.
CORE-10587 #resolve

svn path=/trunk/; revision=70151
2015-11-27 12:06:59 +00:00
Thomas Faber
2c5b452770 [MSI]
- Do not open registry keys with no access rights. Will be sent to Wine after 1.8 code freeze.
CORE-10587

svn path=/trunk/; revision=70150
2015-11-27 11:34:12 +00:00
Thomas Faber
ba51763c03 [OLE32]
- Do not open registry keys with no access rights. Will be sent to Wine after 1.8 code freeze.
CORE-10587

svn path=/trunk/; revision=70149
2015-11-27 11:27:21 +00:00
Hermès Bélusca-Maïto
6e9014fd5b [WORDPAD]
Fix latest Wine sync r70123 of wordpad wrt. our local change from r69999 (now mentioned with #ifdef __REACTOS__ ).
CORE-10591

svn path=/trunk/; revision=70148
2015-11-27 09:44:14 +00:00
Thomas Faber
80ecc1e76f [NTOS:PS]
- Use the correct generic mapping for threads in NtOpenThread

svn path=/trunk/; revision=70147
2015-11-27 08:49:57 +00:00
Thomas Faber
744f48413b [ADVAPI32]
- Do not open registry keys with no access rights
CORE-10587

svn path=/trunk/; revision=70146
2015-11-27 08:20:58 +00:00
Thomas Faber
154274318f [SETUPAPI]
- Do not open registry keys with no access rights
CORE-10587

svn path=/trunk/; revision=70145
2015-11-27 08:07:46 +00:00
Thomas Faber
d1f13dc28b [NTOS:FSRTL]
- FILE_LOCK_INFO::ProcessId is really an EPROCESS pointer, not a process id

svn path=/trunk/; revision=70144
2015-11-27 07:49:31 +00:00
Thomas Faber
5440e3e226 [NETCFGX]
- Specify KEY_CREATE_SUB_KEY when trying to create subkeys
CORE-10587

svn path=/trunk/; revision=70143
2015-11-27 01:51:08 +00:00
Thomas Faber
a4aad515be [NETCFGX]
- Enable debug prints on failure in InstallNetDevice

svn path=/trunk/; revision=70142
2015-11-27 01:41:09 +00:00
Amine Khaldi
740589c097 [WINMM_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70141
2015-11-26 23:39:16 +00:00
Amine Khaldi
d25d1c5a58 [VBSCRIPT_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70140
2015-11-26 23:37:03 +00:00
Amine Khaldi
34b8a6f42b [PSDK] Add missing SCRIPT_E_* definitions.
svn path=/trunk/; revision=70139
2015-11-26 23:36:41 +00:00
Amine Khaldi
abaeaf245e [SERVICES_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70138
2015-11-26 23:33:27 +00:00
Amine Khaldi
1583b86709 [SECUR32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70137
2015-11-26 23:32:19 +00:00
Amine Khaldi
16d60ad9b4 [SCRRUN_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70136
2015-11-26 23:30:32 +00:00
Amine Khaldi
68e87d8dd2 [PSAPI_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70135
2015-11-26 23:29:19 +00:00
Amine Khaldi
14b473e7a2 [PROPSYS_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70134
2015-11-26 23:26:49 +00:00
Amine Khaldi
9df1e03192 [OPENGL32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70133
2015-11-26 23:25:22 +00:00
Amine Khaldi
e856b9ccfd [NETAPI32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70132
2015-11-26 23:24:06 +00:00
Amine Khaldi
71767e600f [PSDK] Add missing FACILITY_DIRECT3D11.
svn path=/trunk/; revision=70131
2015-11-26 23:20:04 +00:00
Amine Khaldi
83d8128bcd [MLANG_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70130
2015-11-26 23:17:27 +00:00
Amine Khaldi
cdcd3c6eac [GDI32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70129
2015-11-26 23:16:17 +00:00
Amine Khaldi
4640320bb3 [CMD_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70128
2015-11-26 23:09:58 +00:00
Amine Khaldi
06828f37dd [PSDK] Update wincrypt.h. CORE-10536
svn path=/trunk/; revision=70127
2015-11-26 22:58:04 +00:00
Amine Khaldi
c194453d62 [STRMBASE] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70126
2015-11-26 22:53:27 +00:00
Amine Khaldi
bd175c8bd9 [MSIEXEC] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70125
2015-11-26 22:47:29 +00:00
Amine Khaldi
bf8725c77d [RPCSS] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70124
2015-11-26 22:46:39 +00:00
Amine Khaldi
7ad90a65b2 [WORDPAD] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70123
2015-11-26 22:46:03 +00:00
Amine Khaldi
25c5987a7d [WINHLP32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70122
2015-11-26 22:44:55 +00:00
Amine Khaldi
622907fd77 [WINMINE] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70121
2015-11-26 22:42:12 +00:00
Amine Khaldi
a051ee115f [REG_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70120
2015-11-26 22:37:25 +00:00
Amine Khaldi
d36141a3aa [REG] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70119
2015-11-26 22:37:06 +00:00
Thomas Faber
1708c275b3 [QUARTZ]
- Don't cache IFilterMapper2 interface in FilterGraph2. Fixes use after free when playing videos with MPC HC.
- Fix a reference leak
CORE-7671

svn path=/trunk/; revision=70118
2015-11-26 22:04:34 +00:00
Thomas Faber
fdb6a36956 [D3DXOF]
- Avoid undefined behavior in parse_object_parts. Fixes 3D app startup on MSVC builds.
CORE-10590 #resolve

svn path=/trunk/; revision=70117
2015-11-26 21:54:44 +00:00
Amine Khaldi
409cf0351d [PSDK] Add missing D3DPRESENT_DONOTWAIT and D3DPRESENT_LINEAR_CONTENT.
svn path=/trunk/; revision=70116
2015-11-26 17:21:12 +00:00
Amine Khaldi
0fb0b84997 [INCLUDES/WINE] Update dplaysp.h. CORE-10536
svn path=/trunk/; revision=70115
2015-11-25 14:32:03 +00:00
Amine Khaldi
1d642fc5fa [MSVCRTD_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70114
2015-11-25 14:30:06 +00:00
Amine Khaldi
510ef6c9d5 [OLEDLG_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70113
2015-11-25 14:29:07 +00:00
Amine Khaldi
b71a31e77c [OLEACC_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70112
2015-11-25 14:28:16 +00:00
Amine Khaldi
51d1ac8906 [COMDLG32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70111
2015-11-25 14:26:11 +00:00
Amine Khaldi
04ebe3bdfc [PSDK] Fix a typo.
svn path=/trunk/; revision=70110
2015-11-25 14:25:40 +00:00
Amine Khaldi
009465c482 [COMDLG32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70109
2015-11-25 14:22:14 +00:00
Amine Khaldi
c26a6d98d7 * Sync up to trunk head.
svn path=/branches/ros-branch-0_4_0/; revision=70108
2015-11-25 11:00:39 +00:00
Thomas Faber
e26b0ebe51 [KERNEL32]
- Set the full BOOL in CheckNameLegalDOS8Dot3, not just the low byte. Fixes some kernel32:file test failures.

svn path=/trunk/; revision=70107
2015-11-25 10:06:03 +00:00
Timo Kreuzer
b5c754bd5f [WIN32K]
Apply the same fix for EngAcquireSemaphore to EngReleaseSemaphore.
CORE-9779 #comment Yet another try please

svn path=/trunk/; revision=70106
2015-11-25 01:55:14 +00:00
Robert Naumann
2a541347a6 [EXPLORER] -Addendum to r70104: Uncheck the 'show seconds' checkbox before disabling it.
svn path=/trunk/; revision=70105
2015-11-24 23:05:49 +00:00
Robert Naumann
60c8c31792 [EXPLORER] -Reactivate the 'show seconds' functionality.
-Enable the the controls depending on checkbox states

svn path=/trunk/; revision=70104
2015-11-24 22:37:58 +00:00
Timo Kreuzer
fa9f7f4b41 [WIN32K]
"Gracyfully" (i.e. ignore, like Windows does) handle hsem == NULL in EngAcquireSemaphore
Should fix crash of QXL Virtual GPU driver installer
CORE-9779 #comment Please retest.

svn path=/trunk/; revision=70103
2015-11-24 22:04:39 +00:00
Robert Naumann
b59d06fa1d [EXPLORER] -Fix a parameter of OnCreateTaskbarPage(). Fix by Mark Jansen
-Implement showing the notification area preview images. CORE-10560

svn path=/trunk/; revision=70102
2015-11-24 21:43:07 +00:00
Ged Murphy
ca255520d6 [CHARMAP_NEW]
- Allow the dialog to be resized, which in turn will grow / shrink the grid view and the fonts inside it. This means users can make the grid larger if they don't have their glasses on or want to see all the fonts in more detail. We no longer need a large font window popping out from the grid when you click on a cell (which I was never a fan of). 
- Don't allow scrolling previous to row 0 or after the last row

svn path=/trunk/; revision=70101
2015-11-24 21:17:43 +00:00
Amine Khaldi
e41d0b10dc [RTL] Partially sync some timer queue related functions with Wine Staging 1.7.55. Brought to you by Samuel Serapión and Thomas Faber. CORE-10574 CORE-10536
svn path=/trunk/; revision=70100
2015-11-24 20:35:58 +00:00
Amine Khaldi
63b79405b9 [KERNEL32_WINETEST] Avoid calling WaitForMultipleObjectsEx with pseudo handle. Brought to you by Sebastian Lackner.
svn path=/trunk/; revision=70099
2015-11-24 19:38:03 +00:00
Ged Murphy
b841070c1a [CHARMAP_NEW]
- Implement drawing fonts onto the gridview
- Implement scrolling through the grid via the scrollbar
- When a new font is selected, setup that font for drawing. This includes setting up the DC for painting, getting the valid glyphs for that font (this fixes the bug in the existing viewer which has lots of squares for glyphs), setting up scrollbar info, etc.
- Make the cell object more responsible for its own painting
CORE-10518

svn path=/trunk/; revision=70098
2015-11-24 17:55:27 +00:00
Thomas Faber
68efaa6696 [RTL]
- Implement RtlSetIoCompletionCallback. Patch by Samuel Serapión.
CORE-10570 #resolve

svn path=/trunk/; revision=70097
2015-11-24 15:51:32 +00:00
Amine Khaldi
20ba26ecba [NTDLL_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70096
2015-11-24 15:14:42 +00:00
Thomas Faber
a8e3a1bdab [MSI]
- Use the correct attributes when overwriting a read-only file in cabinet_copy_file. Will be sent upstream after the 1.8 release.
CORE-10534 #resolve

svn path=/trunk/; revision=70095
2015-11-24 14:57:00 +00:00
Amine Khaldi
442adb5c3e [INCLUDES/WINE] Update debug.h. CORE-10536
svn path=/trunk/; revision=70094
2015-11-24 14:43:59 +00:00
Amine Khaldi
34dd2f4dab [QUARTZ_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70093
2015-11-24 12:34:05 +00:00
Amine Khaldi
57095ddb13 [QUARTZ] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70092
2015-11-24 12:33:33 +00:00
Amine Khaldi
3a97085f03 [QEDIT] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70091
2015-11-24 12:30:47 +00:00
Amine Khaldi
7931fb0cf9 [DXDIAGN_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70090
2015-11-24 11:02:38 +00:00
Amine Khaldi
d21c0e2165 [DXDIAGN] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70089
2015-11-24 10:59:31 +00:00
Amine Khaldi
8c7e291c0e [DPLAYX] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70088
2015-11-24 10:57:37 +00:00
Amine Khaldi
0e6c0cd877 [DINPUT_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70087
2015-11-24 10:52:32 +00:00
Amine Khaldi
6130b8208b [DINPUT] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70086
2015-11-24 10:51:48 +00:00
Amine Khaldi
7a27ab062e [DEVENUM] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70085
2015-11-24 10:48:09 +00:00
Amine Khaldi
6e7f9f74ee [D3DRM_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70084
2015-11-24 10:44:34 +00:00
Amine Khaldi
65242a9709 [D3DRM] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70083
2015-11-24 10:43:48 +00:00
Amine Khaldi
c9ac75dd33 [PSDK] Update d3drmobj.h. CORE-10536
svn path=/trunk/; revision=70082
2015-11-24 10:40:22 +00:00
Amine Khaldi
785a2d5575 [COMCTL32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70081
2015-11-24 10:38:33 +00:00
Amine Khaldi
1f1e8b05a2 [COMCTL32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70080
2015-11-24 10:36:57 +00:00
Amine Khaldi
d3ddfb63dd [PSDK] Add missing TB_SETBOUNDINGSIZE.
svn path=/trunk/; revision=70079
2015-11-24 10:26:50 +00:00
Amine Khaldi
a5b10c42df [USER_WINETEST::INPUT] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70078
2015-11-24 10:22:52 +00:00
Amine Khaldi
5d72ec9796 [MSCTF_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70077
2015-11-23 20:49:33 +00:00
Amine Khaldi
17fcbdc088 [MSCTF] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70076
2015-11-23 20:49:01 +00:00
Amine Khaldi
f456b9710b [PSDK] Update msctf.idl. CORE-10536
svn path=/trunk/; revision=70075
2015-11-23 20:47:28 +00:00
Amine Khaldi
7ba250efe5 [OLEDLG] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70074
2015-11-23 20:43:09 +00:00
James Tabor
a6868a267c - Fix crash in wine input test.
svn path=/trunk/; revision=70073
2015-11-23 20:22:03 +00:00
Amine Khaldi
75a0623279 [PSDK] Add missing QDC_ALL_PATHS.
svn path=/trunk/; revision=70072
2015-11-23 18:09:48 +00:00
Amine Khaldi
ab758d5b2e [MSVCRT_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70071
2015-11-23 17:47:51 +00:00
Amine Khaldi
4042c06e24 [ADVAPI32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70070
2015-11-23 16:45:39 +00:00
Amine Khaldi
a3183aed2b [KERNEL32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70069
2015-11-23 16:10:53 +00:00
James Tabor
e2b52d2ea8 [User32]
- Patch by Bruno Jesus : Don't add scroll bars to mdiclient if the window style doesn't allow it. This fixes wine bug 9435.
- Patch by Alex Henrie : Avoid double initialization. Use the window class icon if the MDI child doesn't have its own.
- Patch by Michael Stefaniuc : IDI_WINLOGO is already an int resource (PVS-Studio).
- Patch by Frédéric Delanoy : Use BOOL type where appropriate.
- Wine sync port.

svn path=/trunk/; revision=70068
2015-11-23 11:47:23 +00:00
Amine Khaldi
912dda1e78 [WINDOWSCODECS] Sort out ungif.c inclusions.
svn path=/trunk/; revision=70067
2015-11-23 11:03:07 +00:00
Amine Khaldi
025250b862 [WINDOWSCODECS_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70066
2015-11-23 09:52:05 +00:00
Amine Khaldi
a9a84a48c1 [WINDOWSCODECS] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70065
2015-11-23 09:51:23 +00:00
Amine Khaldi
3ed7500edd [WBEMPROX_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70064
2015-11-23 09:49:22 +00:00
Amine Khaldi
37e2159e54 [WBEMPROX] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70063
2015-11-23 09:48:39 +00:00
Amine Khaldi
5365e8d829 [USP10_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70062
2015-11-23 09:46:44 +00:00
Amine Khaldi
a7054d2b28 [USP10] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70061
2015-11-23 09:46:04 +00:00
Amine Khaldi
3e18401d57 [PSDK] Add some missing FILE_* structures. Add missing PRIORITY_HINT.
svn path=/trunk/; revision=70060
2015-11-23 09:44:29 +00:00
Amine Khaldi
5cd87e7634 [SHLWAPI_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70059
2015-11-23 09:43:14 +00:00
Amine Khaldi
337eb3951f [SHLWAPI] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70058
2015-11-23 09:42:20 +00:00
Amine Khaldi
e06c5e2fe4 [SECUR32] Reduce difference with Wine Staging 1.7.55. NFC. CORE-10536
svn path=/trunk/; revision=70057
2015-11-23 09:39:40 +00:00
Amine Khaldi
8f17387da5 [RICHED20_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70056
2015-11-23 09:37:40 +00:00
Amine Khaldi
4f95ffdf12 [RICHED20] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70055
2015-11-23 09:36:58 +00:00
Amine Khaldi
33bcfb462d [ODBCCP32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70054
2015-11-23 09:34:37 +00:00
Amine Khaldi
50ef24681e [PSDK] Fix SQLGetPrivateProfileString(W).
svn path=/trunk/; revision=70053
2015-11-23 09:25:53 +00:00
Amine Khaldi
8c1459cee5 [ODBCCP32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70052
2015-11-23 09:23:54 +00:00
Amine Khaldi
f0a73f0bf1 [XDK] Add missing AT_ROUND_TO_PAGE.
svn path=/trunk/; revision=70051
2015-11-23 09:15:43 +00:00
Amine Khaldi
b566b3691c [MSXML3_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70050
2015-11-23 09:12:39 +00:00
Amine Khaldi
36c9923227 [MSXML3] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70049
2015-11-23 09:11:20 +00:00
Amine Khaldi
60505b44a7 [MSCMS_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70048
2015-11-23 09:03:09 +00:00
Amine Khaldi
5aa2d2cc8a [PSDK] Update icm.h. CORE-10536
svn path=/trunk/; revision=70047
2015-11-23 09:02:47 +00:00
Amine Khaldi
2be628df9d [MSCMS] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70046
2015-11-23 09:02:03 +00:00
Amine Khaldi
45cc00097c [MSADP32.ACM] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70045
2015-11-23 08:55:46 +00:00
Amine Khaldi
e266d4ec1d [XDK] Add missing THREAD_QUERY_LIMITED_INFORMATION.
svn path=/trunk/; revision=70044
2015-11-23 08:51:18 +00:00
Amine Khaldi
1937c7aecb [PSDK] Update SYSGEOTYPE.
svn path=/trunk/; revision=70043
2015-11-22 22:28:45 +00:00
Thomas Faber
5d85efdaa2 [FASTFAT]
- Don't leak FCBs, Arch ;)

svn path=/trunk/; revision=70042
2015-11-22 21:46:58 +00:00
Daniel Reimer
349767312c [RAPPS]
Fix typo.

svn path=/trunk/; revision=70041
2015-11-22 21:31:35 +00:00
Thomas Faber
8d0ff31cca [SHELL][RAPPS_NEW]
- Don't call placement new on static objects. The constructors work just fine.
CORE-10562 #resolve

svn path=/trunk/; revision=70040
2015-11-22 21:13:14 +00:00
Thomas Faber
b04664ddad [CRT]
- Don't call global constructors twice on MSVC builds
CORE-10562

svn path=/trunk/; revision=70039
2015-11-22 20:49:47 +00:00
Thomas Faber
af005cf46b [BASESRV]
- Return the unique ID from BaseSrvGetTempFile instead of an NTSTATUS. Fixes GetTempFile when using kernel32.dll from Windows.

svn path=/trunk/; revision=70038
2015-11-22 18:15:49 +00:00
Eric Kohl
317a71e165 [KERNEL32]
GetDriveTypeW: Use neither CreateFileW nor InternalOpenDirW to open the drive, because both functions call SetLastError upon failure. This can cause failing checks in lines 23, 44 and 59 of the kernel32_apitest:GetDriveType test. Use NtOpenFile instead.

svn path=/trunk/; revision=70037
2015-11-22 17:55:40 +00:00
Amine Khaldi
2c92b82772 [PSDK] Fix D3DRMRENDER_PHONG definition.
svn path=/trunk/; revision=70036
2015-11-22 16:37:03 +00:00
Amine Khaldi
a6967368cb [D3DCOMPILER_43] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70035
2015-11-22 16:34:38 +00:00
Amine Khaldi
1ddbf387f1 [PSDK] Update d3dcompiler.h. CORE-10536
svn path=/trunk/; revision=70034
2015-11-22 16:34:06 +00:00
Amine Khaldi
6bda4e6b5c [D3D8][D3D9][DDRAW][WINED3D] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70033
2015-11-22 15:58:59 +00:00
Amine Khaldi
64b57ca4a1 [D3DX9_36] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70032
2015-11-22 15:41:58 +00:00
Amine Khaldi
123d834eb6 [DXSDK] Update d3dx9shader.h. CORE-10536
svn path=/trunk/; revision=70031
2015-11-22 15:40:43 +00:00
Amine Khaldi
e27385797f [D3DX9_*] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70030
2015-11-22 15:39:50 +00:00
Amine Khaldi
7ec10f4b08 [DXSDK] Update d3dx9mesh.h. CORE-10536
svn path=/trunk/; revision=70029
2015-11-22 15:31:57 +00:00
Amine Khaldi
38e6e2592a [AMSTREAM_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70028
2015-11-22 15:31:28 +00:00
Amine Khaldi
4dc5d956b9 [AMSTREAM] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70027
2015-11-22 15:31:10 +00:00
Amine Khaldi
99821fd255 [DXSDK] Update axcore.idl. CORE-10536
svn path=/trunk/; revision=70026
2015-11-22 15:30:29 +00:00
Pierre Schweitzer
2490e1bb26 [IPHLPAPI]
- Implement TCPSendIoctl() to issue IOCTLs to network stack. We should use global handles to \Device\Ip & such, but as iphlpapi doesn't have such feature yet, a hack is here to workaround.
- Implement SendARP() using the TCPSendIoctl() function. So far, it doesn't work, as tcpip.sys is missing appropriate code path.

svn path=/trunk/; revision=70025
2015-11-22 14:47:42 +00:00
Pierre Schweitzer
f9f8694325 [PSDK]
Define the IOCTL_QUERY_IP_HW_ADDRESS which allows asking for ARP probe

svn path=/trunk/; revision=70024
2015-11-22 14:47:40 +00:00
Thomas Faber
e38b0c1eb4 [CRT_APITEST]
- Add tests for static object destructors. Patch by Mark Jansen.
CORE-10562

svn path=/trunk/; revision=70023
2015-11-22 14:01:04 +00:00
Thomas Faber
3aee20e0d8 [CRT_APITEST]
- Fix dll loading in static_construct test
CORE-10562

svn path=/trunk/; revision=70022
2015-11-22 13:51:19 +00:00
Amine Khaldi
37c4fd4f08 [MSACM32.DRV] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70021
2015-11-22 10:30:59 +00:00
Amine Khaldi
4928944469 [MSACM32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70020
2015-11-22 10:29:55 +00:00
Amine Khaldi
44622b906d [PSDK] Add missing WAVE_FORMAT_MSRT24 and MM_FHGIIS_MPEGLAYER3_PROFESSIONAL.
svn path=/trunk/; revision=70019
2015-11-22 10:29:18 +00:00
Amine Khaldi
80a73ead06 [MSACM32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70018
2015-11-22 10:27:33 +00:00
Amine Khaldi
b355176a29 [LOCALUI] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70017
2015-11-22 10:26:00 +00:00
Amine Khaldi
b2439ce951 [IMAGEHLP_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70016
2015-11-22 10:24:13 +00:00
Amine Khaldi
25dafb9f48 [IMAGEHLP] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70015
2015-11-22 10:24:00 +00:00
Amine Khaldi
d34d37d0af [CREDUI_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70014
2015-11-22 10:20:50 +00:00
Amine Khaldi
f27bbdfa4d [CREDUI] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70013
2015-11-22 10:20:05 +00:00
Amine Khaldi
27c78c0db8 [PSDK] Add missing CRED_MAX_CREDENTIAL_BLOB_SIZE.
svn path=/trunk/; revision=70012
2015-11-22 10:19:20 +00:00
Amine Khaldi
34aa71a66f [PSDK] Update sspi.h. Annotate SspiPromptForCredentialsW(). CORE-10536
svn path=/trunk/; revision=70011
2015-11-22 10:17:55 +00:00
Amine Khaldi
1d811fbe79 [WININET_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70010
2015-11-22 10:15:42 +00:00
Amine Khaldi
aed4f73af0 [WININET] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70009
2015-11-22 10:15:25 +00:00
Amine Khaldi
583130c90b [WINHTTP_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70008
2015-11-22 10:13:49 +00:00
Amine Khaldi
19bc65b1ac [WINHTTP] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70007
2015-11-22 10:13:38 +00:00
Daniel Reimer
90b8e671eb [TRANSLATIONS]
Update German translations

svn path=/trunk/; revision=70006
2015-11-22 10:12:31 +00:00
Amine Khaldi
b8bf016b6e [INCLUDES/WINE] Update winternl.h. CORE-10536
svn path=/trunk/; revision=70005
2015-11-22 10:11:14 +00:00
Amine Khaldi
0f9490317d [GDIPLUS_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70004
2015-11-22 10:10:22 +00:00
Amine Khaldi
90f9f5716d [GDIPLUS] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=70003
2015-11-22 10:10:02 +00:00
Amine Khaldi
ce5456e567 [PSDK] Update gdipluspixelformats.h. CORE-10536
svn path=/trunk/; revision=70002
2015-11-22 10:09:04 +00:00
Robert Naumann
84d8c79180 [EXPLORER] -Implement The "Add...", "Advanced" and "Clear" buttons of the Startmenu customization dialog
-Enable some controls that shouldn't be disabled -> Spotted by Jared
-Yesterday I heard the whispered word "alphabet", correctly order file/fuction names

svn path=/trunk/; revision=70001
2015-11-22 09:28:45 +00:00
Hermès Bélusca-Maïto
58f084ebff [WORDPAD]
- Add document icon to wordpad.

[SHELL32]
- Add FriendlyTypeName support to HCR_MapTypeToValueW as well.
- Sync HCR_GetClassNameA ReactOS additions into HCR_GetClassNameW.

[NOTEPAD][SHIMGVW]
- Add localized FriendlyTypeName file type strings.

[SHELL32][HIVECLS]
Update the FriendlyTypeName file type strings.

This commit is an addendum to revision range r32966-r32969 and r32973.

svn path=/trunk/; revision=69999
2015-11-22 03:25:38 +00:00
Aleksandar Andrejevic
c69fc844a0 [CRT]
Check for positive and negative infinity in exp().


svn path=/trunk/; revision=69998
2015-11-22 01:12:34 +00:00
Sylvain Petreolle
910057b92a French translations updates for newdev and taskmgr.
svn path=/trunk/; revision=69997
2015-11-21 16:59:41 +00:00
Amine Khaldi
86345c31fe [MSI_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69996
2015-11-21 16:45:05 +00:00
Amine Khaldi
9c595b7465 [MSI] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69995
2015-11-21 16:44:38 +00:00
Hermès Bélusca-Maïto
02ab2bf42c [HIVECLS]: Few reorderings only.
svn path=/trunk/; revision=69994
2015-11-21 15:08:10 +00:00
Thomas Faber
9b5d026744 [CRT_APITEST]
- Also test static constructors/destructors in a DLL.
CORE-10562

svn path=/trunk/; revision=69993
2015-11-21 13:45:45 +00:00
Robert Naumann
4254ef0090 [EXPLORER] Stubplement and show the "customize classic start menu" dialog
svn path=/trunk/; revision=69992
2015-11-21 12:49:38 +00:00
Thomas Faber
bfa1295d2b [CRT_APITEST]
- Add tests for static initialization and static constructors
CORE-10562

svn path=/trunk/; revision=69991
2015-11-21 12:04:36 +00:00
Amine Khaldi
cd1f296855 [MSVIDC32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69990
2015-11-21 10:05:28 +00:00
Amine Khaldi
cec595cde8 [MSVFW32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69989
2015-11-21 10:03:55 +00:00
Amine Khaldi
21d2997f07 [MSVFW32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69988
2015-11-21 10:03:40 +00:00
Amine Khaldi
6f68f8bd50 [MSRLE32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69987
2015-11-21 10:00:13 +00:00
Amine Khaldi
6140544f7a [MSRLE32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69986
2015-11-21 09:59:56 +00:00
Amine Khaldi
659bed7ef9 [WINTRUST_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69985
2015-11-21 09:52:21 +00:00
Amine Khaldi
f1ffa4dc49 [WINTRUST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69984
2015-11-21 09:52:04 +00:00
Amine Khaldi
55a1268bfd [WMIUTLS] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69983
2015-11-21 09:44:42 +00:00
Amine Khaldi
d18e217f0b [WING32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69982
2015-11-21 09:42:24 +00:00
Amine Khaldi
c8312b5095 [VERSION] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69981
2015-11-21 09:38:47 +00:00
Amine Khaldi
454f792a6d [URLMON_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69980
2015-11-21 09:37:15 +00:00
Amine Khaldi
1d13ef9d5b [PSDK] Add missing BINDSTRING_ENTERPRISE_ID.
svn path=/trunk/; revision=69979
2015-11-21 09:36:54 +00:00
Amine Khaldi
d6ebdb2b2b [URLMON] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69978
2015-11-21 09:32:38 +00:00
Amine Khaldi
bc46fd6df7 [SXS] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69977
2015-11-21 09:30:09 +00:00
Amine Khaldi
3ab9ab88fb [MCISEQ] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69976
2015-11-21 09:27:41 +00:00
Amine Khaldi
95051cbcb7 [MCICDA] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69975
2015-11-21 09:26:27 +00:00
Amine Khaldi
5961414177 [MCIAVI32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69974
2015-11-21 09:25:00 +00:00
Amine Khaldi
a7803a245b [NTDSAPI_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69973
2015-11-21 09:22:06 +00:00
Amine Khaldi
cc6dbe9490 [NTDSAPI] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69972
2015-11-21 09:21:43 +00:00
Amine Khaldi
1e9f469b55 [DBGHELP] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69971
2015-11-21 09:17:26 +00:00
Amine Khaldi
2a4a7e23eb [INCLUDES/WINE] Update mscvpdb.h. CORE-10536
svn path=/trunk/; revision=69970
2015-11-21 09:10:42 +00:00
Robert Naumann
c7f7d51121 [USRMGR] Update Icons and show imagelists with 32 instead of 8 bit. Patch by Jared Smudde. CORE-10516
svn path=/trunk/; revision=69969
2015-11-20 23:16:50 +00:00
Robert Naumann
0e3e0f5a52 [DEVMGR] Improve toolbar bitmaps (again). By Jared Smudde CORE-10342
svn path=/trunk/; revision=69968
2015-11-20 23:14:38 +00:00
Amine Khaldi
54b93d0fed * Forgot this file.
svn path=/trunk/; revision=69967
2015-11-20 18:41:49 +00:00
Amine Khaldi
b1091c8722 [DWMAPI] Actually we don't seem to be needing this for anything. Zap it.
svn path=/trunk/; revision=69966
2015-11-20 18:40:41 +00:00
Thomas Faber
1b33a3c6aa [USER32]
- Keep an extra reference to user32 around while we're not using imm32
CORE-10540

svn path=/trunk/; revision=69965
2015-11-20 18:04:50 +00:00
Robert Naumann
e8f7f0d65a [SETUPAPI] Improve the icons. Patch by Jared Smudde. CORE-10372
svn path=/trunk/; revision=69964
2015-11-20 17:52:49 +00:00
Robert Naumann
4879c9f84c [HIVESYS] Add missing services description. Patch by Jared Smudde. CORE-10519
svn path=/trunk/; revision=69963
2015-11-20 17:44:28 +00:00
Thomas Faber
1d90274758 [USER32_DYNAMIC]
- Show that user32 keeps an extra reference to itself
CORE-10540

svn path=/trunk/; revision=69962
2015-11-20 17:27:27 +00:00
Amine Khaldi
1ad760737b [PSDK] Update ntdsapi.h. CORE-10536
svn path=/trunk/; revision=69961
2015-11-20 11:17:45 +00:00
Amine Khaldi
add3ddda32 [LOCALSPL] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69960
2015-11-20 11:06:46 +00:00
James Tabor
72b5c7bb73 [Win32SS]
- Patch by Alexandre Julliard : Add workaround for removed SC_TASKLIST system menu item. Word 95 assumes that the item exists.
- Wine sync port.

svn path=/trunk/; revision=69959
2015-11-20 10:49:12 +00:00
Amine Khaldi
a2eabb07dc [MPR_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69958
2015-11-20 10:46:02 +00:00
Amine Khaldi
14f629631e [MPR] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69957
2015-11-20 10:45:42 +00:00
Amine Khaldi
cf938d6d21 [ICCVID] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69956
2015-11-20 10:39:43 +00:00
Amine Khaldi
f9c3a4da2d [DWMAPI] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69955
2015-11-20 10:37:54 +00:00
Amine Khaldi
679dd0e40b [PSDK] Update dwmapi.h. CORE-10536
svn path=/trunk/; revision=69954
2015-11-20 10:31:08 +00:00
Amine Khaldi
6f84bb5c35 [JSCRIPT_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69953
2015-11-20 10:28:29 +00:00
Amine Khaldi
fe1ce8948d [JSCRIPT] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69952
2015-11-20 10:28:06 +00:00
Amine Khaldi
5fdef02fc8 [WSHOM_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69951
2015-11-20 10:21:37 +00:00
Amine Khaldi
a589d61364 [WSHOM.OCX] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69950
2015-11-20 10:21:19 +00:00
Amine Khaldi
2552bcb15f [HNETCFG] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69949
2015-11-20 10:14:10 +00:00
Amine Khaldi
493f7ff217 [XMLLITE_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69948
2015-11-20 10:11:33 +00:00
Amine Khaldi
b9cb1aabf1 [XMLLITE] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69947
2015-11-20 10:10:53 +00:00
Amine Khaldi
13484670a2 [BOOTLIB] Use the correct size in BlockIoEfiGetDeviceInformation(). Spotted by Andrew Cook.
svn path=/trunk/; revision=69946
2015-11-20 09:51:23 +00:00
James Tabor
4d9fdd8b69 [Win32k]
- Fix crash while closing global hooked application. See CORE-10549.

svn path=/trunk/; revision=69945
2015-11-20 08:22:20 +00:00
Sylvain Petreolle
24d2342e66 [IPHLPAPI]
GetAdapters: Don't stop looking for the dns servers if an interface hasn't an entry.
This is not an error condtion, the loopback doesn't have one.

svn path=/trunk/; revision=69944
2015-11-19 21:43:55 +00:00
Robert Naumann
9a12e4b6ec [BROWSEUI] Handle Alt+Up. Patch by Jared Smudde CORE-10528
This commit is dedicated to Samuel Serapion!

svn path=/trunk/; revision=69943
2015-11-19 19:37:15 +00:00
Amine Khaldi
8966187511 [EXPLORER] Fix MSVC build.
svn path=/trunk/; revision=69942
2015-11-19 16:46:51 +00:00
Eric Kohl
2a6b240439 [FASTFAT]
Fail, if we try to overwrite an existing directory.

svn path=/trunk/; revision=69941
2015-11-19 16:36:39 +00:00
Robert Naumann
f472d3c7c8 [EXPLORER] -Add the remaining Dialog Resources, needed for further implementation of taskbar and startmenu settings
-Update some resource IDs to match with Win2k3
-Comment and reorder the resources for better overview
Part 3/3 CORE-10030

svn path=/trunk/; revision=69940
2015-11-19 16:30:43 +00:00
Thomas Faber
84db6add79 [RTL]
- Acquire the PEB lock before reading Peb->ProcessParameters->Environment in RtlQueryEnvironmentVariable_U. Patch by Mark Jansen.
CORE-10381

svn path=/trunk/; revision=69939
2015-11-19 16:03:21 +00:00
Robert Naumann
bd198a5fd5 [EXPLORER] Update some bitmaps by Jared Smudde, that I missed in r69734.
Explorer Resource Revamp Part 2/3

svn path=/trunk/; revision=69938
2015-11-19 15:57:14 +00:00
Hermès Bélusca-Maïto
e9d1c91f46 [USER32]
- Fix MB_GetString: the input parameter is the ID of the button string to be retrieved, ranging from 0 to 10 inclusive (this corresponds to the IDOK ... IDCONTINUE range, minus one).
- Add the missing "Close" button string.

svn path=/trunk/; revision=69937
2015-11-19 13:42:55 +00:00
Hermès Bélusca-Maïto
55e84e3a66 [USER32]
Implement now-documented MB_GetString. See: https://msdn.microsoft.com/en-us/library/windows/desktop/dn910915(v=vs.85).aspx and: http://undoc.airesoft.co.uk/user32.dll/MB_GetString.php for more information.

svn path=/trunk/; revision=69936
2015-11-19 00:30:27 +00:00
Hermès Bélusca-Maïto
232df32115 [USER32]
MessageBoxIndirect fixes by Carlo Bramini:
- Implemented loading of text and caption if they are detected as resource IDs.
- Use direct resource string pointers with LoadStringW and use the returned string length.
- Dramatically improve the implementation of ID and resource string assignments, by using a little look up table. This removes some ugly, difficult to maintain copy-paste code.
- Fix the scaling of logical coordinates by making it aware of rounding, i.e. the size of the controls is now calculated correctly.
CORE-10352 #resolve #comment Thank you for the patch! :D

svn path=/trunk/; revision=69935
2015-11-18 23:46:38 +00:00
Hermès Bélusca-Maïto
906666a59f [USER32]: Update a comment.
svn path=/trunk/; revision=69934
2015-11-18 21:38:45 +00:00
James Tabor
548249e4b0 [User32]
- Patch by Dmitry Timoshkov : Menu item with a "magic" bitmap should not have MFT_BITMAP type set.
- Wine sync port.

svn path=/trunk/; revision=69933
2015-11-18 21:28:57 +00:00
James Tabor
c8e6ca880d [Win32SS]
- Patch by Huw Davies : Restore the dc's colours after sending WM_DRAWITEM.
- Wine sync port.

svn path=/trunk/; revision=69932
2015-11-18 21:25:33 +00:00
Ged Murphy
90c9e4d30c [CHARMAP]
- Start to implement the charmap required for the 0.4 release
- We now have a basic dialog with the grid in place

CORE-10518

svn path=/trunk/; revision=69931
2015-11-18 19:24:08 +00:00
Amine Khaldi
e42f2b76ee [CRYPT32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69930
2015-11-17 21:13:47 +00:00
Amine Khaldi
f976f07653 [CRYPT32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69929
2015-11-17 21:12:00 +00:00
Amine Khaldi
305438d65e [IEFRAME] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69928
2015-11-17 20:19:58 +00:00
Eric Kohl
d40a762095 [NETAPI32]
NetWkstaGetInfo: Retrieve the primary domain name instead of the account domain name as the workgroup/domain name. System CPL shows the proper workgroup name.

svn path=/trunk/; revision=69927
2015-11-17 20:19:36 +00:00
James Tabor
4871d817fe [Win32SS|RTL]
- Patch by Andrew Eikum : Use font default height if GetTextExtentPoint returns empty rectangle.
- Wine port sync.

svn path=/trunk/; revision=69926
2015-11-17 16:51:59 +00:00
Amine Khaldi
a681850f56 [BCRYPT] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69925
2015-11-17 16:16:10 +00:00
Amine Khaldi
cd7bece25c [PSDK] Add missing BCRYPT_HASH_HANDLE.
svn path=/trunk/; revision=69924
2015-11-17 16:15:10 +00:00
Thomas Faber
72d1f8be4f [USER32_DYNAMIC_APITEST]
- Add a test that uses LoadLibrary/FreeLibrary on user32.dll, causing it to re-initialize.
CORE-10540

svn path=/trunk/; revision=69923
2015-11-17 13:45:59 +00:00
Amine Khaldi
dccc8e488c [AVIFIL32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69922
2015-11-17 12:58:22 +00:00
Amine Khaldi
807f828f6e [ATL][ATL80][ATL100] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69921
2015-11-17 12:54:52 +00:00
Amine Khaldi
f2ae834b5f [ADVPACK_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69920
2015-11-17 12:46:31 +00:00
Amine Khaldi
316b248004 [ADVPACK] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69919
2015-11-17 12:45:43 +00:00
Amine Khaldi
bdf39ac961 [PSDK] Update advpub.h. CORE-10536
svn path=/trunk/; revision=69918
2015-11-17 12:31:18 +00:00
Amine Khaldi
47644ac122 [RSAENH_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69917
2015-11-17 12:19:29 +00:00
Amine Khaldi
c0a5568f90 [OLEAUT32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69916
2015-11-17 12:00:00 +00:00
Amine Khaldi
22d351dde0 [OLEAUT32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69915
2015-11-17 11:59:11 +00:00
Amine Khaldi
b459a3a59a [PSDK] Add missing GetFileInformationByHandleEx().
svn path=/trunk/; revision=69914
2015-11-17 11:57:59 +00:00
Amine Khaldi
0e5679dd6d [ADVAPI32_VISTA] Import RegSetKeyValueW() from Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69913
2015-11-17 11:17:12 +00:00
Amine Khaldi
1024999f67 [PSDK] Update oleauto.h. CORE-10536
svn path=/trunk/; revision=69912
2015-11-17 11:07:59 +00:00
Amine Khaldi
2d36c27748 [KERNEL32_VISTA] Import GetFileInformationByHandleEx() from Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69911
2015-11-17 10:40:04 +00:00
Amine Khaldi
69c3747f2a [UNICODE] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69910
2015-11-17 10:35:27 +00:00
Amine Khaldi
0e4e6b581e [OLE32_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69909
2015-11-17 10:31:59 +00:00
Amine Khaldi
40c6100667 [OLE32] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69908
2015-11-17 10:30:40 +00:00
Amine Khaldi
ca6b297569 [RPCRT4_WINETEST] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69907
2015-11-17 10:08:11 +00:00
Amine Khaldi
ada28839e7 [RPCRT4] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69906
2015-11-17 10:08:00 +00:00
Amine Khaldi
526d3c033c [CRT] Import _snscanf() from Wine Staging 1.7.55. [MSVCRT] Export _snscanf(). CORE-10529 CORE-10536
svn path=/trunk/; revision=69905
2015-11-16 22:01:01 +00:00
Amine Khaldi
18d4e90d49 [PSDK] Update midles.h. CORE-10536
svn path=/trunk/; revision=69904
2015-11-16 21:54:44 +00:00
Amine Khaldi
6eff4a799b [ADVAPI32_VISTA] Introduce this module to hold Vista+ exports that we need to provide. CORE-10536
svn path=/trunk/; revision=69903
2015-11-16 21:53:56 +00:00
Amine Khaldi
071b9d445b [WIDL] Sync with Wine Staging 1.7.55. CORE-10536
svn path=/trunk/; revision=69902
2015-11-16 21:45:45 +00:00
Thomas Faber
40beab051e [ACPI]
- Completely duplicate CompatibleIdList before freeing the original in acpi_bus_add. Fixes use after free

svn path=/trunk/; revision=69901
2015-11-16 20:01:04 +00:00
Thomas Faber
87a055b175 [PARPORT]
- Initialize DeviceRelations->Count in FdoQueryBusRelations
- Don't fake success for unsupported PNP minor functions, it makes the kernel very unhappy
Powered by Special Pool

svn path=/trunk/; revision=69900
2015-11-16 19:56:00 +00:00
Thomas Faber
ad4ae38293 [ACPI]
- Addendum to r69867: free device info pointer at the end of acpi_bus_add to avoid use after free.
Powered by Special Pool

svn path=/trunk/; revision=69899
2015-11-16 14:20:25 +00:00
Thomas Faber
352bcdb0e1 [FASTFAT]
- Correctly track the buffer length in VfatGetAllInformation. Fixes pool corruption when running ntdll_winetest:file

svn path=/trunk/; revision=69898
2015-11-16 13:58:39 +00:00
Thomas Faber
187db82af7 [KMTESTS:IO]
- Add a test for FileAllInformation

svn path=/trunk/; revision=69897
2015-11-16 13:53:03 +00:00
Thomas Faber
5a28e79ccc [CDFS]
- Don't access file name buffer if its Length is zero in CdfsMakeAbsoluteFilename
CORE-10459

svn path=/trunk/; revision=69896
2015-11-16 11:01:36 +00:00
Thomas Faber
043845e1cd [NTDLL_APITEST]
- Add a test for RtlImageRvaToVa
CORE-10523

svn path=/trunk/; revision=69895
2015-11-16 09:48:39 +00:00
Eric Kohl
273416bcd3 [SYSSETUP]
Add a hack to set the Primary Domain Name (Workgroup Name).
#CORE-10459 #comment Does this fix the bug?

svn path=/trunk/; revision=69894
2015-11-15 20:54:12 +00:00
Hermès Bélusca-Maïto
428cebf114 [CSRSRV][CONSRV]: Remove the DPRINTs introduced for solving CORE-10510 and CORE-9742.
svn path=/trunk/; revision=69893
2015-11-15 15:18:59 +00:00
Eric Kohl
8d8012fbfb [FASTFAT]
Ooops! That should not have been committed!

svn path=/trunk/; revision=69892
2015-11-14 21:10:02 +00:00
Eric Kohl
ad4b705148 [FASTFAT]
VfatGetAllInformation: Return as much information as possible, but do not fail if the name string does not fit into the buffer.

svn path=/trunk/; revision=69891
2015-11-14 20:41:59 +00:00
Hermès Bélusca-Maïto
1ec8189e87 [CLIPBRD]
- Change SetDIBitsToDeviceFromClipboard to correctly use the requested format instead of always using CF_DIBV5
- Enable/Disable the menu point "Save as..." dynamically
- Remove unneeded import libraries
- Add WS_EX_ACCEPTFILES window style and handle WM_DROPFILES
- Add some defines and structures for handling clipboard files (work in progress)
- Add Open and Save dialogs
Patch by Ricardo Hanke. CORE-10520

svn path=/trunk/; revision=69890
2015-11-14 16:45:41 +00:00
Hermès Bélusca-Maïto
9bccd93655 [CONSRV]: Use NtDuplicateObject with DUPLICATE_CLOSE_SOURCE to close a duplicated handle in a target process (instead of erroneously call NtClose on it). Should fix CORE-10510 and CORE-9742. Thanks to Thomas Faber for having pointed me to the source of the problem.
svn path=/trunk/; revision=69889
2015-11-14 16:20:00 +00:00
Amine Khaldi
9086f2a059 [INCLUDE/REACTOS] Move the debug macros from mmebuddy.h to mmebuddy_debug.h. [SNDBLST][MMENT4][MMEBUDDY] Use mmebuddy_debug.h where needed. [WDMAUD.DRV] Enable PCH again and use mmebuddy_debug.h where needed.
svn path=/trunk/; revision=69888
2015-11-14 16:19:07 +00:00
Amine Khaldi
94a73db543 [KERNEL32] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69887
2015-11-14 14:57:11 +00:00
Amine Khaldi
a4f40a675a [WDMAUD.DRV] You don't deserve PCH.
svn path=/trunk/; revision=69886
2015-11-14 14:52:15 +00:00
Sylvain Petreolle
7031914e90 [WDMAUD]
Define NDEBUG before the includes, otherwise its a no-op.
CORE-7716

svn path=/trunk/; revision=69885
2015-11-14 14:00:29 +00:00
Sylvain Petreolle
6c4eee79d5 [UMPNPMGR]
Improve traces.

svn path=/trunk/; revision=69884
2015-11-14 13:28:03 +00:00
Thomas Faber
4c091ac8d1 [NTOS:KD]
- Actually write back the response to the user buffer in KdpPrompt

svn path=/trunk/; revision=69883
2015-11-14 08:55:46 +00:00
Hermès Bélusca-Maïto
4a866698e3 Fix cast type.
svn path=/trunk/; revision=69882
2015-11-13 20:01:53 +00:00
Hermès Bélusca-Maïto
8f3b6120b2 [CSRSRV][CONSRV][USERSRV]: Display complementary redundant information to try to understand problems in CORE-9742 and CORE-10510 (any discrepancy in the redundant info should be the sign of some corruption).
svn path=/trunk/; revision=69881
2015-11-13 19:56:22 +00:00
Eric Kohl
014a85563d [FASTFAT]
Deny access when trying to overwrite a read-only file.

svn path=/trunk/; revision=69880
2015-11-13 19:03:34 +00:00
Hermès Bélusca-Maïto
5b9077f992 [CONSRV]
Add diagnostic dprints to try to understand the problems described in CORE-9742 and CORE-10510

svn path=/trunk/; revision=69879
2015-11-12 20:24:18 +00:00
Thomas Faber
57dd4b34c7 [KMTESTS:IO]
- Add a test trying assorted path variations to open files
CORE-10483

svn path=/trunk/; revision=69878
2015-11-12 13:13:54 +00:00
Thomas Faber
8160fdc383 [KMTESTS:IO]
- Add a test verifying that opening a file using different parent directories still yields handles to the same file
CORE-10483

svn path=/trunk/; revision=69877
2015-11-12 12:55:26 +00:00
Eric Kohl
607f4f62b8 [NTMARTA]
AccpGetTrusteeSid: Ignore pMultipleTrustee and MultipleTrusteeOperation.

svn path=/trunk/; revision=69876
2015-11-12 12:30:12 +00:00
Giannis Adamopoulos
0b81e76316 [SHELL32]
- CDefView: When we have to flicker don't use the worst possible color to erase the window but the background color of the list view. At least now some flickering will go unnoticed.

svn path=/trunk/; revision=69873
2015-11-10 22:57:24 +00:00
Thomas Faber
c7278f382c [ACPI]
- Remove the HPET hack, which is finally no longer needed (presumably thanks to the ACPI_ACQUIRE_GLOBAL_LOCK/ACPI_RELEASE_GLOBAL_LOCK fixes).
CORE-10509

svn path=/trunk/; revision=69872
2015-11-10 19:14:03 +00:00
Amine Khaldi
9f8c4e2628 [WIN32SS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69871
2015-11-10 17:41:55 +00:00
Thomas Faber
04d16609e0 [ACPICA]
- Update to version 20150930
CORE-10509 #resolve

svn path=/trunk/; revision=69870
2015-11-10 16:56:46 +00:00
Robert Naumann
eb779cd089 [SHELL32] -Use a 32bit masked icon for "Open With" Dialog items
-Fix icon ID for the "Open With" Dialog 
-Patches by Jared Smudde CORE-10500 CORE-10502

svn path=/trunk/; revision=69869
2015-11-10 16:31:37 +00:00
Thomas Faber
1ac3551821 [ACPICA]
- Update to version 20150410
CORE-10509

svn path=/trunk/; revision=69868
2015-11-10 15:20:17 +00:00
Thomas Faber
480cf4df92 [ACPI]
- Fix memory leak in acpi_bus_add. CID 731690

svn path=/trunk/; revision=69867
2015-11-10 14:15:52 +00:00
Thomas Faber
95a246ddd5 [ACPICA]
- Update to version 20141107
- Get rid of the ROS diffs in actypes.h by making use of the new ACPI_USE_SYSTEM_INTTYPES define

svn path=/trunk/; revision=69866
2015-11-10 13:51:38 +00:00
Amine Khaldi
8283006e8b [HAL] Fix HalpInitializeTsc prototype.
svn path=/trunk/; revision=69865
2015-11-10 13:19:40 +00:00
Amine Khaldi
0e92f5f736 [MESA] Addendum to r60576.
svn path=/trunk/; revision=69864
2015-11-10 13:11:09 +00:00
Thomas Faber
88b3e30fe5 [ACPICA]
- Fix GCC versions of ACPI_ACQUIRE_GLOBAL_LOCK/ACPI_RELEASE_GLOBAL_LOCK. It now generates the same code as the original
CORE-10509

svn path=/trunk/; revision=69863
2015-11-10 12:43:58 +00:00
Amine Khaldi
de1c000c42 [FREELDR] FrLdrBugCheckWithMessage() is varags, it doesn't make sense to mark it stdcall.
svn path=/trunk/; revision=69862
2015-11-10 12:14:56 +00:00
Amine Khaldi
c89c575aff [USER32] Improve the check for item in MENU_FindItem().
svn path=/trunk/; revision=69861
2015-11-10 12:11:10 +00:00
Thomas Faber
e9415580c5 [ACPICA]
- Mark ReactOS modifications as such
CORE-10509

svn path=/trunk/; revision=69860
2015-11-10 11:12:54 +00:00
Hermès Bélusca-Maïto
c603449bec [NETWORK]: s/laod/load/
svn path=/trunk/; revision=69859
2015-11-09 18:01:54 +00:00
Thomas Faber
94b3bf2df8 [WS2_32_NEW]
- Remove unnecessary dnsapi dependency
- Fix some comments and a DPRINT
Brought to you by Peter Hater.
CORE-10440

svn path=/trunk/; revision=69858
2015-11-09 17:46:54 +00:00
Thomas Faber
d410f53b84 [WS2_32_NEW]
- Enable NDEBUG
CORE-10440

svn path=/trunk/; revision=69857
2015-11-09 17:19:33 +00:00
Thomas Faber
3cb72d305d [MSAFD]
- SO_LINGER is not supported for datagram sockets. Patch by Peter Hater.
CORE-10440

svn path=/trunk/; revision=69856
2015-11-09 17:00:26 +00:00
Robert Naumann
6abffdf0ac [SHELL32] Add a missing icon to the folder options "View" tab. the remaining missing icons of the other tabs are dynamical, they have to be implemented.
svn path=/trunk/; revision=69855
2015-11-08 18:03:33 +00:00
Hermès Bélusca-Maïto
d58cfffc62 [SHELL32]: Update French translation.
svn path=/trunk/; revision=69854
2015-11-08 16:31:42 +00:00
Daniel Reimer
70452865a7 [NTVDM]
Update German translation

svn path=/trunk/; revision=69853
2015-11-08 16:27:39 +00:00
Daniel Reimer
af93ca92aa [BROWSEUI]
Update German translation

svn path=/trunk/; revision=69852
2015-11-08 16:19:56 +00:00
Robert Naumann
84b0040ce1 [BROWSEUI] Pass the Resource string directly instead of using an additional buffer. Remove the NULL characters from the strings. Fix return value handling of LoadStringW()
svn path=/trunk/; revision=69851
2015-11-08 15:44:18 +00:00
Hermès Bélusca-Maïto
4888f694bd [BROWSEUI]
- Apply the same fix as r69849, but for the Forward tooltip. Also it would be nice to use ATL strings to retrieve the resources & not hardcoding an extra NULL character inside the resource string.
- Add a missing string resource in romanian RC file.

svn path=/trunk/; revision=69850
2015-11-08 14:41:26 +00:00
Robert Naumann
081251fb5b [BROWSEUI] Use a resource string instead of a hardcoded one for the "Back" button. Patch by Ștefan Fulea with Spanish translation by Ismael Ferreras Morezuelas. CORE-10303
Changes by me:
-Add the same for Russian
-Add German translation

svn path=/trunk/; revision=69849
2015-11-08 14:30:25 +00:00
Robert Naumann
9fb90cbe06 [SHELL32] improve file delete dialogs. Patch by Jared Smudde. CORE-10398
*fix some strings
*change the used icons to more aappropriate

svn path=/trunk/; revision=69848
2015-11-08 13:06:39 +00:00
Robert Naumann
c1ed9da21d [SHELL32] Big Icon Update by Henry Tang Ih and Jared Smudde
-Fix blurry icons.
-Make the icons sharper and clearer in all size.
-Modified the design of some icons.
-Brand new Fax icons!
-Remove unneeded icon sizes

Things I have changed from the original patch:
-Fix 2 copypasta and 1 double definition errors
-Changed the icon back to the floppy one in folders.cpp and drvdefext.cpp because this would have resulted an a regression for floppy drives

svn path=/trunk/; revision=69847
2015-11-08 12:08:59 +00:00
Thomas Faber
b90b19966b [WIN32K:NTUSER]
- Don't leak the captured string in NtUserThunkedMenuItemInfo
CORE-10493

svn path=/trunk/; revision=69846
2015-11-08 07:57:14 +00:00
Hermès Bélusca-Maïto
6d16a3e430 [NTVDM]: Fix a bug I've introduced in r69838.
svn path=/trunk/; revision=69845
2015-11-08 02:42:17 +00:00
Hermès Bélusca-Maïto
02b0205229 [NTVDM]: For now, use the shared Text/GraphicsFramebuffer variables for console+video/svga. This ambiguity will be fixed later.
svn path=/trunk/; revision=69844
2015-11-08 02:27:41 +00:00
Hermès Bélusca-Maïto
45a54c5b12 [NTVDM]: Implement mouse capture. There are still "bugs" remaining, namely, if somebody moves the NTVDM console window, or, if resolution changes, the mouse clip rectangle is not recomputed. This is left as an exercice for the programmer (or, if I don't find patches in Jira soon, I or somebody else will fix it).
svn path=/trunk/; revision=69843
2015-11-07 23:40:26 +00:00
James Tabor
29d481611e [Win32k]
- Fix arrows on owner drawn menu bars. See CORE-6320 and CORE-9386.

svn path=/trunk/; revision=69842
2015-11-07 21:41:42 +00:00
Eric Kohl
3a42dbb92a [USERENV]
- GetAllUsersProfileDirectoryW: Fail if lpcchSize is NULL.
- GetDefaultUserProfileDirectoryW: Fail if lpcchSize is NULL.
- GetUserProfileDirectoryW: Fail if hToken is NULL.

svn path=/trunk/; revision=69841
2015-11-07 21:06:07 +00:00
Hermès Bélusca-Maïto
1eff622a45 [NTVDM]: Natively use UNICODE strings for the disk mounting system.
svn path=/trunk/; revision=69840
2015-11-07 20:19:32 +00:00
Hermès Bélusca-Maïto
c5bfef5f06 Forgot this file.
svn path=/trunk/; revision=69839
2015-11-07 20:07:51 +00:00
Hermès Bélusca-Maïto
394328e27d [NTVDM]
Start factoring out all code related to console-specific stuff (while leaving everything else in place). This is WIP (and the corresponding .c files are included where they are needed instead of being compiled, will be fixed later).

svn path=/trunk/; revision=69838
2015-11-07 20:07:12 +00:00
Eric Kohl
21f40234d7 [USERENV]
- GetProfilesDirectoryA: In case of success, return the length of the profiles directory.
- GetProfilesDirectoryW: Set ERROR_INSUFFICIENT_BUFFER, if lpProfilesDir is NULL.

svn path=/trunk/; revision=69837
2015-11-07 19:47:24 +00:00
Amine Khaldi
d7bf1738d4 [CMAKE] Properly pass arguments to the host tools phase. Fixes MSVC x64 build.
svn path=/trunk/; revision=69836
2015-11-07 17:35:27 +00:00
Amine Khaldi
91ac799605 [CMAKE] Pass the architecture to host tools configure phase.
svn path=/trunk/; revision=69835
2015-11-07 17:18:19 +00:00
Eric Kohl
3b67603f55 [USERENV]
CreateEnvironmentBlock: Set or overwrite the SystemRoot, SystemDrive and USERPROFILE environment variables of the new environment block.

svn path=/trunk/; revision=69834
2015-11-07 16:40:33 +00:00
Timo Kreuzer
fbf5850ab6 [INTL]
Remove a \ that accidentally slipped into the string. Fixes a GCC warning.

svn path=/trunk/; revision=69833
2015-11-07 14:03:21 +00:00
Thomas Faber
099aa46f15 [WIN32K:NTUSER]
- Release extra reference on accelerator objects after creation. Fixes user handle leak.
CORE-10487 #resolve

svn path=/trunk/; revision=69832
2015-11-07 13:26:40 +00:00
Amine Khaldi
97d9d2281b [RTL] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69831
2015-11-07 12:22:52 +00:00
Sylvain Petreolle
9eec8dc5b9 [COM_APITEST]
Use explicit W calls.
All the code is unicode-based.

svn path=/trunk/; revision=69830
2015-11-07 11:59:23 +00:00
Thomas Faber
3856465848 [WS2_32]
- Fill the protocol info buffer in WSAEnumProtocolsA/W. Should fix some ws2_32_winetest:sock crashes and flakiness.

svn path=/trunk/; revision=69829
2015-11-07 11:54:17 +00:00
Thomas Faber
b739050085 [MSAFD]
- Add support for SO_PROTOCOL_INFOW. Patch by Peter Hater.
CORE-10440

svn path=/trunk/; revision=69828
2015-11-07 10:48:38 +00:00
Sylvain Petreolle
73b829f989 [GDIHV]
Don't define UNICODE in source.

svn path=/trunk/; revision=69827
2015-11-07 10:41:56 +00:00
Thomas Faber
5759f02c73 [WS2_32]
- Handle SO_PROTOCOL_INFOA in getsockopt based on ws2_32_new.
CORE-10440

svn path=/trunk/; revision=69826
2015-11-07 09:38:13 +00:00
Amine Khaldi
3d52f24d8b [FREELDR] We don't need the hotpatch flag in MSVC builds for this module. CORE-10477
svn path=/trunk/; revision=69825
2015-11-07 09:03:26 +00:00
Thomas Faber
bad73efd4e [WS2_32_NEW]
- Treat SO_OPENTYPE's value as a DWORD. Based on a patch by Peter Hater.
CORE-10440

svn path=/trunk/; revision=69824
2015-11-07 08:49:15 +00:00
Thomas Faber
facf3ecba9 [WS2_32_NEW]
- Add missing SEH in getsockopt/setsockopt
CORE-10440

svn path=/trunk/; revision=69823
2015-11-07 08:30:00 +00:00
Hermès Bélusca-Maïto
e67e24eeca [NTVDM]: Improve the console resize algorithm.
svn path=/trunk/; revision=69822
2015-11-06 23:59:42 +00:00
Amine Khaldi
e1876fb513 [WIN32K] Do not truncate the result of the color translation to 8 bits in DIB_24BPP_TransparentBlt. Fixes icon drawing at 24 bpp. Brought to you by Vort. CORE-10469
svn path=/trunk/; revision=69821
2015-11-06 22:07:49 +00:00
Timo Kreuzer
4368fee2af [INTL]
Split a too long text resource into 2 in Italian resource. Fixes an MSVC warning / truncated text. Translators, please check https://build.reactos.org/builders/Build%20MSVC_x86/builds/3402/steps/compile_2/logs/warnings%20%28179%29 for warning RC4206 and help fixing these, thanks.

svn path=/trunk/; revision=69820
2015-11-06 22:00:28 +00:00
James Tabor
a13d6bdc93 [NtGdi]
- Add function for NtUser.

svn path=/trunk/; revision=69819
2015-11-06 13:34:58 +00:00
James Tabor
9022021b6d [Win32k]
- Fix use after free crash in send messages timeout tests. See CORE-10482
- Dedicated to Thomas Faber.

svn path=/trunk/; revision=69818
2015-11-06 09:37:30 +00:00
Amine Khaldi
d1029d63a3 [FONTS] Marlett font improvements by dsp8195. CORE-9115
svn path=/trunk/; revision=69817
2015-11-05 20:38:34 +00:00
Amine Khaldi
f70dc4055a [WIN32SS::DRIVERS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69816
2015-11-05 18:07:00 +00:00
Thomas Faber
0f4f3d7cd8 [ATL]
- Implement more CComBSTR methods. Patch by Mark Jansen.
CORE-10478 #resolve

svn path=/trunk/; revision=69815
2015-11-05 10:49:52 +00:00
Sylvain Petreolle
01e9e3f8a5 [ARP]
Sssh, secret ansi unicode plan is secret.

svn path=/trunk/; revision=69814
2015-11-04 21:22:37 +00:00
Sylvain Petreolle
7650763c97 [PARTINFO][ARP]
Arch, manual define of UNICODE/_UNICODE is a call for trouble.

svn path=/trunk/; revision=69813
2015-11-04 21:19:45 +00:00
Amine Khaldi
a25be55cc2 [CMAKE] Properly handle hotpatchable flags requirements in MSVC builds. CORE-10477
svn path=/trunk/; revision=69812
2015-11-04 18:06:16 +00:00
Amine Khaldi
9d73134228 [HAL] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69811
2015-11-04 13:30:52 +00:00
James Tabor
fe155d6645 [Win32SS]
- Quick fix for double free unlink crash. See CORE-9210.

svn path=/trunk/; revision=69810
2015-11-04 08:14:53 +00:00
Amine Khaldi
53c4578b49 [WS2_32_NEW] Add missing iptypes.h inclusion.
svn path=/trunk/; revision=69808
2015-11-03 22:13:38 +00:00
Amine Khaldi
dea5974e8c [WS2_32_NEW] Properly handle szLocalName. Properly set Hostent on failure. By Peter Hater. CORE-10440
svn path=/trunk/; revision=69807
2015-11-03 22:03:02 +00:00
Amine Khaldi
2ae0399eb9 [WS2_32_NEW] Do not initialize ProtocolId to 0. By Peter Hater. CORE-10440
svn path=/trunk/; revision=69806
2015-11-03 21:57:08 +00:00
Amine Khaldi
035dbc5aa9 [WS2_32_NEW] Fix ProtocolInfo allocation size. By Peter Hater. CORE-10440
svn path=/trunk/; revision=69805
2015-11-03 21:54:00 +00:00
Amine Khaldi
0d3b942a2f [WS2_32_NEW] Return SOCKET_ERROR instead of ErrorCode. By Peter Hater. CORE-10440
svn path=/trunk/; revision=69803
2015-11-03 21:50:20 +00:00
Amine Khaldi
282156a126 [WS2_32] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69801
2015-11-03 21:16:02 +00:00
Amine Khaldi
48a82a72f4 [WS2_32_NEW] Properly set the sin_zero field. Revealed by ws2_32_apitest:addrinfo, fixed by Peter Hater. CORE-10440
svn path=/trunk/; revision=69800
2015-11-03 21:14:54 +00:00
Amine Khaldi
2b6ae1241e [USER32_APITEST] Fix a typo.
svn path=/trunk/; revision=69799
2015-11-03 21:14:15 +00:00
Thomas Faber
cbe300a8c2 [WIN32K]
- Free sent messages to the right lookaside list
CORE-9210

svn path=/trunk/; revision=69798
2015-11-03 21:04:19 +00:00
Thomas Faber
7744b35234 [USER32_APITEST]
- Add a test for sending recursive inter-thread messages
CORE-9210

svn path=/trunk/; revision=69797
2015-11-03 20:40:19 +00:00
James Tabor
8752bfea64 - Missing from patch 11. This should fix it.
svn path=/trunk/; revision=69796
2015-11-03 19:22:00 +00:00
Robert Naumann
681c5d8ad7 [SHORTCUTS] -show the proper icon for the explorer. spotted by Jared Smudde CORE-9240
svn path=/trunk/; revision=69795
2015-11-03 17:47:25 +00:00
Sylvain Petreolle
180bf39ed4 [USBUHCI]
Too much DPRINT1 is too much.
No code changes.

svn path=/trunk/; revision=69794
2015-11-03 15:45:50 +00:00
James Tabor
598aff78e9 [Win32SS]
- Simplify and restructure thread send messages, use look aside list, message signals and global message link for sorting trouble messages.
- See CORE-9210 for more information. Related to and fixed CORE-9718 and CORE-9975. Could have fixed CORE-9695.

svn path=/trunk/; revision=69793
2015-11-03 15:18:51 +00:00
Thomas Faber
8584094adc [BROWSEUI]
- IEnumString::Next's pceltFetched parameter is not optional, so provide it. Fixes exception when using Emerge Desktop

svn path=/trunk/; revision=69792
2015-11-03 12:31:09 +00:00
Sylvain Petreolle
dc2365a661 [IPHLPAPI]
Fix GetAdaptersAdresses operational status.
ReactOS is now seen online.

CORE-9178 #resolve

Please retest apps with connectivity problems.


svn path=/trunk/; revision=69791
2015-11-02 23:56:46 +00:00
Robert Naumann
3f041d1de6 [APPLICATIONS] -Improve some icons. By Henry Tang Ih. CORE-10408
svn path=/trunk/; revision=69790
2015-11-02 22:11:51 +00:00
Robert Naumann
d37e0ee6e4 [NTOBJSHEX] - Improve the icons. By Jared Smudde. CORE-10466
svn path=/trunk/; revision=69789
2015-11-02 22:05:44 +00:00
Amine Khaldi
f5f46b73f9 [WS2_32_NEW] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69788
2015-11-02 18:37:49 +00:00
Amine Khaldi
9872b3a83c [MSAFD] Handle SO_SNDTIMEO and SO_RCVTIMEO in WSPGetSockOpt(). By Peter Hater. CORE-10440
svn path=/trunk/; revision=69787
2015-11-02 18:12:23 +00:00
Amine Khaldi
7355cbb0af [MSAFD] Return SOCKET_ERROR instead of 0 in WSPAddressToString, WSPDuplicateSocket and WSPStringToAddress. By Peter Hater. CORE-10440
svn path=/trunk/; revision=69786
2015-11-02 17:55:26 +00:00
Amine Khaldi
1d0a387d99 [MSAFD] Add more exports. By Peter Hater. CORE-10440
svn path=/trunk/; revision=69785
2015-11-02 17:39:35 +00:00
Amine Khaldi
df7fdc87d3 [MSAFD] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69784
2015-11-02 17:35:58 +00:00
Amine Khaldi
141b1d1f5a [MSAFD] Remove fixed CatalogEntryId. By Peter Hater. CORE-10440
svn path=/trunk/; revision=69783
2015-11-02 17:32:00 +00:00
Timo Kreuzer
9eddb5e906 [WIN32K]
Only scale characters with the world-to-device transform, when the graphics mode is GM_ADVANCED. Fixes Petzold's WhatSize testapp.
CORE-7154 #resolve

svn path=/trunk/; revision=69782
2015-11-01 23:40:31 +00:00
Timo Kreuzer
ee7e189a4e [FORMATTING]
Remove trailing whitespaces. No code change.

svn path=/trunk/; revision=69781
2015-11-01 20:03:31 +00:00
Amine Khaldi
3a7bc4c929 [PSDK] Do not compile d3d10.idl as part of d3d_idl_headers.
svn path=/trunk/; revision=69780
2015-11-01 17:51:24 +00:00
Amine Khaldi
8948e65abe [DXGI] This doesn't belong to trunk. [WBEMPROX] Disable the code that depends on dxgi.dll.
svn path=/trunk/; revision=69779
2015-11-01 17:41:42 +00:00
Hermès Bélusca-Maïto
2ce93d3712 [CLIPBRD]: Comment out the #pragma once in the precompiled header, because it makes build fail on some GCC setup for some people. I don't understand why this problem happens...
svn path=/trunk/; revision=69778
2015-11-01 16:40:18 +00:00
Hermès Bélusca-Maïto
2ea3151ae9 [CLIP]
- Add source file header.
- Fix english resource.

svn path=/trunk/; revision=69777
2015-11-01 16:31:51 +00:00
Hermès Bélusca-Maïto
dee57c2bf4 [CLIPBRD]
Add a clipboard viewer utility to ReactOS, courtesy Ricardo Hanke. Icon by Jared Smudde.
CORE-10353

svn path=/trunk/; revision=69776
2015-11-01 16:25:19 +00:00
Hermès Bélusca-Maïto
f1176e4c81 [CLIP]
Adds a simple CLIP utility, as found on Windows, to ReactOS.
Like the Windows version, it can just redirect the output of another console program or a file to the clipboard.
By Ricardo Hanke, with minor corrections by me.
CORE-10411

svn path=/trunk/; revision=69775
2015-11-01 14:47:12 +00:00
Timo Kreuzer
1bd7d0867f [WIN32K]
Fix a nasty copypasta bug: When the DC brush was selected into a DC, it was painted with the pen color instead of the brush color. Should fix Snappy Driver installer and potentially a lot of other graphical issues.
CORE-9424 #resolve

svn path=/trunk/; revision=69774
2015-11-01 13:46:25 +00:00
Amine Khaldi
6a1044e4bc [TRANSLATIONS] Simplified Chinese translation update by Henry Tang Ih. CORE-10462
svn path=/trunk/; revision=69773
2015-11-01 13:12:36 +00:00
Pierre Schweitzer
2a8185fa78 [VFATLIB]
Enable FAT volumes checking.
Dedicated to Thomas

svn path=/trunk/; revision=69772
2015-11-01 13:04:23 +00:00
Pierre Schweitzer
76aa33bda1 [VFATLIB]
Set SYNCHRONIZE where missing

svn path=/trunk/; revision=69771
2015-11-01 13:03:49 +00:00
Amine Khaldi
665981088f [TRANSLATIONS] Malay translation by Henry Tang Ih. CORE-10414
svn path=/trunk/; revision=69770
2015-11-01 12:23:07 +00:00
Amine Khaldi
6737db058e [USER32] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69769
2015-11-01 09:41:29 +00:00
Thomas Faber
668e97e38d [FASTFAT]
- Return the appropriate status code when encountering file system corruption
- When encountering corruption, print a message by default instead of breaking into the debugger

svn path=/trunk/; revision=69768
2015-11-01 08:55:47 +00:00
Hermès Bélusca-Maïto
feadd48d1c [NTVDM]: Correctly compute the command-line length to be communicated to COMMAND.COM for standalone mode.
svn path=/trunk/; revision=69767
2015-10-31 22:59:08 +00:00
Hermès Bélusca-Maïto
99356ff25a [MSCONFIG_NEW]: Remove trailing whitespace.
svn path=/trunk/; revision=69766
2015-10-31 22:32:14 +00:00
Daniel Reimer
3ad6bd48a7 [CHARMAP] text is clipped in russian translation by Vort
CORE-10374 #resolve #comment Committed ^^

svn path=/trunk/; revision=69765
2015-10-31 22:31:34 +00:00
Daniel Reimer
9f98a14b88 [TRANSLATION] Updating Turkish Translation by Erdem Ersoy
CORE-10422 #resolve #comment Committed, thx for the help ^^

svn path=/trunk/; revision=69764
2015-10-31 22:28:45 +00:00
Daniel Reimer
2eb212c5b3 [TRANSLATION] Romanian resources maintenance by Ștefan Fulea
CORE-10443 #resolve #comment Committed, thx for the help ^^

svn path=/trunk/; revision=69763
2015-10-31 22:14:17 +00:00
Daniel Reimer
bd9508dcab [RAPPS]
Grammar fix for Christmasbound description by John Smith
CORE-10210 #resolve #comment Committed ^^

svn path=/trunk/; revision=69762
2015-10-31 22:00:59 +00:00
Hermès Bélusca-Maïto
6482e8b6ed [MSCONFIG_NEW]
- Reimplement the SYSTEM.INI/WIN.INI tabs (they should be seen as 2 different instances of the same window; this would be cleaner to do in C++) with all the expected functionality working.
- Add TreeView helpers for moving/deleting branches.
- Add TreeView helpers for 3-state checkboxes, with support for Windows 2k3 and Vista+ with and without manifest, depending on the comctl32.dll version used by msconfig at runtime. In particular, take advantage of the TVS_EX_PARTIALCHECKBOXES extended style introduced on Windows Vista+.
- Just initialize once the uxtheme function pointers.
- Create the msconfig dialog box hidden and center it on screen before showing it (removes the flickering caused by the quick move).
- Use the correct 16x16 icon for the dialog title icon, adapted from a patch by Jared Smudde with suggestions by Ismael Ferreras Morezuelas.
CORE-9333

svn path=/trunk/; revision=69761
2015-10-31 21:00:32 +00:00
Timo Kreuzer
dcd1e307d8 [WIN32K]
Check the size of RLE bitmaps, while decompressing. Fixes possible buffer overrun.
Patch by Kamil Hornicek
CORE-8735 #resolve

svn path=/trunk/; revision=69760
2015-10-31 20:37:20 +00:00
Timo Kreuzer
36d8294a79 [WIN32K]
Restore saved DCs, when changing the DC owner. Otherwise there could be saved DCs with references to process owned resources, causing GDI object leaks.
Fixes assertion when closing iWisoft Video Converter
Also don't copy lSaveDepth and hdcSafe in DC_vCopyState, those must be handled manually.
CORE-10435 #resolve

svn path=/trunk/; revision=69759
2015-10-31 19:37:36 +00:00
James Tabor
d463d96d4b [User32_wineTest]
- Enable skipped menu tests.

svn path=/trunk/; revision=69758
2015-10-31 18:40:44 +00:00
Amine Khaldi
e7dcdc879e [PSDK] Comment commctrl.h preprocessor conditions in an attempt to make this maze readable.
svn path=/trunk/; revision=69757
2015-10-31 18:37:34 +00:00
Hermès Bélusca-Maïto
8418168834 Fix build.
svn path=/trunk/; revision=69756
2015-10-31 17:28:37 +00:00
Hermès Bélusca-Maïto
3e27c724d1 [PSDK]
Fix COMCTL32_VERSION definition.

[COMCTL32]
The comctl32 we currently have in trunk cannot pretend to be version 6+ (it was currently reporting version 6.82, aka something for Windows 20? ) Fix it and make it report 5.82 instead.
CORE-10457

svn path=/trunk/; revision=69755
2015-10-31 17:25:32 +00:00
Timo Kreuzer
5de8b3d15c [GDI32_APITEST]
Formatting: tabs -> spaces

svn path=/trunk/; revision=69754
2015-10-31 15:24:09 +00:00
Eric Kohl
46bc3c6068 [NTOSKRNL]
DPRINT1 --> DPRINT

svn path=/trunk/; revision=69753
2015-10-31 15:16:57 +00:00
Timo Kreuzer
96afb9e14c [GDI32_APITEST]
Fix tests for GetObject

svn path=/trunk/; revision=69752
2015-10-31 14:59:08 +00:00
Thomas Faber
6f3e550b9c [SHDOCVW]
- Add missing parameter to RunInstallUninstallStubs2
CORE-5189

svn path=/trunk/; revision=69751
2015-10-31 14:15:09 +00:00
Pierre Schweitzer
8bd572f390 [NTOSKNRL]
Comment out for now in MCB the assert hit when attempting to write on an extX volume.

Aleksey, could you have a look at it?

CORE-10407 #comment Can you retry with r69750?

svn path=/trunk/; revision=69750
2015-10-31 13:50:23 +00:00
Eric Kohl
c9d15891f5 [NTOSKRNL]
Dereference the primary access token in SeDeassignPrimaryToken.

svn path=/trunk/; revision=69749
2015-10-31 13:32:12 +00:00
Timo Kreuzer
aa397ea641 [WIN32K]
Fix parameter handling in NtGdiDoPalette
CORE-9435 #resolve

svn path=/trunk/; revision=69748
2015-10-31 12:52:01 +00:00
Timo Kreuzer
966a646fb7 [NTOSKRNL]
Fix parameter checks in NtQuerySection. Fixes a number of kernel32:virtual winetests.

svn path=/trunk/; revision=69747
2015-10-31 12:43:09 +00:00
Amine Khaldi
f89d6ba125 [EXT2FS] Do not define _X86_ unconditionally. Spotted by Sergey Chernov. CORE-10448
svn path=/trunk/; revision=69746
2015-10-31 10:33:28 +00:00
Hermès Bélusca-Maïto
d737ee296e [MSCONFIG_NEW]: Add a search/find dialog (needed for the SYSTEM.INI/WIN.INI tab); will be implemented later on.
svn path=/trunk/; revision=69745
2015-10-30 20:48:41 +00:00
Amine Khaldi
8e4682890f [NETWORKING] Add some needed registry entries on tcpip install. By Peter Hater. CORE-10440
svn path=/trunk/; revision=69744
2015-10-30 19:50:00 +00:00
Amine Khaldi
d4b11bc206 [NETWORKING] Add protocol and network files and add alias for mail protocol. Brought to you by Peter Hater. CORE-10440
svn path=/trunk/; revision=69743
2015-10-30 19:46:11 +00:00
Pierre Schweitzer
aeeb7963bc [NTOSKRNL]
Improve the oplocks stubs:
- Always return success when FsRtlCheckOplock() is called: we deny oplock creation at FsRtlOplockFsctrl(), so the oplocks can only be fine.
- Always return TRUE when FsRtlOplockIsFastIoPossible() is called: we deny oplock creation at FsRtlOplockFsctrl(), so no oplock can prevent fastio from happening.

This enables (for real :-)) write support in extX FSD. Not 100% perfect though, as it hits an assert in MCB (but that's yet another story).

Full implementation to come later on.

CORE-10407
CORE-10442

svn path=/trunk/; revision=69742
2015-10-30 18:54:16 +00:00
Thomas Faber
081c4f25c7 [WLDAP32]
- Fix MSVC const mismatch warnings

svn path=/trunk/; revision=69741
2015-10-30 14:26:42 +00:00
Amine Khaldi
22c6dc878b [CMAKE/GCC] Set O2 and define NDEBUG for GCC release builds.
svn path=/trunk/; revision=69740
2015-10-30 10:03:44 +00:00
Amine Khaldi
a0c61c370a [CMAKE/GCC] Override the INIT flags for Debug and Release build types.
svn path=/trunk/; revision=69739
2015-10-30 09:56:57 +00:00
Amine Khaldi
e670224c35 [CMAKE] Print the build type so it's clearly visible at configure time whether we are doing a Debug or a Release build for example.
svn path=/trunk/; revision=69738
2015-10-30 09:55:58 +00:00
Hermès Bélusca-Maïto
40b98ed76f [MSCONFIG_NEW]: Reorder the dialogs in the order they visually appear in the application.
svn path=/trunk/; revision=69737
2015-10-30 00:19:11 +00:00
Hermès Bélusca-Maïto
af4344dec6 [MSCONFIG_NEW]: Update the "system.ini"/"win.ini" page layout.
svn path=/trunk/; revision=69736
2015-10-29 23:45:44 +00:00
Eric Kohl
58e9053fbc [NTOSKRNL]
- Initialize SepRmDbLock and create the system and anonymous logon sessions in Phase 0, right before the system process token is created.
- Implement functions to reference and dereference a logon session.
- Reference a logon session in SepCreateToken and SepDuplicateToken.
- Dereference a logon session in SepDeleteToken.

svn path=/trunk/; revision=69735
2015-10-29 22:50:14 +00:00
Robert Naumann
dd39558722 [EXPLORER] -First commit of my Explorer work. -Remove unneeded property pages and move the important settings to the both pages which are also there in Win2k3 (taskbar and startmenu). -Add a folder layout for resources (like in shell32) to keep the overview. -Added missing resources like bitmaps and icons, some of them are needed for further work. -Added a new start menu bitmap, like in CE -All code related stuff is ignored so far, because it makes trouble. I'll work on this. This temporarily breaks the show seconds checkbox, which will also become fixed asap. -Translation may be broken, please translators take a look. Part 1/X CORE-10030 CORE-9240
svn path=/trunk/; revision=69734
2015-10-29 22:26:44 +00:00
Eric Kohl
a89e5f40ab [LSASRV]
Call LsapRmDeleteLogonSession from LsapDeleteLogonSession.

svn path=/trunk/; revision=69733
2015-10-29 22:23:37 +00:00
Hermès Bélusca-Maïto
c92ab8d4e0 [FATTEN]
- Do not always print the usage when an error occurs. Print it only when a syntactic error happens.
- FAT volume labels are constituted of 11 chars (not 8!) which should be printable ASCII (in particular, >= 0x20) and in uppercase.

svn path=/trunk/; revision=69732
2015-10-28 23:24:37 +00:00
Thomas Faber
4af490caec [WIN32K:NTUSER]
- Window station handles are normally user handles. Treat them as such
CORE-10207

svn path=/trunk/; revision=69731
2015-10-28 11:29:42 +00:00
Thomas Faber
857d9e69e3 [NTOS:IO]
- Add missing OBJ_KERNEL_HANDLE
- Avoid INVALID_HANDLE_VALUE
CORE-10207

svn path=/trunk/; revision=69730
2015-10-28 11:14:46 +00:00
Thomas Faber
f3e8d3e967 [NTOS:IO]
- Properly parse SymbolicLinkName (in particular, don't assume it's null-terminated) in IoSetDeviceInterface. Fixes IoDeviceInterface test failures and subsequent crashes due to memory corruption
CORE-9456

svn path=/trunk/; revision=69729
2015-10-28 10:59:59 +00:00
Cameron Gutman
a644d30ee7 [AFD]
- Fix WSAEnumNetworkEvents failing if no event was supplied (uTorrent issue - CORE-6656)

svn path=/trunk/; revision=69728
2015-10-28 03:12:21 +00:00
Cameron Gutman
04690bd47b [PCIX]
- Fix typo in QueryInterface size field

svn path=/trunk/; revision=69727
2015-10-28 01:11:00 +00:00
Aleksandar Andrejevic
bde7a617bd [NTVDM]
VGA Horizontal splitting should reset the address to 0 + panning, and not
the start address + panning.


svn path=/trunk/; revision=69726
2015-10-28 00:39:29 +00:00
Aleksandar Andrejevic
325318311d [NTVDM]
Implement VGA horizontal splitting.


svn path=/trunk/; revision=69725
2015-10-27 22:16:53 +00:00
Hermès Bélusca-Maïto
0a11c6ee0e Shut up Mr. GCC.
svn path=/trunk/; revision=69724
2015-10-27 21:27:55 +00:00
Hermès Bélusca-Maïto
62bd2d4195 [MSCONFIG_NEW]
Enable Win7-like theming when applicable.

svn path=/trunk/; revision=69723
2015-10-27 21:22:17 +00:00
Thomas Faber
28c1e663f3 [KMTESTS:IO]
- Add some basic parameter tests for IoSetDeviceInterfaceState
CORE-9456

svn path=/trunk/; revision=69722
2015-10-27 12:14:10 +00:00
Sylvain Petreolle
4fe27234d1 [RAPPS]
AC97: Fix Russian and other languages. 
CORE-10203


svn path=/trunk/; revision=69721
2015-10-27 00:34:07 +00:00
Hermès Bélusca-Maïto
8da64e53e4 [MSCONFIG_NEW]: Fix header (and build).
svn path=/trunk/; revision=69720
2015-10-26 23:24:19 +00:00
Hermès Bélusca-Maïto
6a9bc47c37 [SERVMAN]
- Explicitely use UNICODE versions of OpenSCManager and OpenService.
- When OpenSCManager or OpenService fail, they return a NULL handle (not INVALID_HANDLE_VALUE).

svn path=/trunk/; revision=69719
2015-10-26 23:15:40 +00:00
Hermès Bélusca-Maïto
781a27b6d0 Add msconfig_new in the list of compiled modules, for people to test it.
svn path=/trunk/; revision=69718
2015-10-26 23:04:37 +00:00
Hermès Bélusca-Maïto
1430754ba2 [MSCONFIG_NEW]
- Port the Services page in C++ and implement hide/show MS/ReactOS services & enable/disable. WIP.
- Fix resource ID for the "delete" button in the FreeLdr page.
- Revert the freeldr "advanced" dialog that I erroneously removed in r69638.
CORE-9333

svn path=/trunk/; revision=69717
2015-10-26 23:03:21 +00:00
Sylvain Petreolle
db95aa6bd3 Disable mmdevapi from build.
Its Vista+, called by apps, and relies on wine-only dlls like winepulse.drv,winealsa.drv,wineoss.drv.
CORE-10418

svn path=/trunk/; revision=69716
2015-10-26 22:56:55 +00:00
Hermès Bélusca-Maïto
43cec2d41c [COMSUPP]: Use "operator new" and "operator delete" in order to avoid strange linkage problems (like "operator delete[]" not found, etc...) while being compatible with MS version of comsupp.lib.
svn path=/trunk/; revision=69715
2015-10-26 22:30:44 +00:00
Eric Kohl
6b82bc960e [NTOSKRNL][LSASRV]
- Move the message typedefs into a shared header file.
- Implement LsapRmCreateLogonSession and LsapRmDeleteLogonSession. Call LsapRmCreateLogonSession in LsapCreateLogonSession.

svn path=/trunk/; revision=69714
2015-10-26 21:03:40 +00:00
Giannis Adamopoulos
07d2565c81 [SHELL32]
- Remove a few todo comments that are now completed. Also remove numbers to make it simpler to remove one entry from the todo list.

svn path=/trunk/; revision=69713
2015-10-26 15:51:21 +00:00
Giannis Adamopoulos
3328daaf08 [SHELL32]
- Implement CompareIDs for the folders in the shell namespace. The previous implementation was a generic solution that just compared names.
- CDefView: Implement using CompareIDs method from the IShellFolder. Remove the previous implementation that was hardcoded in the CDefView and worked mostly for file items.

svn path=/trunk/; revision=69712
2015-10-26 15:07:44 +00:00
Ged Murphy
07ca1a7a5c [WMVCORE]
- Add dll to the correct destination dir
CORE-10404

svn path=/trunk/; revision=69711
2015-10-26 14:43:29 +00:00
Thomas Faber
dde60eb9ef [USER32_APITEST]
- Add some tests for other WS_CHILD/WS_POPUP combinations

svn path=/trunk/; revision=69710
2015-10-26 12:12:01 +00:00
Giannis Adamopoulos
c6da25588e [WIN32K]
- co_UserCreateWindowEx: Fail when a wrong handle was passed for the parent window. "Fixes" a crash down the road due to missing null checks in other places (null checks are needed because desktop windows don't have parents).

svn path=/trunk/; revision=69709
2015-10-26 12:09:34 +00:00
Thomas Faber
a8f4623261 [USER32_APITEST]
- Remove nonexistent test...

svn path=/trunk/; revision=69708
2015-10-26 12:05:35 +00:00
Thomas Faber
ca8fcf5402 [USER32_APITEST]
- Add a test for the bug in win32k highlighted by the recent ATL breakage
CORE-10413

svn path=/trunk/; revision=69707
2015-10-26 12:03:09 +00:00
Ged Murphy
949981b47f [DEVMGR]
- Highlight unused resources
- Patch by Ștefan Fulea
CORE-6109

svn path=/trunk/; revision=69706
2015-10-26 11:41:47 +00:00
Thomas Faber
8c44eaadfa [ATL]
- Revert broken math change in ATL::thunkCode::Init

svn path=/trunk/; revision=69705
2015-10-26 11:38:30 +00:00
Ged Murphy
4b92ce00d5 [DEVMGR]
- Hide legacy devices and volumes by default
- Patch by Eric Kohl
CORE-10396

svn path=/trunk/; revision=69704
2015-10-26 08:40:14 +00:00
Hermès Bélusca-Maïto
dbff9a412d A parenthesis trolled me.
svn path=/trunk/; revision=69703
2015-10-25 23:13:37 +00:00
Hermès Bélusca-Maïto
4883da7f5c [ATL]
- Fix exception specifier (Ged or Thomas, can you double-check those please? :) )
- ATL can be used in code not using the C++11 standard aka. fix build when double '>' characters are present, for example in template<foo bar<stuff>> .

svn path=/trunk/; revision=69702
2015-10-25 23:10:43 +00:00
Hermès Bélusca-Maïto
6f3e0b39ca [ATL]
- Flush the CPU instruction cache after the ATL window proc thunk code is patched into memory.
- Implement some (not all) CAtlList methods that I will need later on.
- Implement some (not all) CStringT and CSimpleStringT methods & operators that I will need later on.

svn path=/trunk/; revision=69701
2015-10-25 22:55:18 +00:00
Ged Murphy
9ce035003d [DEVMGR]
- Fix overlay icon for problem devices

svn path=/trunk/; revision=69700
2015-10-25 17:01:19 +00:00
Amine Khaldi
1afae58191 [UNIATA] Update to v45j1. CORE-10189
svn path=/trunk/; revision=69699
2015-10-25 14:45:48 +00:00
Hermès Bélusca-Maïto
d6e05da575 [ATL]: Use _AtlGetConversionACP() instead of hadcoded CP_THREAD_ACP value.
svn path=/trunk/; revision=69698
2015-10-25 14:37:33 +00:00
Eric Kohl
ebdf8b1700 [NTOSKRNL][LSASRV]
- Add the SRM code from Timos kernel-fun branch.
- Move its lsasrv code to a separate file.
Thank you very much, Timo!

svn path=/trunk/; revision=69697
2015-10-25 14:33:27 +00:00
Daniel Reimer
e9b79abb0f [FONTS]
Update Ubuntu font to v0.83

svn path=/trunk/; revision=69696
2015-10-25 13:10:25 +00:00
Thomas Faber
e0526b4623 [NTDLL:LDR]
- Take the right exit path from LdrpMapDll when an illegal dll relocation is encountered. CID 1237071

svn path=/trunk/; revision=69695
2015-10-25 13:07:28 +00:00
Amine Khaldi
4c14eaa561 [FREETYPE] Update to v2.6.1. CORE-10378
svn path=/trunk/; revision=69694
2015-10-25 12:56:20 +00:00
Amine Khaldi
f9dab9b203 [WIN32K] Use FreeType inclusion macros.
svn path=/trunk/; revision=69693
2015-10-25 12:51:50 +00:00
Thomas Faber
c662ceada7 [SHELL32]
- Correctly initialize LVITEM::iSubItem before LVM_GETITEM/LVM_SETITEM
CORE-10403 #resolve

svn path=/trunk/; revision=69692
2015-10-25 11:49:12 +00:00
Amine Khaldi
465a34000b [CRT] Remove second semicolon. Spotted by Michael Fritscher. CORE-10390
svn path=/trunk/; revision=69691
2015-10-25 11:11:34 +00:00
Amine Khaldi
f5465c7f46 [LAUTUS.MSSSTYLES] French translation by Eliott Lavier. CORE-10371
svn path=/trunk/; revision=69690
2015-10-25 11:06:19 +00:00
Amine Khaldi
6b7b80b4fb [MSCONFIG_NEW][DEVMGR] Turkish translation update by Erdem Ersoy. CORE-10397
svn path=/trunk/; revision=69689
2015-10-25 11:01:01 +00:00
Amine Khaldi
b882d40564 [MSCONFIG_NEW] Fix duplicate IDD_FREELDR_PAGE dialog in ko-KR.rc. Fixes MSVC build and GCC build warning.
svn path=/trunk/; revision=69688
2015-10-25 10:46:09 +00:00
Amine Khaldi
56a83fbfe5 [HDWWIZ][NEWDEV] Fix mismatched titles. By Jared Smudde. CORE-10399
svn path=/trunk/; revision=69687
2015-10-25 10:38:15 +00:00
Pierre Schweitzer
2f829daee1 [EXT2]
Import missing parameters for Ext2 driver.

This fixes extX volumes being only available in read-only on ReactOS.

CORE-10272 #comment Fixed with r69686

svn path=/trunk/; revision=69686
2015-10-25 10:17:04 +00:00
Amine Khaldi
eecc4b5fc4 [WMVCORE] Import from Wine Staging 1.7.47. CORE-10400
svn path=/trunk/; revision=69685
2015-10-25 10:07:44 +00:00
Amine Khaldi
6b0cbac192 [PSDK] Import wmsbuffer.idl and wmsdkidl.idl from Wine Staging 1.7.47. CORE-10400
svn path=/trunk/; revision=69684
2015-10-25 10:00:30 +00:00
Pierre Schweitzer
6445100f0d [CRT]
Fix NTDLL implementation of mbstowcs() and wcstombs() so that they return length in caracters and not in bytes.

This fixes last failing *to* CRT apitests

CORE-10390

svn path=/trunk/; revision=69683
2015-10-25 09:28:57 +00:00
Pierre Schweitzer
d9674b27cf [CRT]
Import _mbstowcs_l() from Wine and call it in mbstowcs().

This fixes crashes when calling the msvcrt, crtdll implementation of mbstowcs() with no output string.
Thus, it fixes a few crashing apitests

The NTDLL version is still broken in some way, need to investigate why.

CORE-10390 #resolve #comment Fixed with 69682. Thanks for the report!

svn path=/trunk/; revision=69682
2015-10-25 08:36:14 +00:00
Pierre Schweitzer
54af95dc46 [CRT_APITEST]
Add more tests

CORE-10390

svn path=/trunk/; revision=69681
2015-10-25 07:42:34 +00:00
Pierre Schweitzer
16543cd058 [CRT_APITEST]
Add a few tests to show mbstowcs/wcstombs behavior will NULL ptr.

CORE-10390

svn path=/trunk/; revision=69680
2015-10-24 23:18:33 +00:00
Thomas Faber
910e2d7dc7 [WIN32K:NTUSER]
- Make CaretInfo part of the USER_MESSAGE_QUEUE structure since the pointer can no longer change
CORE-10395

svn path=/trunk/; revision=69679
2015-10-24 15:46:34 +00:00
Thomas Faber
1bfbbb69c2 [WIN32K:NTUSER]
- Copy the right size...
CORE-10395

svn path=/trunk/; revision=69678
2015-10-24 15:14:09 +00:00
Thomas Faber
929dbdcd82 [WIN32K:NTUSER]
- In UserAttachThreadInput, copy the CaretInfo structure instead of saving a pointer that may be freed right after
CORE-10395 #resolve

svn path=/trunk/; revision=69677
2015-10-24 15:04:12 +00:00
Thomas Faber
2af7ac46cc [ATL]
- Add CComBSTR::operator BSTR. Mark by Mark Jansen.
CORE-10394 #resolve

svn path=/trunk/; revision=69676
2015-10-24 13:26:44 +00:00
Sylvain Petreolle
4a8d75d6ba [CONFIGURE]
NEW_STYLE_BUILD is used for official builds.
Enable it.

svn path=/trunk/; revision=69675
2015-10-24 12:30:42 +00:00
Pierre Schweitzer
a2b2cb7dcf [SHELL32]
Backport Wine commit: 0efa2331e2f54b81480adeb588972ca16a8dab16
"Fix a cloned pidl leak (Coverity)." by Nikolay Sivov

CID 716480

svn path=/trunk/; revision=69674
2015-10-24 10:27:40 +00:00
Pierre Schweitzer
7479bc63fe [SHELL32]
Fix a memory leak

CID 1322131

svn path=/trunk/; revision=69673
2015-10-24 10:24:37 +00:00
Pierre Schweitzer
d3a401609e [SETUPAPI]
Partly backport Wine commit: 4d796458d0ed517d45adc57a1aedaf1c3bdde232
"Avoid memory leaks (coverity)." by André Hentschel

CID 716469

svn path=/trunk/; revision=69672
2015-10-24 10:14:21 +00:00
Pierre Schweitzer
90198d9c56 [SETUPAPI]
Fix a memory leak

CID 716468

svn path=/trunk/; revision=69671
2015-10-24 10:09:44 +00:00
Pierre Schweitzer
4dfac410a4 [SETUPAPI]
Don't leak memory

CID 716460

svn path=/trunk/; revision=69670
2015-10-24 10:00:24 +00:00
Pierre Schweitzer
bd3ef669f3 [SETUPAPI]
Fix a memory leak

CID 1250296

svn path=/trunk/; revision=69669
2015-10-24 09:54:54 +00:00
Pierre Schweitzer
ca111f1d01 [SETUPAPI]
Properly return the machine handle in CM_Connect_MachineW()

CID 716459

svn path=/trunk/; revision=69668
2015-10-24 09:50:50 +00:00
Pierre Schweitzer
6f7ec944d5 [MSGINA]
Don't leak memory

CID 1206901

svn path=/trunk/; revision=69667
2015-10-24 09:39:20 +00:00
Pierre Schweitzer
383bf6699a [MSCOREE]
Backport Wine commit: 85d49c5819fb4494d9f81c56c3504bef5732b726
"Correct possible uninitialized variable (clang)." by Alistair Leslie-Hughes

CID 215556

svn path=/trunk/; revision=69666
2015-10-24 09:36:16 +00:00
Pierre Schweitzer
e21fa420f0 [LSASRV]
Initialize pointers addresses before the first goto, to avoid uninit addresses handling

CID 1206997, 1206998

svn path=/trunk/; revision=69665
2015-10-24 08:49:08 +00:00
Pierre Schweitzer
a3237b1f66 [KERNEL32]
Don't pass uninit pointer address to CsrFreeCaptureBuffer()

CID 1223181

svn path=/trunk/; revision=69664
2015-10-24 08:43:54 +00:00
Pierre Schweitzer
00e9309787 [BROWSEUI]
Use correct delete operator

CID 1321947

svn path=/trunk/; revision=69663
2015-10-24 08:33:20 +00:00
Pierre Schweitzer
71f36c710d [DESK]
Pass a buffer big enough to hold the drive size to _wsplitpath().
This fixes a buffer overrun.

CID 1322097

svn path=/trunk/; revision=69662
2015-10-24 08:21:09 +00:00
Pierre Schweitzer
34c9b63005 [MSVCRT]
Add a test that shows that _splitpath() null-terminates drive

svn path=/trunk/; revision=69661
2015-10-24 08:20:05 +00:00
Pierre Schweitzer
259db826a9 [CONSOLE]
Don't overrun two buffers

CID 1322100, 1237057

svn path=/trunk/; revision=69660
2015-10-24 07:59:52 +00:00
Ged Murphy
db0a8fd47d [DEVMGR]
- Force all refreshes to go through the CDeviceManager method instead of calling CDeviceView directly.
- Fixes missing checked radio item in the view menu on startup

svn path=/trunk/; revision=69659
2015-10-23 13:16:25 +00:00
Ged Murphy
285e7278f5 [DEVMGR]
- When refreshing the view, reselect and expand the previously selected node in the tree. This allows to switch from 'by type' to 'by connection' and see where the selected device sits in the tree hierarchy (and vice versa)

svn path=/trunk/; revision=69658
2015-10-23 12:45:41 +00:00
Thomas Faber
ba56cef9c1 [NTOS:SE]
- Fail if the provided default DACL is invalid in NtCreateToken. CID 1237131

svn path=/trunk/; revision=69657
2015-10-23 12:40:29 +00:00
Robert Naumann
6c7a279a05 revert r69654
svn path=/trunk/; revision=69656
2015-10-23 12:23:37 +00:00
Robert Naumann
65df2fce32 [CPL] Fix some blurry resources. By Henry Tang Ih. CORE-10385
svn path=/trunk/; revision=69655
2015-10-23 11:42:02 +00:00
Robert Naumann
adb555abb7 [DEVMGR] Improve the toolbar bitmap. By Jared Smudde. CORE-10342
svn path=/trunk/; revision=69654
2015-10-23 11:27:52 +00:00
Thomas Faber
c506de06be [WIN32K:NTUSER]
- Don't open-code IoGetRemainingStackSize

svn path=/trunk/; revision=69653
2015-10-23 10:34:44 +00:00
Thomas Faber
9b00fd4ea8 [NETWORKING][CABMAN]
- Attempt to silence some 200 benign "Operands don't affect result" Coverity defects

svn path=/trunk/; revision=69652
2015-10-23 07:26:42 +00:00
Thomas Faber
8325a50be7 [WIN32K:NTUSER]
- Properly set the window minimize status in WM_ACTIVATE's WPARAM. CID 513028, 513029

svn path=/trunk/; revision=69651
2015-10-22 21:06:25 +00:00
Ged Murphy
44f11315a4 The c++ bool is 1 byte, not 4. Thanks Thomas
svn path=/trunk/; revision=69650
2015-10-22 17:37:51 +00:00
Ged Murphy
6ed09fb64b [DEVMGR]
- Automatically refresh the view whenever there is a hardware change on the machine
- Don't force a refresh when we enable/disable devices, this is now be picked up automatically

svn path=/trunk/; revision=69649
2015-10-22 17:21:30 +00:00
Thomas Faber
ac1ef8ea3b [WIN32K:NTUSER]
- Fix uninitialized variable use in failure case of NtUserSetCursorIconData. CID 1322233

svn path=/trunk/; revision=69648
2015-10-22 16:41:38 +00:00
Giannis Adamopoulos
3339ceb715 [SHELL32]
- Add DoDeleteAsync method that takes the data object and the fMask parameter from IContextMenu in order to distinguish if we need a permanent delete.
- CDefView: Properly add CMIC_MASK_SHIFT_DOWN and CMIC_MASK_CONTROL_DOWN flags when calling Invoke.
- CDefaultContextMenu: use DoDeleteAsync and pass fmask so as to make Shift+Delete shortcut to permanently delete files.
Note: GetKeyState sometimes returns wrong results but this doesn't concern the shell.
CORE-4365

svn path=/trunk/; revision=69647
2015-10-22 15:23:21 +00:00
Thomas Faber
359fa267cc [WIN32K:NTUSER]
- Don't pass an uninitialized DOSENDMESSAGE structure to co_IntDoSendMessage. CID 701425

svn path=/trunk/; revision=69646
2015-10-22 15:12:09 +00:00
Thomas Faber
2ecafe7510 [WIN32K:NTUSER]
- Only resend WM_ENTERIDLE after encountering a relevant message. CID 1321906

svn path=/trunk/; revision=69645
2015-10-22 14:43:39 +00:00
Thomas Faber
32a955c11c [WIN32K:NTUSER]
- Don't call PopupMenuWndProc for the message window in IntDispatchMessage. CID 1322026

svn path=/trunk/; revision=69644
2015-10-22 14:13:40 +00:00
Thomas Faber
fef72582a0 [WIN32K:NTGDI]
- Fix pool leak in failure case of PATH_StrokePath. CID 716633

svn path=/trunk/; revision=69643
2015-10-22 13:48:12 +00:00
Thomas Faber
1589893f19 [WIN32K:NTGDI]
- Correctly pass 'planes' and 'bpp' arguments to IntCreateDIBitmap in GreCreateDIBitmapInternal. CID 1250302

svn path=/trunk/; revision=69642
2015-10-22 11:29:55 +00:00
Thomas Faber
598f3dccc4 [WIN32K:NTGDI]
- Fix pool leak in failure case (CID 1322140) and don't treat NTSTATUS values as Win32 errors in NtGdiGetGlyphIndicesW.

svn path=/trunk/; revision=69641
2015-10-22 11:05:59 +00:00
Thomas Faber
bf191a5cd2 [WIN32K:ENG]
- Remove useless NULL checks in BltMask and IntEngStretchBlt. CID 1322184, 701344

svn path=/trunk/; revision=69640
2015-10-22 10:46:02 +00:00
James Tabor
27cd9042b5 [Win32k]
- Fix flashing windows and cleanup code. See CORE-10384.

svn path=/trunk/; revision=69639
2015-10-22 09:05:56 +00:00
Hermès Bélusca-Maïto
7ffaebe4ed [MSCONFIG_NEW]
- Reenable the FREELDR.INI/BOOT.INI page. When boot items are added in the list, recompute its new contents width and adjust it so that we can horizontally scroll its contents (this is the only common control which does not support automatic width computation when you add contents in it...).
- Save the original FREELDR.INI/BOOT.INI in a default path (I took the one used by windows' msconfig for its INI files).
CORE-9333

svn path=/trunk/; revision=69638
2015-10-21 23:43:26 +00:00
Hermès Bélusca-Maïto
0e3bf63096 [MSCONFIG_NEW]
Reduce indentation level in code.

svn path=/trunk/; revision=69637
2015-10-21 23:36:17 +00:00
Daniel Reimer
9de150d140 [DEVMGR]
Updated German language

svn path=/trunk/; revision=69636
2015-10-21 19:17:16 +00:00
Daniel Reimer
a313e2918f [MSCONFIG_NEW]
Updated German language

svn path=/trunk/; revision=69635
2015-10-21 18:41:43 +00:00
Thomas Faber
305cb0aa09 [WININET]
- Missing the USERPROFILE variable is a critical bug, so inform us about it with an ERR instead of a TRACE
CORE-10381

svn path=/trunk/; revision=69634
2015-10-21 09:00:13 +00:00
James Tabor
d86d39947c [Win32SS]
- Implement suspended window support, see CORE-10078.

svn path=/trunk/; revision=69633
2015-10-21 00:13:23 +00:00
Hermès Bélusca-Maïto
2d28dcf37d [MSCONFIG_NEW]
- Implement the "file extract" dialog and enable it in the general page. The extraction functionality proper will be implemented later on.
- Remove an unneeded resource string.
CORE-9333

svn path=/trunk/; revision=69632
2015-10-20 23:59:28 +00:00
Hermès Bélusca-Maïto
2d61b5e7e1 [PSDK]
- Enable the specstrings.h in shlwapi header (since we have it)
- Add missing BIF_SHAREABLE define (which exists in the 2k3 PSDK), even if it's not used at all in our code (and in wine either); I use it in msconfig for a shell browse dialog (because I want it to behave as I expect also on windows).

svn path=/trunk/; revision=69631
2015-10-20 22:49:34 +00:00
Hermès Bélusca-Maïto
c220116405 [MSCONFIG_NEW]
- Add some file utility functions, they will be used later for managing the startup programs.
- Half-plement the general page controls.
- Simplify some code; fix file headers; remove the old toolspage.c (replaced by its c++ equivalent).
CORE-9333

svn path=/trunk/; revision=69630
2015-10-20 21:57:36 +00:00
Thomas Faber
3bf3980778 [SERVICES]
- Sanitize allocation lifetime and fix memory leaks in ScmConvertToBootPathName. CID 1102363
- Fix leak in failure case of REnumServicesStatusExA. CID 716334

svn path=/trunk/; revision=69629
2015-10-20 10:09:59 +00:00
Thomas Faber
43a2070164 [WORDPAD]
- Fix potential buffer overflows. CID 713265, 713266

svn path=/trunk/; revision=69628
2015-10-20 08:40:29 +00:00
Thomas Faber
2921409167 [TASKMGR]
- Fix potential stack buffer overflows. CID 1322094, 1322095

svn path=/trunk/; revision=69627
2015-10-20 08:30:14 +00:00
Thomas Faber
e190198542 [RAPPS]
- Pass the correct buffer size to StringCbCopyW

svn path=/trunk/; revision=69626
2015-10-20 08:15:30 +00:00
James Tabor
1cd0cae9eb [User32]
- Patch by Joachim Priesner : Hide horizontal Listbox scroll bar if no horizontal extent is set. See CORE-1101.
- Patch by Alex Henrie : Simplify if-else statement. Scroll listbox item completely into view on LB_SETCURSEL.

svn path=/trunk/; revision=69625
2015-10-20 01:54:18 +00:00
James Tabor
16f015a1bc [User32]
- Patch by Dmitry Timoshkov : Always call BeginPaint/EndPaint when handling a WM_PAINT message for the button.
- Patch by Alex Henrie : Remove always-false condition.

svn path=/trunk/; revision=69624
2015-10-20 01:51:16 +00:00
Thomas Faber
0e6082f21e [GDIPLUS]
- Mark a ROS-Diff and fix MSVC warnings in it

svn path=/trunk/; revision=69623
2015-10-19 18:16:17 +00:00
Thomas Faber
8fb79dfcc4 [SHLWAPI_WINETEST]
- Fix build until I figure out how to upstream this

svn path=/trunk/; revision=69622
2015-10-19 16:03:00 +00:00
Thomas Faber
66503f6e3f [PSDK]
- Add missing shlobj.h changes from the previous commit
- Correctly define ITEMIDLIST types, and add initial support for STRICT_TYPED_ITEMIDS
CORE-8441 #resolve

svn path=/trunk/; revision=69621
2015-10-19 15:28:24 +00:00
Thomas Faber
da8f249696 [SHELL32]
- Fix some ITEMIDLIST types
CORE-8441

svn path=/trunk/; revision=69620
2015-10-19 15:17:29 +00:00
Ged Murphy
ae23c43fe8 [DEVMGR]
- Implement the add new hardware wizard
- fix stray header
CORE-10363

svn path=/trunk/; revision=69619
2015-10-19 13:52:12 +00:00
Ged Murphy
fd2dad4bcd Missed this file. Having a shocker today...
svn path=/trunk/; revision=69618
2015-10-19 11:17:14 +00:00
Ged Murphy
e7e344882f [DEVMGR]
- Fixup a few missing languages. Hopefully I got them all this time.
- Add a new line to the end of the resources to keep msvc happy

svn path=/trunk/; revision=69617
2015-10-19 11:07:19 +00:00
Ged Murphy
748b7d1095 [DEVMGR]
- Add the missing resources and reinstate all languages.
- The new additions need translating

svn path=/trunk/; revision=69616
2015-10-19 10:55:22 +00:00
Ged Murphy
eb3d7eb326 [DEVMGR]
Add missing changes files

svn path=/trunk/; revision=69615
2015-10-19 08:48:24 +00:00
Ged Murphy
4c9058d60f [DEVMGR]
- Implement updating the device from the toolbar
- Add a message before uninstalling a device. Dedicated to Jared Smudde.

svn path=/trunk/; revision=69614
2015-10-19 08:45:48 +00:00
Thomas Faber
016e5d9466 [HAL]
- Don't probe for EISA DMA capability on non-EISA machines (i.e. currently never). Patch by Andrey Kudravets.
CORE-9895 #resolve

svn path=/trunk/; revision=69613
2015-10-19 08:00:47 +00:00
Ged Murphy
d41f9c44b4 [DEVMGR]
- Explicitly state that we want to build DllMain without name mangling
See issue 10347 for more details.

svn path=/trunk/; revision=69612
2015-10-19 07:04:17 +00:00
Robert Naumann
b534e5472e [SNDREC32] Improve the applications icon. By Henry Tang Ih. CORE-69611
svn path=/trunk/; revision=69611
2015-10-18 22:43:14 +00:00
Robert Naumann
096dc6de9c [SHELL32] Improve the recent documents icon. By Jared Smudde. CORE-10281
svn path=/trunk/; revision=69610
2015-10-18 22:39:36 +00:00
Robert Naumann
fde73e5439 [USETUP] Add Malay translation. Patch by Henry Tang Ih with some additions by me. (Adding the missing strings is good, but you also have to tell ROS that it have to be used them) CORE-9890
svn path=/trunk/; revision=69609
2015-10-18 22:32:44 +00:00
Hermès Bélusca-Maïto
1071b13377 [KERNEL32]
- GlobalMemoryStatusEx: Correctly compute ullTotalPageFile which should be in bytes, instead of in number of pages. Patch by contributor "kkat". CORE-10361
- GlobalMemoryStatusEx: Fail if the stored length in the data buffer is not what is expected by the API (required by the spec, see MSDN; on the contrary, GlobalMemoryStatus does not require that.)
- GlobalMemoryStatus: Correctly round up the reported total/available memory values, in case they are bigger than ~= 2GB.

svn path=/trunk/; revision=69608
2015-10-18 22:00:29 +00:00
Hermès Bélusca-Maïto
1cfc6d4fb5 [the_other_devmgmt] Convert the bootstrap app back to C.
svn path=/trunk/; revision=69607
2015-10-18 21:27:23 +00:00
Hermès Bélusca-Maïto
2a8b2a3a1b (devmgmt) whitespace fix only.
svn path=/trunk/; revision=69606
2015-10-18 21:26:25 +00:00
Amine Khaldi
b6a7c1b91a [MSCONFIG_NEW] C++ is coming. Resistance is futile.
svn path=/trunk/; revision=69605
2015-10-18 17:10:38 +00:00
Hermès Bélusca-Maïto
46d4e8d0fc [MSCONFIG_NEW]
- Fix duplicated resources.
- Implement the Tools tab. It reads the list of available tools (and their localized names & description) from an internal XML file. It can also load an external user-defined XML list of tools; see KB906569 for a description of what it is.
- XML stuff is implemented using COM. It is far easier to use COM with C++ than with C, hence the tools tab code and the XML parser are compiled as C++ whereas everything else is compiled in C. Therefore at the moment msconfig is hybrid C/C++; this is done using CMake magic.
CORE-9333

svn path=/trunk/; revision=69604
2015-10-18 16:55:31 +00:00
Hermès Bélusca-Maïto
da8f428784 [COMSUPP]: ConvertStringToBSTR and ConvertBSTRToString really work only on ANSI strings.
svn path=/trunk/; revision=69603
2015-10-18 16:44:56 +00:00
Pierre Schweitzer
8ecfaec11f [NTOSKRNL]
Don't keep spining forever in CcRosFlushDirtyPages() when flushing a dirty VACB fails on a RO volume.
This can be triggered with extX volumes and can prevent shutdown from succeeding

svn path=/trunk/; revision=69602
2015-10-18 16:09:11 +00:00
Pierre Schweitzer
d87114591b [CONFIGURE.SH]
Modify the script to take into account that now, host-tools are no longer required.

Because it needs RosBE 2.1.2 (update guys!) still provide a fallback method to allow using old build method with host-tools. In case you need it, just call configure.sh with-host-tools

svn path=/trunk/; revision=69601
2015-10-18 15:47:20 +00:00
Eric Kohl
5e93c3bb50 USETUP: Do not ask to select language if just one language is available
Patch by Carlo Bramini. Thanks a lot!
CORE-10322 #resolve

svn path=/trunk/; revision=69600
2015-10-18 13:52:51 +00:00
Thomas Faber
3bb5106159 [URLMON_WINETEST]
- Cancel the test if a failure situation is detected that will lead to a timeout
ROSTESTS-192
CORE-10360

svn path=/trunk/; revision=69599
2015-10-18 13:13:44 +00:00
Eric Kohl
2cf1ec318d [MSAFD]
TranslateNtStatusError: Translate STATUS_ACCESS_DENIED.
Patch by Jacob S. Preciado. Thanks a lot!
CORE-10290 #resolve

svn path=/trunk/; revision=69598
2015-10-18 12:45:49 +00:00
Amine Khaldi
6d8909a8aa [CMAKE] Enable the new style build by default. CORE-10121
svn path=/trunk/; revision=69597
2015-10-18 11:29:34 +00:00
Amine Khaldi
46d3d0d940 [CMAKE] We don't need this case anymore.
svn path=/trunk/; revision=69596
2015-10-18 11:21:56 +00:00
Amine Khaldi
21417c6d20 [TRANSLATIONS] Traditional Chinese (zh-TW) translation update by Henry Tang Ih. CORE-10001
svn path=/trunk/; revision=69595
2015-10-18 11:19:05 +00:00
Thomas Faber
db84a4d268 [WINE]
- Make some test.h functions usable in apitests aka fix build

svn path=/trunk/; revision=69594
2015-10-18 10:51:47 +00:00
Thomas Faber
237a82dc51 [ATL]
- Add CComHeapPtr implementation and tests. Patch by Mark Jansen.
CORE-10344 #resolve

svn path=/trunk/; revision=69593
2015-10-18 10:46:11 +00:00
Thomas Faber
1920e426e7 [BOOTLIB]
- Correctly check ConsoleRemoteConstruct return value in ConsoleCreateRemoteConsole. Patch by Kudratov Olimjon.
CORE-10357 #resolve

svn path=/trunk/; revision=69592
2015-10-18 10:20:56 +00:00
Thomas Faber
8da82fb0ce [WINDOWSCODECS]
- Fix some MSVC warnings

svn path=/trunk/; revision=69591
2015-10-18 09:45:12 +00:00
Thomas Faber
3d24f6cb54 [RTL]
- Add missing OBJ_KERNEL_HANDLE in RtlOpenCurrentUser
CORE-10207

svn path=/trunk/; revision=69590
2015-10-18 09:32:52 +00:00
Thomas Faber
f482f2901b [LIBXML]
- Fix VS2013 build

svn path=/trunk/; revision=69589
2015-10-18 08:39:56 +00:00
Thomas Faber
7e0e340554 [LIBXML]
- Fix MSVC incompatible declaration warning
- Silence MSVC unused variable warnings
- Get config.h slightly more in sync with upstream

svn path=/trunk/; revision=69588
2015-10-18 08:32:42 +00:00
Thomas Faber
f44a30ed3e [CMAKE]
- Reserve some more space for ntdll so that we're compatible with Windows's version (base 0x7c910000). Should fix VMware Hybrid builder

svn path=/trunk/; revision=69587
2015-10-18 07:56:27 +00:00
Thomas Faber
b329beb092 [EXT2FS]
- Fix warnings

svn path=/trunk/; revision=69586
2015-10-18 07:32:09 +00:00
Thomas Faber
b11be05a7e [NTSTATUS]
- Add some more status codes
CORE-8373

svn path=/trunk/; revision=69585
2015-10-18 07:05:14 +00:00
Thomas Faber
0a1a6168bf [BUGCODES]
- Correct broken bug check code entry aka fix build

svn path=/trunk/; revision=69584
2015-10-18 06:31:20 +00:00
Thomas Faber
aa60dd29b0 [BUGCODES]
- Add some more bug check codes

svn path=/trunk/; revision=69583
2015-10-18 06:26:51 +00:00
Hermès Bélusca-Maïto
4371669b69 [COMSUPP]: Fix string length computations.
svn path=/trunk/; revision=69582
2015-10-18 02:14:21 +00:00
Hermès Bélusca-Maïto
698212a5a5 [COMSUPP]
Implement _com_util::ConvertStringToBSTR and _com_util::ConvertBSTRToString (needed by _bstr_t and _variant_t classes), inspired by the remarks made in http://www.codeproject.com/Articles/1969/BUG-in-com-util-ConvertStringToBSTR-and-com-util i.e. without reproducing the bugs of MS version.

svn path=/trunk/; revision=69581
2015-10-18 01:20:20 +00:00
Pierre Schweitzer
075aa8147a [AUTOCHK]
Register the ExtX provider to avoid the autochk error message on boot when an ExtX volume is present

CORE-10272

svn path=/trunk/; revision=69580
2015-10-17 23:08:52 +00:00
Pierre Schweitzer
759e9f55ee [SHELL32]
Enable formatting a Ext volume from GUI.

Patch by Peter Hater

svn path=/trunk/; revision=69579
2015-10-17 23:01:19 +00:00
Pierre Schweitzer
b4ebfdcfc0 [FILESYSTEMS]
This wasn't meant to be committed.

svn path=/trunk/; revision=69578
2015-10-17 22:40:14 +00:00
Pierre Schweitzer
af6c248ac3 [FS_REC]
Implement ExtX support in FS_REC, this allows it to autoload ext2fs.sys 

Starting with this revision, browsing ExtX volumes in ReactOS works without any other modifications.

Thanks to Peter Hater for his initial work and to Thomas for his reviews

svn path=/trunk/; revision=69577
2015-10-17 22:39:13 +00:00
Pierre Schweitzer
b9b583fd22 [EXT2]
[EXT2_NEW]
Get rid of old ext2 driver and use new one

svn path=/trunk/; revision=69576
2015-10-17 22:35:20 +00:00
Pierre Schweitzer
5a9b98b776 [PSDK]
Mark (old) Linux partitions (notably extX volumes) as recognized by ReactOS in IsRecognizedPartition()
This is only enabled when building ReactOS.Otherwise, it matches Windows definition.

svn path=/trunk/; revision=69575
2015-10-17 22:32:13 +00:00
Pierre Schweitzer
b8f112b151 [EXT2_NEW]
Fix Linux build

svn path=/trunk/; revision=69574
2015-10-17 22:29:09 +00:00
Thomas Faber
e0f1e0177b [VIDEOPRT]
- Don't try to incorrectly and unnecessarily parse multiple resource descriptors
CORE-10146

svn path=/trunk/; revision=69573
2015-10-17 19:31:46 +00:00
Amine Khaldi
6be0925245 [NOTEPAD] Set Lucida Console as the default font. By Ismael Ferreras Morezuelas. CORE-10316
svn path=/trunk/; revision=69572
2015-10-17 19:01:40 +00:00
Thomas Faber
21b04efae8 [NTOS:OB]
- Create kernel handles if requested by the caller in ObDuplicateObject
CORE-10207

svn path=/trunk/; revision=69571
2015-10-17 18:37:49 +00:00
Thomas Faber
44cc9aa006 [KMTESTS:OB]
- Add a test showing that I was wrong and ZwDuplicateObject can get you a kernel handle after all
CORE-10207

svn path=/trunk/; revision=69570
2015-10-17 17:41:43 +00:00
Thomas Faber
4dad975f3f [NDIS]
- ZwDuplicateObject always returns user handles, so don't use it when we want a kernel handle.
CORE-10207

svn path=/trunk/; revision=69569
2015-10-17 16:24:14 +00:00
Thomas Faber
7983137edd [KMTESTS:OB]
- Move handle tests from ObReference to ObHandle where they belong

svn path=/trunk/; revision=69568
2015-10-17 16:11:12 +00:00
Thomas Faber
1ac16d7595 [KMTESTS]
- Sssh, these tests are secret

svn path=/trunk/; revision=69567
2015-10-17 15:56:52 +00:00
Thomas Faber
8661787353 [KMTESTS:OB]
- Add ObHandle test that verifies a couple ZwDuplicateObject behaviors 

svn path=/trunk/; revision=69566
2015-10-17 15:50:25 +00:00
Amine Khaldi
95cc4194b2 [TRANSLATIONS] Turkish translation update by Erdem Ersoy. CORE-10276
svn path=/trunk/; revision=69565
2015-10-17 14:51:49 +00:00
Amine Khaldi
5c58354064 [RAPPS] Turkish translation update by Erdem Ersoy. CORE-10276
svn path=/trunk/; revision=69564
2015-10-17 14:48:20 +00:00
Amine Khaldi
832562d08a [GDI32] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69563
2015-10-17 14:41:47 +00:00
Amine Khaldi
049574607a [GDI32] Use NtGdiGetGlyphIndicesW() in GetCharacterPlacementW() as we do have it. Fixes OpenOffice: v1.x.x garbled text. Brought to you by Vort. CORE-867
svn path=/trunk/; revision=69562
2015-10-17 14:37:35 +00:00
Amine Khaldi
ecfe47b635 [WIN32K][PSDK] Correct NtGdiGetGlyphIndicesW() pwc type. Brought to you by Vort. CORE-867
svn path=/trunk/; revision=69561
2015-10-17 14:35:14 +00:00
Amine Khaldi
3128be5640 [TRANSLATIONS] Spanish translation update by Ismael Ferreras Morezuelas. CORE-10325
svn path=/trunk/; revision=69560
2015-10-17 14:07:04 +00:00
Hermès Bélusca-Maïto
542298bc33 [NDK]: Add PsGetThreadFreezeCount declaration. Dedicated to James Tabor.
CORE-10078

svn path=/trunk/; revision=69559
2015-10-17 11:39:05 +00:00
Hermès Bélusca-Maïto
6f011dcad5 [PSDK]: Add missing conditional header inclusion.
svn path=/trunk/; revision=69558
2015-10-16 22:16:07 +00:00
Thomas Faber
7003933f3e [WIN32K]
- Add missing include aka fix build
CORE-10217

svn path=/trunk/; revision=69557
2015-10-16 15:33:19 +00:00
Thomas Faber
4367fbf372 [WIN32K:NTUSER]
- Terminate the RawInputThread on shutdown
CORE-10217 #resolve

svn path=/trunk/; revision=69556
2015-10-16 15:30:35 +00:00
Thomas Faber
683001f661 [WIN32K:NTUSER]
- Don't try to dereference a handle

svn path=/trunk/; revision=69555
2015-10-16 14:24:30 +00:00
Thomas Faber
b39a1f63cf [WIN32K]
- Add some missing OBJ_KERNEL_HANDLE
CORE-10207

svn path=/trunk/; revision=69554
2015-10-16 14:04:19 +00:00
Thomas Faber
875281ff63 [NTOS:EX]
- Add missing OBJ_KERNEL_HANDLE and avoid handle leak in ExpGetCurrentUserUILanguage
CORE-10207

svn path=/trunk/; revision=69553
2015-10-16 13:28:40 +00:00
Thomas Faber
164c7773ba [NTOS:CM]
- Remove duplicate macro definitions

svn path=/trunk/; revision=69552
2015-10-16 13:20:00 +00:00
James Tabor
fbb9c36619 - Fix pointer.
svn path=/trunk/; revision=69551
2015-10-16 03:34:13 +00:00
James Tabor
d3334b7fd6 - Fix mixing apples and widgets.
svn path=/trunk/; revision=69550
2015-10-16 02:18:13 +00:00
James Tabor
3ac3b979bb [SysSetup]
- Fix message processing while waiting for a process to end. See CORE-9342.

svn path=/trunk/; revision=69549
2015-10-15 23:39:37 +00:00
Ged Murphy
6af7940dce [DEVMGR]
- Move all public interface functions to api.cpp
- Implement DeviceManager_ExecuteA

svn path=/trunk/; revision=69548
2015-10-15 21:29:11 +00:00
Ged Murphy
681a9c3f7c [DEVMGMT]
- Delete the old devmgmt and replace it with the new one.
- The new one is a temp container for devmgr.dll and simply calls DeviceManager_ExecuteW. Eventually mmc.exe will replace this module

svn path=/trunk/; revision=69547
2015-10-15 18:04:33 +00:00
Ged Murphy
8f9704e9e0 [DEVMGMT]
- A few fixes and turn it on in the build to check the build machines are happy

svn path=/trunk/; revision=69546
2015-10-15 17:28:08 +00:00
Ged Murphy
7fb73dcf30 [DEVMGR]
- Kill off the old devmgr and replace it with the new one
- The new one now contains the (rewritten) device manager code, is now a C++ library and makes use of the recently improved ATL

svn path=/trunk/; revision=69545
2015-10-15 17:21:37 +00:00
Ged Murphy
4669d44a79 [DEVMGR]
More unix pleasers

svn path=/trunk/; revision=69544
2015-10-15 17:08:22 +00:00
Ged Murphy
a0d4787e8a [DEVMGR]
Unixification

svn path=/trunk/; revision=69543
2015-10-15 16:57:35 +00:00
Ged Murphy
7b491db30d Checking against the build machine
svn path=/trunk/; revision=69542
2015-10-15 16:52:05 +00:00
Stefan Ginsberg
c80e7b9a83 [NTOS]
Fix (last?) instance of treating hyperspace as global pages

svn path=/trunk/; revision=69541
2015-10-15 16:10:50 +00:00
Stefan Ginsberg
415eda607f Somehow missed this in previous commit
svn path=/trunk/; revision=69540
2015-10-15 12:58:28 +00:00
Stefan Ginsberg
8ea1ea856d [NTOS]
Isolate KD a bit by replacing Rtl* memory routines with internal versions. Lets one put breakpoints inside kernel memcpy/memset without making KD very, very sad. Fix MmDbgCopyMemory to also not use RtlCopyMemory -- there is no need for it since it only performs 1-to-8 byte copies anyway. Minor fixes in the print/prompt routines.

svn path=/trunk/; revision=69539
2015-10-15 12:56:19 +00:00
Ged Murphy
017269e128 [DEVMGR]
Fix building with RosBE/g++

svn path=/trunk/; revision=69538
2015-10-15 10:39:06 +00:00
Thomas Faber
ba9896d0b8 [WIN32K:NTUSER]
- THREADINFO::hEventQueueClient is a user handle. Treat it as such.
CORE-10207

svn path=/trunk/; revision=69537
2015-10-15 09:50:12 +00:00
Thomas Faber
28bfb7820f [WIN32K:NTUSER]
- Don't perform thread initialization twice in csrss's UserInitialize thread
CORE-10339 #resolve

svn path=/trunk/; revision=69536
2015-10-15 09:44:20 +00:00
Thomas Faber
13312423b0 [NPFS]
- Don't leave the critical region before releasing ERESOURCE

svn path=/trunk/; revision=69535
2015-10-15 08:03:40 +00:00
Thomas Faber
027ae80ad0 [NTOS:APPHELP]
- Avoid excessive indentation
- Minor changes to conform better to kernel style

svn path=/trunk/; revision=69534
2015-10-15 07:44:25 +00:00
Thomas Faber
62ffa081a9 [PARPORT]
- Add missing OBJ_KERNEL_HANDLE
CORE-10207

svn path=/trunk/; revision=69533
2015-10-15 07:16:39 +00:00
Stefan Ginsberg
b7d35a7776 [NTOS]
Fix mapping of working set list page -- it should be local.
Get rid of MI_MAKE_LOCAL_PAGE and use ValidKernelPdeLocal/ValidKernelPteLocal consistently. This is what they exist for!
We should now hopefully not be creating any global pages when we don't want them.
Next step; fix flushing.
Bonus: Use the right lock in MiSessionLeader

svn path=/trunk/; revision=69532
2015-10-15 01:49:26 +00:00
Stefan Ginsberg
caccb5cc8f [NTOS]
Global pages may not have been enabled when KeFlushCurrentTb is first called, so don't enable them in there.

svn path=/trunk/; revision=69531
2015-10-14 20:42:18 +00:00
Stefan Ginsberg
5e026edfdc [NTOS]
Add super-complicated handling of global pages to KeFlushCurrentTb (pretty much the same code which has been in HalpFlushTLB for the past ~6 years). This should be all that is required to make this feature work (everything else being in place already), and *seems* to work fine but is disabled under a switch until tested thoroughly.

Global pages, an important optimization that allows for not flushing the whole x86 TLB every time CR3 is changed (typically on context switch to a new process, or during process attach/detach), relies on us doing extra work whenever we do alter a global page. This is likely where any bugs will have to be flushed out!

Fixup Ki386EnableGlobalPage while we are at it -- disable/restore interrupts properly, and verify PGE-bit isn't set (nothing should have touched it before this routine, which is responsible for initializing it, so we shouldn't have to disable it). Fix, but disable, the CPU-sync spin as well as there should be no particular reason to do this for PGE-enabling during initialization (no other processor will be messing with PTEs at this stage, as compared to a call to KeFlushEntireTb).

Everyone, repeat after me: Global pages are awesome!

svn path=/trunk/; revision=69528
2015-10-14 19:33:35 +00:00
Thomas Faber
ac979ac9f9 [TCPIP]
- Add missing OBJ_KERNEL_HANDLE and close handles accordingly
CORE-10207

svn path=/trunk/; revision=69523
2015-10-14 09:26:56 +00:00
Thomas Faber
c8e6c59728 [NDIS]
- Add missing OBJ_KERNEL_HANDLE
CORE-10207

svn path=/trunk/; revision=69522
2015-10-14 08:32:00 +00:00
Thomas Faber
647edad779 [PING]
- Check for invalid values passed to the -n option. Patch by Tim Crawford
CORE-10332 #resolve

svn path=/trunk/; revision=69521
2015-10-14 07:24:09 +00:00
Ged Murphy
4a5138f4ac [DEVMGR]
More g++ fixes. 
devmgr now compiles, just a few linker issues to fixup

svn path=/trunk/; revision=69519
2015-10-12 20:44:54 +00:00
Ged Murphy
b4667495f4 [ATL]
Various g++ fixes

svn path=/trunk/; revision=69518
2015-10-12 20:33:33 +00:00
Ged Murphy
bea3c348a8 [DEVMGR]
A few g++ fixes

svn path=/trunk/; revision=69517
2015-10-12 19:18:47 +00:00
Pierre Schweitzer
fedc72ff66 [NTDLL_APITEST]
Fix test
Spotted by Alex

svn path=/trunk/; revision=69516
2015-10-12 17:43:42 +00:00
Stefan Ginsberg
00e97e51bb [RTL]
Merge DbgBreakPointWithStatus and RtlpBreakWithStatusInstruction together as one function (the latter is just a label for KD), and add new macro necessary for this (MASM very much wants "::" on a global label inside a PROC local scope). Timo, you are awesome.

Bonus: Complement HEX()'s awesomeness with the other explicit radix specifiers.

svn path=/trunk/; revision=69515
2015-10-12 17:11:56 +00:00
Amine Khaldi
540d4a2f95 [MBEDTLS] Fix _CRT_SECURE_NO_DEPRECATE redefinition warnings.
svn path=/trunk/; revision=69514
2015-10-12 13:15:14 +00:00
Amine Khaldi
5272a37712 [MBEDTLS] Missed these files in svn. Addendum to r69512. CORE-10318
svn path=/trunk/; revision=69513
2015-10-12 12:50:06 +00:00
Amine Khaldi
9959dee59b [MBEDTLS] Update to v2.1.2. By Ismael Ferreras Morezuelas. CORE-10318
svn path=/trunk/; revision=69512
2015-10-12 12:47:42 +00:00
Amine Khaldi
b792e060da [EXT2_NEW] Addendum to r69509. CORE-10272 CR-82
svn path=/trunk/; revision=69511
2015-10-12 11:16:25 +00:00
Thomas Faber
208bc485ff [BROWSEUI]
- Increase height of the animation control in the file operation progress dialog to avoid cut-off. Patch by Jared Smudde.
CORE-10326 #resolve

svn path=/trunk/; revision=69510
2015-10-12 10:55:16 +00:00
Amine Khaldi
897634ce5b [EXT2_NEW] Add Matt Wu's ext2 filesystem driver. Not enabled by default just yet. Brought to you by Peter Hater with reviews and improvements by Thomas Faber and Pierre Schweitzer. CORE-10272 CR-82
svn path=/trunk/; revision=69509
2015-10-12 10:19:10 +00:00
Thomas Faber
350351aa24 [EXPLORER]
- Correct tray icon image list handling. Patch by Joachim Henze
CORE-10257 #resolve

svn path=/trunk/; revision=69508
2015-10-12 10:05:39 +00:00
Pierre Schweitzer
c4b93ac3c5 [WHOOPS]
C/P error

svn path=/trunk/; revision=69507
2015-10-11 21:51:32 +00:00
Pierre Schweitzer
24420c2ba1 [NTDLL_APITESTS]
Extend the RtlAllocateHeap() test

svn path=/trunk/; revision=69506
2015-10-11 21:49:16 +00:00
Pierre Schweitzer
a6f57db58c [RTL]
Implement support for HEAP_CREATE_ALIGN_16 in RtlAllocateHeap()

svn path=/trunk/; revision=69505
2015-10-11 21:10:46 +00:00
Pierre Schweitzer
7feed70d00 [NTDLL_APITESTS]
Add a test that shows that RtlAllocateHeap() totally ignores HEAP_CREATE_ALIGN_16

svn path=/trunk/; revision=69504
2015-10-11 21:10:03 +00:00
Thomas Faber
c0cd33da02 [NTOS:PO]
- Pass the correct DeviceObject to PoRequestPowerIrp's callback
- Use the IRP stack to store callback parameters instead of a pool allocation as shown by the test

svn path=/trunk/; revision=69503
2015-10-11 19:57:06 +00:00
Daniel Reimer
a7c1b9e740 [RAPPS]
These are ini files in theory, so the ending is by default CRLF. Explained here: http://www.nongnu.org/chmspec/latest/INI.html

svn path=/trunk/; revision=69502
2015-10-11 18:38:40 +00:00
Eric Kohl
bc538be477 [INTL]
Update number and currency examples according to the current settings.
CORE-10074 #resolve

svn path=/trunk/; revision=69501
2015-10-11 18:36:22 +00:00
Thomas Faber
5e05f2675b [KMTESTS:PO]
- Fix build

svn path=/trunk/; revision=69500
2015-10-11 17:11:53 +00:00
Thomas Faber
073a2904ca [KMTESTS:PO]
- Add a test for PoRequestPowerIrp

svn path=/trunk/; revision=69499
2015-10-11 17:06:14 +00:00
Daniel Reimer
400e093f7b [RAPPS]
Add SHA-1 digests to RAPPS DB packages by Ismael Ferreras Morasuelas (swyter)
CORE-10319 #resolve #comment Errr... sorry, I was just told that we already verify downloaded stuff in rapps... committed and thx for the work you spent in it...
/me hides

svn path=/trunk/; revision=69498
2015-10-11 15:41:55 +00:00
Eric Kohl
b0c11b7004 [INTL]
Update date and time examples according to the current settings.
CORE-10074

svn path=/trunk/; revision=69497
2015-10-11 15:21:25 +00:00
Stefan Ginsberg
9d6572fbd3 [NTOS] Follow up to r69075: Assert IRQL correctly in KeDisconnectInterrupt too (do not assume debug build means MP build).
svn path=/trunk/; revision=69496
2015-10-11 13:18:30 +00:00
Thomas Faber
8fc986080b [PORTCLS]
- Don't attempt broken pointer magic on power states

svn path=/trunk/; revision=69495
2015-10-11 08:19:18 +00:00
Thomas Faber
8b6a867b02 [WIN32K]
- Separate system-defined from user-defined window properties. The values stored by win32k/user32 must not interfere with those stored by applications. Fixes various applications (e.g. PeaZip) randomly getting their window properties overwritten by the system
CORE-3897 #resolve

svn path=/trunk/; revision=69494
2015-10-10 19:50:05 +00:00
Thomas Faber
09e3698afb [WIN32K]
- Rename IntSetProp to UserSetProp, IntRemoveProp to UserRemoveProp and IntRemoveWindowProp to UserRemoveWindowProps

svn path=/trunk/; revision=69493
2015-10-10 17:56:09 +00:00
Thomas Faber
0d9f374451 [WIN32K:NTUSER]
- Remove some unnecessary referencing in NtUserCallHwnd

svn path=/trunk/; revision=69492
2015-10-10 17:46:57 +00:00
Thomas Faber
e8273d11f2 [WIN32K:NTUSER]
- Don't call IntGetProp from outside prop.c

svn path=/trunk/; revision=69491
2015-10-10 16:43:47 +00:00
Thomas Faber
9c78e0659c [USER32_APITEST]
- Add some tests for window properties
CORE-3897

svn path=/trunk/; revision=69490
2015-10-10 16:08:31 +00:00
Pierre Schweitzer
0a193d609a [CSQ]
Add even more sanity checks

svn path=/trunk/; revision=69489
2015-10-10 14:52:19 +00:00
Thomas Faber
4c064550ec [WIN32K:NTUSER]
- Make IntRemoveProp return the property value and use it from NtUserRemoveProp

svn path=/trunk/; revision=69488
2015-10-10 14:43:25 +00:00
Pierre Schweitzer
7e1a5245cd [CSQ]
Add a sanity check

svn path=/trunk/; revision=69487
2015-10-10 14:01:01 +00:00
Eric Kohl
2972d67975 [INTL]
- Add the SystemLCID to the GlobalData variable and use it in the Advanced page.
- Add a stub for storing font linking settings.
CORE-10075

svn path=/trunk/; revision=69486
2015-10-10 13:54:00 +00:00
Thomas Faber
3c30cd6527 [WIN32K:NTUSER]
- Remove some DECLARE_RETURN()/RETURN()
- Add asserts for the user lock
- Annotate window property functions and use consistent parameter names

svn path=/trunk/; revision=69485
2015-10-10 13:48:08 +00:00
Thomas Faber
34867f7658 [WIN32K:FORMATTING]
- Indentation and whitespace fixes for ntuser/prop.c. No functional changes.

svn path=/trunk/; revision=69484
2015-10-10 13:06:57 +00:00
Pierre Schweitzer
6da1a0b9b0 [MSFS]
Fix a FIXME: properly reset timer when re-using a queued IRP for reading.
Also fix a possible race condition between time out DPC and IRP re-use.

Thanks to Thomas for his help with DPC & timers.

CORE-10245

svn path=/trunk/; revision=69483
2015-10-10 12:50:33 +00:00
Pierre Schweitzer
9b2b4cbee8 [MSFS]
- Remove an useless (and unsafe!) counter
- Use the message counter in a thread-safe way in RW operations

svn path=/trunk/; revision=69482
2015-10-10 12:33:22 +00:00
Pierre Schweitzer
1d4d8588ef [MSFS]
MessageEvent is no longer used, remove it

svn path=/trunk/; revision=69481
2015-10-10 12:16:17 +00:00
Pierre Schweitzer
4b5eca57a3 [MSFS]
Prevent a race condition on reading message from list.
Spotted by Thomas

svn path=/trunk/; revision=69480
2015-10-10 12:08:45 +00:00
Eric Kohl
7892dc54c2 [NOTEPAD]
Goto menu item should be disabled when wrap is on
#CORE-10278 #resolve

svn path=/trunk/; revision=69479
2015-10-10 10:13:46 +00:00
James Tabor
89eae28ca7 [Win32k]
- Fix repaint from off screen. See CORE-10098.

svn path=/trunk/; revision=69478
2015-10-10 10:10:15 +00:00
Pierre Schweitzer
ecba06ffa2 [MSFS]
Addendum to r69475
By Thomas Faber

svn path=/trunk/; revision=69477
2015-10-10 08:37:36 +00:00
Pierre Schweitzer
a5031d7982 [MSFS]
Addendum to r69475

svn path=/trunk/; revision=69476
2015-10-10 08:31:25 +00:00
Pierre Schweitzer
ead10526aa [MSFS]
Implement asynchronous reading from mailslot.
Patch by Nikita Pechenkin

Adjustements, style fixing by myself.

CORE-10245 #resolve #comment Modified patch committed with r69475. I have tested kernel32:mailslot and your provided test, both are passing 100%. Thanks!

svn path=/trunk/; revision=69475
2015-10-10 08:29:05 +00:00
Pierre Schweitzer
8cd50ca0ee [XDK]
Properly define IO_CSQ function types

CORE-10245

svn path=/trunk/; revision=69474
2015-10-10 07:55:42 +00:00
Giannis Adamopoulos
29fb77c656 [BROWSEUI]
- Implement showing and hiding the Go button. Patch by  Barrett Karish.
CORE-10154

svn path=/trunk/; revision=69473
2015-10-09 13:20:45 +00:00
Amine Khaldi
89c70e0fde [PSDK] Correct addParameter() uri default value too. CORE-10320
svn path=/trunk/; revision=69472
2015-10-09 09:27:39 +00:00
Amine Khaldi
44ebfc6638 [PSDK] Correct setStartMode() uri default value. CORE-10320
svn path=/trunk/; revision=69471
2015-10-09 09:12:57 +00:00
Robert Naumann
ec3ab6d477 [SHELL32] Update German translation
svn path=/trunk/; revision=69470
2015-10-09 06:26:34 +00:00
Giannis Adamopoulos
ff4c32a5fb [SHELL32]
- "Fix" SHChangeNotifyRegister to report file system changes. I am not really sure if these changes are correct but really make it work now.
CORE-1171

svn path=/trunk/; revision=69469
2015-10-09 00:31:47 +00:00
Giannis Adamopoulos
203f452b02 [SHELL32]
- CDefView: Implement updating the status bar . Based on patch by Barrett Karish 
CORE-10300

svn path=/trunk/; revision=69468
2015-10-09 00:27:34 +00:00
Stefan Ginsberg
3a23a2677a Fix the fix
svn path=/trunk/; revision=69467
2015-10-08 17:19:40 +00:00
Stefan Ginsberg
a11d988984 [KERNEL32] Fix bug in CreateFiberEx that made it replace the CONTEXT_FULL bits rather than ORing in CONTEXT_FLOATING_POINT when caller wanted FPU state saved. SwitchToFiber checks for CONTEXT_FULL OR CONTEXT_FLOATING_POINT so the save/restore would fail. Moreover, fix BaseInitializeContext that was not checking CONTEXT_FLOATING_POINT correctly for some fibers and, as a result, not initializing FPU context correctly for callers of ConvertThreadToFiberEx. Finally, because trying to access address 0x6 is generally a bad idea, fix SwitchToFiber to use the correct shared user data offsets. Misc cleanup all around. Bonus: Sort TEB/PEB asm offsets and add GDI Batch Count offset, needed soon.
svn path=/trunk/; revision=69466
2015-10-08 16:26:29 +00:00
Stefan Ginsberg
68958bc083 [NTDLL] Expose the last of the system call exports so that we finally, once and for all, have the whole NTOS API properly exposed to user mode. Only real change is some NtLoadKey* functionality, rest is a bunch of EFI stubs.
svn path=/trunk/; revision=69464
2015-10-08 12:22:33 +00:00
Robert Naumann
d1cf74cb88 [SYSDM] Change the applet icon to a new, better looking one. By Ismael Ferreras Morezuelas CORE-10107
svn path=/trunk/; revision=69463
2015-10-07 12:33:47 +00:00
Thomas Faber
42547f689d [NTOBJSHEX]
- Correctly handle NULL ppidl in EnumerateNext as required by Skip() callers
- Don't reenumerate NT directories every time EnumerateNext is called from Skip()
CORE-10311 #resolve

svn path=/trunk/; revision=69462
2015-10-07 10:23:06 +00:00
Hermès Bélusca-Maïto
51553f4652 [RAPPS(_new)]
Remove few trailing whitespace in lang resources.

svn path=/trunk/; revision=69461
2015-10-06 01:14:02 +00:00
Hermès Bélusca-Maïto
2a51072445 [RAPPS(_new)]
- French translation update.
- Sync french translation with rapps_new.

svn path=/trunk/; revision=69460
2015-10-06 01:13:31 +00:00
Thomas Faber
b65d0f5cc4 [RAPPS]
- Add support for SHA-1 validation of completed downloads. Patch by Ismael Ferreras Morezuelas
CORE-10301 #resolve

svn path=/trunk/; revision=69459
2015-10-06 00:22:07 +00:00
Amine Khaldi
6e1effdda5 [WIN32SS::WINSRV] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69458
2015-10-05 12:21:25 +00:00
Amine Khaldi
9cade9234a [SCHANNEL] Fix missing p in the function pointers. By Ismael Ferreras Morezuelas. CORE-9065
svn path=/trunk/; revision=69457
2015-10-05 11:43:41 +00:00
Thomas Faber
89a9c63c2d [RAPPS]
- Fix another potential buffer overflow

svn path=/trunk/; revision=69456
2015-10-05 11:25:49 +00:00
Thomas Faber
aa0a9559ed [RAPPS]
- Fix buffer overflow when displaying the URL in download dialog

svn path=/trunk/; revision=69455
2015-10-05 09:17:21 +00:00
Alex Ionescu
1a9d2da6dc [BOOTLIB]:
- Implement BiInitializeAndValidateHive, BiLoadHive. Leveraging our existing cmlib and the previously committed code, we are now able to read the BCD file, parse it as a registry hive, and lookup the BCD Objects subkey! The BCD Data Store is now available to the Boot Manager (which also validates that reading from ETFS works).

svn path=/trunk/; revision=69454
2015-10-05 07:25:27 +00:00
Alex Ionescu
0f6b79b197 [HIVEBCD]:
- The Objects key is in the root, not under Description.
[MKHIVE]:
- Make it *actually* build a BCD hive. It was doing nothing before, because it turns out that irrespective of what appear to be dynamic, command-line driven behavior modes, all of mkhive's logic is deeply tied together through C-level changes and knowledge. (for example, that's why calling it with a single .inf, it still wants to build 6 hives for you). There were also some copy/pasta bugs in the BCD handling code, now fixed.

svn path=/trunk/; revision=69453
2015-10-05 07:22:11 +00:00
Alex Ionescu
0cc3cfadf3 [BOOTLIB]:
- Fix multiple bugs in ETFS code (confusion between file offset vs. disk offset)
- Implement EtfsGetInformation, EtfsSetInformation, and fix ETFS_FILE definition to make this easy.
- Implement EtfsRead.
- Fix multiple bugs in file I/O code (swapped/reversed validation checks)
- Make BlStatusPrint call EfiPrintf on debug builds, even without BD.
- Add some additional error logging.

svn path=/trunk/; revision=69452
2015-10-05 05:53:40 +00:00
Alex Ionescu
10dbbf573b [BOOTLIB]:
- Fix a regression
- Add a few more flags
- Don't look for BCD in "Microsoft" directory

svn path=/trunk/; revision=69451
2015-10-05 04:51:32 +00:00
Alex Ionescu
b25523b5e3 [BOOTLIB]:
- Fix BCD bugs.

svn path=/trunk/; revision=69450
2015-10-05 01:02:56 +00:00
Eric Kohl
b099514289 [INTL]
- Improve the internal locale storage. Replace the array of strings by a customized struct.
- Implement the locale customization properly. The customization property sheet modifies the internal locale storage rather than the registry. Now, cancelling changes works properly.

CORE-10074

svn path=/trunk/; revision=69449
2015-10-04 21:57:03 +00:00
Alex Ionescu
a1100ebbb1 People's local builds use PCH by default, rosbuilds do not. A recipe for success.
svn path=/trunk/; revision=69448
2015-10-04 21:11:48 +00:00
Alex Ionescu
e7dee1f989 [BOOTLIB]:
- WIP work to begin reading, parsing, mounting and loading the BCD hive into a data store. Untested, has missing pieces.
- Implement BlFileSet/GetInformation, BlFileReadEx, BlFileReadAtOffsetEx and helper structures/functions. Document multiple previously unknown/magic flags.
- Implement BlMmAllocatePhysicalPages. Stub BlMmFreePhysicalPages.
- Implement MmUnmapVirtualAddress, BlMmUnmapVirtualAddressEx when operating in real mode.
- Implement ImgpGetFileSize, ImgpReadFileAtOffset, ImgpOpenFile, ImgpCloseFile, BlImgAllocateImageBuffer, BlImgLoadImageWithProgress2.
- Implement BdDebuggerInitialized, BlBdDebuggerEnabled, BlStatusPrint, BlStatuserror. Stub BlBdPullRemoteFile.
- Implement BlGetBootOptionDevice.
- Implement BiReferenceHive, BiDereferenceHive, BiCloseKey, BiOpenKey. Stub BiFlushKey, BiLoadHive.
- Implement BiAddStoreFromFile, BcdOpenStoreFromFile.
- Stub BlUtlUpdateProcess and BlResourceFindMessage.
- Other misc. cleanups.
[BOOTMGR]:
- Implement BmpFatalErrorMessageFilter, BmErrorPurge, BmpErrorLog, BmFatalErrorEx.
- Implement BmpFwGetFullPath.
- Implement BmOpenDataStore.
- Stub BmOpenBootIni

svn path=/trunk/; revision=69447
2015-10-04 21:07:12 +00:00
Alex Ionescu
e17f8bc3e7 [CMLIB]:
- Missing header change from previous commit.

svn path=/trunk/; revision=69446
2015-10-04 20:24:52 +00:00
Alex Ionescu
d934457d73 [MKHIVE]:
- Whoever wrote mkhive ran into the problem I just did, and realized hey-i-dont-fucking-want-to-use-that-almost-copy-pasted-but-not-shared-code-so-why-dont-i-use-the-good-kernel-code-instead... but instead of taking the time to create a fucking library like I just did (cause that would be hard man, and fixing headers n' shit), just hard-coded the paths to the kernel files directly like a lazy shit. Fix mkhive to just rely on cmlib, which now has the files shared there.

svn path=/trunk/; revision=69445
2015-10-04 20:23:25 +00:00
Alex Ionescu
85b39039dd [CMLIB/NTOSKRNL]:
- Move cmindex.c and cmname.c to cmlib, because bootmgr/winload use the kernel's cm implementation, unlike our freeldr which uses an almost copy-pasted-but-not-shared-because-hey-why-not-have-to-fix-the-bugs-in-two-places-instead-of-just-one implementation.
- Minor fixes to headers to allow those two files to be used/built outside of ntoskrnl.

svn path=/trunk/; revision=69444
2015-10-04 20:18:49 +00:00
Thomas Faber
f7a1eb0c1a [RAPPS]
- Fix incorrect buffer sizes
- Use safe string functions
- Avoid extended chars in string literals

svn path=/trunk/; revision=69443
2015-10-04 19:39:23 +00:00
Alex Ionescu
bde25860e7 [FS_REC]: Guard against ROUND_UP/DOWN already being defined.
svn path=/trunk/; revision=69442
2015-10-04 17:14:24 +00:00
Alex Ionescu
6c476394c7 [NTOSKRNL]: Jerome _was_ nice enough to make our cells ordered (64222).
svn path=/trunk/; revision=69441
2015-10-04 17:13:38 +00:00
Amine Khaldi
0839fbe8c2 [MBEDTLS] Update mbedtls to v2.1.1. By Ismael Ferreras Morezuelas with a fix by Roy Tam. CORE-9065
svn path=/trunk/; revision=69440
2015-10-04 17:08:38 +00:00
Amine Khaldi
ec120a57d3 [NTOS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69439
2015-10-04 11:54:25 +00:00
Amine Khaldi
04cf45ec29 [NTVDM] Revert r69435.
svn path=/trunk/; revision=69438
2015-10-04 11:49:28 +00:00
Sylvain Petreolle
b86a4b8e83 Fix 0x%lu specifier in our skeleton service and its only user tcpsvcs.
svn path=/trunk/; revision=69437
2015-10-03 22:38:05 +00:00
Sylvain Petreolle
1a33bc3cdf [ROSTESTS]
Fix 0x%lu specifier.
Add cmake file for notificationtest.

svn path=/trunk/; revision=69436
2015-10-03 22:21:19 +00:00
Amine Khaldi
f24e24d07c [NTVDM] Improve the PCH situation.
svn path=/trunk/; revision=69435
2015-10-03 21:47:46 +00:00
Sylvain Petreolle
4aa8ae13c2 [user32_apitest]
0x%lu does not mean anything correct.

svn path=/trunk/; revision=69434
2015-10-03 21:41:10 +00:00
Amine Khaldi
7015fd7b50 [NTVDM] Fix PCH w.r.t. using the debug routines. The PCH use here in itself could use *a lot* of improvements but that's another story.
svn path=/trunk/; revision=69433
2015-10-03 19:17:55 +00:00
Hermès Bélusca-Maïto
0e9fed957d [NTVDM]
- French translation fix.
- Add PCH support.
- Properly track RC files dependencies. CORE-9806

svn path=/trunk/; revision=69432
2015-10-03 18:57:06 +00:00
Hermès Bélusca-Maïto
cf07fbe7ba [NTVDM]
Usability fixes (part 2):
- Properly keep the mouse show state across screenbuffer switches.
- Use unicode strings for the disk menu items.
See r69428.

svn path=/trunk/; revision=69431
2015-10-03 15:06:24 +00:00
Hermès Bélusca-Maïto
9fef17180f [WIN32SS:GDI]
Convert COLOR16 values to byte range before calling XLATEOBJ_iXlate.
This fixes gradient colors in some applications, as for example in Code::Blocks.
Patch by Vort. This is a fix for code written in revision r8117, so old !!
CORE-8652 #comment Committed in r69430, thanks guys!

svn path=/trunk/; revision=69430
2015-10-03 13:30:15 +00:00
Amine Khaldi
161dd3557d [RAPPS] Fix SSL certificate pinning, allow HTTPS links, add URL args support, some UX fixes, comment improvements and fix stopping the download process when pressing cancel. By Ismael Ferreras Morezuelas. CORE-9060 CORE-10289
svn path=/trunk/; revision=69429
2015-10-03 08:39:05 +00:00
Hermès Bélusca-Maïto
a2871b319a [NTVDM]
Usability fixes:
- Update the menu each time the user chooses to show or hide the mouse pointer.
- Keep the mouse show state across screenbuffer switches (text/graphics) (half-hackish at the moment; will be elegantly fixed later on).
- Update the floppy disk menu items each time the user mounts / ejects a disk; display the disk image file name currently mounted (CHAR strings used at the moment, WCHAR conversion will follow soon).

svn path=/trunk/; revision=69428
2015-10-03 02:36:35 +00:00
Aleksandar Andrejevic
7fe13943a9 [FAST486]
Reading/writing to memory should #SS(0) when the segment is the stack segment,
and #GP(0) otherwise. It should never generate #NP.


svn path=/trunk/; revision=69427
2015-10-02 15:11:24 +00:00
Amine Khaldi
a1ae94ce52 [INCLUDES] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69426
2015-10-01 18:12:45 +00:00
Amine Khaldi
0efc45dd0b [RAPPS] Get rid of the flickering of the URL in the download dialog and decode it. By Ismael Ferreras Morezuelas. CORE-9060
svn path=/trunk/; revision=69425
2015-10-01 09:37:55 +00:00
Aleksandar Andrejevic
2efd4b6466 [FAST486]
Fix the TSS limit validity check.
Implement I/O privilege checking.


svn path=/trunk/; revision=69424
2015-10-01 02:24:17 +00:00
Hermès Bélusca-Maïto
66aea017f9 [NTVDM]: Fix the open-file dialog filter.
svn path=/trunk/; revision=69423
2015-10-01 02:03:31 +00:00
Hermès Bélusca-Maïto
1f6976b003 [NTVDM]
- Temporarily hack the boot sequence to floppy, then hard disk. See r69421; will be improved in the future.
- Complete the BIOS 16-bit bootstrap code.

svn path=/trunk/; revision=69422
2015-10-01 00:37:38 +00:00
Hermès Bélusca-Maïto
59136514da [NTVDM]
- Add a basic boot sequence functionality (read from CMOS); will be improved in the future.
- Print a "FATAL BOOT FAILURE" error message when INT 18h is called.
- Fail startup if we cannot mount the available hard disk images.
- Improve some diagnostic error messages.

svn path=/trunk/; revision=69421
2015-10-01 00:09:24 +00:00
Aleksandar Andrejevic
b1b7020854 [FAST486]
- Don't forget to push the error code when the exception handler is a task gate.
- Use SS0/ESP0, SS1/ESP1, or SS2/ESP2 for ring 0/1/2 code task CALLs.


svn path=/trunk/; revision=69420
2015-09-30 21:08:31 +00:00
Ged Murphy
36196c1275 [DEVMGR]
Add typedef for CStringAtlW. Fixes msvc build

svn path=/trunk/; revision=69419
2015-09-30 19:55:52 +00:00
Pierre Schweitzer
c0809f38c1 [CDROM]
Properly implement support for IOCTL_DISK_GET_DRIVE_GEOMETRY, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX, IOCTL_DISK_GET_LENGTH_INFO in CdRomDeviceControl

CORE-10287 #resolve #comment Fixed with r69418

svn path=/trunk/; revision=69418
2015-09-30 16:29:07 +00:00
Pierre Schweitzer
5dc58d234a [KMTESTS:IO]
[KMTESTS:OB]
Simplify kernel mode thread creation

svn path=/trunk/; revision=69417
2015-09-29 18:43:35 +00:00
Stefan Ginsberg
0fbe4b9b8e Remove legacy _KeNumberProcessors hack. While we are at it fix its type (CCHAR not UCHAR) and remove it from the NDK as it is a public global provided by the DDK (where we properly define it with the "__CREATE_NTOS_DATA_IMPORT_ALIAS" fix when needed. Also, the variable KeActiveProcessors is not even exported from NTOS so move it to an internal header. Fix missed fix in UDFS as well in uncompiled file.
svn path=/trunk/; revision=69416
2015-09-29 18:34:33 +00:00
Pierre Schweitzer
1129e7a935 [MOUNTMGR]
Remove last hack

svn path=/trunk/; revision=69415
2015-09-29 18:22:38 +00:00
Pierre Schweitzer
2ca6577687 [MOUNTMGR]
Get rid of a hack, thanks to r69413

svn path=/trunk/; revision=69414
2015-09-29 17:30:54 +00:00
Thomas Faber
0f64d20e8a [CRT]
- Add "memcmp" library that is used by kernel drivers to get memcmp/RtlEqualMemory
CORE-10285 #resolve

svn path=/trunk/; revision=69413
2015-09-29 17:24:48 +00:00
Pierre Schweitzer
54d56a1de4 [NTOSKRNL]
Don't bugcheck on unimplemented FsRtlOplockFsctrl(), FsRtlCurrentBatchOplock(), FsRtlCheckOplock()
Properly implement FsRtlInitializeOplock() (which is no-op on Windows 2k3)

CORE-10284 #resolve #comment Resolved with r69412

svn path=/trunk/; revision=69412
2015-09-29 16:28:59 +00:00
Hermès Bélusca-Maïto
746c7e4435 [NTVDM]
- Add floppy image automount support from the registry, as it was done for HDDs in r69390 (it's really copy-paste & adaptation of the existing code).
- Increase HDD number support from 1 to 4 (maximum) for INT 13h.

svn path=/trunk/; revision=69411
2015-09-28 22:15:06 +00:00
Pierre Schweitzer
15bcae3db8 [CDROM]
Finally implement support for IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX

svn path=/trunk/; revision=69410
2015-09-28 21:06:02 +00:00
Pierre Schweitzer
fbd1e44066 [CDROM]
- Don't support IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX for now
- Properly implement IRP completion for IOCTL_DISK_GET_LENGTH_INFO, IOCTL_DISK_GET_DRIVE_GEOMETRY

svn path=/trunk/; revision=69409
2015-09-28 20:20:46 +00:00
Aleksandar Andrejevic
8041081764 [NTVDM]
Fix a division-by-zero problem by storing the mouse driver's Width and Height
in DWORDs, thus avoiding the integer overflow which could make them zero.


svn path=/trunk/; revision=69408
2015-09-28 18:55:26 +00:00
Aleksandar Andrejevic
646f9543f1 [FAST486]
- Always use the descriptor type, and never the limit, to identify
legacy vs. modern TSSes.
- Don't forget to write back the modified TSS link.


svn path=/trunk/; revision=69407
2015-09-28 18:51:48 +00:00
Pierre Schweitzer
304222462c [CDROM]
Implement IOCTL_DISK_GET_LENGTH_INFO, IOCTL_DISK_GET_DRIVE_GEOMETRY_EX, IOCTL_DISK_GET_DRIVE_GEOMETRY, IOCTL_CDROM_GET_DRIVE_GEOMETRY_EX.

Dedicated to Peter Hater
CORE-10272

svn path=/trunk/; revision=69406
2015-09-28 17:55:48 +00:00
Amine Khaldi
f320087017 [TOOLS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69405
2015-09-28 17:31:37 +00:00
Daniel Reimer
de6cadc60c [RAPPS]
Update German translation.

svn path=/trunk/; revision=69404
2015-09-28 16:16:37 +00:00
Giannis Adamopoulos
55ce4d5177 [SHELL32]
- Actually use the localized name for Control Panel.

svn path=/trunk/; revision=69403
2015-09-28 16:04:34 +00:00
Pierre Schweitzer
f8adcba691 [RAPPS]
Update French translation

svn path=/trunk/; revision=69402
2015-09-28 15:29:41 +00:00
Christoph von Wittich
58125df4b5 [RAPPS]
add support for SSL certificate pinning

svn path=/trunk/; revision=69401
2015-09-28 14:09:09 +00:00
Stefan Ginsberg
b0f0ec8442 [NTOS] Implement the KD Get/SetContextEx functionality (copying part of a CONTEXT via Offset + Byte Count instead of copying a whole context), and stub out KdpWriteCustomBreakpoint. Newer WinDbg uses the GetContextEx functionality regardless of whether we report it as supported or not, and didn't seem to fall back on the regular GetContext functionality when it was missing, so whatever it was using it for should work awesome now. This had no impact on the broken Registers window though. Also small fix to use the _M_XXX checks consistently.
svn path=/trunk/; revision=69400
2015-09-28 14:08:54 +00:00
Stefan Ginsberg
f543c860f7 [NTOS] Fix kmtest
svn path=/trunk/; revision=69399
2015-09-28 12:48:14 +00:00
Pierre Schweitzer
3ee5af9d50 [KMTESTS:OB]
Add a test dedicated to Stefan.

svn path=/trunk/; revision=69398
2015-09-28 12:25:38 +00:00
Amine Khaldi
af2f5e5742 [MBEDTLS] Add a resource file for the dll. By Ismael Ferreras Morezuelas with minor changes by me. CORE-9065
svn path=/trunk/; revision=69397
2015-09-28 12:09:26 +00:00
Pierre Schweitzer
cf9617f9dd [RAPPS]
Thanks to r69394, switch rapps database download to https

svn path=/trunk/; revision=69396
2015-09-28 11:50:58 +00:00
Amine Khaldi
ae8eaa4c80 [GNUTLS] Get rid of what's left of the GnuTLS back-end. CORE-9065
svn path=/trunk/; revision=69395
2015-09-28 11:23:36 +00:00
Amine Khaldi
af1f741b6b [MBEDTLS] Use mbedtls as a lightweight schannel TLS/SSL back-end. This is an initial checkpoint and more will follow in due time. Brought to you by Peter Hater, Ismael Ferreras Morezuelas, Sebastian Lackner and Michael Müller. CORE-9065
svn path=/trunk/; revision=69394
2015-09-28 09:43:08 +00:00
Stefan Ginsberg
79dd48516a [NTOS] Fix the Ob wait system calls to only catch the exceptions that are expected to be raised by the Ke wait functions (and not potentially silently catching *any* exception and corrupting everything in the process). Also fixup some code logic. SEH Mega Fixup 1/???
svn path=/trunk/; revision=69393
2015-09-28 09:01:11 +00:00
Pierre Schweitzer
2f08cf3f2a [NTDLL_APITEST]
*.S expects length in chars

svn path=/trunk/; revision=69392
2015-09-28 08:53:31 +00:00
Stefan Ginsberg
63a2204088 [NTOS] Make SE routines use ExAllocateLocallyUniqueId instead of the system call variant (SeCreateAccessStateEx already did this, but with Exp*). Also, Ex(p)AllocateLocallyUniqueId can't fail so there is no need to return success all the time (and check for it...). This also just happens to move the first system call to phase 1 instead of 0.
svn path=/trunk/; revision=69391
2015-09-28 07:44:49 +00:00
Hermès Bélusca-Maïto
abd59d8101 [NTVDM]
Read global settings from the register (in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\NTVDM ; note that this is a ReactOS-only configuration key, because no equivalent functionality exists on windows), and currently initialize:
- the BIOS and ROM files to be used;
- the hard disks to be mounted at startup (they cannot be unmounted at runtime, contrary to the floppies) (maximum 4 hard disks).

svn path=/trunk/; revision=69390
2015-09-28 01:36:31 +00:00
Pierre Schweitzer
1ab5b38172 [RTL]
Major bugfixing session for RtlGenerate8dot3Name()... Up to know, AllowExtendedCharacters was totally ignored and any upcased char, as long as it was not in the forbidden list was accepted. This was bringing numerous problems (cf: apitest :-)).

So, now, the following fixes were brought:
- AllowExtendedCharacters isn't ignored any longer. If it's given, the unicode char is upcased, if it's not, as previously, the ansi char is upcased
- Be more strict in the allowed chars in name: only allow "graph" chars. This avoids generating broken names that aren't allowed in FAT
- In case no char could be added in the name, then, for the generation of the name checksum and use it as shortname
- When writing the checksum, don't use reversed order, but direct order, to match Windows behavior (as exposed with tests)
- When writing the checksum, use when possible bit operations instead of numerical operations for performances reasons (NFC)
- Rewrite RtlpGetCheckSum() with an algorithm that produces the exact same checksums than Windows 2003.

This whole commit fixes all apitests related (direct visible effect). As a bonus, it also fixes short names generation in FAT: we no longer produce broken volumes with international file names.
This also fixes less visible issues: we were producing unicode strings with null char in their middle (as exposed in tests), not sure about how all functions could handle this: likely not that good, this could have lead to various memory issues & corruptions.

CORE-10223 #resolve #comment Fixed with r69389

svn path=/trunk/; revision=69389
2015-09-27 20:54:20 +00:00
Pierre Schweitzer
df8ea25b31 [NTDLL_APITEST]
Add more tests for RtlGenerate8dot3Name().
Not sure how many more are failing in ReactOS: they all pass in my WC (teasing :-))

CORE-10223

svn path=/trunk/; revision=69388
2015-09-27 20:41:14 +00:00
Amine Khaldi
54375c9318 [SHELLEXTS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69387
2015-09-27 18:40:24 +00:00
Amine Khaldi
1c49aad636 [SHELLEXTS] Properly track resource file dependencies. CORE-9806
svn path=/trunk/; revision=69386
2015-09-27 18:37:23 +00:00
Amine Khaldi
ae4040aeda [CPLS] Properly track resource file dependencies. CORE-9806
svn path=/trunk/; revision=69385
2015-09-27 18:30:39 +00:00
Amine Khaldi
7b16b375e5 [MMDEVAPI_WINETEST] Add missing dxsdk dependency.
svn path=/trunk/; revision=69384
2015-09-27 18:25:34 +00:00
Thomas Faber
2859b9f49c [NTOS:EX]
- Remove push lock asserts that are prone to race conditions
CORE-10267 #resolve

svn path=/trunk/; revision=69383
2015-09-27 17:40:23 +00:00
Hermès Bélusca-Maïto
d52803c9e7 [NTVDM]: Update the read/write flag of the mounted image: fixes errors when trying to write to the read-only image. Now we correctly return a "write-protected" disk error.
svn path=/trunk/; revision=69382
2015-09-27 17:39:29 +00:00
Robert Naumann
d7981400fd [WINMINE] Improve the mine bitmap. By Jared Smudde. CORE-10251
svn path=/trunk/; revision=69381
2015-09-27 17:35:54 +00:00
Robert Naumann
5e9d387a26 [SHELL32]Update some toolbar button bitmaps. By Jared Smudde. CORE-10232
svn path=/trunk/; revision=69380
2015-09-27 17:15:09 +00:00
Robert Naumann
82b8b67c68 [ICONS]Massive icon improvements by Jared Smudde. CORE-10023
svn path=/trunk/; revision=69379
2015-09-27 16:59:28 +00:00
Robert Naumann
c405397385 [NTVDM] Update German translation
svn path=/trunk/; revision=69378
2015-09-27 16:28:27 +00:00
Hermès Bélusca-Maïto
cba85f673d [KERNEL32]: Use the _ARRAYSIZE macro in the ENV_NAME_ENTRY macro, for the same reasons mentioned in r69376.
svn path=/trunk/; revision=69377
2015-09-27 16:16:26 +00:00
Hermès Bélusca-Maïto
9be71e7524 [NTVDM]: Fix GCC build by using _ARRAYSIZE (which is the old-school sizeof(foo)/sizeof(foo[0]) macro) instead of ARRAYSIZE (which does the same but in a more complicated way, which involves a construct that cannot be embedded inside definitions of variables).
svn path=/trunk/; revision=69376
2015-09-27 16:12:45 +00:00
Hermès Bélusca-Maïto
fbb3c519c3 [NTVDM]
- Start implementing a user menu for mounting/unmounting floppy disks at runtime. Menu state refresh & proper localization remain to be done.
- Add a temporary "Sleep(INFINITE)" where the VdmShutdown function is susceptible to trigger again a VDM cleanup in case it was called again in parallel. For diagnosing CORE-10182, see also r69366.

svn path=/trunk/; revision=69375
2015-09-27 15:24:26 +00:00
Giannis Adamopoulos
7d4f528f60 [SHELL32]
- Fix for drive free/total space in My Computer. Patch by Barrett Karish.
CORE-10264

svn path=/trunk/; revision=69374
2015-09-27 15:09:28 +00:00
Giannis Adamopoulos
e6b8a983ae [SHELL32]
- Don't duplicate the code for getting the name of a drive. CDrivesFolder already does  it (and it does it better). Make the drive properties call it to get the name it needs.
CORE-10258

svn path=/trunk/; revision=69373
2015-09-27 14:27:09 +00:00
Amine Khaldi
88ec65d6d7 [DIRECTX] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69372
2015-09-27 14:00:29 +00:00
Giannis Adamopoulos
f491eeaf59 Fix gcc build
svn path=/trunk/; revision=69371
2015-09-27 11:47:08 +00:00
Giannis Adamopoulos
5e6ff64ad7 [SHELL32]
- Improve a change from r27016. Running the control panel applets in the context of explorer is not correct. We should really use ShellExecute here.

svn path=/trunk/; revision=69370
2015-09-27 11:31:52 +00:00
Giannis Adamopoulos
466e9a0571 [SHELL32]
- Fix SH_ParseGuidDisplayName which was completely broken when I committed it.
- Use GUIDFromStringW instead of SHCLSIDFromStringW in _ILCreateGuidFromStrW. The latter needs the string to terminate right after the guid.

svn path=/trunk/; revision=69369
2015-09-27 10:52:10 +00:00
Aleksandar Andrejevic
88e5d9fb36 Forgot to commit this file.
svn path=/trunk/; revision=69368
2015-09-26 19:23:59 +00:00
Aleksandar Andrejevic
441ccab2b4 [FAST486]
Whether a TSS is 16-bit or 32-bit depends solely on its signature.
Its size is irrelevant.


svn path=/trunk/; revision=69367
2015-09-26 19:22:50 +00:00
Hermès Bélusca-Maïto
3d49a7a6d4 [NTVDM]
Add a DPRINT to diagnose CORE-10182

svn path=/trunk/; revision=69366
2015-09-26 17:46:07 +00:00
Hermès Bélusca-Maïto
59028e471e [NTVDM]
Add basic disk support with mounting/unmounting images in NTVDM:
- basic disk controller (at the moment this is just a collection of helper functions. A real HW emulation will come later on).
- INT 13h services for the BIOS.
At the moment, the images to be mounted are hardcoded in disk.c. Please see disk.c for examples of how to use the function. This will be reworked to allow user choice without having to recompile NTVDM.
CORE-10262 #resolve

svn path=/trunk/; revision=69365
2015-09-26 17:35:31 +00:00
Amine Khaldi
728e1a6bfa [BOOT] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69364
2015-09-26 16:31:49 +00:00
Amine Khaldi
b43d84ffb5 [COMCTL32] Mark a ros-diff with its tracking ticket: CORE-4912
svn path=/trunk/; revision=69363
2015-09-26 16:30:49 +00:00
Stefan Ginsberg
a73afd7919 [KE]
Misc trap/interrupt fixes:
- Stub legacy KiGetTickCountHandler (INT 2A) to fail instead of breakpointing. We have made it so far without it, and if someone finds something that actually uses this instead of Win32's GetTickCount we can add it then. Raises the bar of making ReactOS breakpoint from 2 bytes to 4.
- Bugcheck with the right status code in case Kei386EoiHelper is called (which means you are trying to load a Windows HAL which we totally do not support right now).
- Use Ke* instead of Kf* in C code for IRQL routines.

svn path=/trunk/; revision=69362
2015-09-26 10:12:53 +00:00
Hermès Bélusca-Maïto
6a0561cf4f [NTVDM]
- Don't hardcode magic values of characters if they have C escape codes.
- Print an extra newline on call to the Ctrl-C handler, as it is done on real DOS.
- Use a do{}while loop which loops while we don't have read a CR character.

svn path=/trunk/; revision=69361
2015-09-26 03:24:55 +00:00
Aleksandar Andrejevic
6a44a622b4 [NTVDM]
DosReadFile echoes the line feed when it encounters it.
A backspace should delete the '^' sign for special characters.


svn path=/trunk/; revision=69360
2015-09-26 02:51:37 +00:00
Aleksandar Andrejevic
acfe187655 [NTVDM]
Fix INT 21h/0Ah.
DosReadCharacter shouldn't echo all the time.


svn path=/trunk/; revision=69359
2015-09-26 00:05:10 +00:00
Hermès Bélusca-Maïto
ac8f71fc86 [NTVDM]
- Fix a comment.
- Do not hardcode buffer size.
- LPVOID -> PVOID.

svn path=/trunk/; revision=69358
2015-09-25 22:42:08 +00:00
Aleksandar Andrejevic
357395eacc [NTVDM]
Don't echo when STDIN isn't the CON device.


svn path=/trunk/; revision=69357
2015-09-25 22:09:37 +00:00
Aleksandar Andrejevic
7f662fde76 [NTVDM]
Fix DOS character device I/O. Implement CON line buffering.
Make sure INT 21h functions 01h, 06h, 07h, 08h, 0Ah and 3Fh work as expected
for CON input.


svn path=/trunk/; revision=69356
2015-09-25 22:00:57 +00:00
Stefan Ginsberg
d8105a4366 [KDBG] Let's try to have one single version of DPFLTR_DEFAULT_ID shall we -- 101 as part of DPFLTR_TYPE enum is correct, 0xFFFFFFFF as an incorrect define for the "internal" default ID is wrong.
svn path=/trunk/; revision=69355
2015-09-25 19:28:05 +00:00
Stefan Ginsberg
0ad0cb4df8 [NDK] Put ZwCreateKeyedEvent in NDK where it belongs.
[EX] Remove "KeGetCurrentProcess" and just use the EPROCESS Pcb member for type correctness instead of inventing a new macro to hide the casting.
[PS] Remove stray INIT_FUNCTION (doesn't do much on a prototype).
[IO] Define _IO_DEBUG_ to 0 again after someone forgot to leave it on 4 years ago (only bloated the code since IopTraceLevel was 0 anyway).

svn path=/trunk/; revision=69354
2015-09-25 18:40:56 +00:00
Pierre Schweitzer
549ecc5195 [KMTESTS:IO]
Add more tests for IoCreateFile(), this time purely dealing with symlinks reparse points.
They won't run on ReactOS (obviously) as we don't have RW NTFS support.

On Windows, they show interesting results....
With Windows 2003, creating the symlink is allowed and works, but then Windows is totally unable to deal with it and keeps complaining about an unhandled reparse tag.
The only way to open it is to open the reparse point itself. Not that working symlinks... Not sure which part is not able to handle the said reparse tag. NTFS? Io?
With Windows Vista+, it just works fine. Symlink is created & functionnal.

Broken logic!

svn path=/trunk/; revision=69353
2015-09-25 15:57:28 +00:00
Pierre Schweitzer
9099445189 [KERNEL32_APITEST]
Rename apitest Mailslot test to MailslotRead to avoid testman issue with mailslot winetest

svn path=/trunk/; revision=69352
2015-09-25 14:53:08 +00:00
Pierre Schweitzer
2f233ce1f9 [KERNEL32_APITEST]
Add a test for CORE-10188 (which was fixed by Thomas in r69236).
It is based on Nikita Pechenkin's patch with a few modifications by me to avoid race condition on start (and avoid flappy test) and to match more closely our coding style

ROSTESTS-190 #resolve #comment Committed in r69351. Thanks!

svn path=/trunk/; revision=69351
2015-09-25 14:44:38 +00:00
Ged Murphy
c83ceb5eaf [ATL]
A few more gcc based fixes. Just needs the template parameter issues fixing

svn path=/trunk/; revision=69350
2015-09-24 20:59:09 +00:00
Hermès Bélusca-Maïto
1fdce1dd81 [DEVMGR_NEW]
(Resources) Add a missing comma. Fixes part of GCC build.

svn path=/trunk/; revision=69349
2015-09-24 19:11:24 +00:00
Hermès Bélusca-Maïto
85dcbc9ea2 [DEVMGR_NEW]
- Use ROS-style paths for include files.
- Fixup its CMakeFiles for C++11 compilation under GCC (done the way we did for other C++ projects).
- Add a VS project for DEVMGR to make Ged happy.

[ATL]
Start C++ fixups:
- Add 'placement new' operator.
- Add some missing functions (that were not caught by MSVC compilation because we atm. accept function usage without the existence of its actual code...).
More to follow...

svn path=/trunk/; revision=69348
2015-09-24 18:06:02 +00:00
Giannis Adamopoulos
f6bba8eac7 [SHELL32]
- Fix displaying the name of guid items.

svn path=/trunk/; revision=69347
2015-09-24 15:49:18 +00:00
Ged Murphy
efe4a23c11 Revert back to the old devmgr I'll install gcc and reapply the changes tonight.
Apologies for the spam

svn path=/trunk/; revision=69346
2015-09-24 07:30:08 +00:00
Ged Murphy
b8a02e823c Turn off building devmgr for now due to multiple gcc errors. I'll install gcc :o and fix things locally instead of relying on the buildbots
svn path=/trunk/; revision=69345
2015-09-24 07:18:29 +00:00
Ged Murphy
f5c7241e9d unixification
svn path=/trunk/; revision=69344
2015-09-24 07:13:21 +00:00
Ged Murphy
6d43e0f56d Fix build (part 1 of ?)
svn path=/trunk/; revision=69343
2015-09-24 07:09:29 +00:00
Ged Murphy
c3f8176204 [DEVMGR]
Delete the old devmgr and replace it with devmgr_new

svn path=/trunk/; revision=69342
2015-09-24 07:06:29 +00:00
Alex Ionescu
88cc94bcb3 [NTOSKRNL]: Now that OBJ_VALID_ATTRIBUTES doesn't include all attributes, fix the kernel parameter checks.
svn path=/trunk/; revision=69341
2015-09-24 03:32:08 +00:00
Alex Ionescu
f8f8f5c96b [NDK]: Add OB_FLAG_KERNEL_EXCLUSIVE and OBJ_KERNEL_EXCLUSIVE flags
[NTOSKRNL]: Add a helper function such that user-mode cannot pass certain kernel-only object attributes to ObOpenObjectByPointer.
[NTOSKRNL]: Make \Device\PhysicalMemory OBJ_KERNEL_EXCLUSIVE
[NTOSKRNL]: Deny access to user-mode when opening a handle to an object with OBJ_KERNEL_EXCLUSIVE
[NTOSKRNL]: Fix NtOpenProcess, NtOpenThread, NtOpenThreadTokenEx, NtOpenProcessTokenEx to use the helper function. Should fix Rtl using OBJ_KERNEL_HANDLE in user-mode.
Thanks to ThFabba for finding out these bugs, and the hbelusca for adding a missing check to NtOpenProcessTokenEx.

svn path=/trunk/; revision=69340
2015-09-24 02:40:30 +00:00
Hermès Bélusca-Maïto
d65c53b046 [NTVDM]
- Fix ZF and CF flags setting in function INT 2Fh, AX=1214h.
- Use CreateEventW explicitely.
- Set the VdmTaskEvent event at startup. This allows user input by default (even if we don't run our own DOS) in NTVDM. Fixes keyboard input not working when testing boot&usage of MSDOS 6.

svn path=/trunk/; revision=69339
2015-09-24 00:27:59 +00:00
Hermès Bélusca-Maïto
5c49e6b52e Fix build.
svn path=/trunk/; revision=69338
2015-09-23 23:55:04 +00:00
Hermès Bélusca-Maïto
f5c0c9408e [NTOS]: Implement KeDeregisterNmiCallback.
Aside question: we have a "nmidebug" driver in \drivers\base\. In it is a NMI callback "NmiDbgCallback". I was wondering what "((void(*)())&KiBugCheckData[4])();" should do, according to the surrounding code, since in some conditions this code path is actually run: http://i.imgur.com/TUsEr5p.jpg

svn path=/trunk/; revision=69337
2015-09-23 23:52:03 +00:00
Pierre Schweitzer
f44942d42f [KMTESTS:IO]
- Properly free handles in driver (spotted by Thomas)
- Remove dead code in driver (spotted by Thomas)
- Send an IOCTL to stop on symlinks to allow more precise tests

svn path=/trunk/; revision=69336
2015-09-23 21:30:22 +00:00
Ged Murphy
10339625ec [DEVMGR]
List devices without names as 'Unknown Device'

svn path=/trunk/; revision=69335
2015-09-23 21:24:06 +00:00
Ged Murphy
d77d1a8911 [DEVMGMT]
- Fix devmgmt.exe to correctly build and link against devmgr.dll
- This is a temp exe that just calls DeviceManager_ExecuteW. This will later be replaced by mmc.exe and devmgmt.msc

svn path=/trunk/; revision=69334
2015-09-23 20:30:32 +00:00
Ged Murphy
a8867c885d [ATL]
Try to fix gcc build (without having a local install of gcc...)

svn path=/trunk/; revision=69333
2015-09-23 20:12:44 +00:00
Ged Murphy
d3519a4284 [ATL]
- Add support for CAtlString and all its supporting base classes.
- It doesn't do much more than assign wchat_t arrarys and call LoadString, but it's a full base to start adding more methods as people decide to.

svn path=/trunk/; revision=69332
2015-09-23 20:05:31 +00:00
Thomas Faber
c43914c6a7 [NTDLL_APITEST]
- Fix a test failure on WHS-Testbot

svn path=/trunk/; revision=69331
2015-09-23 15:53:24 +00:00
Giannis Adamopoulos
8953816270 [SHELL32]
- Fix a bug in my latest commit.

svn path=/trunk/; revision=69330
2015-09-23 15:20:56 +00:00
Thomas Faber
5e43107328 [NTDLL_APITEST]
- Add simple tests for NtOpenThreadToken[Ex] and NtOpenProcessToken[Ex]

svn path=/trunk/; revision=69329
2015-09-23 15:14:25 +00:00
Giannis Adamopoulos
d7a9abc45b [SHELL32]
- Add a few helper functions: SH_ParseGuidDisplayName, SHELL32_SetNameOfGuidItem, SHELL32_GetDetailsOfGuidItem.
- SHELL32_SetNameOfGuidItem is based on a patch for CORE-5995
- Use the helpers in CControlPanelFolder, CDesktopFolder and CDrivesFolder. Implements getting the comment and renaming registry items in these folders and share some more code.

svn path=/trunk/; revision=69328
2015-09-23 15:02:05 +00:00
Ged Murphy
6a3a86fe62 [SETUPAPI]
- Buffer lengths are calculated in chars not bytes.
- Fixes use of CM_Get_Device_ID_Size / CM_Get_Device_ID

svn path=/trunk/; revision=69327
2015-09-23 09:27:32 +00:00
Ged Murphy
749209aeaf [INCLUDES]
- Fix linking with c++ modules

svn path=/trunk/; revision=69326
2015-09-23 09:04:39 +00:00
Ged Murphy
0baf2174fc [DEVMGR]
Fix building with cmake (msvc)
It needs my local ATL changes to build, I'll add these soon

svn path=/trunk/; revision=69325
2015-09-23 08:49:48 +00:00
Alex Ionescu
0e86ca73d0 [NTOSKRNL]: Properly respect the registry's Win32PrioritySeparation value instead of ignoring it.
[NTOSKRNL]: Actually apply the foreground priority boost to threads in a foreground process.
[NTOSKRNL]: Correctly handle the case where the quantum length and fixed/variable flag are set to "default", instead of falling back into the server case.
Thanks to WINSRV doing the right thing, ReactOS console apps now receive the priority separation boost. However, my tests show that it doesn't last as long as it should on Windows (quantums too short? bug in priority decrement?). Also, since Win32k.sys doesn't tell the kernel about foreground GUI apps, they don't get the boost. Someone needs to add a NtSetInformationProcess call in whatever win32k function determines active focus.
Dedicated to ThFabba who needs to write some tests ;-)

svn path=/trunk/; revision=69324
2015-09-23 05:10:58 +00:00
Hermès Bélusca-Maïto
81b8c2bb92 [NTVDM]
- Do not hardcode the number of XMS memory blocks that can map the HMA. It should be function of the MAX_ADDRESS value of our emulator.
- Require that MAX_ADDRESS should be greater or equal than 1 MB.

svn path=/trunk/; revision=69323
2015-09-23 01:45:18 +00:00
Pierre Schweitzer
9e06c66b38 [KMTESTS:IO]
Extend the IoCreateFile tests with two parts tests.
First part properly checks for opening/reparse handling on mount points (and ideally on symlinks, see below).
The other part checks for proper handling of the IO_STOP_ON_SYMLINK parameter.

Regarding symlink, I'm clearly not convinced that what I did is correct (hence the failure on both W2K3 & ROS). It seems to me that symlink resolution is up to the FSD and not to IO which only handles mount point traversal.
If someone (Alex?) can confirm/infirm and give more insight, that's more than welcome.

svn path=/trunk/; revision=69322
2015-09-22 22:31:08 +00:00
Ged Murphy
5aaa6edd08 [DEVMGR]
- A few cmake fixes

svn path=/trunk/; revision=69321
2015-09-22 21:44:19 +00:00
Ged Murphy
e82b2a4870 [DEVMGR]
- Build the properties as C++
- Rearrange the folder structure
- The whole thing now builds and runs from VS (with a few hacks). CMake next

svn path=/trunk/; revision=69320
2015-09-22 18:23:03 +00:00
Giannis Adamopoulos
0ea9ff44f2 [SHELL32]
- Add a helper HCR_GetClassName function to load the name of a reg folder to a STRRET
- Further simplify CAdminToolsFolder, CFontsFolder and CMyDocsFolder

svn path=/trunk/; revision=69319
2015-09-22 18:11:32 +00:00
Pierre Schweitzer
49b29b7594 [KMTESTS:MM]
MmAllocatePagesForMdlEx() was added on Windows 2003 SP1. Import it for "older" systems.

svn path=/trunk/; revision=69318
2015-09-22 18:05:45 +00:00
Amine Khaldi
bff3154159 [CLUSAPI] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed by me. CORE-8174
svn path=/trunk/; revision=69317
2015-09-22 17:19:14 +00:00
Amine Khaldi
3e7d2f5da8 [CARDS] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed by me. CORE-8174
svn path=/trunk/; revision=69316
2015-09-22 17:15:37 +00:00
Amine Khaldi
75eb8a98c5 [BATT] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed by me. CORE-8174
svn path=/trunk/; revision=69315
2015-09-22 17:08:38 +00:00
Amine Khaldi
0391638490 [CPLS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69314
2015-09-22 17:04:32 +00:00
James Tabor
d18e3d9664 [RosApps|WineFile]
Patch by Jared Smudde - Sync wine File with wine. See ROSAPPS-302.

svn path=/trunk/; revision=69313
2015-09-22 00:40:19 +00:00
James Tabor
a53aa543b4 [Win32SS]
- Fix MDI menu redraw. Tested with WineFile.

svn path=/trunk/; revision=69312
2015-09-22 00:38:48 +00:00
Pierre Schweitzer
7b90b413a5 [MOUNTMGR]
While we're at calling IoCreateFile, skip parameters checking, we know our parameters are alright.

svn path=/trunk/; revision=69311
2015-09-21 19:11:06 +00:00
Pierre Schweitzer
70824cb35c [MOUNTMGR]
MagicValue--;

svn path=/trunk/; revision=69310
2015-09-21 16:49:49 +00:00
Eric Kohl
ee2780fe5f [INTL]
Implement a save routine for the GeoID. Stores the current GeoID in the default user profile too, if required.
CORE-10172 #resolve

svn path=/trunk/; revision=69309
2015-09-20 19:34:51 +00:00
Eric Kohl
0634e43fab [INTL]
- Unicodify the CPL. Get rid of <tchar.h>.
- Pass a pointer to all getter and setter functions of the customization property sheet pages.
- Remove the "Property of" text from the property sheets.
- Convert "SendMessage(GetDlgItem(..." to "SendDlgItemMessage(...".

svn path=/trunk/; revision=69308
2015-09-20 19:00:10 +00:00
Pierre Schweitzer
40d3c19242 [NTDLL_APITESTS]
Add more tests

svn path=/trunk/; revision=69307
2015-09-20 17:51:41 +00:00
Robert Naumann
aa61add155 [SHELL32] Add missing DS_MODALFRAME style to extended properties dialog. Patch by Jared Smudde CORE-10219
svn path=/trunk/; revision=69306
2015-09-20 16:25:39 +00:00
Pierre Schweitzer
9fce9f4c34 [NTDLL_APITESTS]
Properly init string length

svn path=/trunk/; revision=69305
2015-09-20 14:04:48 +00:00
Pierre Schweitzer
2a99e6260e [NTDLL_APITESTS]
Add more tests

svn path=/trunk/; revision=69304
2015-09-20 13:32:34 +00:00
Pierre Schweitzer
1e31c8d334 [NTDLL_APITESTS]
Add a few tests for RtlGenerate8dot3Name()

svn path=/trunk/; revision=69303
2015-09-20 10:42:05 +00:00
Thomas Faber
47083e371b [HAL]
- Print a message if EISA DMA support is detected. Detection should probably not even be attempted unless the machine supports EISA; the print will show whether that's correct.
CORE-9895

svn path=/trunk/; revision=69302
2015-09-20 09:45:59 +00:00
Thomas Faber
bdce828d6d [IDL]
- ms-dtyp.idl doesn't need UNICODE_STRING

svn path=/trunk/; revision=69301
2015-09-20 06:21:41 +00:00
Thomas Faber
e5d4c337e6 [KMTESTS:KE]
- Add tests for acquiring mutants recursively
CORE-10218

svn path=/trunk/; revision=69300
2015-09-19 23:59:02 +00:00
Aleksandar Andrejevic
97f2b6b128 [NTVDM]
Also save and restore the registers around other mouse callbacks
and the DOS driver routine calls.


svn path=/trunk/; revision=69299
2015-09-19 22:42:13 +00:00
Aleksandar Andrejevic
7c44fa3b89 [NTVDM]
Save and restore BP, DS and ES when calling the mouse callback.


svn path=/trunk/; revision=69298
2015-09-19 22:29:45 +00:00
Aleksandar Andrejevic
d9a6ce4f12 [NTVDM]
Save and restore the general purpose and segment registers around Int32Call
calls in the BIOS. Also, make sure CF doesn't get set by the called interrupt
procedure.


svn path=/trunk/; revision=69297
2015-09-19 22:12:56 +00:00
Thomas Faber
2ea155305a [KMTESTS]
- Add missing OBJ_KERNEL_HANDLE
- OBJ_KERNEL_HANDLE in user mode has no effect... no reason to make a define around it
CORE-10207

svn path=/trunk/; revision=69296
2015-09-19 21:46:40 +00:00
Pierre Schweitzer
cd8e7fa978 [MOUNTMGR]
Fix CVE-2015-1769:
- When opening remote databases, don't attempt to migrate w2k database to current format.
- Also, when opening/creating the remote database, don't allow following symlinks anymore.
In case a symlink would be detected, an error message will be printed.

Commit dedicated to Alex :-).

CORE-10216 #resolve #comment Fixed with r69295

svn path=/trunk/; revision=69295
2015-09-19 21:23:45 +00:00
Thomas Faber
25eb471cdf [BLUE][RTL][VIDEOPRT]
- Add missing OBJ_KERNEL_HANDLE
CORE-10207

svn path=/trunk/; revision=69294
2015-09-19 21:10:11 +00:00
Pierre Schweitzer
cb09321830 [PSDK]
Define STATUS_STOPPED_ON_SYMLINK

svn path=/trunk/; revision=69293
2015-09-19 20:51:20 +00:00
Pierre Schweitzer
582d858bfd [MOUNTMGR]
Implement ReconcileThisDatabaseWithMasterWorker() which was the last missing bit of our MountMgr :-)

svn path=/trunk/; revision=69292
2015-09-19 20:37:09 +00:00
Pierre Schweitzer
88648de586 [MOUNTMGR]
Our ReconcileThisDatabaseWithMasterWorker() routine will expect two parameters: the device extension + the device to which reconcile remote database.
So, fix our code accordingly

svn path=/trunk/; revision=69291
2015-09-19 14:50:04 +00:00
Stefan Ginsberg
37f1637343 [WIN32SS} So ehm DBG is always defined to 0 or 1 (unless one messes around with it, like in Uniata...) so consistently check with #if and not #ifdef or else debug code gets in the free build.
svn path=/trunk/; revision=69290
2015-09-19 14:25:52 +00:00
Pierre Schweitzer
b6e2424ed5 [MOUNTMGR]
Include ntdddisk.h

svn path=/trunk/; revision=69289
2015-09-19 14:16:06 +00:00
Pierre Schweitzer
69066e3298 [PSDK]
Add GPT attributes for PARTITION_BASIC_DATA_GUID partitions

svn path=/trunk/; revision=69288
2015-09-19 14:15:01 +00:00
Hermès Bélusca-Maïto
38e457ddc1 [NTVDM]: Fix usage of RtlCompareMemory.
svn path=/trunk/; revision=69287
2015-09-19 14:02:22 +00:00
Stefan Ginsberg
ecc1e62543 [KD] Stub out the (new) unsupported KD API messages a bit more by adding 2 missing ones, likely API names and associated structures. Thanks to Mark Jensen for finding out the structs.
svn path=/trunk/; revision=69286
2015-09-19 13:58:08 +00:00
Amine Khaldi
8346163901 [CRT] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69285
2015-09-19 13:50:57 +00:00
Pierre Schweitzer
9391f1ae05 [MOUNTMGR]
Implement the IOCTL_MOUNTMGR_QUERY_DOS_VOLUME_PATHS:
- Implement MountMgrQueryVolumePaths()
- Implement MountMgrValidateBackPointer()
- Implement MountMgrQueryDosVolumePaths()
- Rename a struct var to reflect its real usage

svn path=/trunk/; revision=69284
2015-09-19 13:03:41 +00:00
Thomas Faber
7a7073bedc [KMTESTS:KE]
- Add a small stress test for scheduling behavior after event set/wake
CORE-10212

svn path=/trunk/; revision=69283
2015-09-19 12:57:51 +00:00
Thomas Faber
8b7a8bb461 [KMTESTS:KE]
- Make KeEvent test count constant to prevent it from appearing flaky in Testman

svn path=/trunk/; revision=69282
2015-09-19 12:39:01 +00:00
Thomas Faber
619d1a2474 [KMTESTS:KE]
- Skip tests that assert on checked builds
- Avoid excessive stack usage
- Avoid some signed vs unsigned comparisons

svn path=/trunk/; revision=69281
2015-09-19 12:15:16 +00:00
Eric Kohl
cc6ad8cd09 [INTL]
Implement the "Apply all settings to the current user account and to the default user profile" feature.
CORE-10172

svn path=/trunk/; revision=69280
2015-09-19 12:14:35 +00:00
Thomas Faber
981add1069 [KMTESTS:KE]
- Don't skip most of the KeEvent test on checked builds
- Don't try to run things at stupid IRQLs

svn path=/trunk/; revision=69279
2015-09-19 11:27:18 +00:00
Amine Khaldi
0df4362cc7 [AVIFIL32] Get back Dll{Register,Unregister}Server exports. They do not exist in native but we need to register this dll. CORE-8174
svn path=/trunk/; revision=69278
2015-09-18 21:20:42 +00:00
Thomas Faber
12e643e2f1 [NTOS:OB]
- Improve DPRINT in NtWaitForMultipleObjects

svn path=/trunk/; revision=69277
2015-09-18 19:42:56 +00:00
Amine Khaldi
8bbd0b4c2c [AVIFIL32] Order the exports, remove some, correct AVIFileCreateStream redirection and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed and slightly changed by me. CORE-8174
svn path=/trunk/; revision=69276
2015-09-18 19:40:16 +00:00
Amine Khaldi
75f931659b [AVICAP32] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed by me. CORE-8174
svn path=/trunk/; revision=69275
2015-09-18 19:31:37 +00:00
Amine Khaldi
bf99598aad [AUTHZ] Order the exports, remove some and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed and slightly changed by me. CORE-8174
svn path=/trunk/; revision=69274
2015-09-18 19:22:26 +00:00
Amine Khaldi
724ac57262 [ADVPACK] Order the exports, add missing ones and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed and slightly changed by me. CORE-8174
svn path=/trunk/; revision=69273
2015-09-18 19:19:05 +00:00
Amine Khaldi
79cd08fd89 [ACTIVEDS] Order the exports, add missing ones and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed and slightly changed by me. CORE-8174
svn path=/trunk/; revision=69272
2015-09-18 18:43:17 +00:00
Amine Khaldi
9308c705b0 [ACLUI] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed and slightly changed by me. CORE-8174
svn path=/trunk/; revision=69271
2015-09-18 18:38:52 +00:00
Amine Khaldi
ae645087b2 [BASESRV][NTVDM][TESTVDD] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69270
2015-09-18 17:01:49 +00:00
Thomas Faber
cf070e1e2f [NTOS]
- Add some missing OBJ_KERNEL_HANDLE
CORE-10207

svn path=/trunk/; revision=69269
2015-09-18 14:22:12 +00:00
Thomas Faber
c4503f35a1 [NDISUIO]
- Improve NduNetPnPEvent. Patch by Jacob S. Preciado
CORE-10205 #resolve

svn path=/trunk/; revision=69268
2015-09-18 13:33:05 +00:00
Thomas Faber
1264afa150 [NTOS:CM]
- Fix SID mixup in CmpHiveRootSecurityDescriptor

svn path=/trunk/; revision=69267
2015-09-18 13:00:16 +00:00
Thomas Faber
3dedb38d2f [NTOS:CM]
- Actually use the allocated security descriptor in CmpCreateRegistryRoot

svn path=/trunk/; revision=69266
2015-09-18 11:14:54 +00:00
Thomas Faber
567c098f48 [KMTESTS:CM]
- Add a test for registry hive security descriptors

svn path=/trunk/; revision=69265
2015-09-18 11:06:11 +00:00
Amine Khaldi
852be46e0a [DISKPART][EXPLORER][LOGONUI][SMSS][USERINIT][WINLOGON] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69264
2015-09-18 10:13:50 +00:00
James Tabor
9fc803f366 [Win32k]
- Fix a activation drawing issue, if the window is not activated do not draw it active. Used testmenu program from CORE-1573 to test it. If this creates a new problem please open a Jira report.

svn path=/trunk/; revision=69263
2015-09-18 09:28:20 +00:00
Thomas Faber
fe3d8770c2 [NTOS:CM]
- Improve pool tagging

svn path=/trunk/; revision=69262
2015-09-18 09:25:58 +00:00
Hermès Bélusca-Maïto
87deae728a [NTVDM]
- Support loading executables with the old EXE signature ('ZM' instead of 'MZ').
- Fix the EXE loader so that:
  * we can load programs of >= 1Mb size, by exploiting the fact that on real DOS, the computed exe size (which uses the number of 512-byte blocks, stored in the EXE header) is stored in a WORD variable.
    This has as an effect to truncate the value, and if it is such that the truncated value is less than the size of available memory, the EXE can be loaded (partly, of course). Some apps expect this behaviour,
    for example, Turbo C++ IDE.
  * Simplify the memory limits computation, according to http://www.tavi.co.uk/phobos/exeformat.html , which is the correct algorithm used by DOS (and confirmed by FreeDOS also).

svn path=/trunk/; revision=69261
2015-09-17 23:04:05 +00:00
Daniel Reimer
687f760672 [TRANSLATION]
Romanian resources maintenance by Ștefan Fulea
CORE-10042 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=69260
2015-09-17 17:26:52 +00:00
Stefan Ginsberg
259f15f48a [RTL] Add support for vectored continue handlers, complementing the vectored exception handler support we already have, by doing some massive shared code usage: just use two different lists for the different handler types and all the code is basically the same. Call the "new" functionality from RtlDispatchException and stub it out for kernel mode. Clean up the existing code and simplify it. Passes the Winetests fine, not that they test this a a lot.
#CORE-10202

svn path=/trunk/; revision=69259
2015-09-17 13:36:55 +00:00
Robert Naumann
2e0a23b373 [MSXML3] When renaming an icon identifier in the header, do it in the resource file too CORE-10200
svn path=/trunk/; revision=69258
2015-09-17 05:23:29 +00:00
Robert Naumann
d55c9cb497 [MSXML3][BOOTDATA] Add icons for XML and XSL files and use them. Patch by Jared Smudde with some modifications by me. CORE-10133
svn path=/trunk/; revision=69257
2015-09-16 21:45:48 +00:00
Eric Kohl
0bd42eceac [SYSDM]
Set the proper title for the hardware profile properties dialog.
CORE-10197 #resolve #comment Looks much better now!

svn path=/trunk/; revision=69256
2015-09-16 20:56:14 +00:00
Robert Naumann
0c1dc5080d [NETSHELL] Change the icons to make network activity more visible. Icons by reactosfanboy. CORE-10031
svn path=/trunk/; revision=69255
2015-09-16 18:20:40 +00:00
James Tabor
66e1ce7904 [UxTheme]
- Fix uninitialized local variable context, MSVC Build. See CORE-9225.

svn path=/trunk/; revision=69254
2015-09-16 08:53:35 +00:00
James Tabor
a2fc6201e1 [UxTheme]
- Fix user side GetScrollBarInfo. See CORE-9225.

svn path=/trunk/; revision=69253
2015-09-16 08:12:52 +00:00
James Tabor
ef8a077e12 - Real fix MSVC build?
svn path=/trunk/; revision=69252
2015-09-16 08:06:26 +00:00
James Tabor
7d88148632 - Fix MSVC build?
svn path=/trunk/; revision=69251
2015-09-16 07:55:42 +00:00
James Tabor
22a02b7d74 [User32]
- Fix return for SCROLLBARINFO RECT to use screen coordinates. See CORE-9225.

svn path=/trunk/; revision=69250
2015-09-16 07:13:03 +00:00
James Tabor
f21871fbb8 [User32]
- Fix wine sync, Notify parent after capture is released, see CORE-10194.

svn path=/trunk/; revision=69249
2015-09-16 04:15:35 +00:00
Stefan Ginsberg
e50245329b [HAL] Get rid off REGISTERCALL ("regparm(3)" for GCC) and replace with good old NTAPI (stdcall). Such an obsession with avoiding stack usage is not healthy nor makes much sense today (or even a long time before today) with processors that have a decent L1 cache, whose "cost of access" is basically the same as to that of a register, and with processors being capable of recognising basic access patterns to ensure frequently used memory (read: stack) is in the cache. Slapping FASTCALL/regparm on frequently used code does not ensure it actually operates faster. You want to know what really hurts performance (and cache)? Slapping FORCEINLINE on everything like if it was some kind of asm macro, making code needlessly bloated.
svn path=/trunk/; revision=69248
2015-09-15 23:03:42 +00:00
Robert Naumann
8c9ca5b5e6 [SHELL33] fix a typo and the icon id's in recyclebin reg script. Now the icons are correct again. CORE-10193
svn path=/trunk/; revision=69247
2015-09-15 21:26:08 +00:00
Hermès Bélusca-Maïto
bd86e6260e [NTVDM]
Correctly call the device strategy/interrupt routines. Should fix a bunch of weird errors. This also fixes the NTVDM crash when Command&Conquer terminates, however it doesn't fix the DOS/4GW exception it encounters.
CORE-9678

svn path=/trunk/; revision=69246
2015-09-15 20:09:11 +00:00
Robert Naumann
080c3d0357 use the same file as 33.ico for 142.ico. should fix CORE-10193
svn path=/trunk/; revision=69245
2015-09-15 19:56:53 +00:00
Stefan Ginsberg
d2608984c9 Completely disable the debug register assertions in the trap exit code for KDBG as it sets them improperly. These checks should not have been added for KDBG to begin with and would have made any usage of address breakpoints inside KDBG end up in a trap exit breakpoint. Whoever knows KDBG better than I do please investigate. However, enable the DR7 debug check for KD as it handles the debug registers just fine. The likelihood of loading a driver that modifies a debug register (which would be the only other thing triggering this) is pretty slim.
svn path=/trunk/; revision=69244
2015-09-15 17:55:14 +00:00
Thomas Faber
ad06f5118a [KMTESTS:MM]
- Keep the number of tests constant in MmMdl because Testman

svn path=/trunk/; revision=69243
2015-09-15 16:46:28 +00:00
Stefan Ginsberg
6b5b096ee2 Fix a load of assumptions about default calling convention, a lot more remain.
svn path=/trunk/; revision=69242
2015-09-15 13:15:28 +00:00
Pierre Schweitzer
b987b1571e [CMD]
- Fix a broken check
- Plug a memory leak

svn path=/trunk/; revision=69241
2015-09-15 11:14:58 +00:00
Stefan Ginsberg
520dcf77b7 [FREELDR] Fix a whole bunch of assumptions about default calling convention being cdecl, mostly in code called from/to assembly. Freeldr now links with /Gz (standard calling convention as stdcall), which is what this is all about
svn path=/trunk/; revision=69240
2015-09-15 11:07:28 +00:00
Stefan Ginsberg
266fe632e9 Fix unexpected side-effect of properly defining CDECL for CRT (how is gcc fine with this?)
svn path=/trunk/; revision=69239
2015-09-15 10:48:39 +00:00
Stefan Ginsberg
2d55091cc2 Sprinkle cdecl declarations liberally all around to make a bunch of the base components compile (freeldr compiles but does not link yet). Some of these should really be NTAPI, working on that.
svn path=/trunk/; revision=69238
2015-09-15 10:35:49 +00:00
Robert Naumann
823e30d4bc [SHELL32] Add missing icons. Patch by Jared Smudde CORE-9938
svn path=/trunk/; revision=69237
2015-09-15 10:28:01 +00:00
Thomas Faber
eb834cf62f [MSFS]
- Use a NULL timeout for infinite waits instead of waiting for 100 ns. CORE-10188 #resolve
- Wait for available read data in user mode to handle thread termination
- Return STATUS_IO_TIMEOUT also for a zero-length timeout. Fixes Wine tests
- Avoid MmGetSystemAddressForMdl
- Acquiring a mutex is not a UserRequest

svn path=/trunk/; revision=69236
2015-09-15 09:40:30 +00:00
Robert Naumann
6f03428919 [NOTEPAD] Use the correct class name for Notepad. Now we use the same as Wine and Windows. Patch by Ricardo Hanke CORE-5629
svn path=/trunk/; revision=69235
2015-09-15 07:26:09 +00:00
Hermès Bélusca-Maïto
0a920bbf3b [ASM]
Fix the file header description. Consistently use .endm for closing a macro started with .macro.

[NTVDM]
- Add "_clean" targets to generated asm16 targets.
- Fix CMake dependency generation in a somewhat hackish way: I don't know how to cleanly specify the location of generated files for custom targets. And it is also hackish because in a CMake custom command which depends on the COMMAND.COM target, I also need to explicitely say that the command depends on the output file created by the COMMAND.COM target...
- Add COMMAND.COM to the CD files, even if NTVDM doesn't use an external command.com for now. CORE-5221

svn path=/trunk/; revision=69234
2015-09-15 01:59:14 +00:00
James Tabor
3b7e00591f [User32]
- Patch by Alex Henrie : Send BM_SETCHECK before WM_CAPTURECHANGED and add tests.

svn path=/trunk/; revision=69233
2015-09-15 00:15:16 +00:00
Pierre Schweitzer
8c0d5e2546 [MOUNTMGR]
Implement the IOCTL IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_DELETED:
- Implement MountMgrVolumeMountPointDeleteed()
- Rename a struct var to reflect its real usage

svn path=/trunk/; revision=69232
2015-09-14 22:30:13 +00:00
Pierre Schweitzer
7e81961504 [MEH]
Meh.

svn path=/trunk/; revision=69231
2015-09-14 22:10:47 +00:00
Pierre Schweitzer
6f8109e6e1 [MOUNTMGR]
MountMgrVolumeMountPointCreated() returns success if databases are already performing a sync

svn path=/trunk/; revision=69230
2015-09-14 21:52:16 +00:00
Thomas Faber
b93363c81c [SHELL32]
- Arch, don't leave unused variables
CORE-9867

svn path=/trunk/; revision=69229
2015-09-14 19:20:55 +00:00
Thomas Faber
94c98733e6 [SHELL32]
- Stop asserting 'ref == 0' in CComCreatorCentralInstance::Term. It's caught enough reference leaks and is mostly just annoying now.
CORE-9867 #resolve

svn path=/trunk/; revision=69228
2015-09-14 19:14:48 +00:00
Thomas Faber
e6b660bdce [NTOS:PNP]
- Fix memory leak in IopDetectResourceConflict. While we're at it use pool tagging, kernel handles and avoid INVALID_HANDLE_VALUE.

svn path=/trunk/; revision=69227
2015-09-14 18:58:58 +00:00
Robert Naumann
b4dfdfb097 [USETUP] Addendum to r69121 CORE-10058
svn path=/trunk/; revision=69226
2015-09-14 10:40:44 +00:00
Amine Khaldi
3dd1f95aeb [UNIATA] Get back a ros diff spotted by Thomas and use our debug checks in some more places. CORE-10185
svn path=/trunk/; revision=69225
2015-09-14 10:33:09 +00:00
Amine Khaldi
116b6a6b6d [UNIATA] Sync to 0.45h1. CORE-10185
svn path=/trunk/; revision=69224
2015-09-14 10:24:48 +00:00
Amine Khaldi
234897f37a [ACLEDIT] Order the exports, add missing one and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed and slightly changed by me. CORE-8174
svn path=/trunk/; revision=69223
2015-09-14 09:51:11 +00:00
Amine Khaldi
0e960cab93 [NOTEPAD] Calculate the border around the printing area based on the margins the user has selected in the page setup dialog, instead of using a fixed size one. Brought to you by Ricardo Hanke with minor changes by me. CORE-10184
svn path=/trunk/; revision=69222
2015-09-14 09:32:57 +00:00
Pierre Schweitzer
06cad138ea [MOUNTMGR]
Implement the IOCTL IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED:
- Implement WriteRemoteDatabaseEntry() 
- Implement MountMgrVolumeMountPointCreated()

svn path=/trunk/; revision=69221
2015-09-13 22:52:07 +00:00
Stefan Ginsberg
d320870f3f Stop using ATTRIB_NORETURN in hal and kernel, replace with the UNREACHABLE macro that both compilers can understand. Also fix up the UNREACHABLE def a bit.
svn path=/trunk/; revision=69220
2015-09-13 20:37:28 +00:00
Amine Khaldi
344dd926a5 [RPCRT4] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69219
2015-09-13 17:01:55 +00:00
Amine Khaldi
2added2367 [SETUP][USETUP][WELCOME] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69218
2015-09-13 16:40:36 +00:00
Amine Khaldi
828c1b5961 [NTDLL] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69217
2015-09-13 16:38:17 +00:00
Stefan Ginsberg
c86151ca6b Hepp didn't work
svn path=/trunk/; revision=69216
2015-09-13 11:46:15 +00:00
Stefan Ginsberg
eca683dd62 Give kernel32 a little bit of extra space to see if it makes the hybrid server not crash.
svn path=/trunk/; revision=69215
2015-09-13 11:40:12 +00:00
Stefan Ginsberg
967f47e576 Define __RELFILE__ the same for an -O0 build so the tests don't get edgy when comparing it to our optimized builds.
svn path=/trunk/; revision=69214
2015-09-13 11:08:16 +00:00
Thomas Faber
ce9619abe7 [RAPPS][RAPPS_NEW]
- Don't redefine the default "Application" facility in the .mc file. Fixes MSVC warning

svn path=/trunk/; revision=69213
2015-09-13 06:34:23 +00:00
Thomas Faber
a5ec9a07aa [MSVC]
- Silence warning LNK4104 (Export of symbol 'X' should be PRIVATE) where appropriate

svn path=/trunk/; revision=69212
2015-09-13 06:22:58 +00:00
Hermès Bélusca-Maïto
f4d255aec6 [COMMAND]
- Fix the GCC macro for structure declaration, so that referencing an offset to the structure doesn't fail anymore (ie. doing "mov dx, offset MyStruct" doesn't assemble to "mov dx, 0x100").
This fixes NTVDM not being able to start any DOS app. Reported by Aleksander Rechitskiy.
CORE-9677 CORE-9679 #resolve
CORE-9678

[NTVDM]
- Fix newline in DPRINT.

svn path=/trunk/; revision=69211
2015-09-13 01:18:50 +00:00
Stefan Ginsberg
427c11919f [KDBG] Don't bring down the kernel either when int2c-ing from user mode
svn path=/trunk/; revision=69210
2015-09-12 22:01:10 +00:00
Stefan Ginsberg
2c81e1e2b1 - Make KDBG handle assertion failures/int2C the same way as breakpoints/int3 (that is, ignore them from user-mode by default) for the time being until an internal prompt-routine is implemented.
svn path=/trunk/; revision=69209
2015-09-12 21:44:48 +00:00
Hermès Bélusca-Maïto
0b875af84a [NTVDM]: Reenable the mouse driver that I disabled by error in my previous commit.
svn path=/trunk/; revision=69208
2015-09-12 20:25:45 +00:00
Eric Kohl
8a0491589a [INTL]
Set the system default language and codepages.
CORE-10075

svn path=/trunk/; revision=69207
2015-09-12 20:24:10 +00:00
Hermès Bélusca-Maïto
a7e5f0c49e [NTVDM]: Fix parentheses. Thanks GCC.
svn path=/trunk/; revision=69206
2015-09-12 20:13:22 +00:00
Stefan Ginsberg
3cdcabd3c9 [KDBG]: Add new command "reboot" that does exactly what it says.
svn path=/trunk/; revision=69205
2015-09-12 20:10:43 +00:00
Hermès Bélusca-Maïto
1c51b39201 [NTVDM]
- Add support for DOS VDM reentry, i.e. the fact that a DOS app can start a 32-bit app, which in turn can start another DOS app, ad infinitum...
CORE-9711 CORE-9773 #resolve
- Add a small COMMAND.COM which is, for now, completely included in NTVDM. This COMMAND.COM is needed in order to support reentrancy. The fact that I chose to put it inside NTVDM is that any user can use instead his/her own COMMAND.COM, while retaining the possibility to perform VDM reentrancy (on Windows, if you remove the COMMAND.COM in windows\system32 and replace it with your own, you will break VDM reentrancy on windows' ntvdm).
CORE-5221 #resolve #comment I choose for the moment an internal COMMAND.COM, but you can recompile NTVDM to use it externally instead.

Global remarks:
- Quite a few DPRINTs were added for diagnostic purposes (since DOS reentrancy is a new feature), to be sure everything behaves as expected when being used with a large panel of applications. They will be removed when everything is OK.
- Support for current directories and 16/32-bit environment translation (in ntvdm + basevdm-side) remain to be implemented.

Other changes:
- Improve a bit the VDM shutdown code by gathering it at one place (there's still room for other improvements).
- Add suppport for properly pausing/resuming NTVDM.
- Bufferize some console events before dispatching.

Have fun ;^)

svn path=/trunk/; revision=69204
2015-09-12 20:09:25 +00:00
Hermès Bélusca-Maïto
4ad08f6ee4 [NTVDM]: Add a diagnostic dprint to check why some apps seem to fail allocating memory.
svn path=/trunk/; revision=69203
2015-09-12 18:13:53 +00:00
James Tabor
5547abd08e [Win32k]
- Fix Alpha Blending while using layered windows in lower bit modes. See CORE-10167.

svn path=/trunk/; revision=69202
2015-09-12 17:29:16 +00:00
Hermès Bélusca-Maïto
28b957e970 [KERNEL32]
GetNextVDMCommand function:
- Avoid using deep nested levels of indentation.
- Fix the error check conditions (+ status value) for the CsrClientCallServer call to make it compatible with what windows' basesrv can return to us.

[BASESRV]
- Remove some useless "NTAPI" from functions.
- Factor out some code used for creating and destroying console records, and for the destruction of the pair of event handles.
- Use "IsListEmpty" when needed.
- Fix BaseSrvFillCommandInfo so that it returns the needed lengths (even if the user-given lengths are zero) and set the expected status error in case the buffer lenghts are too small (not STATUS_BUFFER_TOO_SMALL but STATUS_INVALID_PARAMETER because it's what kernel32 error check expects, for windows compat; see above).
- Fix initialization of new DOS records: no need to create a new one if there is one already free (status VDM_READY).
- Fix the loop that searches for a valid DOS record containing command information available as well as the conditions in which case our caller needs to wait in GetNextVDMCommand call.

NOTE: The internal state flags of the DOS records have normally nothing to do with the VDM state flags we report back to the user.

CORE-8247 CORE-9711 CORE-9773

svn path=/trunk/; revision=69201
2015-09-12 16:23:32 +00:00
Hermès Bélusca-Maïto
38b81a6049 [KERNEL32]: Code formatting; use the real size of structure members when computing the needed buffer lengths.
svn path=/trunk/; revision=69200
2015-09-12 16:03:53 +00:00
Eric Kohl
d53df6db90 [INTL]
- Read the current user locale when the CPL is created.
- Modify the user locale and update the examples when the user selects a new language.
- Save the user locale only if the user changed the settings.
CORE-10074

svn path=/trunk/; revision=69199
2015-09-12 15:25:36 +00:00
Hermès Bélusca-Maïto
e709e70d0e [PEFILE:APITEST]: Validate IMAGE_SCN_MEM_NOT_PAGED flag for PE files. By Mark Jansen. CORE-10160
svn path=/trunk/; revision=69198
2015-09-12 13:08:47 +00:00
James Tabor
59b9ff5e23 [Win32k]
- Fix some composition drawing while using layered windows. See CORE-10155 and CORE-10157.

svn path=/trunk/; revision=69197
2015-09-12 12:54:05 +00:00
Daniel Reimer
393d90900e [NTOSKRNL]
Fix 1 unresolved external on ARM build.

svn path=/trunk/; revision=69196
2015-09-12 11:31:43 +00:00
Amine Khaldi
954c9da68c [ADVAPI32] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69195
2015-09-12 11:16:34 +00:00
Amine Khaldi
37b4177aee [SERVICES] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69194
2015-09-12 10:58:07 +00:00
Amine Khaldi
4932643114 [KERNEL32] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69193
2015-09-12 10:50:28 +00:00
Thomas Faber
f016cbfce8 [FREELDR]
- Add missing asm dependency to freeldr_common

svn path=/trunk/; revision=69192
2015-09-12 10:06:39 +00:00
Daniel Reimer
edca40a05a - "::" instead of "REM" inside a if () in batch is evil and can cause a really nice mess from time to time.
- Changing one "exit" to "exit /b" was not nice from me in the past.
ARM build now prepares host tools nicely again and you can build em. ARM build itself dies very early due to ..\..\boot\freeldr\freeldr\arch\arm\boot.S(9) : fatal error C1083: Cannot open include file: 'ksarm.h': No such file or directory

svn path=/trunk/; revision=69191
2015-09-12 09:51:25 +00:00
Pierre Schweitzer
eb498f8e5d [MSGINA]
Addendum to r69186

svn path=/trunk/; revision=69190
2015-09-12 09:21:11 +00:00
Alex Ionescu
feab49d6ab [BOOTMGFW]
- Additional El Torito support. We now parse the EFI, BOOT directories, and find/open the BCD file, and get a handle to it!

svn path=/trunk/; revision=69189
2015-09-12 08:57:42 +00:00
Stefan Ginsberg
b1114c9e93 - Fix some broken stuff involving DPRINT. Thought I had tested this, sorry for build break!
svn path=/trunk/; revision=69188
2015-09-11 20:42:49 +00:00
Stefan Ginsberg
656e59a392 Fix over a hundred thousand warnings by:
- Disabling C4214 (nonstandard extension used : bit field types other than int), a somewhat overzealous warning for a "nonstandard" extension we rely on all over.
- Defining inactive DPRINT and friends for MSVC using __noop (no not __nop, __noop. See  https://msdn.microsoft.com/en-us/library/s6btaxcs.aspx) to get at a whole bunch of C4127 (conditional expression is constant).
- Remove the last of the exported DriverEntry from dxg and dxgthk. There is no need in anyw way to export them -- dxg exports DxDdStartupDxGraphics to Win32k for initialization purposes and dxgthk is just a forwarder. Linking to a DriverEntry is to begin with is a pretty bad idea. Say goodbye to the last of LNK4216.

svn path=/trunk/; revision=69187
2015-09-11 20:18:12 +00:00
Sylvain Petreolle
6ac7bdabc3 [TRANSLATIONS]
Translate remaining French strings in msgina.dll

svn path=/trunk/; revision=69186
2015-09-11 19:30:29 +00:00
Stefan Ginsberg
e9950e5ef7 - Fix a thousand warnings
svn path=/trunk/; revision=69185
2015-09-11 18:02:58 +00:00
Amine Khaldi
8ce9283986 [USER32] Reorder the exports, add missing ones and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69184
2015-09-11 14:41:23 +00:00
Amine Khaldi
b1e9a9d195 [GDI32] Order the exports and make sure they match our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69183
2015-09-11 13:29:37 +00:00
Thomas Faber
953771f506 [WIN32K:NTUSER]
- Probe parameters in NtUserGetLayeredWindowAttributes
- Don't call UserGetWindowObject without holding the user lock

svn path=/trunk/; revision=69182
2015-09-11 07:31:06 +00:00
Alex Ionescu
e88843426b [BOOTMGFW]
- Hey Arch, your buddies gave you ETFS support for native EFI boot, of course reading sector 0 is all zeroes, you're not on FAT, you idiot! ETFS has data at sector 16 and 17.
- Implement beginning of ETFS support. We correctly mount the reactOS boot cd as ETFS and open the root directory entry!

svn path=/trunk/; revision=69181
2015-09-11 04:33:24 +00:00
Alex Ionescu
51d5eadd25 [CDFS_NEW]
- Resurrect back 7 years later (revert commit 34622).
- Add correct MS-PL (Public) License. Not added to build/used, but I need some of the headers/data structures in here.
- Source: https://github.com/Microsoft/Windows-driver-samples/blob/master/filesys/cdfs

svn path=/trunk/; revision=69180
2015-09-11 04:02:21 +00:00
James Tabor
fca682a62e [Win32SS]
- Hackplement Layered Window Support from wine.
- See CORE-1576 for more information. Three days work, ReactOS needs more support for playing with GDI bits.

svn path=/trunk/; revision=69179
2015-09-11 02:34:11 +00:00
Alex Ionescu
884d17f9c0 [BOOTMGFW]
- Implement Block I/O read operations & related functions. Code needs cleanup, TBD.
- Unfortunately, I wish I could say it works, but it seems like all we get back are zeroes (from EFI itself). I suspect we are reading from the wrong device -- will have to investigate for a bit.

svn path=/trunk/; revision=69178
2015-09-10 23:13:31 +00:00
Sylvain Petreolle
fe979cfbfb [MOUNTMGR]
Declare MountmgrReadNoAutoMount.

svn path=/trunk/; revision=69177
2015-09-10 22:06:10 +00:00
Pierre Schweitzer
c0e3ff9c79 [MOUNTMGR]
Move DriverEntry() and MountmgrReadNoAutoMount() to INIT_SECTION

svn path=/trunk/; revision=69176
2015-09-10 21:41:20 +00:00
Pierre Schweitzer
7584156a40 [FASTFAT]
Move VfatInitFastIoRoutines to the INIT section

svn path=/trunk/; revision=69175
2015-09-10 21:35:15 +00:00
Eric Kohl
5dd06ab375 [USETUP]
Fix the GeoID for most languages.
CORE-10073 #resolve

svn path=/trunk/; revision=69174
2015-09-10 21:28:37 +00:00
Stefan Ginsberg
b77dacb82b - Add some globals WinDbg expected to find when using !sysptes and !vm. Unused but makes the debugger happy
svn path=/trunk/; revision=69173
2015-09-10 19:47:45 +00:00
James Tabor
d6f9fd9121 [Win32k]
- Trap out right button double clicks. See CORE-6754.

svn path=/trunk/; revision=69172
2015-09-10 14:27:14 +00:00
Robert Naumann
c02c39bb4e [USER32] check the XOR flag in ocr_cross.cur and ocr_ibeam.cur. Patch by Vort CORE-6168
svn path=/trunk/; revision=69171
2015-09-10 13:26:33 +00:00
Stefan Ginsberg
7fc480a7c1 Fix the FSDs to use the INIT_SECTION-style and add the alloc_text-s required for MSVC. Please make sure to add section declarations for both compilers for any new functions!
svn path=/trunk/; revision=69170
2015-09-10 12:00:28 +00:00
Thomas Faber
317b564ba0 [KMTESTS:MM]
- Add some more reserved mapping tests for special pool tags and unaligned addresses
- Validate MDL pages in MmMdl test

svn path=/trunk/; revision=69169
2015-09-10 11:16:53 +00:00
Thomas Faber
62d6fa7706 [KMTESTS:MM]
- Add a test for MmAllocateMappingAddress/MmMapLockedPagesWithReservedMapping
CORE-10147

svn path=/trunk/; revision=69168
2015-09-10 09:58:02 +00:00
Alex Ionescu
01dfcee2fa [BOOTMGFW]
- UNIX strikes again.

svn path=/trunk/; revision=69167
2015-09-10 05:24:50 +00:00
Alex Ionescu
fb3da6296d [BOOTMGFW]:
- Implement read/offset-read frontend interface.

svn path=/trunk/; revision=69166
2015-09-10 05:19:50 +00:00
Alex Ionescu
58407edd6b [BOOTMGFW]
- Implement initial File I/O routines.
- We now die on attempting to mount the FAT volume.

svn path=/trunk/; revision=69165
2015-09-10 04:01:41 +00:00
Hermès Bélusca-Maïto
bda290bc5e [USER32]: Use FIXME instead of DbgPrint (so that we can get the line of the source file together).
svn path=/trunk/; revision=69164
2015-09-10 00:39:18 +00:00
Thomas Faber
79faa9c9cd [REGEDIT]
- Properly walk CM_RESOURCE_LIST contents
CORE-10146

svn path=/trunk/; revision=69163
2015-09-09 22:01:49 +00:00
Eric Kohl
4d40db8e1c [BOOTDATA]
Add missing default locale values.

svn path=/trunk/; revision=69162
2015-09-09 20:17:25 +00:00
Stefan Ginsberg
c20976ef8c [WIN32SS] Fix the fix by removing the correct parameter. The NtUserChangeDisplaySettings syscall is expected to make use of the lParam pointer (which must be NULL unless the CDS_VIDEOPARAMETERS flag is set).
svn path=/trunk/; revision=69161
2015-09-09 19:56:22 +00:00
Hermès Bélusca-Maïto
95a7eb8721 [EFISYS]: Add 'bcd_hive' as a dependency.
[FATTEN]: Fix help message. Functions with no parameters are void. Remove an hardcoded array size.

svn path=/trunk/; revision=69160
2015-09-09 19:48:15 +00:00
Stefan Ginsberg
30ea4eb1ae [WIN32SS] Fix NtUserChangeDisplaySettings, I accidently removed one (unused) param too much (parameter count should be 4 after all), and it seems code relied on this check.
svn path=/trunk/; revision=69159
2015-09-09 19:38:36 +00:00
Stefan Ginsberg
db9febf4fa [WIN32SS] Fix NtGdiOpenDCW and NtUserChangeDisplaySettings to have the correct amount of parameters by removing two more unused/deprecated/ignored parameters. NtUserEnumDisplayMonitors is the only remaining one now, which needs to do a usermode callback to get rid of its extra parameter.
svn path=/trunk/; revision=69158
2015-09-09 19:12:48 +00:00
Alex Ionescu
5650394ec5 [EFI]
- Case sensitivity?

svn path=/trunk/; revision=69157
2015-09-09 18:45:51 +00:00
Alex Ionescu
28b4a595d3 [EFI]
- Add BCD creation.
- Add BCD to bootcd, and also to EFISYS.BIN. Verified the BCD is now present on the EFI partition.

svn path=/trunk/; revision=69156
2015-09-09 18:43:09 +00:00
Alex Ionescu
be0ecbd74e - Implement BmpFwGetApplicationDirectoryPath and most of BmFwInitializeBootDirectoryPath.
- Implement boolean, integer, and string BCD reading.
- Fix a more bugs.
- We are now ready to open the BCD hive!

svn path=/trunk/; revision=69155
2015-09-09 18:09:04 +00:00
Amine Khaldi
de917295f6 [PEFILE_APITEST] Introduce tests that load ntoskrnl.exe and validate various section flags. Created by Mark Jansen in light of r68930. CORE-10106
svn path=/trunk/; revision=69154
2015-09-09 17:27:36 +00:00
Alex Ionescu
ef4c84c805 [BOOTMGFW]
- Fix more device I/O bugs.
- Silence some dbgprints.
- Implement DiskOpen and DiskClose.
- Refactor block cache in its own file.
- We successfully open our boot device (which appears as a floppy, as expected with the new UEFI boot)!

svn path=/trunk/; revision=69153
2015-09-09 16:50:05 +00:00
Stefan Ginsberg
c1c6314688 - Consistently check for KDBG via if-def, not if (like we do for _WINKD_), everywhere.
svn path=/trunk/; revision=69152
2015-09-09 16:06:38 +00:00
Stefan Ginsberg
27792fe58c Sigh missed this one.
svn path=/trunk/; revision=69151
2015-09-09 15:40:38 +00:00
Stefan Ginsberg
9639035499 - After reviewing, updating and tweaking the base modules (ntos, hal, ntdll, kernel32, advapi32, gdi32, user32, shell32, win32k) we should now be as (in)compatible with Windows 2003 Service Pack 1 as with Service Pack 2, so finally report our version as "NT Build 3790.3959" (SP2). Thanks to Thomas and Hermes for assistance.
See CORE-6611 and CORE-7889

svn path=/trunk/; revision=69150
2015-09-09 15:35:49 +00:00
Alex Ionescu
f3ff195d8f [BOOTMGFW]
- Fix a bunch of bugs

svn path=/trunk/; revision=69149
2015-09-09 14:59:29 +00:00
Stefan Ginsberg
56e0c5f897 Some of this sneaked past in my last commit, so commit the rest:
- Wrap some KDBG-only stuff into KDBG-define so we don't have KdSystemDebugControl being called needlessly on KD-builds.

svn path=/trunk/; revision=69148
2015-09-09 14:00:43 +00:00
Stefan Ginsberg
edd85f8e32 [WIN32K]
- Reorder some more driver exports to alphabetical order.
- Remove NtGdiFlushUserBatch and NtUserQueryUserCounters from syscall list (unused, and not compatible).
- Move and add some debug-only syscalls to the end of the syscall list.
- Fix parameter count of UserValidateTimerCallback, UserValidateHandleSecure, and UserChangeDisplaySettings to match what is compatible, by removing unused or ignored parameters. NtGdiOpenDCW, NtUserEnumDisplayMonitors and NtUserSetCursorIconData still have the wrong numbers.
- Add "stray" NtGdiMakeObjectXferable and "NtDxEngGetRedirectionBitmap" syscall stubs.
- The syscalls should now be compatible with 2K3 SP2 in their order, but not in their argument count (or, most likely, their actual parameters). This means a Windows 2k3 gdi32 or user32 should crash somewhat later now that half of the syscalls' order is not in disarray.

svn path=/trunk/; revision=69147
2015-09-09 13:49:39 +00:00
Amine Khaldi
c30c8ddb99 [APPLICATIONS] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69146
2015-09-09 13:13:35 +00:00
Stefan Ginsberg
8ad1f36b58 Fixie fixie
svn path=/trunk/; revision=69145
2015-09-09 11:24:34 +00:00
Stefan Ginsberg
8e45e7a979 [NTOS] Fix broken NtSetSystemEnvironmentValueEx stub which had the wrong amount of parameters.
[NDK] Add define guard for HalEndSystemInterrupt because it is no longer compatible with Windows, and add back the old definition. Fix NtSetSystemEnvironmentValueEx prototype.
[KERNEL32] Export SetFileCompletionNotificationModes (MSDN and headers documents it as Vista-only, but this is not entirely correct).

svn path=/trunk/; revision=69144
2015-09-09 11:21:02 +00:00
Pierre Schweitzer
c29c91001c [FATTEN]
CORE-10140

svn path=/trunk/; revision=69143
2015-09-09 07:05:17 +00:00
Alex Ionescu
85de1f5f6a [BOOTMGFW]
- 1.5KLOC code dump of current device block I/O handling. Totally untested and broken, just a checkpoint for now.
- Implement most of Hash Table Utility Functions.
- Implement parts of Block Allocator.
- Finish Implementation of Generic Table Utility Functions.
- Fix some EFI device emulation code.
- Temporarily disable freeing from heap while I figure out what's corrupting it.

svn path=/trunk/; revision=69142
2015-09-09 05:48:50 +00:00
Alex Ionescu
ba76268519 [CDMAKE]
- Fix Build on VS2015

svn path=/trunk/; revision=69141
2015-09-09 04:58:25 +00:00
David Quintana
a9ac73d0f7 [FATTEN]
* Allow customizing the 8-letter volume label from the FAT header.
* Make the efisys.bin have EFIBOOT as a label.
* Improve a bit the help text.

svn path=/trunk/; revision=69140
2015-09-09 03:01:14 +00:00
Hermès Bélusca-Maïto
de6171695d OMGWTFBBQ!!!! We can now boot our ISOs on UEFI systems!!
Thanks gigaherz for the "fatten" utility!, and others for testing.

[CDMAKE]
- Add multi-boot CD support, following El-Torito specification, such that we can the usual ISO boot sector on BIOS-based PCs, and the UEFI loader on UEFI-based PCs.
- Load segment should be stored in little endian.
- Fix the computation of the sector count (count in 512 byte sectors and rounded up).
- Rework the command-line options to make them more compatible with CDIMAGE / OSCDIMG.
CORE-10120

[BOOTDATA]
- Activate the UEFI boot support for our ISOs.

svn path=/trunk/; revision=69139
2015-09-09 02:11:49 +00:00
David Quintana
c34c8f1adb [FATTEN]
* "struct tm" uses years offset on 1900, so we only have to offset by 80 years to make it into a FAT year.

svn path=/trunk/; revision=69138
2015-09-09 01:38:21 +00:00
David Quintana
daad9d303b [FATTEN]
* WHO ATE THAT 'b'?! WHO?!
* The jump instruction is 3 bytes long, not 2 (and dequick&dirtied a bit while at it).

svn path=/trunk/; revision=69137
2015-09-09 01:33:27 +00:00
Hermès Bélusca-Maïto
7f2c47b1ff [FATTEN]: static'ify a variable; do not hardcode array lengths.
svn path=/trunk/; revision=69136
2015-09-09 00:52:01 +00:00
David Quintana
d2e60268e5 [FATTEN]
* Change the number of FAT copies stored by the formatting code to 2.
* Implement /BOOT command, to apply a boot sector to the image (FAT12/16 only, for now).
* Make use of the command above to finally get the generated efisys.bin loading in 7zip as a floppy.

svn path=/trunk/; revision=69135
2015-09-09 00:49:47 +00:00
Stefan Ginsberg
30f6a61675 [HAL] Remove seemingly deprecated HalPutDmaAdapter. Also reorder exports slightly towards alphabetical order.
svn path=/trunk/; revision=69134
2015-09-08 23:42:24 +00:00
Stefan Ginsberg
240afacd87 - While we are at it, remove a bunch of kernel exports that shouldn't exist. KiEoiHelper stays for now.
svn path=/trunk/; revision=69133
2015-09-08 22:58:28 +00:00
David Quintana
51731534a2 [FATTEN]
* Fix the breakage I commited. Hopefully.

svn path=/trunk/; revision=69132
2015-09-08 22:20:37 +00:00
David Quintana
9a82c8549f [FATTEN]
In a failed attempt at getting 7-zip to recognize the fat images,
* Updated the fatfs backing library to v0.11a,
* Changed the default cluster size to 1 for floppy-sized images (< 4096 sectors) and 8 otherwise (4096 was an invalid value), and
* Changed the fatfs formatting code to generate FAT12 filesystems more windows-like.
I see no reason to discard the changes, so here they are.

svn path=/trunk/; revision=69131
2015-09-08 22:01:05 +00:00
Stefan Ginsberg
ee039d524e [NTOS] Add in MmDoesFileHaveUserWritableReferences, seemingly new to 2k3 SP2. MSDN reports this as "Vista and later" but this is not entirely correct it seems.
svn path=/trunk/; revision=69130
2015-09-08 20:42:21 +00:00
Stefan Ginsberg
2425661867 Fix build (TM)
svn path=/trunk/; revision=69129
2015-09-08 20:19:10 +00:00
Stefan Ginsberg
900d67c9f9 [NTOS] STUB ALL THE EXPORTS. We should now have all the exports expected by a 2k3-ish kernel (except for a few amd64-specific ones). Add some missing explicit cdecl to the Verifier stubs, and don't return STATUS_SUCCESS (0) from the ABIOS stubs.
[NDK] Add a few types needed by the PfxXxx routines.

This should fix absolutely nothing.

svn path=/trunk/; revision=69128
2015-09-08 20:14:39 +00:00
Pierre Schweitzer
c6a13942f0 [FATTEN]
Let's try not to leak memory...
So, close what's been opened in case of an error
And in a general way, close files we opened

CORE-10140 #resolve #comment Fixed with r69127

svn path=/trunk/; revision=69127
2015-09-08 20:04:04 +00:00
Robert Naumann
ce1cc93363 [SHELL32] Add missing Icons for ZIP/JAZ drives, webbrowser and rename. Patch by Lee Schroeder. CORE-9889 CORE-9968
svn path=/trunk/; revision=69126
2015-09-08 20:03:54 +00:00
Amine Khaldi
cbffa41d1c [MESA] Add missing xdk dependency for mesa_x86. CORE-9586
svn path=/trunk/; revision=69125
2015-09-08 19:24:26 +00:00
Amine Khaldi
79125bf7bd [FREETYPE] Sync up to 2.6.0. CORE-10072
svn path=/trunk/; revision=69124
2015-09-08 19:23:01 +00:00
David Quintana
ef93914ac3 Oops forgot to hit save one last time.
svn path=/trunk/; revision=69123
2015-09-08 15:57:47 +00:00
David Quintana
0e583a5926 [BOOTMGFW]
* Add stubs for unimplemented platforms, so the compilation succeeds even if it can't possibly work.

svn path=/trunk/; revision=69122
2015-09-08 15:56:33 +00:00
Robert Naumann
682b6b0cae [TRANSLATION] Update Russian translation. Patch by Kudratov Olimjon CORE-10058 #resolve #comment Committed in r69121. Thank you!
svn path=/trunk/; revision=69121
2015-09-08 15:48:18 +00:00
David Quintana
850153bbd0 [FATTEN]
* Do not allow "/" as a parameter prefix in unixes.

svn path=/trunk/; revision=69120
2015-09-08 15:30:32 +00:00
David Quintana
5b5fa693bd [EFISYS][BOOTMGFW]
* Compute and use a "platform short name" in the EFI filenames.

svn path=/trunk/; revision=69119
2015-09-08 15:26:34 +00:00
James Tabor
3897fba9aa [Win32k]
- Fix non-client paint. See CORE-10101.

svn path=/trunk/; revision=69118
2015-09-08 14:18:56 +00:00
Amine Khaldi
d69d6cab4e [APITESTS] Add missing xdk dependency. CORE-9586
svn path=/trunk/; revision=69117
2015-09-08 12:51:53 +00:00
Amine Khaldi
f8c7c7fd5e [UXTHEME] Revert Wine Commit 2b650fa as it breaks themed Explorer Toolbar Separators. CORE-9636 and Wine Bug #38538.
svn path=/trunk/; revision=69116
2015-09-08 12:47:33 +00:00
Amine Khaldi
0e27d88871 [COMCTL32] Revert Wine Commit 5b7b911 as it breaks Explorer Toolbar Buttons. Update comctl32_ros.diff accordingly. CORE-9970
svn path=/trunk/; revision=69115
2015-09-08 12:41:11 +00:00
Thomas Faber
e9d13e378a [KERNEL32]
- Issue a debug print on LoadLibrary failure, since this is often a good lead when debugging

svn path=/trunk/; revision=69114
2015-09-08 11:41:08 +00:00
Thomas Faber
7c0c51c8df [BROWSEUI]
- Check for NULL return from LoadLibrary
CORE-10135 #resolve

svn path=/trunk/; revision=69113
2015-09-08 11:39:10 +00:00
David Quintana
2347d1a709 [FATTEN]
* Switch to using our existing host-tools header for types. Thanks Colin for pointing me to the right header (it was discrete so I missed it when looking).

svn path=/trunk/; revision=69112
2015-09-08 10:26:12 +00:00
Thomas Faber
33f46109ab [FATTEN]
- Fix VC2010 build

svn path=/trunk/; revision=69111
2015-09-08 08:27:00 +00:00
David Quintana
42f2922061 [FATTEN]
Undo a debug change that I forgot to revert.

svn path=/trunk/; revision=69110
2015-09-08 03:39:51 +00:00
David Quintana
2f3a69e66f [FATTEN]
* Fix folder creation and external file access.
* Add fatten as a host-tool.
* Add a target for creating efisys.bin from the bootmgfw
TODO: Make the name of the boot*.efi depend on the platform (ia32/x64/arm).
TODO: Add efisys as a dependency to the bootcd, when we need to make use of the efisys.bin file for the iso (waiting for hbelusca's cdmake work).

svn path=/trunk/; revision=69109
2015-09-08 03:37:47 +00:00
Aleksandar Andrejevic
d5d4c72825 [FATTEN]
Not every C library out there has fopen_s.


svn path=/trunk/; revision=69108
2015-09-08 00:54:44 +00:00
David Quintana
3ee0bc2311 Oops. Forgot to includethis file in the commit.
svn path=/trunk/; revision=69107
2015-09-08 00:48:25 +00:00
David Quintana
01b18d960e [FATTEN]
* Remove pointless dependency on BOOL and CHAR, which helps  with portability.
* Disable reentrancy, since all the operations are serialized by the commandline.
* Improve a few comments.

svn path=/trunk/; revision=69106
2015-09-08 00:45:35 +00:00
David Quintana
24fa75cda3 [FATTEN]
* Fix the integer types for non-windows platforms (assume they have stdint.h instead of assuming embedded).
* Fix file I/O, which was just barely working enough to pass the one test I did.

svn path=/trunk/; revision=69105
2015-09-08 00:28:28 +00:00
Alex Ionescu
04cb0e03ef [BOOTMGFW]
- And again with the fucking non-recursion.

svn path=/trunk/; revision=69104
2015-09-07 23:48:21 +00:00
Alex Ionescu
1e3ceae73f [BOOTMGFW]
- EarlyPrint -> EfiPrintf, as it seems BL actually has this after all :) Change all callers to conform to it.
- Add common exit/failure path in BmMain. Now the fun begins.

svn path=/trunk/; revision=69103
2015-09-07 23:31:08 +00:00
Robert Naumann
1f3874c43e [powercfg] convert tabs to spaces. NFC
svn path=/trunk/; revision=69102
2015-09-07 21:56:38 +00:00
Stefan Ginsberg
ae6ef95520 - Fix my email to the @reactos.org one -- remove outdated hotmail.
svn path=/trunk/; revision=69101
2015-09-07 21:39:37 +00:00
Alex Ionescu
01d384a14f [BOOTMGFW]
- Forgot that SVN doesn't traverse up.

svn path=/trunk/; revision=69100
2015-09-07 19:46:50 +00:00
Alex Ionescu
5ed0324945 [BOOTMGFW]
- Factor the display/console code into correct per-firmware/per-console-mode files. No code changes.

svn path=/trunk/; revision=69099
2015-09-07 19:35:24 +00:00
Alex Ionescu
287182a713 [BOOTMGFW]
- Fix heap bugs, thanks to Thomas!
- Now only the last heap operation shows corruption.

svn path=/trunk/; revision=69098
2015-09-07 19:06:14 +00:00
Alex Ionescu
0d9800b14e [BOOTMGFW]
- Last round of display fixes. GOP works now -- fill out the frame buffer with gray as a test (tested in VirtualBox).
- Now to fix the heap.

svn path=/trunk/; revision=69097
2015-09-07 18:45:09 +00:00
Pierre Schweitzer
0f004c15de [WINLOGON]
Fix a handle leak

svn path=/trunk/; revision=69096
2015-09-07 18:11:30 +00:00
Alex Ionescu
9677a109b1 [BOOTMGFW]
- Fix GOP bugs

svn path=/trunk/; revision=69095
2015-09-07 18:09:12 +00:00
Alex Ionescu
101f65a435 [BOOTMGFW]
- Start GOP graphics console support. Checkpoint commit, currently WIP, untested.
- Cleanup memory allocation/type/caching flags in a single unified enumeration.
- Implement memory mapping functions for physical real mode only.

svn path=/trunk/; revision=69094
2015-09-07 17:35:59 +00:00
Thomas Faber
1010c1a66f [NORMALIZ][KERNEL32_VISTA]
- Add normaliz.dll to the build
- Move the appropriate functions from kernel32_vista to normaliz
- Import IsNormalizedString and NormalizeString stubs from Wine
Now Scilab starts
CORE-10124 #resolve

svn path=/trunk/; revision=69093
2015-09-07 17:16:25 +00:00
Thomas Faber
10ca607680 [HAL]
- Addendum to r69013: also fix the ACPI version of HalpDispatchPower.
CORE-10105 CORE-10117

svn path=/trunk/; revision=69092
2015-09-07 17:02:22 +00:00
Thomas Faber
7db284e5b5 [USER32]
- Fix MSVC warning (C4305: '-=' : truncation from 'double' to 'float')

svn path=/trunk/; revision=69091
2015-09-07 16:11:59 +00:00
Christoph von Wittich
e828b6505e [MMSYS] include stdlib.h for _countof
svn path=/trunk/; revision=69090
2015-09-07 14:56:46 +00:00
Christoph von Wittich
accf2317c8 [MMSYS] don't mix TCHAR with WCHAR
svn path=/trunk/; revision=69089
2015-09-07 14:53:31 +00:00
Robert Naumann
e9b0c28a93 [mmsys]
-State if there are no audio devices installed
-remove an obsolete resource ID
Patch by Jared Smudde CORE-10009 #resolve

svn path=/trunk/; revision=69088
2015-09-07 14:44:29 +00:00
Amine Khaldi
4544bdcfd0 [CMAKE] Add even more missing dependencies on xdk. CORE-9586
svn path=/trunk/; revision=69087
2015-09-07 11:13:09 +00:00
Thomas Faber
4f3a4a5c04 [CMAKE]
- Fix more missing dependencies on xdk
CORE-9586

svn path=/trunk/; revision=69086
2015-09-07 10:05:42 +00:00
Amine Khaldi
002f279f26 [CMAKE] Add hpp in the new style build.
svn path=/trunk/; revision=69085
2015-09-07 10:00:51 +00:00
Thomas Faber
40fb07129c [BOOTLIB]
- Add missing xdk dependency

svn path=/trunk/; revision=69084
2015-09-07 09:50:00 +00:00
Thomas Faber
525668eff1 [XDK][DDK][PSDK]
- Generate XDK headers during build. To make changes to wdm.h, ntddk.h, ntifs.h, devioctl.h, ntdef.h or winnt.h, edit the appropriate files in include/xdk (as you should already have been doing for a long time).
CORE-9586 #resolve

svn path=/trunk/; revision=69083
2015-09-07 09:46:43 +00:00
Thomas Faber
8d88ea2081 [ACPI]
- Reinstate the HPET hack, the VMware builders show that it's still needed. Reverts r69066.

svn path=/trunk/; revision=69082
2015-09-07 09:08:48 +00:00
Christoph von Wittich
88cdcad1f6 [XDK][PSDK] add security checks for PSDK as well
svn path=/trunk/; revision=69081
2015-09-07 08:37:11 +00:00
Christoph von Wittich
b35101db5f [XDK] add cpp security checks for RTL_NUMBER_OF_V2/ARRAYSIZE
svn path=/trunk/; revision=69080
2015-09-07 08:08:01 +00:00
Christoph von Wittich
4fdcca4b99 [MODE] use ARRAYSIZE, don't include windows.h, fix two possible out-of-bounds reads
CID 1206872
CID 1206873

svn path=/trunk/; revision=69079
2015-09-07 07:05:33 +00:00
Alex Ionescu
81302aadd9 [BOOTMGFW]
- Fix text console bugs. It works now both when already at 80x25, as well as when using UEFI Shell to switch to 100x31 first. Tested with Virtual Box.

svn path=/trunk/; revision=69078
2015-09-07 06:00:37 +00:00
Alex Ionescu
626d85d853 [BOOTMGFW]
- Build fixes for GCC

svn path=/trunk/; revision=69077
2015-09-07 04:42:34 +00:00
Alex Ionescu
0cb7238f1d [BOOTMGFW]
- Checkpoint commit of about 1000+ lines of text console support code. Right now, it's very disorganized and not tested.
- Write out the rest of the initialization path. Almost everything else is only for Boot Debugging, BitLocker, TPM, PXE... 

svn path=/trunk/; revision=69076
2015-09-07 04:37:01 +00:00
Stefan Ginsberg
ec566e8082 - Fix the ASSERT in VdmSwapContext now that we are always setting up the trap frame correctly on debug build.
- Fix the ASSERT in KeConnectInterrupt for debug single-processor builds (but keep the old one for multiprocessor build to make it less confusing if it is hit).

svn path=/trunk/; revision=69075
2015-09-06 22:29:10 +00:00
Pierre Schweitzer
93ff988b19 [NTOSKRNL]
Fix a bug in HalpGetFullGeometry(): properly reset the event before reusing it. We may have waited on it previously.

svn path=/trunk/; revision=69074
2015-09-06 22:10:53 +00:00
Alex Ionescu
e9b84c302b [BOOTMGFW]
- I/O Library initialization.
 - A few more random initialization routines. Skip TPM, BitLocker, Network and non-FAT filesystems for now.

svn path=/trunk/; revision=69073
2015-09-06 21:29:41 +00:00
James Tabor
a85d4e1dc4 [Win32k]
- Set flags when it is appropriate, should fix CORE-10101.

svn path=/trunk/; revision=69072
2015-09-06 21:10:46 +00:00
Alex Ionescu
3e997c870b [BOOTMGFW]
- Fix some heap bugs. It (works?) now, at least for one allocation.
- Fix GCC support for Phase 1 Architectural Initialization.
- Implement Time measurement for Hyper-V compatible hypervisors (tested with Virtual Box 5.0!) as well as non-hypervisors (also tested)

svn path=/trunk/; revision=69071
2015-09-06 20:55:50 +00:00
Hermès Bélusca-Maïto
d8b6cfc7f3 [CDMAKE]
- Factor out the code that writes data from a file.
- Use BOOL type where needed.

svn path=/trunk/; revision=69070
2015-09-06 20:42:08 +00:00
Amine Khaldi
d5ee70e4f0 [SERVMAN] Introduce the ability to sort the services list-view by any column in ascending and descending order. Brought to you by Joachim Henze. CORE-10122
svn path=/trunk/; revision=69069
2015-09-06 20:19:58 +00:00
Alex Ionescu
3e33b84224 [BOOTMGFW]:
- Add heap implementation, continuing from my work last year. Seems to be pretty broken, next steps are fixing it.
- Implement block allocator initialization (needs heap).
- Implement a few other missing initialization paths.

svn path=/trunk/; revision=69068
2015-09-06 19:56:47 +00:00
Alex Ionescu
e21146906a [BOOTMGFW]
- Implement most of the physical memory allocator. The heap manager now gets its page allocation fulfilled.

svn path=/trunk/; revision=69067
2015-09-06 19:22:37 +00:00
Thomas Faber
c8df1bac22 [ACPI]
- Remove the no longer needed HPET hack. VMware works fine now.

svn path=/trunk/; revision=69066
2015-09-06 18:51:09 +00:00
David Quintana
1a2ad3befe [FATTEN]
Change tabs to spaces, but only for the files I write. The rest come directly from the fatfs package and are best left untouched.

svn path=/trunk/; revision=69065
2015-09-06 18:24:44 +00:00
David Quintana
163427942d [FATTEN]
* Improve crossplatformness.
* Turn back some indentations into tabs (temporarily).

svn path=/trunk/; revision=69064
2015-09-06 18:10:59 +00:00
David Quintana
d731eebc20 [FATTEN]
Introduce a tool I wrote some years ago, that helps create and manage a FAT disk image from the command-line.
It is built using parts of the isofs embedded library, with win32 bindings for file access. Should be helpful in order to create the EFI boot images needed for EFI-bootable isos.
Because the code is not really portable (yet), it's currently not included in the build process.

svn path=/trunk/; revision=69063
2015-09-06 17:21:22 +00:00
Hermès Bélusca-Maïto
0047555c63 [MSCONFIG_NEW]
- Convert msconfig to a fully property-sheet-oriented app.
- Start converting the general page to a property page (serves as a model for the other pages).
- Sync translations for the general page.
- Temporarily remove the other pages from compilation.

svn path=/trunk/; revision=69062
2015-09-06 17:19:40 +00:00
Thomas Faber
39849bdb73 [NTOS:PNP]
- Handle power IRPs for the PNP root device
CORE-10117

svn path=/trunk/; revision=69061
2015-09-06 17:13:48 +00:00
Amine Khaldi
8f3fc52eb3 [CMAKE] Introduce a way to compile ReactOS without invoking CMake twice. You can enable it by running configure with -DNEW_STYLE_BUILD=1. Once the transition goes smoothly we can enable this by default. CORE-10121
svn path=/trunk/; revision=69060
2015-09-06 16:44:30 +00:00
Alex Ionescu
4af1708e1d [BOOTMGFW]:
- Implement case in BlMmRemoveRegionFromMdlEx where the descriptor's tail (or entire allocation) is contained in the descriptor -- this covers our BootMgr entry.
- Implement some more initialization functions.
- Start implementing the heap allocator initialization code. Now we need to implement the actual page allocator.

svn path=/trunk/; revision=69059
2015-09-06 16:41:43 +00:00
Amine Khaldi
c4cd6e2035 [CONFIGURE] First step towards introducing a way to compile ReactOS without invoking CMake twice. NFC. CORE-10121
svn path=/trunk/; revision=69058
2015-09-06 16:17:26 +00:00
Alex Ionescu
7bc39e5dae [BOOTMGFW]
- Start implementing MmMdRemoveRegionFromMdlEx. The 3 cases are detected and print right now.

svn path=/trunk/; revision=69057
2015-09-06 15:44:56 +00:00
Alex Ionescu
cdd381d869 [BOOTMGFW]:
- Implement algorithm to detect if truncation is needed, which should only happen on IA64 systems I believe (otherwise, the OS and firmware should have the same alignment/page size requirements)
- Implement algorithm to detect if coalescing is needed. This shouldn't happen with firmware memory yet, but might happen once we start carving out stuff.

svn path=/trunk/; revision=69056
2015-09-06 15:02:49 +00:00
Thomas Faber
a97581c62d [NDIS]
- Better stub power IRP handling. Failing IRP_MN_SET_POWER is illegal!
CORE-10117

svn path=/trunk/; revision=69055
2015-09-06 14:35:20 +00:00
Thomas Faber
17301d5353 [KBDCLASS][MOUCLASS]
- Forward power IRPs to lower devices. Failing IRP_MN_SET_POWER is illegal!
CORE-10117

svn path=/trunk/; revision=69054
2015-09-06 14:32:22 +00:00
Thomas Faber
9eaf6957f5 [VIDEOPRT]
- Correctly stub power IRP handling. Fixes IRP leaks on shutdown.
- Correctly stub IntVideoPortDispatchSystemControl to avoid IRP leak.
CORE-10117 CORE-10105

svn path=/trunk/; revision=69053
2015-09-06 10:45:37 +00:00
Pierre Schweitzer
3363077e26 [NTOSKRNL]
Define & use a tag for FsRtlNotify* memory allocations

svn path=/trunk/; revision=69052
2015-09-06 10:06:59 +00:00
Thomas Faber
7eade447fe [FMIFS]
- Remove useless export of InitializeFmIfs. Fixes MSVC warning (LNK4216: Exported entry point _InitializeFmIfs@12)

svn path=/trunk/; revision=69051
2015-09-06 09:55:10 +00:00
Thomas Faber
254e6c2c6e [PCI]
- Better stub IRP_MJ_POWER handlers. Failing IRP_MN_SET_POWER is illegal!
CORE-10117

svn path=/trunk/; revision=69050
2015-09-06 08:54:20 +00:00
Thomas Faber
813a68a73c [DISPLAYS]
- DrvEnableDriver does not need to be exported. Fixes MSVC warnings (LNK4216: Exported entry point _DrvEnableDriver@12)

svn path=/trunk/; revision=69049
2015-09-06 08:35:01 +00:00
Thomas Faber
68f6155242 [SHELL32]
- Initialize CNewMenu::m_pidlFolder. Fixes crash in com_apitest:shell32
CORE-10115 #resolve

svn path=/trunk/; revision=69048
2015-09-06 08:16:57 +00:00
Alex Ionescu
4ea30042a6 [BOOTMGFW]:
- Cleanup some bugs/issues in the memory map parsing code.
- Implement creation of BL/NT-compatible memory descriptors based on UEFI descriptors.
- Implement other remaining parts of the page allocator initialization routine.
- Last part missing is to implement routines for removing from a memory list, and for handling the boot manager's own descriptor.

svn path=/trunk/; revision=69047
2015-09-06 06:15:08 +00:00
Thomas Faber
e25a440db4 [MSVCRT]
- Properly ignore LNK4102 for libmsvcrt

svn path=/trunk/; revision=69046
2015-09-06 05:20:26 +00:00
Alex Ionescu
6713972af8 [BOOTMGFW]:
- Start implementing the page allocator. Right now, we are able to obtain & dump the UEFI memory map.

svn path=/trunk/; revision=69045
2015-09-06 04:53:49 +00:00
Alex Ionescu
110b26a50d [BOOTMGFW]
- Begin carving out the rough edges of the memory manager. This will be the hardest part.

svn path=/trunk/; revision=69044
2015-09-06 03:24:30 +00:00
Alex Ionescu
6073e89f6b [BOOTMGFW]:
- Use the right settings to make our CD UEFI compatible. The Internet says this is supposed to be 10000x harder, but it seems to work fine, at least in Virtual Box.
- Implement an EarlyPrint routine for early debugging/testing.
- Using the above, fix a bunch of stupid bugs. The previously committed code now seems to work (so far).

svn path=/trunk/; revision=69043
2015-09-06 03:02:56 +00:00
Stefan Ginsberg
d3d3e85c9a - Silence some C4028 warnings in our code by fixing some mismatched const.
- Also remove a misplaced INIT_FUNCTION and straggler RtlPrefetchMemoryNonTemporal.

svn path=/trunk/; revision=69042
2015-09-05 20:50:51 +00:00
Alex Ionescu
c378dbf128 [BOOTMGFW]:
- Add very early EFI Firmware and x86 Context Management Support.

svn path=/trunk/; revision=69041
2015-09-05 20:31:14 +00:00
Stefan Ginsberg
38f02bb9e7 Nothing to see here move along
svn path=/trunk/; revision=69040
2015-09-05 19:50:14 +00:00
Alex Ionescu
ac33cabb74 [BOOTMGFW]:
Add support for converting the EFI file path as well. The first 1000 lines of many have been written. Time to test on Virtual Box.

svn path=/trunk/; revision=69039
2015-09-05 19:38:20 +00:00
Alex Ionescu
c4d544b3ad [BOOTMGFW]
- Implement EFI device path conversion

svn path=/trunk/; revision=69038
2015-09-05 19:18:54 +00:00
Stefan Ginsberg
4a3db0a6c3 - Add in MSVC support for HAL .init sections by using alloc_text. MSVC support for putting the HAL pci class and vendor tables into .init is still lacking. Put into a _MINIHAL_ guard or freeldr gets REALLY sad.
- Rename INIT_FUNCTION to INIT_SECTION and put it at the top of functions for consistency with __declspec declarations (it is actually possible to do this via __declspec in newer MSVC versions).

svn path=/trunk/; revision=69037
2015-09-05 18:33:38 +00:00
Amine Khaldi
141f412d0f [CMAKE/MSVC] C4200 doesn't look useful to us.
svn path=/trunk/; revision=69036
2015-09-05 17:46:04 +00:00
Amine Khaldi
af74325ed0 [SOFTPUB] Don't assign ordinals to Dll{Register,Unregister}Server(). CORE-10113
svn path=/trunk/; revision=69035
2015-09-05 17:42:27 +00:00
Amine Khaldi
fa77c8bd71 [CMAKE/MSVC] Temporarily disable C4018 until we fix more of the others. CORE-10113
svn path=/trunk/; revision=69034
2015-09-05 17:31:51 +00:00
Alex Ionescu
66cb7118b2 [BOOTMGFW]
- Define some core boot library structures -- reverse engineered to be compatible with MS. This is important if we want to load MS' own binaries for testing (such as MemTest.Efi)
- Define basic BCD structures
- Start implementing EFI->Windows Boot Library conversion routines. Last part remaining is EFI path conversion.
- Fix linking with RTL, by providing some stubs for now.

svn path=/trunk/; revision=69033
2015-09-05 16:05:20 +00:00
Stefan Ginsberg
4365775be6 - Don't have two different implementation of KiConvertToGuiThread, first as inlined assembly gcc and second as a function call (for msvc). Always use the function call to be consistent with both compilers.
svn path=/trunk/; revision=69032
2015-09-05 15:20:27 +00:00
Thomas Faber
57bd950d25 [NTOS:MM]
- Use MmExpansionLock to synchronize changes to MmProcessList. Should fix random crashes in MmDeleteProcessAddressSpace.
CORE-10111 #resolve

svn path=/trunk/; revision=69031
2015-09-05 14:39:40 +00:00
Amine Khaldi
007c3df2e3 [GDI32] Get back the condition we had before.
svn path=/trunk/; revision=69030
2015-09-05 14:39:27 +00:00
Amine Khaldi
abfb19af87 [CMAKE] Set Debug as the default build type for MSVC builds.
svn path=/trunk/; revision=69029
2015-09-05 14:38:50 +00:00
Amine Khaldi
d60b5b3bab [MESA] Fix mesa_swrast VS 2015 build.
svn path=/trunk/; revision=69028
2015-09-05 14:32:44 +00:00
Amine Khaldi
a0673404ef [LIBXML2] Actually, the VS build has the /wd4189 flag before /we4189 rendering it useless. Use another approach to silencing it.
svn path=/trunk/; revision=69027
2015-09-05 14:29:27 +00:00
Amine Khaldi
739486b5a0 [LIBXML2] Fix VS 2015 build.
svn path=/trunk/; revision=69026
2015-09-05 14:14:35 +00:00
Thomas Faber
ded6dc385c [ACPI]
- Arch, don't shut down the system on IRP_MN_QUERY_POWER!
CORE-10110

svn path=/trunk/; revision=69025
2015-09-05 13:24:30 +00:00
Hermès Bélusca-Maïto
c1228347b5 [MSCONFIG_NEW]
- Associate a temporary VS project (will be removed later on); change the name of the target for now...
- Allow only one instance of MSConfig running on the system (we use a semaphore, compatible with MS' msconfig, so that if you try to run ROS msconfig on windows, you cannot run also windows' msconfig, and vice versa).
- Introduce some utility functions (for strings and other stuff), will be used later on.
CORE-9333

svn path=/trunk/; revision=69024
2015-09-05 13:03:04 +00:00
Thomas Faber
83400d8fc7 [NTOS]
- Addendum to r69022

svn path=/trunk/; revision=69023
2015-09-05 11:53:04 +00:00
Thomas Faber
2565dcba26 [NTOS:PS]
- Implement NtApphelpCacheControl. Patch by Mark Jansen
CORE-9914 #resolve

svn path=/trunk/; revision=69022
2015-09-05 11:49:54 +00:00
Thomas Faber
f0988cafd6 [NTOS]
- Fix build
CORE-9914

svn path=/trunk/; revision=69021
2015-09-05 11:32:02 +00:00
Thomas Faber
5f77d25a52 [SHIMDBG]
- Add a test tool for SHIM engine caching to rosapps. Patch by Mark Jansen
CORE-9914

svn path=/trunk/; revision=69020
2015-09-05 11:27:20 +00:00
Thomas Faber
86455f3ced [NDK]
- Update NtApphelpCacheControl declaration and add appropriate types. Patch by Mark Jansen
CORE-9914

svn path=/trunk/; revision=69019
2015-09-05 11:20:05 +00:00
Hermès Bélusca-Maïto
c468cf76b0 [MSCONFIG_NEW]: Start improved MSConfig. It's time to commit stuff I've done in it since 2011!
svn path=/trunk/; revision=69018
2015-09-05 10:37:36 +00:00
Thomas Faber
fe9978df72 [ESENT]
- Add stub dll. Fixes CCleaner startup. Patch by Mark Jansen
CORE-8758 #resolve

svn path=/trunk/; revision=69017
2015-09-05 10:00:31 +00:00
Amine Khaldi
02b26e04a7 [GDI32] Fix build with VS 2015.
svn path=/trunk/; revision=69016
2015-09-05 08:39:14 +00:00
Hermès Bélusca-Maïto
090f1203a2 [CRT]: Add a missing header inclusion.
svn path=/trunk/; revision=69015
2015-09-05 00:41:56 +00:00
Thomas Faber
cba5662485 [NTOS:WMI]
- Actually fix WmipShutdown. Spotted by Hermès
CORE-10105

svn path=/trunk/; revision=69014
2015-09-04 22:11:51 +00:00
Thomas Faber
8751ae5a8b [NTOS:WMI][HAL]
- Properly stub WmipShutdown and HalpDispatchPower to avoid IRP leaks
CORE-10105

svn path=/trunk/; revision=69013
2015-09-04 21:30:16 +00:00
Thomas Faber
8701931bfa [NTOS:KE]
- Fix KiGetCacheInformation for Intel processors according to the latest Intel Instruction Set Reference

svn path=/trunk/; revision=69012
2015-09-04 20:33:37 +00:00
Christoph von Wittich
c80d062582 [WHOAMI] fix a memory leak CID 1322119
svn path=/trunk/; revision=69011
2015-09-04 20:15:01 +00:00
Christoph von Wittich
5866c92e8d [CHARMAP] assign the DC to the correct variable CID 1322245
svn path=/trunk/; revision=69010
2015-09-04 20:02:25 +00:00
Christoph von Wittich
796ff3eae8 [IPCONFIG] fix format string issues and double free
CID 502632
CID 502633
CID 502634
CID 1322301

svn path=/trunk/; revision=69009
2015-09-04 19:03:41 +00:00
Thomas Faber
a7eeecdfdb [HIDCLASS][USBHUB]
- Fix IRP leaks in success case of hidclass!HidClassFDO_GetDescriptors and usbhub!FowardUrbToRootHub

svn path=/trunk/; revision=69008
2015-09-04 17:31:58 +00:00
Amine Khaldi
cf0892e19e [SETUPAPI] Partially sync query.c with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=69007
2015-09-04 17:29:32 +00:00
Pierre Schweitzer
1aecd02787 [CRT]
Fix memory allocation in __dllonexit

CID 514138

svn path=/trunk/; revision=69006
2015-09-04 16:49:51 +00:00
Pierre Schweitzer
975826e064 [CRT]
Fix rand_s implementation so that it doesn't leak resources, so that it doesn't dereference null pointer, so that it matches MSDN documentation (https://msdn.microsoft.com/fr-fr/library/sxtz2fa8.aspx)

CID 716561
CID 716668

svn path=/trunk/; revision=69005
2015-09-04 16:41:51 +00:00
Thomas Faber
3d95d5dd14 [NTOS]
- Fix TAG_IRP

svn path=/trunk/; revision=69004
2015-09-04 16:16:48 +00:00
Thomas Faber
2793ff5f85 [CDROM]
- Avoid IRP leaks

svn path=/trunk/; revision=69003
2015-09-04 16:01:46 +00:00
Pierre Schweitzer
ddac0cda92 [MOUNTMGR]
Fix a nasty typo in QueryPointsFromMemory() which was like breaking the behavior of IOCTL_MOUNTMGR_QUERY_POINTS, IOCTL_MOUNTMGR_DELETE_POINTS

CID 1321853

svn path=/trunk/; revision=69002
2015-09-04 15:58:44 +00:00
Pierre Schweitzer
bff1ce32bc [NTFS]
Don't bother comparing names if they have null length

svn path=/trunk/; revision=69001
2015-09-04 15:52:19 +00:00
Pierre Schweitzer
02a238acf4 [NTFS]
Don't attempt to dereference a null pointer
CID 1321987

svn path=/trunk/; revision=69000
2015-09-04 15:37:15 +00:00
Thomas Faber
9c35e7b817 [BOOTMGFW]
- Fix build with RUNTIME_CHECKS (and hopefully STACK_PROTECTOR)

svn path=/trunk/; revision=68999
2015-09-04 15:33:12 +00:00
Thomas Faber
ddfbce11a3 [TOOLS]
- Fix MSVC warnings for C++ host-tools

svn path=/trunk/; revision=68998
2015-09-04 15:22:16 +00:00
Amine Khaldi
8cb9d1125b [BOOTMGFW] Add missing dependency.
svn path=/trunk/; revision=68997
2015-09-04 14:45:40 +00:00
Amine Khaldi
6556572a93 [BOOTMGFW] Add missing dependency.
svn path=/trunk/; revision=68996
2015-09-04 14:43:01 +00:00
Amine Khaldi
0bfea85680 [BOOTMGFW] Set the subsystem differently between GCC and MSVC builds.
svn path=/trunk/; revision=68995
2015-09-04 14:40:15 +00:00
Alex Ionescu
475dc31102 [TXTSETUP]
Still takes 3 commits to get 1 right.

svn path=/trunk/; revision=68994
2015-09-04 14:26:09 +00:00
Alex Ionescu
1213038a54 [BOOTMGFW]
Try to fix header.

svn path=/trunk/; revision=68993
2015-09-04 14:23:45 +00:00
Alex Ionescu
286f63072a [BOOTMGFW]
Nothing to see here. I hope this doesn't break the build.

svn path=/trunk/; revision=68992
2015-09-04 14:16:56 +00:00
Pierre Schweitzer
cf68c63f61 [MUP]
Fix uninitialized address freeing in case of error in MupGetProviderInformation(), InitializeProvider()
CID 1322227
CID 1322240

svn path=/trunk/; revision=68990
2015-09-04 13:58:44 +00:00
Christoph von Wittich
414b2645fd [USBSTOR] fix memory leaks CID 1322134
svn path=/trunk/; revision=68989
2015-09-04 12:05:14 +00:00
Christoph von Wittich
05649af8f1 [SHELL32] fix a memory leak CID 1322145
svn path=/trunk/; revision=68988
2015-09-04 11:43:48 +00:00
Christoph von Wittich
3b6684d9db [WIN32SS] fix memory leak in error case CID 716637
svn path=/trunk/; revision=68987
2015-09-04 09:39:08 +00:00
Thomas Faber
2231e344a2 [FASTFAT]
- Don't try to free an uninitialized pointer in VfatSetRenameInformation. CID 1250303
- Actually use the dynamically calculated HashTableSize. CID 1237119/1237120/1237121

svn path=/trunk/; revision=68986
2015-09-04 08:37:01 +00:00
Christoph von Wittich
e4e403fceb [I8042PRT] fix memory leak CID 1322163
svn path=/trunk/; revision=68985
2015-09-04 08:32:00 +00:00
Christoph von Wittich
a7d123306b [SERVMAN] fix memory leak CID 1322153
svn path=/trunk/; revision=68984
2015-09-04 08:29:08 +00:00
Christoph von Wittich
1c2342e67a [DHCPSVC] fix resource leak in error case CID 1248422
svn path=/trunk/; revision=68983
2015-09-04 08:15:11 +00:00
Thomas Faber
df1aa949dd [RSYM]
- This is not the typo you are looking for

svn path=/trunk/; revision=68982
2015-09-04 08:06:17 +00:00
Christoph von Wittich
3497ea0435 [CRT] fix resource leak in error case CID 716561
svn path=/trunk/; revision=68981
2015-09-04 08:02:53 +00:00
Thomas Faber
e6718d0d2b [RSYM]
- Sort symbol entries with line number information before those without. Fixes backtraces showing ":0" as file/line for the first line of a function

svn path=/trunk/; revision=68980
2015-09-04 08:02:35 +00:00
Christoph von Wittich
2f1118245e [PORTCLS] fix memory leak in error case CID 716555
svn path=/trunk/; revision=68979
2015-09-04 07:59:51 +00:00
Christoph von Wittich
febb71907e [WDMAUD.DRV] fix memory leak in error case CID 716484
svn path=/trunk/; revision=68978
2015-09-04 07:55:30 +00:00
Christoph von Wittich
7e866d72cd [NSLOOKUP] fix resource leaks CID 701325
svn path=/trunk/; revision=68977
2015-09-04 07:48:18 +00:00
Thomas Faber
2758598c82 [NTKRNLMP]
- Apply link flags to the right module

svn path=/trunk/; revision=68976
2015-09-04 06:37:05 +00:00
Hermès Bélusca-Maïto
7b277383ef [VSSAPI]
Compile the THISCALL calling convention support only for x86. On x64, we are automatically in THISCALL.
Also I suggest we turn this file (and maybe also /lib/sdk/crt/except/i386/cpp.s) into a "msvc-thiscall.c" as it is already done in some other DLLs (like in ole32, riched20).
Fixes build in x64.

svn path=/trunk/; revision=68975
2015-09-04 01:14:51 +00:00
Hermès Bélusca-Maïto
9ee2ac33d3 [few apps][LOGONUI][FREELDR][MSGINA][BLUE] VOIDify function paramater lists when they indeed don't take any arguments.
svn path=/trunk/; revision=68974
2015-09-04 00:21:03 +00:00
Hermès Bélusca-Maïto
e1097c60fc [WIN32SS] VOIDify function paramater lists when they indeed don't take any arguments.
svn path=/trunk/; revision=68973
2015-09-04 00:11:49 +00:00
Hermès Bélusca-Maïto
da4344a24c Forgot those three ones.
svn path=/trunk/; revision=68972
2015-09-03 23:59:27 +00:00
Hermès Bélusca-Maïto
26b7393e00 [NTDLL][HAL][INFLIB][RTL][NTOS] VOIDify function paramater lists when they indeed don't take any arguments.
svn path=/trunk/; revision=68971
2015-09-03 23:57:39 +00:00
Pierre Schweitzer
9f74cf45b1 [NTOSKRNL]
Mark more functions as INIT

svn path=/trunk/; revision=68970
2015-09-03 22:19:16 +00:00
Aleksandar Andrejevic
f79d3eb7e7 [SHELL32]
Make the RLE-compressed AVIs even smaller.
CORE-10093 #resolve #comment Fixed in revision r68969.


svn path=/trunk/; revision=68969
2015-09-03 22:16:28 +00:00
Pierre Schweitzer
17027f7e54 [ADVAPI32]
Fix memory leaks in case of failure

CID 1322129
CID 1322130

svn path=/trunk/; revision=68968
2015-09-03 21:27:51 +00:00
Pierre Schweitzer
ae490fe18e [MUP]
Fix an hypthetic uninit var usage in MupCreate().
Dedicated to Chris.

CID 1322239

svn path=/trunk/; revision=68967
2015-09-03 21:19:05 +00:00
Eric Kohl
a8934e6e69 [INTL]
- Update all values in "HKCU\Control Panel\International" when a new language is selected.
- Update the language examples after a language change.
- Disable all settings that should not be affected by a language change.
Missing:
- Top-level windows do not get notification yet.
- Language settings customization should not work yet.
CORE-10074

svn path=/trunk/; revision=68966
2015-09-03 20:37:17 +00:00
Pierre Schweitzer
f3b5c2fe1e [CDFS]
[FASTFAT]
[MUP]
[NTFS]
Mark DriverEntry() and associated functions as INIT

svn path=/trunk/; revision=68965
2015-09-03 20:34:47 +00:00
Stefan Ginsberg
7c209f0f0f - Now that we actually take the trouble to set up MmLargeStackSize properly, use it! Also make it possible to set via the registry by adding it to the control vector table.
svn path=/trunk/; revision=68964
2015-09-03 20:04:28 +00:00
Aleksandar Andrejevic
cfea1726c5 [SHELL32]
RLE-compress the AVIs.


svn path=/trunk/; revision=68963
2015-09-03 19:42:46 +00:00
Stefan Ginsberg
9baf0c2a4e - Enable INIT_FUNCTION for HAL while keeping FreeLdr happy and not putting anything into .INIT when compiling mini-HAL for it.
svn path=/trunk/; revision=68962
2015-09-03 17:52:13 +00:00
Christoph von Wittich
acbf8ce925 [RECYCLEBIN] tabs to spaces (no code changes)
svn path=/trunk/; revision=68961
2015-09-03 17:40:13 +00:00
Christoph von Wittich
d4e8254f9e [RECYCLEBIN] fix some resource leaks CID 716559 716560
svn path=/trunk/; revision=68960
2015-09-03 17:35:37 +00:00
Stefan Ginsberg
da0a374ef0 - Don't put VdmpInitialize in .INIT either as it is not called during kernel initialization, but from videoport driver during its initialization. CORE-10097
svn path=/trunk/; revision=68938
2015-09-03 16:52:28 +00:00
Stefan Ginsberg
72a849ff44 - Enable placing kernel functions in the .INIT section (GCC only, MSVC is TBD). This allows them to be freed from memory after initialization is finished.
- PspMapSystemDll and IopDisplayLoadingMessage are called from non-initialization code, so don't put them in .INIT. CmpHiveRootSecurityDescriptor is called from initialization code, but too late in boot, so don't discard it either.
- Trying to enable this for HAL as well leads to a weird crash very early in boot. Investigation is ongoing. Until then we will just have to keep the huge PCI Class/Vendor tables in memory...
- Enable it for Win32k though as it seems to work fine there.
- Remove INIT_FUNCTION from function prototypes, it serves no purpose there.
See issue 10097 for more details.

svn path=/trunk/; revision=68937
2015-09-03 15:31:09 +00:00
James Tabor
42a15c9829 [Win32SS]
- Fix hilite text with objects. Mirror changes.

svn path=/trunk/; revision=68936
2015-09-03 14:29:53 +00:00
James Tabor
c10459d14a [RTL]
- Fix Underscore drawing for Win32k and related functions.

svn path=/trunk/; revision=68935
2015-09-03 12:59:26 +00:00
Pierre Schweitzer
00bc01249e [NTFS]
Remove deadcode CID 1321946

svn path=/trunk/; revision=68934
2015-09-03 12:57:04 +00:00
Pierre Schweitzer
5fed17ea9a [NTFS]
With the newly introduced mechanism (in r68829), on attributes list loop, there shouldn't be any AttributeList attribute anymore.
So, don't attempt to dump them.

svn path=/trunk/; revision=68933
2015-09-03 12:49:36 +00:00
Christoph von Wittich
43a7da8886 [WS2_32] leave critical section in error case CID 716028
svn path=/trunk/; revision=68932
2015-09-03 11:22:11 +00:00
Christoph von Wittich
0b74f9e65e [OSK] fix resource leak in error case CID 1322148
svn path=/trunk/; revision=68931
2015-09-03 09:33:58 +00:00
Stefan Ginsberg
349dd3bfe4 - Explicitly make the kernel .rsrc/Resource Directory non-discardable and non-pageable on MSVC builds, as it is accessed from bugcheck code. Previously this data was marked as discardable and the bugcheck routine would bugcheck (after a certain stage in boot) when trying to access the bugcheck code data because the data was discarded and the memory invalidated. Thanks to Thomas for the help and the fix.
svn path=/trunk/; revision=68930
2015-09-03 09:29:26 +00:00
Christoph von Wittich
638a301cd5 [WINLOGON] fix resource leak in error case CID 1322159
svn path=/trunk/; revision=68929
2015-09-03 08:48:31 +00:00
Christoph von Wittich
4c72ff9871 [CRT] Addendum to r68927
svn path=/trunk/; revision=68928
2015-09-03 07:42:05 +00:00
Christoph von Wittich
d98b8f9a71 [CRT] atan2 pass arguments in the correct order CID 1322203
svn path=/trunk/; revision=68927
2015-09-03 07:35:54 +00:00
Thomas Faber
743db122d7 [KERNEL32_WINETEST]
- Enable test_thread_fpu_cw on MSVC builds

svn path=/trunk/; revision=68926
2015-09-03 07:18:00 +00:00
Christoph von Wittich
075ba93d0c [NTOS:SE] fix uninitialized variable usage CID 1322236
svn path=/trunk/; revision=68925
2015-09-03 07:15:52 +00:00
Christoph von Wittich
818c6c4afc [EXPLORER] proper fix for CID 1321923, 1321924
svn path=/trunk/; revision=68924
2015-09-03 07:01:29 +00:00
Christoph von Wittich
831d7c9721 [EXPLORER] remove dead code CID 1321923, 1321924
svn path=/trunk/; revision=68923
2015-09-03 06:24:13 +00:00
James Tabor
a6e0a15e60 [Win32k]
- Yes we must specify everything in ReactOS. Fix CORE-10085.

svn path=/trunk/; revision=68922
2015-09-02 23:25:48 +00:00
James Tabor
d557af6005 - Remove test code from nonclient.
svn path=/trunk/; revision=68921
2015-09-02 23:08:04 +00:00
James Tabor
edef1feae7 [Win32k]
- Use the same style for get messages in nonclient.
- Remove bit checks left over from testing. Fix CORE-10086.

svn path=/trunk/; revision=68920
2015-09-02 23:06:19 +00:00
Sylvain Petreolle
4921df2054 [COM_APITEST]
Do not test for ISFHelper anymore.

svn path=/trunk/; revision=68919
2015-09-02 20:52:34 +00:00
Pierre Schweitzer
e3825569ca [RTL]
Finally, use the correct implementation for RtlAssert().

In testbots, the behavior will be the following:
On prompt, sysreg will always issue a 'break once' instruction. In umode, where kdbg isn't instructed to handle breakpoint, this will lead to application being killed. With a lot of noise. This matches previous behavior.
In kmode, where kdbg handles breakpoints, sysreg2 will ask for a bt and will reboot the VM. As it was done previously.

The testbots already have the newest available sysreg2 revision.

This was made possible thanks to the help of Stefan and Thomas.
It was also made possible thanks to the commits:
- in trunk: r68899, r68905, r68917
- in project-tools: r2074, r2232

CORE-10088 #resolve #comment Fixed with r68918

svn path=/trunk/; revision=68918
2015-09-02 20:18:42 +00:00
Pierre Schweitzer
db71d8393e [KERNEL32]
Always print information about unhandled exception, even when GUI error dialog boxes are disabled

CORE-10088

svn path=/trunk/; revision=68917
2015-09-02 20:11:39 +00:00
Giannis Adamopoulos
a5b00b8271 [SHELL32] - Remove Reactos only ISFHelper interface that is no longer used.
svn path=/trunk/; revision=68916
2015-09-02 18:20:40 +00:00
Giannis Adamopoulos
b228db061a [SHELL32]
- CNewMenu: Get the folder path from the pidl passed in the Initialize method. No need to query the defview for that.
- Dont use a reactos only interface to create a new directory. Prefer to do it with less code using exported functions.
- Add a new SelectNewItem method that is used when creating a new file or directory.
- Apply same fix for browse for folder dialog.

svn path=/trunk/; revision=68915
2015-09-02 13:14:46 +00:00
Christoph von Wittich
1ac43d0e3f [CRT] just print the error number if we don't have a matching string
svn path=/trunk/; revision=68914
2015-09-02 12:33:11 +00:00
Christoph von Wittich
3c5b952cb3 [CRT] fix null pointer deref in _gmtime64_s CID 515314
svn path=/trunk/; revision=68913
2015-09-02 10:20:21 +00:00
Giannis Adamopoulos
cba771af31 [SHELL32] - Fix copy paste bug
svn path=/trunk/; revision=68912
2015-09-02 09:31:16 +00:00
Thomas Faber
f14431ec16 [NTOS:SE]
- Correctly check ACE type in SeFastTraverseCheck. CID 1102005

svn path=/trunk/; revision=68911
2015-09-02 09:19:52 +00:00
Christoph von Wittich
e560a1993f [NTMARTA] fix copypasta
svn path=/trunk/; revision=68910
2015-09-02 08:56:58 +00:00
Thomas Faber
16deb5bf24 [RTL]
- Fix check for optional parameters in RtlGetCallersAddress

svn path=/trunk/; revision=68909
2015-09-02 05:38:02 +00:00
James Tabor
ff31610bfb [Win32k]
- Fix painting message regression.

svn path=/trunk/; revision=68908
2015-09-01 23:58:23 +00:00
Stefan Ginsberg
e4007ae73a - Implement super-simple KeSweepICache that always flushes the entire instruction cache. Use it in KD64 after modifying memory to make sure CPU gets the correct code to execute, and in NtFlushInstructionCache. May improve breakpoints somewhat.
- Move NtFlushInstructionCache from sysinfo.c to virtual.c where it fits better. Likewise, move it from kefuncs to mmfuncs in NDK, and fix function arguments (ULONG -> SIZE_T).
- Re-enable TRAP_DEBUG, adding back critical checks in the trap code. Checks can be improved but it is better than potentially silently messing up system state.
- Move remaining RtlPrefetchMemoryNonTemporal code into kernel. Stubbed for non-x86.
- By Hermes suggestion, override ASSERT to NT_ASSERT only for MSVC builds as that is where the main benefit is.

svn path=/trunk/; revision=68907
2015-09-01 23:45:48 +00:00
Pierre Schweitzer
e33dc625bc [HHPCOMP]
Fix headers inclusion on MacOSX.
This fixes hhpcomp build on MacOSX
Patch by Nicolas Rouvière

CORE-10084 #resolve #comment Committed in r68906. Thanks!

svn path=/trunk/; revision=68906
2015-09-01 22:44:56 +00:00
Pierre Schweitzer
9bd7b06448 [NTOSKRNL]
Fix KdpPrompt():
- Don't attempt to return in the middle of the loop. It leads to keep the mouse disabled instead of reenabling it.
- Also, return a string length that actually matches what was written to the output buffer.

This fixes invalid behavior on RtlAssert when used with #if 0 moved to #if 1, or when Windows NTDLL is used in ReactOS.

CORE-10082 #resolve #comment Fixed with r68905
CORE-10083 #resolve #comment Fixed with r68905

svn path=/trunk/; revision=68905
2015-09-01 22:32:55 +00:00
James Tabor
6dfa71c487 [Win32SS|UxTheme]
- Move Menu to server side. See CORE-7797 and CORE-8299.
- This was for speed while moving windows about the desktop and fixed test results too.

svn path=/trunk/; revision=68904
2015-09-01 22:10:13 +00:00
Stefan Ginsberg
eebbf23330 - Move misplaced RtlPrefetchMemoryNonTemporal from rtl into kernel where it belongs (it only exists as an export for use by drivers to safely try to use prefetchnta even if it may not be available). Use existing global KePrefetchNTAGranularity that is set to the correct value via cpuid instead of hardcoded "Ke386CacheAlignment".
svn path=/trunk/; revision=68903
2015-09-01 19:51:52 +00:00
Thomas Faber
fb17ced703 [NTOS:KE]
- Enable DPC timeout check on debug builds. Suggested by Stefan

svn path=/trunk/; revision=68902
2015-09-01 18:26:29 +00:00
Thomas Faber
62945a0c1c [NTOS:EX]
- Remove the timer's list entry instead of the list head in NtSetTimer and NtCancelTimer. Fixes list entry corruption on VMware Hybrid builder
CORE-10081 #resolve

svn path=/trunk/; revision=68901
2015-09-01 17:52:09 +00:00
Pierre Schweitzer
aafd9216cf [NTOSKRNL]
Fix MSVC build?

svn path=/trunk/; revision=68900
2015-09-01 17:32:34 +00:00
Pierre Schweitzer
82cc4faad5 [NTOSKRNL]
Probe buffers in case they come from user-mode in KdpPrint() and KdpPrompt().
This fixes two fixme.

svn path=/trunk/; revision=68899
2015-09-01 17:23:56 +00:00
Thomas Faber
ee071ab752 [CRT]
- Rewrite _fpreset based on Wine. Fixes the last kernel32:thread test failure

svn path=/trunk/; revision=68898
2015-09-01 14:57:30 +00:00
Thomas Faber
59201c3063 [NETAPI32]
- Correctly reallocate buffer in NetWkstaUserGetInfo. Fixes one of the many exceptions when running netapi32 tests with DPH.

svn path=/trunk/; revision=68897
2015-09-01 14:09:51 +00:00
Thomas Faber
373dce19d4 [PSDK]
- Sync access.idl and msinkaut.idl with Wine. Fixes MIDL warnings.

svn path=/trunk/; revision=68896
2015-09-01 14:07:06 +00:00
Christoph von Wittich
53fa26a2bf [STOBJECT] only change the volume icon when the state changed
svn path=/trunk/; revision=68895
2015-09-01 13:55:34 +00:00
Stefan Ginsberg
cb58261a0c - Fix what should hopefully be the last bug in the floating point state save/load code -- in KiNpxHandler check if the state is loaded before unloading it instead of checking if it is *unloaded* before... unloading it. Also clear up some comments.
- Thomas is da man.

svn path=/trunk/; revision=68894
2015-09-01 13:20:50 +00:00
David Quintana
332652615a [EXPLORER]
* Remove old icons from the tray imagelist.

svn path=/trunk/; revision=68893
2015-09-01 12:32:05 +00:00
Giannis Adamopoulos
4a52a2ec13 [SHELL32]
- Fix a hack that broke copying files after recent fixes.

svn path=/trunk/; revision=68892
2015-09-01 10:18:40 +00:00
Stefan Ginsberg
e441f06d17 - You know what, NT_ASSERT is awesome.
svn path=/trunk/; revision=68891
2015-09-01 09:25:18 +00:00
Stefan Ginsberg
33f24ed20a - Missed these. Goodbye NT_ASSERT.
svn path=/trunk/; revision=68890
2015-09-01 08:41:39 +00:00
James Tabor
7627920bef [Win32k]
- Fix more ATI issues, pass more related tests. See CORE-6551.

svn path=/trunk/; revision=68889
2015-09-01 01:48:37 +00:00
Stefan Ginsberg
e4fd9b81bc - Remove all NT_ASSERT from the kernel and replace with good old ASSERT, for ease of debugging, especially for tests run on the build servers. There is no need to use NT_ASSERT in the kernel.
- The fish is long gone.

svn path=/trunk/; revision=68888
2015-09-01 01:45:59 +00:00
Stefan Ginsberg
a4f0ae9e87 - Fix link fix build.
svn path=/trunk/; revision=68887
2015-09-01 00:38:40 +00:00
Stefan Ginsberg
fdeca1b2b2 - Small patch to fix (delayed) loading of floating point state. Enables the special handling of fpu exceptions caused by frstor when used by the kernel, by implementing its use in assembly so the trap handler gets the instruction address it needs (for ALl compilers!). May or may not fix the fact that floating point state is not properly saved between threads.
See CORE-10005.

svn path=/trunk/; revision=68886
2015-09-01 00:20:57 +00:00
Giannis Adamopoulos
bb8a6e700c [SHELL32]
- Rename SHELL32_BindToChild to SHELL32_BindToFS. Do not let it be used for guid items any more. Split SHELL32_GetCLSIDForDirectoryout of it and call it only when needed.
- Fix callers to use SHELL32_BindToGuidItem for guid items.
- Fix a bug in CFSFolder which marked folder items as files when a binding context was used.

svn path=/trunk/; revision=68885
2015-08-31 23:44:02 +00:00
Giannis Adamopoulos
5d50aaffdd [SHELL32]
- All shell folders must have the IPersistFolder. Hence their Initialize method is supposed to succeed for them to actually work.

svn path=/trunk/; revision=68884
2015-08-31 23:12:03 +00:00
Amine Khaldi
3f45fd516a [VSSAPI] Import from Wine Staging 1.7.47. Thanks to Thomas Faber for his help. [PSDK] Import vss.idl and vswriter.h from Wine Staging 1.7.47. CORE-9924 CORE-9965
svn path=/trunk/; revision=68883
2015-08-31 19:34:37 +00:00
Amine Khaldi
7509f2af06 [SETUPAPI] Sync setupcab.c with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68882
2015-08-31 17:52:48 +00:00
Thomas Faber
ac0593b71d [NTOS:EX]
- Don't leak process reference in NtFlushInstructionCache. Spotted by Stefan

svn path=/trunk/; revision=68881
2015-08-31 13:53:14 +00:00
Thomas Faber
847346ed85 [LSASRV]
- Correctly call LsarClose in DsRolepGetBasicInfo

svn path=/trunk/; revision=68880
2015-08-31 13:46:38 +00:00
Thomas Faber
c51b0c1318 [NETAPI32]
- Don't try to close the deleted user handle in NetUserDel

svn path=/trunk/; revision=68879
2015-08-31 13:44:57 +00:00
Giannis Adamopoulos
65783dfa91 Fix build.
svn path=/trunk/; revision=68878
2015-08-31 11:35:26 +00:00
Giannis Adamopoulos
8da2ae9374 [SHELL32]
- Make SHELL32_GetDisplayNameOfChild return the result via a STRRET. Fix all callers accordingly.
- Avoid any heap allocations if a shell folder needs to forward the GetDisplayNameOf call to a child.

svn path=/trunk/; revision=68877
2015-08-31 11:28:24 +00:00
James Tabor
8828db039a [NtGdi]
- Fix color setting.

svn path=/trunk/; revision=68876
2015-08-30 23:15:55 +00:00
Amine Khaldi
48844bd8da [FREETYPE] Revert the 2.6.0 sync until we figure out what's causing the second stage bugcheck. CORE-10072
svn path=/trunk/; revision=68875
2015-08-30 17:16:36 +00:00
Amine Khaldi
84ca2e2c16 [FREETYPE] Sync up to 2.6.0. CORE-10072
svn path=/trunk/; revision=68874
2015-08-30 15:54:09 +00:00
Giannis Adamopoulos
dc515c2a97 [SHELL32]
- Remove SHELL32_GetItemAttributes for good. It is never a good idea to have one function that handles many types of pidls.

svn path=/trunk/; revision=68873
2015-08-30 14:28:07 +00:00
Pierre Schweitzer
65caa6e448 [NTFS]
No reason to keep NTFS disabled. Make it manually started (ie, by FsRec)

svn path=/trunk/; revision=68872
2015-08-30 13:05:20 +00:00
Thomas Faber
1921cae21e [SERVICES]
- Correctly copy group dependencies in ScmWriteDependencies (DPH)

svn path=/trunk/; revision=68871
2015-08-30 09:52:57 +00:00
Thomas Faber
fec1f08cd5 [TCPIP_DRVTEST]
- Handle errors to avoid uninitialized variable usage

svn path=/trunk/; revision=68870
2015-08-30 09:31:23 +00:00
Amine Khaldi
6528e0b9d8 [LIBPNG] Sync up to 1.6.18. CORE-10071
svn path=/trunk/; revision=68869
2015-08-30 09:23:53 +00:00
Giannis Adamopoulos
1bde745c4e [SHELL32]
- Fix copy paste mistake in CDesktopFolder

svn path=/trunk/; revision=68868
2015-08-30 08:51:18 +00:00
Thomas Faber
a54882acc1 [ADVAPI32_APITEST]
- Do not call RtlInitUnicodeString on an unterminated string (DPH)

svn path=/trunk/; revision=68867
2015-08-30 08:37:13 +00:00
Thomas Faber
285991f04c [RTL]
- Use the correct busy node pointer in RtlpPageHeapDestroy
CORE-9735 #resolve

svn path=/trunk/; revision=68866
2015-08-30 07:26:26 +00:00
Giannis Adamopoulos
af3114c491 [SHELL32]
- When binding to a drive item try to initialize the new CFSFolder using IPersistFolder3. That allows us to get the path of the drive right from the pidl instead of getting a new reference to the CDrivesFolder and using GetDisplayNameOf for the pidl.

svn path=/trunk/; revision=68865
2015-08-29 21:09:29 +00:00
Hermès Bélusca-Maïto
90143b555c [NTOS:KD]: Disable to dprints.
svn path=/trunk/; revision=68864
2015-08-29 16:56:09 +00:00
Thomas Faber
a6513f80af [HAL]
- Implement HalStartProfileInterrupt, HalSetProfileInterval, and HalpProfileInterruptHandler
Now kernrate works!
CORE-10066 #resolve

svn path=/trunk/; revision=68863
2015-08-29 16:45:00 +00:00
Eric Kohl
1e34580fd6 [WINLOGON]
- Read notification DLL parameters.
- Use the Enabled value.

svn path=/trunk/; revision=68862
2015-08-29 15:50:02 +00:00
Thomas Faber
a7236633f6 [NDK][NTOS]
- Move KeProfileInterrupt[WithSource] declarations to NDK since they're exported
- NtCreateProfile's fourth parameter is SIZE_T
- Add NtCreateProfileEx prototype
CORE-10066

svn path=/trunk/; revision=68861
2015-08-29 15:04:01 +00:00
Thomas Faber
6d331859f3 [NTOS]
- Fix GCC build

svn path=/trunk/; revision=68860
2015-08-29 14:35:02 +00:00
Thomas Faber
e693a9b767 [NTOS:KE]
- Fix swapped parameters of KeSetIntervalProfile
- Calculate the correct bucket pointer in KiParseProfileList, and actually increment the counter
CORE-10066

svn path=/trunk/; revision=68859
2015-08-29 14:30:29 +00:00
Thomas Faber
a2833fad4b [NTOS:EX]
- Fix MDL leak in NtStopProfile
CORE-10066

svn path=/trunk/; revision=68858
2015-08-29 14:14:43 +00:00
Hermès Bélusca-Maïto
7ac60d428d [HAL]: Addendum for r68856
svn path=/trunk/; revision=68857
2015-08-29 14:09:57 +00:00
Thomas Faber
96a3420464 [HAL]
- IRQ 8 belongs to the slave PIC, so send EOI appropriately
CORE-10066

svn path=/trunk/; revision=68856
2015-08-29 14:04:57 +00:00
Hermès Bélusca-Maïto
3946e15eeb [i8042prt]
Improve debugging experience when pressing Tab+k, at least with WinDBG, by breaking with a suitable control code (adopt the SysRq one even if we don't use SysRq key for breaking, but instead, Tab+k).

svn path=/trunk/; revision=68855
2015-08-29 13:53:55 +00:00
Hermès Bélusca-Maïto
d328dc16b4 [NTOS]
Addendum to r68851:
- Reset the state of the worker thread *after* having captured the data, not before.
- Fix the explanations given in comments.

svn path=/trunk/; revision=68854
2015-08-29 12:53:08 +00:00
Thomas Faber
f0aeab590d [FUSION]
- Add missing psdk dependency to fusion_common

svn path=/trunk/; revision=68853
2015-08-29 07:41:52 +00:00
Thomas Faber
f917e6193e [NTOS:EX]
- Remove superfluous dereference in NtCreateProfile
- Allocate the right size for KPROFILE object
- Don't leak the KPROFILE when deleting an EPROFILE
- Avoid some casts
CORE-10066

svn path=/trunk/; revision=68852
2015-08-29 07:35:59 +00:00
Hermès Bélusca-Maïto
dd088b28fc [NTOS]
Implement the WinDBG Debugger Worker Thread, which is created inside a target process whenever one uses the ".process /i <addr>" (invasive debugging) command using WinDBG in kernel-mode debugging.
See https://www.microsoftpressstore.com/articles/article.aspx?p=2201303&seqNum=2 section "Switching the Current Process Context" (from the book "Inside Windows Debugging" by Tarik Soulami, pp.101-102) for more details.
The names of the variables must be kept as they are, because WinDBG (more exactly, dbgeng.dll) searches for them within the kernel symbols and retrieves their addresses (since those variables are not publicly exported).

svn path=/trunk/; revision=68851
2015-08-29 02:03:56 +00:00
Hermès Bélusca-Maïto
a0a1967e8e [NTDLL]
Make its version information compatible with the one of NTOSKRNL (and accessorily its resource file). Addendum to r25937.

svn path=/trunk/; revision=68850
2015-08-29 01:56:11 +00:00
Giannis Adamopoulos
c932cb9d3a [SHELL32]
- Only return the flags that the caller asked for in SHELL32_GetFSItemAttributes. Allows us to get rid of a hell lot of calls to CFSFolder::BindToChild which lead to many calls to FindFirstFile.

svn path=/trunk/; revision=68849
2015-08-28 15:08:19 +00:00
Hermès Bélusca-Maïto
a39b4f51b9 [NTOS]
Fix x64 compilation:
- Some KDBG symbols for win32k debugging are defined only in x86 platform when _WINKD_ is disabled.
- KdSetOwedBreakpoints is defined only if _WINKD_ is enabled, addendum for x64 to r68842.

svn path=/trunk/; revision=68848
2015-08-28 14:01:58 +00:00
Thomas Faber
5ff109f0b3 [CMD]
- Avoid statically importing FindFirstStreamW/FindNextStreamW so that our cmd.exe can work on WinXP.
- Accept lowercase /r switch

svn path=/trunk/; revision=68847
2015-08-28 11:39:45 +00:00
Thomas Faber
4e5f69d4d1 [CMD]
- In DirList, initialize stInfo.ptrHead of the dummy node to avoid invalid memory access. Fixes regression in cmd:batch

svn path=/trunk/; revision=68846
2015-08-28 10:51:10 +00:00
Giannis Adamopoulos
2f9a846dcf [SHELL32]
- Sync control.c from wine and disable a large part of it that is not needed. Also update the definition of CPlApplet to match wine.
- Make CControlPanel use the new definition of CPlApplet which lets us simplify loading the applets.
- Make CControlPanel to only use unicode and use the new helper functions.
- Simplify the code for the context menu of cpl items.

svn path=/trunk/; revision=68845
2015-08-28 10:36:35 +00:00
Giannis Adamopoulos
73a3fd8b3c [SHELLUTILS]
- Add a helper function SHSetStrRet that will simplify setting the contents of a STRRET.

svn path=/trunk/; revision=68844
2015-08-28 10:32:02 +00:00
Amine Khaldi
e950972731 [CMAKE] Fix broken PCH handling since r67483.
svn path=/trunk/; revision=68843
2015-08-28 09:24:39 +00:00
Pierre Schweitzer
5777e8100c [NTOSKRNL]
Fix build

svn path=/trunk/; revision=68842
2015-08-28 06:19:31 +00:00
Hermès Bélusca-Maïto
a7d4979a10 [NTOS:KD]
- Fix the condition check when setting twice (or more) the same breakpoint.
- Implement support for deferred breakpoints. For more information, see: http://www.osronline.com/article.cfm?article=541 (which also exposes an interesting problem about them).

svn path=/trunk/; revision=68841
2015-08-28 03:03:26 +00:00
Amine Khaldi
17228d9d3e [CMAKE] Introduce a way to use auto generation using bison and flex. Dedicated to Eric Kohl. CORE-10055
svn path=/trunk/; revision=68840
2015-08-27 23:00:49 +00:00
Amine Khaldi
6c6dae8b30 [CMAKE] Add and use baseaddress_msvc.cmake.
svn path=/trunk/; revision=68839
2015-08-27 22:35:06 +00:00
Amine Khaldi
a9a2119c0c [CMAKE] Update baseaddress.cmake.
svn path=/trunk/; revision=68838
2015-08-27 22:33:07 +00:00
Pierre Schweitzer
78128d23f0 [NTFS]
Return proper status

svn path=/trunk/; revision=68836
2015-08-27 21:02:52 +00:00
Pierre Schweitzer
b3ec3aeb5a [NTFS]
It seems that our disk.sys returns "unknown" media type when performing IOCTL_DISK_GET_DRIVE_GEOMETRY on an extended partition.
Not sure how Windows handles this (if any volunteer for a test :-)), in the meantime, forcibly sector size to 512B to allow NTFS driver opening volumes on extended partitions 

svn path=/trunk/; revision=68835
2015-08-27 20:56:08 +00:00
David Quintana
ed7c0959c6 [SHELL32]
The desktop.ini file is only meant to be read if the folder has the R (read-only) or S (system) attributes. 
If this causes your favorite folder to stop showing the icon, use "attrib +r <foldername>" or edit it from the properties dialog.
When we add the desktop.ini files, we will also need to add the R attribute to their respective folders.
Followup to CORE-9002

svn path=/trunk/; revision=68834
2015-08-27 16:37:13 +00:00
David Quintana
4b901b355e [NTOBJSHEX]
* Fix comment headers.

svn path=/trunk/; revision=68833
2015-08-26 23:35:38 +00:00
David Quintana
73a55f80e1 [NTOBJSHEX]
* Now that we use lazy enumeration instead of keeping a full list of all items, I was able to simplify a few things.

svn path=/trunk/; revision=68832
2015-08-26 23:30:47 +00:00
Hermès Bélusca-Maïto
18183f23d3 [DISKPART]
- Russian translation update by tower.
- Fixup the other translations.

svn path=/trunk/; revision=68831
2015-08-26 22:53:20 +00:00
Pierre Schweitzer
81ce5cdc50 [NTFS]
Fix two memory leaks

svn path=/trunk/; revision=68830
2015-08-26 18:55:53 +00:00
Pierre Schweitzer
74ed7ffd30 [NTFS]
Totally rewrite the way MFT records attributes are handled.
Up to now, we were having really similar loops, only looking at the resident part of the attribute list, not really caring about how the loop was going.

This was leading to some issues:
- In case the attribute we were looking for was stored in the non-resident part of the attribute list, we would miss it (excepted in the case of FindAttribute() which was properly browsing the whole attribute list).
- In the specific case of FindAttribute(), one would have been able to setup a broken MFT record with the resident attribute list pointing on the non resident attribute list which itself would point to the resident attribute list. In such case, the driver would loop forever caught on the loop, allocating tones of memory. It was possible to trigger this by user space, from a non-privileged user, just by browsing the right directory entry.
- In the case of the other loops (non FindAttribute()), another issue (other than missing attributes) was present, one would have been able to setup a broken MFT record with an attribute of null-length. This would have caused the driver to loop forever on the attribute list. This could be triggered from usermode too. And could be triggered by a non-privileged user.

This commit introduces a new set of functions for attributes browsing: FindFirstAttribute(), FindNextAttribute(), FindCloseAttribute(). It allows safely browsing attributes and handles broken cases. It also performs reading of the attribute list when present and makes sure there's only one read. This method should be the only one to use to browse the attributes.
The whole NTFS code base has been converted to use this newly set of functions. This really simplifies the implementation of FindAttribute(), and prevent unsafe code duplication.

CORE-10037 #resolve #comment Fixed with r68829

svn path=/trunk/; revision=68829
2015-08-26 18:20:04 +00:00
David Quintana
b4e29c9de9 [SHELL32]
* Fix loading icon info from dekstop.ini. Also took the chance to remove some unnecessary convolution. The old code tried to load the info, but didn't actually make use of the returned string at all.
CORE-9002 #resolve #comment Icon loading should work now. Adding the default desktop.ini files in the right folders will be a followup issue.

svn path=/trunk/; revision=68828
2015-08-26 17:31:42 +00:00
Hermès Bélusca-Maïto
be6a6195b6 [NTVDM]
- Towards a complete fix of VGA console attach/detach: a lot of progress is made but few little things need to be checked/adjusted.
- Fix text scroll (at least in text modes) by doing guest-to-guest moves, using the EmulatorCopyMemory function introduced in r68826.
- Fix the computation of the screen rows/columns values stored in the BDA, in graphics modes (in addition to the change of r68090), by dividing the graphics resolution by the character heights & widths. Correct values are indeed needed by some programs, eg. QBasic (I also add a CharacterWidth; normally it should be computable using the CRTC registers, and is always == 8 or 9, but still...).

svn path=/trunk/; revision=68827
2015-08-26 01:26:33 +00:00
Hermès Bélusca-Maïto
91a6866265 [NTVDM]
Introduce a function for doing guest-to-guest memory copies (given here in a temporary implementation until a proper one is developed). It will be used in my next commit.

svn path=/trunk/; revision=68826
2015-08-26 00:37:50 +00:00
Daniel Reimer
3836b30b50 [CMD]
Update German translation by ... ME

svn path=/trunk/; revision=68825
2015-08-25 21:19:30 +00:00
Pierre Schweitzer
ec2336a4a6 [CMD]
Remove an useless if

svn path=/trunk/; revision=68824
2015-08-25 20:39:53 +00:00
Pierre Schweitzer
6686b09385 [CMD]
Implement switch /R for dir command.
It allows enumerating alternate data streams of files

Commit dedicated to Ged

svn path=/trunk/; revision=68823
2015-08-25 20:35:51 +00:00
Pierre Schweitzer
b72e356c87 [NTFS]
Properly set StreamNameLength (with the length of extra data we append).
This fixes truncated output from FindFirstStreamW/FindNextStreamW

svn path=/trunk/; revision=68822
2015-08-25 20:11:53 +00:00
Benedikt Freisen
51d24b7385 Some fixes to the scf file registry entry; added some missing entries (patch by gonzoMD)
svn path=/trunk/; revision=68821
2015-08-25 14:24:41 +00:00
Benedikt Freisen
3227d6fa06 [PSDK] Add methods to Gdiplus::Color
svn path=/trunk/; revision=68820
2015-08-25 14:13:19 +00:00
Hermès Bélusca-Maïto
5cab971ae1 [NTVDM]: Initialize the correct buffer! (aka. fix confusion between ConsoleFramebuffer and Graphics Framebuffer; fixes text -> graphic transitions). Addendum for r68812
svn path=/trunk/; revision=68819
2015-08-25 12:46:40 +00:00
Hermès Bélusca-Maïto
c199fcbca2 [SHELL32]: Add the trailing '...' after the "Run as" command in order to indicate more information is needed before performing the action.
CORE-10039 #comment '...' added in r68818.

svn path=/trunk/; revision=68818
2015-08-25 12:18:32 +00:00
Hermès Bélusca-Maïto
d2cfc5d13b [FREELDR]: Fix typo in comment, spotted by "middings". CORE-10040 #resolve
svn path=/trunk/; revision=68817
2015-08-25 11:55:36 +00:00
Hermès Bélusca-Maïto
7710f1ed1c [NTVDM]: Correctly set last (and returned) errors when we fail at reallocating a memory block (in case this is the last block), or if the block is invalid. Do the same stuff also for few other memory functions.
svn path=/trunk/; revision=68816
2015-08-25 01:48:17 +00:00
Aleksandar Andrejevic
7b30b216d0 [FAST486]
If FAST486_PREFIX_SEG is set, we're supposed to use the override segment
instead of DS, and not the other way around.


svn path=/trunk/; revision=68815
2015-08-24 20:55:09 +00:00
Pierre Schweitzer
50f5e804a9 [NTFS]
Remove leftover code

svn path=/trunk/; revision=68814
2015-08-24 20:40:54 +00:00
Hermès Bélusca-Maïto
cc75f78b89 Replace LPVOID by PVOID everywhere!
svn path=/trunk/; revision=68813
2015-08-24 19:02:07 +00:00
Hermès Bélusca-Maïto
5273c39a14 [NTVDM]
- Correctly sync ConsoleFramebuffer when we attach/detach VGA from the console (fix memory corruptions introduced by r68720).
- Fix few comments in the process.

svn path=/trunk/; revision=68812
2015-08-24 19:00:27 +00:00
Pierre Schweitzer
8b651ad6d9 [NTFS]
Support full data stream name on open (i.e., stream name finished with :$DATA)

svn path=/trunk/; revision=68811
2015-08-24 09:52:30 +00:00
Pierre Schweitzer
5f9af4a19f [NTFS]
Fix returned status code, spotted by Thomas 

svn path=/trunk/; revision=68810
2015-08-24 08:45:28 +00:00
Pierre Schweitzer
e9ae3cdf25 [NTFS]
Return properly formatted stream names, according to: https://msdn.microsoft.com/en-us/library/cc232090.aspx

svn path=/trunk/; revision=68809
2015-08-24 08:43:26 +00:00
Pierre Schweitzer
6f4dfe4e09 [NTFS]
Implement FileStreamInformation class for IRP_MJ_QUERY_INFORMATION.
It allows enumerating streams for a given file

svn path=/trunk/; revision=68808
2015-08-24 08:36:58 +00:00
Hermès Bélusca-Maïto
57c8922ec2 Fix few comments, no code changes.
svn path=/trunk/; revision=68807
2015-08-24 01:42:52 +00:00
Hermès Bélusca-Maïto
ef41fe2284 [KERNEL32]
- Move some #defines where they belong; use ARRAYSIZE(...) macro where appropriate.
- Use enumeration for the environment name types.
- Fix BaseCreateVDMEnvironment so that we only convert the paths of TEMP/TMP, PATH, WINDIR and SYSTEMROOT env values to their short form, as done on Windows. To that purpose use the BaseGetEnvNameType_U helper.
- Fix the loop that computed the needed new environment size.
Needed for CORE-9773.

svn path=/trunk/; revision=68806
2015-08-24 01:32:00 +00:00
Pierre Schweitzer
87620d75ba [HACKSSIGN]
Fix typo, spotted by "Michele MZ Ji"

CORE-10033

svn path=/trunk/; revision=68805
2015-08-23 17:33:15 +00:00
Eric Kohl
82e230b0d9 [WLNOTIFY]
- Disable the debug output.
- Add and register the missing notification functions.

svn path=/trunk/; revision=68804
2015-08-23 15:58:18 +00:00
Eric Kohl
f28d52abfc [WINLOGON]
Implement calls to the notification DLLs.

svn path=/trunk/; revision=68803
2015-08-23 15:48:52 +00:00
Pierre Schweitzer
80314158bf [HACKSSIGN]
Simplify the hackssign application usage.
You don't need anymore to specify which VM type you use. The client will attempt to discover it by looking at available shared folders providers.
If it recognizes one, it will perform the assignation.
No Guest Additions/Tools installed will make the tool refuse to assign a drive letter (obviously).

So basically, you just need to issue some: hackssign assign z ReactOS (for example)

svn path=/trunk/; revision=68802
2015-08-23 10:35:52 +00:00
Christoph von Wittich
c8ce68e92f [CRT]
Don't call DeleteCriticalSection on static critical section (wine-patch by Piotr Caban)

svn path=/trunk/; revision=68801
2015-08-23 09:05:26 +00:00
Christoph von Wittich
6a5d1d8b58 [KERNEL32]
fix a regression introduced in r68797

svn path=/trunk/; revision=68800
2015-08-23 08:19:39 +00:00
Christoph von Wittich
4f9474e3ec [ADVAPI32] prevent buffer overflow in ParseStringSecurityDescriptorToSecurityDescriptor (wine-patch by Alistair Leslie-Hughes)
svn path=/trunk/; revision=68799
2015-08-23 07:07:25 +00:00
Christoph von Wittich
3f801dad23 [RTL] make RtlAddVectoredExceptionHandler hotpatchable
svn path=/trunk/; revision=68798
2015-08-23 07:01:19 +00:00
Christoph von Wittich
190095e160 [KERNEL32] sync GetTempPathW with wine wine-1.7.50
svn path=/trunk/; revision=68797
2015-08-23 06:53:08 +00:00
Christoph von Wittich
c652a5f2c9 [PSDK]
sync digitalv.h with wine (packing and x64 fixes)

svn path=/trunk/; revision=68796
2015-08-23 06:37:05 +00:00
Christoph von Wittich
01fca10b83 [UXTHEME] Fix bug preventing GetThemeString from working (patch by Mark Harmstone)
svn path=/trunk/; revision=68795
2015-08-22 18:40:59 +00:00
Pierre Schweitzer
a120e4e492 [HACKSSIGN]
Stack hacks!
Let's introduce hackssign. This application (and its associated driver) are here to allow
users to assign drive letter to their VMware/VBox shared folders.
It relies on two components: a client to communicate the instructions and a driver to execute such instructions.

Do not execute this application nor its driver outside ReactOS. There are barely no security checks nor sanety checks.
You could do substantial damages.

So, let's go back to shared folders state in ReactOS nowadays...

VMware
------
Configure your shared folders
Install VMware Tools
Reboot
From here, you can access your share from cmd or explorer with UNC path (for instance: \\vmware-host\Shared Folders\ReactOS)
Go to C:\ReactOS\bin (or whatever, depending on your setup)
Execute hackssign assign z ReactOS vmware (for instance)
z is the letter you want to give, and ReactOS is the name of your share (you gave it in VMware configuration)
You're done, you can access your share with the Z drive letter

VirtualBox
----------
Configure your shared folders
Install VBox Guest Additions
Reboot
Go to C:\ReactOS\bin (or whatever, depending on your setup)
Execute rosvboxmgmt start
From here, you can access your share from cmd or explorer with UNC path (for instance: \\vboxsvr\ReactOS)
Execute hackssign assign z ReactOS virtualbox (for instance)
z is the letter you want to give, and ReactOS is the name of your share (you gave it in VMware configuration) 
You're done, you can access your share with the Z drive letter

Note that you can delete an assignement by performing a hackssign delete z (or whatever drive you want to remove).
In such case, the share remains available with its UNC path.


svn path=/trunk/; revision=68794
2015-08-22 12:29:37 +00:00
Benedikt Freisen
b2e64aa3fc [HHPCOMP] Remove __inline to fix VS 2015 build. See CORE-10013.
svn path=/trunk/; revision=68793
2015-08-22 11:41:11 +00:00
Benedikt Freisen
85a5a71d79 [HHPCOMP]
Improve functionality of Windows MSVC build. Based on a WIP patch by Michael Fritscher.
See CORE-10019.

svn path=/trunk/; revision=68792
2015-08-22 11:16:50 +00:00
David Quintana
42df3d1b7e [BROWSEUI]
[OLEAUT32]
[DDK]
[PSDK]
[STLPORT]
[CPPRT]
Port the vs2015 fixes to also work on x64

[HHCOMP]
Fix compilation with VS in x64 mode

svn path=/trunk/; revision=68791
2015-08-22 00:17:15 +00:00
Stefan Ginsberg
ca5361525f - Fix a "clever" check in KdpDeleteBreakpointRange that made the routine unable to delete more than one breakpoint in the specified range.
svn path=/trunk/; revision=68790
2015-08-21 20:57:19 +00:00
Pierre Schweitzer
e816df8cd0 [MUP]
Now we know MUP is working, reduce a bit its verbosity

svn path=/trunk/; revision=68789
2015-08-21 20:44:30 +00:00
Pierre Schweitzer
6a08c60dee [NTOSKRNL]
Don't enforce tag on free, it may have been reallocated by someone else (Ob)

svn path=/trunk/; revision=68788
2015-08-21 20:40:47 +00:00
Giannis Adamopoulos
05e1863025 [SHELL32]
- Hackplement support for parsing UNC paths. We are not able to enumerate UNC shares yet. However until it is properly implemented we will be able to enter a UNC patch in the addressbar or start explorer with a path that points to a UNC share.

svn path=/trunk/; revision=68787
2015-08-21 18:35:07 +00:00
Giannis Adamopoulos
7c1c03943f [SHELL32]
- We are not wine so we can speed things up by trying to read desktop.ini only for system folders.

svn path=/trunk/; revision=68786
2015-08-21 16:03:14 +00:00
David Quintana
a9bb2ea698 [NTOBJSHEX]
* Improve the filenames to better represent their purpose at a glance.

svn path=/trunk/; revision=68785
2015-08-21 15:01:04 +00:00
David Quintana
7620e2badc Oops. That was a debug change. Wasn't meant to make it into the commit.
svn path=/trunk/; revision=68784
2015-08-21 14:31:07 +00:00
David Quintana
89da5820cd [NTOBJSHEX]
* Use lazy enumeration of the nt objects and registry keys, as intended for the IEnumIDList interface.
* Display of the NT Object creation date has been lost in the process, but it was only really used by symlinks.
* Symlink target display doesn't appear to work at the moment, will fix later.

svn path=/trunk/; revision=68783
2015-08-21 14:26:25 +00:00
Pierre Schweitzer
08229bbb07 [NTOSKRNL]
Addendum to r68759: don't forget to initialize semaphore.

svn path=/trunk/; revision=68782
2015-08-21 11:21:14 +00:00
Pierre Schweitzer
51832e3b60 [NTOSKRNL]
Define UNC tag in tag header

svn path=/trunk/; revision=68781
2015-08-21 08:17:48 +00:00
Pierre Schweitzer
4effde2096 [ROSVBOXMGMT]
Add missing L for help

svn path=/trunk/; revision=68780
2015-08-21 08:10:53 +00:00
Pierre Schweitzer
2611bd1302 Erm.
Addendum to r68778: don't reveal my secret plans to world (yet!)

svn path=/trunk/; revision=68779
2015-08-21 08:08:10 +00:00
Pierre Schweitzer
ca9c5c56a5 [ROSVBOXMGMT]
Add the "rosvboxmgmt" tool.
It's purpose is to allow to interact with the VBoxSF driver as we don't have working MPR yet.

In order to have UNC path available, all you need to do so far is rosvboxmgmt start. All the rest isn't mandatory.

svn path=/trunk/; revision=68778
2015-08-21 08:03:13 +00:00
Pierre Schweitzer
b871e6a07c [NTOSKRNL]
Implement the TokenImpersonationLevel case of SeQueryInformationToken().

This fixes VBoxSF driver not being able to expose shared folders in ReactOS

svn path=/trunk/; revision=68777
2015-08-21 08:03:11 +00:00
Hermès Bélusca-Maïto
fa66a17890 [SDK:SCRNSAVE]
- Add support for specifying a parent window handle for the screensaver configuration dialog, adapted from patch by Timo Kreuzer, see CORE-5718.
- Fix failure return values from the helper functions.
- Add TranslateMessage call in the message pump.
- Get the correct left/top coordinates for the screensaver, being multi-screen aware.
- Use Win-compatible window names & styles for the screensaver preview dialog & screensaver window, compatible MS' scrnsave.lib.

svn path=/trunk/; revision=68776
2015-08-20 19:44:13 +00:00
Giannis Adamopoulos
3e071ece57 [SHELL32]
- Move the properties dialog for the recycle bin in its own file. The implementation of the recycle bin is overly complicated and keeping with it a dialog for editing some registry entries makes it worse.

svn path=/trunk/; revision=68775
2015-08-19 18:10:30 +00:00
Eric Kohl
d8ec5bc004 [ADVAPI32]
Add some well-known SDDL SID strings. This patch has aleady been sent upstream.

svn path=/trunk/; revision=68774
2015-08-19 18:04:40 +00:00
Giannis Adamopoulos
10dd24321a [SHELL32]
- Move a couple of headers in the dialogs directory.

svn path=/trunk/; revision=68773
2015-08-19 16:26:16 +00:00
Thomas Faber
e7af06611a [SHELL32][RSHELL]
- Fix some extern "C"

svn path=/trunk/; revision=68772
2015-08-19 15:43:13 +00:00
Giannis Adamopoulos
b2676665f2 [SHDOCVW] -Rename some unused stubs to resolve conflicts with shell32
svn path=/trunk/; revision=68771
2015-08-19 14:04:53 +00:00
Giannis Adamopoulos
c812e0a4a1 Add two files that I missed
svn path=/trunk/; revision=68770
2015-08-19 13:55:15 +00:00
Giannis Adamopoulos
aa12df35cf [SHELLDESKTOP]
- Create a new sublibrary for shell32 that will contain the implementation of CDesktopBrowser and desktop dde support. Link it to both shell32 and rshell. Also add a win8+ hack. 

svn path=/trunk/; revision=68769
2015-08-19 13:51:20 +00:00
Giannis Adamopoulos
0cb0f1e091 [SHELL32]
- Add a CDefView_Constructor that lets us keep the code simple for the shell folders.

svn path=/trunk/; revision=68768
2015-08-19 12:09:21 +00:00
Thomas Faber
4436c96a25 [SHELL32]
- Correctly handle NULL callback in CMenuBand::GetMenuInfo
- Add missing error handling in CMenuFocusManager::UpdateFocus
Fixes crashes in shell32_apitest:menu
CORE-9932 #resolve

svn path=/trunk/; revision=68767
2015-08-19 11:45:21 +00:00
Thomas Faber
ed56601be6 [RSHELL]
- Remove from CD images. Explorer can use shell32 now.
CORE-9892 #resolve

svn path=/trunk/; revision=68766
2015-08-19 11:24:20 +00:00
Thomas Faber
84c9afb43c [RSHELL]
- Addendum to r68764
CORE-9892

svn path=/trunk/; revision=68765
2015-08-19 11:18:13 +00:00
Thomas Faber
0afd339f06 [SHELL32]
- Use and register the shellmenu (former rshell) classes instead of the outdated copies in shell32
CORE-9892

svn path=/trunk/; revision=68764
2015-08-19 11:17:08 +00:00
Thomas Faber
cc3d477818 [RSHELL][SHELL32]
- Move rshell source files to a "shellmenu" static library under shell32
CORE-9892

svn path=/trunk/; revision=68763
2015-08-19 09:05:54 +00:00
Thomas Faber
f85fcfe77b [SHELL32]
- Fail CDefView::CreateViewWindow if a window already exists
- Don't return IOleWindow from CDefView::QueryInterface
Fixes reference leaks during shell32_winetest:shlview
CORE-9867

svn path=/trunk/; revision=68762
2015-08-19 08:28:24 +00:00
Thomas Faber
fcd430d3a1 [SHELL32]
- Take an extra reference on CDefView during the lifetime of the view window, and correctly handle recursive WM_DESTROY messages
CORE-9932

svn path=/trunk/; revision=68761
2015-08-19 08:23:59 +00:00
Pierre Schweitzer
b94bea6426 [NTOSKRNL]
Addendum to r68759

svn path=/trunk/; revision=68760
2015-08-18 20:40:17 +00:00
Pierre Schweitzer
4c1d3954cd [FSRTL]
Rewrite FsRtlRegisterUncProvider() and FsRtlDeregisterUncProvider() so that they can support MUP in case it's required
They also support DFS


svn path=/trunk/; revision=68759
2015-08-18 20:17:28 +00:00
Pierre Schweitzer
05244f7905 [BOOTDATA]
Enable MUP driver on boot


svn path=/trunk/; revision=68758
2015-08-18 20:17:25 +00:00
Pierre Schweitzer
5bc6e68872 [MUP]
Implement the MUP driver for ReactOS. It only supports Multiple UNC Providers so far
Stub support for DFS


svn path=/trunk/; revision=68757
2015-08-18 20:17:22 +00:00
Pierre Schweitzer
2127a98b5d [NTOSKRNL]
Don't enforce IO tag when freeing file object name, it might have been reallocated by a driver for an Ob reparse


svn path=/trunk/; revision=68756
2015-08-18 20:17:19 +00:00
Pierre Schweitzer
72359d7f9d [NDK]
Add an internal header for MUP FSCTL and its input buffer definition


svn path=/trunk/; revision=68755
2015-08-18 20:17:17 +00:00
Hermès Bélusca-Maïto
cf69531ef2 [NTVDM]: Initialize the PSP' memory control block owner name with the file name (without extension, and up to 8 chars) of the started program.
svn path=/trunk/; revision=68754
2015-08-18 12:26:38 +00:00
Thomas Faber
5b9dc886d4 [NTOS:MM]
- Leave guarded region in failure case of MiFindContiguousPages.
CORE-10026 #resolve

svn path=/trunk/; revision=68753
2015-08-18 11:28:30 +00:00
Thomas Faber
3fddbfcdd9 [UNICOWS]
- Get rid of this Win9x-only DLL. Adobe Reader 7 works fine without it (CORE-5053).

svn path=/trunk/; revision=68752
2015-08-18 10:29:18 +00:00
Thomas Faber
b6a27ff10b [WIN32K:NTGDI]
- Allow NULL rectangle in NtGdiSetBoundsRect as shown by the test. Fixes a bunch of annoying first chance exceptions

svn path=/trunk/; revision=68751
2015-08-18 10:25:45 +00:00
Thomas Faber
a46c9450de [GDI32_APITEST]
- Add a simple test for SetBoundsRect

svn path=/trunk/; revision=68750
2015-08-18 10:24:01 +00:00
Thomas Faber
d21c5f1a76 [SHELL32]
- Don't use SHELL32_GetDisplayNameOfGUIDItem on the desktop folder. Fixes file open dialog. Giannis please review ;)

svn path=/trunk/; revision=68749
2015-08-18 10:10:36 +00:00
Christoph von Wittich
1072442ea2 [KERNEL32]
lpBytesReturned must not be NULL when lpOverlapped is NULL as well

svn path=/trunk/; revision=68748
2015-08-18 07:13:02 +00:00
Hermès Bélusca-Maïto
9282e7c842 Fix a comment and add something that was forgotten in the previous commit.
svn path=/trunk/; revision=68747
2015-08-17 20:22:10 +00:00
Hermès Bélusca-Maïto
97ae85451c [NTVDM]
Changes in preparation for CORE-9773
- Split DosLoadExecutable into DosLoadExecutable & DosLoadExecutableInternal, the latter one can be used for small programs embedded in ntvdm.exe (will be used for integrated command.com).
- Factorize common loading code in DosLoadExecutable(Internal); just before starting a program, set the CPU registers to the default values DOS use; see comments in the code for more details (some programs expect those values).
- Set a correct termination type (hiword in the returned ErrorLevel) when terminating programs (the value is different for TSRs and for regular programs).
CORE-9773 CORE-9729 CORE-9711 CORE-8247

svn path=/trunk/; revision=68746
2015-08-17 20:11:51 +00:00
Giannis Adamopoulos
bf1b6fbcc5 [SHELL32]
- CControlPanelFolder: Fix showing the description in control panel. Patch with improvements by me.
CORE-8827

svn path=/trunk/; revision=68745
2015-08-17 17:10:03 +00:00
Giannis Adamopoulos
28e828a038 [SHELL32] - Use SHELL32_GetDisplayNameOfGUIDItem in CDesktopFolder
svn path=/trunk/; revision=68744
2015-08-17 15:34:02 +00:00
Giannis Adamopoulos
46c7ef8191 [SHELL32]
- Remove CDesktopFolderDropTarget and make CDesktopFolder just get the drop target from m_DesktopFSFolder

svn path=/trunk/; revision=68743
2015-08-17 15:20:04 +00:00
Benedikt Freisen
dec6d04161 [MSPAINT] rename source directory
svn path=/trunk/; revision=68742
2015-08-17 15:01:53 +00:00
Benedikt Freisen
998564ee3c [MSPAINT]
May thou rest in peace!
(...or rather live on in MSPAINT_NEW's commit history)
[MSPAINT_NEW]
I hereby pronounce thee MSPAINT!

svn path=/trunk/; revision=68741
2015-08-17 14:47:51 +00:00
Daniel Reimer
f9c520b3f6 [TRANSLATION]
Fix Encoding to UTF8 w/o BOM by Henry Tang Ih
CORE-9003 #resolve #comment Thx for notifying, committed.

svn path=/trunk/; revision=68740
2015-08-17 14:30:57 +00:00
Thomas Faber
5e606558ad [QMGR]
- Do not omit mandatory argument to WriteFile. Fixes crash in qmgr_winetest:job

svn path=/trunk/; revision=68739
2015-08-17 14:21:13 +00:00
Giannis Adamopoulos
db8269be53 [SHELL32]
- Fix a regression in SHELL32_GetFSItemAttributes found by our tests.

svn path=/trunk/; revision=68738
2015-08-17 13:34:38 +00:00
Giannis Adamopoulos
37a0743c4c [SHELL32]
- Remove unused function

svn path=/trunk/; revision=68737
2015-08-17 13:18:18 +00:00
Giannis Adamopoulos
d6680b3bed [SHELL32]
- CDesktopFolder: Create two interal fs folders that wiill eventually take care of all file support for the desktop folder.
- Implement some methods using the internal fs folders.

svn path=/trunk/; revision=68736
2015-08-17 12:55:37 +00:00
Daniel Reimer
3373ee7865 [DEVMGMT]
Add german translation. -1 @ ROS Translation tool missing files ^^

svn path=/trunk/; revision=68735
2015-08-17 12:48:37 +00:00
Daniel Reimer
2d984747fd [TRANSLATION]
Updating Turkish Translations by Erdem Ersoy
CORE-9993 #resolve #comment Committed, thx. ^^

svn path=/trunk/; revision=68734
2015-08-17 12:05:10 +00:00
Benedikt Freisen
6bc0fd7363 [MSPAINT_NEW] implement fullscreen view
svn path=/trunk/; revision=68733
2015-08-17 12:03:39 +00:00
Daniel Reimer
23b737a8f3 [TAPIUI]
Add/Update Chinese (zh-CN) translation by Henry Tang Ih
CORE-9003 #resolve #comment Committed v7 Patch, as the author told me, this resolves this report. Thx once more for translating ROS to Chinese ^^

svn path=/trunk/; revision=68732
2015-08-17 11:54:37 +00:00
Giannis Adamopoulos
1cbae51fbb [SHELL32] -Fix build
svn path=/trunk/; revision=68731
2015-08-17 11:46:22 +00:00
Giannis Adamopoulos
078e6f5d12 [SHELL32]
- Use SHELL32_GetGuidItemAttributes, SHELL32_GetFSItemAttributes, SHELL32_BindToGuidItem and SHELL32_GetDisplayNameOfGUIDItem in CControlPanelFolder, CDrivesFolder and CFSFolder instead of using functions that accept all sorts of pidl types.

svn path=/trunk/; revision=68730
2015-08-17 11:41:15 +00:00
Giannis Adamopoulos
8faea71a4d [SHELL32]
- Split SHELL32_GetItemAttributes to SHELL32_GetGuidItemAttributes and SHELL32_GetFSItemAttributes.
- Add a couple helper functions that will reduce code duplication in folders with reg items: SHELL32_BindToGuidItem, SHELL32_GetDisplayNameOfGUIDItem

svn path=/trunk/; revision=68729
2015-08-17 11:36:56 +00:00
Giannis Adamopoulos
ef89f318da [SHELL32]
- CAdminToolsFolder: return proper attributes when no items are specified. (This is fine for reg folders but doesn't work for fs folders).
- CFontsFolder: fix GetAttributesOf as above. Fix Initialize method to return success. All shell folders should support this method.
- CNetFolder: Return the name of the folder when asked.
- CPrinterFolder: It doesn't have subfolders so it doesn't make sense to implement BindToObject.

svn path=/trunk/; revision=68728
2015-08-17 11:28:20 +00:00
Giannis Adamopoulos
8037625c04 [SHELL32] - Do not try to set the site of the context menu from the CDefView. This should be done elsewhere and should be the context menu callback.
svn path=/trunk/; revision=68727
2015-08-17 11:22:11 +00:00
Thomas Faber
c177d0cccf [WININET]
- Repair the ROS-Diff from r54992. Now we hopefully don't initialize the URL cache multiple times anymore.

svn path=/trunk/; revision=68726
2015-08-17 08:14:24 +00:00
Thomas Faber
9548c182dc [SHELL32]
- Only complain about _OpenDirectory failing if it actually failed
CORE-1171

svn path=/trunk/; revision=68725
2015-08-17 08:03:02 +00:00
Benedikt Freisen
d811e32e7a [MSPAINT_NEW] save/restore certain settings to/from registry
svn path=/trunk/; revision=68724
2015-08-16 19:52:37 +00:00
Eric Kohl
484361acc7 [WLNOTIFY]
Register the notification functions.

svn path=/trunk/; revision=68723
2015-08-16 19:27:11 +00:00
Eric Kohl
c332df16c6 [WLNOTIFY]
Add the winlogon notification dll.
Right now it exports only test functions for the winlogon notifications.

svn path=/trunk/; revision=68722
2015-08-16 19:11:21 +00:00
Hermès Bélusca-Maïto
170f294d1c Fix build (addendum to r68719).
svn path=/trunk/; revision=68721
2015-08-16 19:04:16 +00:00
Hermès Bélusca-Maïto
87f23ca930 [NTVDM]
Restore the correct screen buffer when reattaching the video to the console. WIP

svn path=/trunk/; revision=68720
2015-08-16 19:00:21 +00:00
Hermès Bélusca-Maïto
ebf3ac834c [CSRSRV]: Add a diagnostic DPRINT in order to better understand on which situations some NtClose call fails on a thread handle when closing it, and leads to a failed assertion in CSR.
CORE-9742

svn path=/trunk/; revision=68719
2015-08-16 16:00:08 +00:00
Eric Kohl
f135d46c0d [SFC][SFC_OS]
Add logon notification functions to sfc.dll and sfc_os.dll.

svn path=/trunk/; revision=68718
2015-08-16 15:44:01 +00:00
Eric Kohl
5baa8bc772 [WINLOGON]
Add logon notification package registration.

svn path=/trunk/; revision=68717
2015-08-16 14:39:44 +00:00
Hermès Bélusca-Maïto
c8cb8d539e [CONSRV]
Change console processes priority when the console gains or loses focus. FIXME: Win2k3 backtraces show that we should call NtUserSetInformationProcess(unimplemented in ROS) to set some win32 process foreground flags.
CORE-9911

svn path=/trunk/; revision=68716
2015-08-15 17:05:13 +00:00
Hermès Bélusca-Maïto
fc017a90e2 [CSRSRV]
- Don't use hardcoded structure types in sizeof's where possible.
- Fix the parameters of NtSetInformationProcess calls in CsrSetBackground/ForegroundPriority.
CORE-9911

svn path=/trunk/; revision=68715
2015-08-15 16:34:21 +00:00
Benedikt Freisen
2294936108 [MSPAINT_NEW] add (untested) printing code, fix mouse cursor bug
svn path=/trunk/; revision=68714
2015-08-15 10:13:28 +00:00
James Tabor
205bd162b9 [RosApps|WineFile]
Patch by Jared Smudde - Fix compiling warnings, see ROSAPPS-300.

svn path=/trunk/; revision=68713
2015-08-13 22:01:13 +00:00
James Tabor
86e3ea9ea8 - Amending r68711.
svn path=/trunk/; revision=68712
2015-08-13 21:31:58 +00:00
James Tabor
593fcaac4b [RosApps|WineFile]
Patch by Jared Smudde - Improvements to Wine File, see ROSAPPS-300.

svn path=/trunk/; revision=68711
2015-08-13 21:19:41 +00:00
Hermès Bélusca-Maïto
03d6eaa2cb [NTVDM]
- When we have few R/W IO port handlers, just register them directly instead of using a wrap-up function.
- Remove hardcoded bit flag values.

svn path=/trunk/; revision=68710
2015-08-13 19:34:16 +00:00
Hermès Bélusca-Maïto
a48e2d06aa [NTVDM]
- Add some missing MouseResetCounters calls when enabling/disabling mouse reporting, and an ACKnowledge signal when we set mouse defaults.
- When we have few R/W IO port handlers, just register them directly instead of using a wrap-up function.

svn path=/trunk/; revision=68709
2015-08-13 17:20:04 +00:00
Hermès Bélusca-Maïto
dbfe940f2d [NTVDM]
- When we have few R/W IO port handlers, just register them directly instead of using a wrap-up function.
- Start implementing the PS/2 keyboard command handler.
- Report scancodes only if the keyboard is enabled.
See r68415.
CORE-9920

svn path=/trunk/; revision=68708
2015-08-13 17:11:17 +00:00
Hermès Bélusca-Maïto
3625edddc3 [NTVDM]
- Improve PS/2 keyboard initialization in BIOS POST.
- Forgot two "breaks;" in error code paths.

svn path=/trunk/; revision=68707
2015-08-13 16:51:40 +00:00
Pierre Schweitzer
0303c3abbe [SETUPAPI_WINETESTS]
Partly sync with Wine 1.7.47:
- Import tests for SetupLogError* functions

CORE-9924

svn path=/trunk/; revision=68706
2015-08-13 09:38:46 +00:00
Pierre Schweitzer
1f86353d60 [SETUPAPI]
Partly sync with Wine 1.7.47:
- Implement SetupCloseLog(), SetupOpenLog(), SetupLogErrorA(), SetupLogErrorW()

CORE-9924

svn path=/trunk/; revision=68705
2015-08-13 09:38:33 +00:00
Pierre Schweitzer
740d16b122 [FASTFAT]
- Remove some magic values
- Fix DPRINTs

svn path=/trunk/; revision=68704
2015-08-12 16:47:18 +00:00
Pierre Schweitzer
3fb66e8a73 [NTFS]
Notify when we're done mounting a volume 

svn path=/trunk/; revision=68703
2015-08-12 12:13:28 +00:00
Timo Kreuzer
7052282507 [WIN23K]
Make sure to attach to the specified process before dereferencing ClientInfo, which is a user mode structure.
CORE-l0017 #resolve

svn path=/trunk/; revision=68702
2015-08-12 10:34:05 +00:00
Benedikt Freisen
ec86c24e97 [MSPAINT_NEW] Add a .hhp with all dependencies explicitly listed to facilitate testing of hhpcomp, which does not track them yet
svn path=/trunk/; revision=68701
2015-08-12 09:13:52 +00:00
Pierre Schweitzer
3f35787ba3 [HHPCOMP]
Enable build

svn path=/trunk/; revision=68700
2015-08-11 21:26:29 +00:00
Pierre Schweitzer
0e7a15846d [HHPCOMP]
- Fix warnings

svn path=/trunk/; revision=68699
2015-08-11 21:25:08 +00:00
Pierre Schweitzer
c106a075fe [HHPCOMP]
- Fix warnings

svn path=/trunk/; revision=68698
2015-08-11 21:17:30 +00:00
Thomas Faber
120c2fc6ad [HHPCOMP]
- Fix VC10 build
- Don't cast function pointers
- Fix warnings

svn path=/trunk/; revision=68697
2015-08-11 21:16:24 +00:00
Benedikt Freisen
602935e1cb [HHPCOMP] Apply changes proposed by learn_more which supposedly fix the GCCWin build
svn path=/trunk/; revision=68696
2015-08-11 21:06:37 +00:00
Benedikt Freisen
71fe4f3c6e [HHPCOMP] Disable build again.
svn path=/trunk/; revision=68695
2015-08-11 20:47:06 +00:00
Benedikt Freisen
9195b8bf65 [HHPCOMP] Hopefully satisfy the buildbot THIS time.
svn path=/trunk/; revision=68694
2015-08-11 20:30:32 +00:00
Benedikt Freisen
f2c87c42b2 [HHPCOMP] Re-enable and (hopefully) fix build. Patch by Michael Fritscher (CORE-10013) with some changes by me to make the program work again (on Linux)
svn path=/trunk/; revision=68693
2015-08-11 20:19:58 +00:00
Timo Kreuzer
80443d48dc [WIN32K]
Implement EngQueryLocalTime.
This commit would not have been possible without Colin's SVN superpowers.

svn path=/trunk/; revision=68692
2015-08-11 17:45:56 +00:00
Christoph von Wittich
665d295407 [SB16] fix some traces
svn path=/trunk/; revision=68691
2015-08-11 17:38:41 +00:00
Christoph von Wittich
dcfc039b70 [NTOSKRNL] fix the order of arguments passed to DPRINT
svn path=/trunk/; revision=68690
2015-08-11 17:08:03 +00:00
Christoph von Wittich
4887326473 [WIN32SS][NTOSKRNL] %wZ expects the address of the string
svn path=/trunk/; revision=68689
2015-08-11 16:49:43 +00:00
Daniel Reimer
573ce51c42 [RAPPS]
There will come the day... the day I will find you, inventer of the crappy BOM b***sh*t and you will suffer. Same goes to MS notepad using that crap!

svn path=/trunk/; revision=68688
2015-08-11 15:03:11 +00:00
Daniel Reimer
02cfab7660 [RAPPS]
Fix D/L Link of Resource Hacker

svn path=/trunk/; revision=68687
2015-08-11 14:28:41 +00:00
Benedikt Freisen
ffcda8c4d2 [TOOLS][HHPCOMP] Do not build hhpcomp for now because the libraries it has to use appear to be less portable than I thought
svn path=/trunk/; revision=68686
2015-08-11 14:15:05 +00:00
Benedikt Freisen
65780ec3c1 [TOOLS][HHPCOMP] Initial commit of hhpcomp, our new HTML Help Project (*.hhp) compiler
svn path=/trunk/; revision=68685
2015-08-11 13:37:36 +00:00
Christoph von Wittich
261083ff50 [WIN32SS] %wZ expects the address of the string
svn path=/trunk/; revision=68684
2015-08-11 10:49:54 +00:00
Daniel Reimer
92e464c726 [MAIN]
Mouse wheel new icon by Henry Tang Ih 
CORE-9590 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68683
2015-08-11 10:36:49 +00:00
Daniel Reimer
5907a20c80 [FONTS]
Update DejaVu fonts to v2.35.

svn path=/trunk/; revision=68682
2015-08-11 10:22:58 +00:00
Christoph von Wittich
b01e6b09af [BROWSEUI] addendum to 68672
svn path=/trunk/; revision=68681
2015-08-11 09:17:07 +00:00
Christoph von Wittich
2bcae4a0cb [MSAFD] addendum to 68673
svn path=/trunk/; revision=68680
2015-08-11 09:05:45 +00:00
Thomas Faber
9ff8d69957 [CMAKE]
- Remove hackfix for VLC player, relocating wsock32.dll works fine now. Reverts r61898.
CORE-8384 #resolve

svn path=/trunk/; revision=68679
2015-08-11 09:02:25 +00:00
Thomas Faber
707046970d [NTOS:MM]
- Ignore IMAGE_SCN_TYPE_NOLOAD when loading image sections, as shown by ntdll_apitest:NtMapViewOfSection. This avoids errors when trying to relocate .rossym sections (since they were not loaded but Ldr tried to change their protection)
CORE-8384

svn path=/trunk/; revision=68678
2015-08-11 08:47:14 +00:00
Thomas Faber
c4f456e3bd [NTOS:MM]
- When paging in data for an image section, first flush outstanding cached data since paging reads are noncached. Fixes failure to create section in ntdll_apitest:NtMapViewOfSection/Test_NoLoadSection
- Gracefully handle out-of-pool situation
CORE-8384

svn path=/trunk/; revision=68677
2015-08-11 08:21:36 +00:00
Thomas Faber
195d119706 [NTDLL_APITEST]
- Add tests for mapping and relocating an image with an IMAGE_SCN_TYPE_NOLOAD section
CORE-8384

svn path=/trunk/; revision=68676
2015-08-11 07:21:33 +00:00
Thomas Faber
7bccf4601e [NTDLL_APITEST]
- Properly clean up after tests

svn path=/trunk/; revision=68675
2015-08-11 07:13:51 +00:00
Thomas Faber
7a5715dced [NTDLL_APITEST]
- Look for test.dll in the right place

svn path=/trunk/; revision=68674
2015-08-11 06:45:45 +00:00
Christoph von Wittich
738d18336f [MSAFD]
don't trace an uninitialized UNICODE_STRING

svn path=/trunk/; revision=68673
2015-08-10 17:54:57 +00:00
Daniel Reimer
7ce2ef3ef9 [BROWSEUI]
Address is untranslatable by Adam Stachowicz
CORE-9977 #resolve #comment Committed (with a Unicode fix), thx ^^

svn path=/trunk/; revision=68672
2015-08-10 16:52:40 +00:00
Daniel Reimer
2afe34723c [INETCPL]
Update inetcpl icon license by Jared Smudde
CORE-9801 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68671
2015-08-10 15:35:44 +00:00
Daniel Reimer
6c0c2695d6 [DLL]
Fix blurry 32pixel network places icon by Jared Smudde
CORE-10006 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68670
2015-08-10 15:30:24 +00:00
Daniel Reimer
0c7c5d7d82 [cmd]
Remove unnecessary icon sizes by Jared Smudde
CORE-9985 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68669
2015-08-10 15:22:09 +00:00
Daniel Reimer
54e6c9d0c6 [Applications]
Add better 16pixel icons by Jared Smudde
CORE-10007 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68668
2015-08-10 15:18:39 +00:00
Thomas Faber
0bee2fee52 [SETUPAPI]
- Always initialize file_op::dst_sd so we don't free an uninitialized pointer.
CORE-10004 #resolve

svn path=/trunk/; revision=68667
2015-08-10 14:28:50 +00:00
Daniel Reimer
ac0e6eeb65 [SHELL32] [INF]
Improvements to winhlp32 by Jared Smudde
CORE-10002 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68666
2015-08-10 14:18:40 +00:00
Daniel Reimer
517ba2153e [SHELL32]
New Programs Folder Icon by Jared Smudde
CORE-9948 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68665
2015-08-10 13:25:16 +00:00
Daniel Reimer
294825923b [EXPLORER]
Improve taskbar properties bitmaps by Jared Smudde
CORE-9949 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68664
2015-08-10 13:18:03 +00:00
Daniel Reimer
b40fdf252c [EVENTVWR]
.... sorry, forgot this...

svn path=/trunk/; revision=68663
2015-08-10 13:14:40 +00:00
Daniel Reimer
77813f7e92 [MSCUTILS]
Image improvements by Jared Smudde
CORE-9966 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68662
2015-08-10 13:12:58 +00:00
Christoph von Wittich
00c980942b [ROSTESTS]
move test.dll back to testdata folder

svn path=/trunk/; revision=68661
2015-08-10 11:42:19 +00:00
Thomas Faber
08aa7a17d1 [NTOS:MM]
- Fix broken typing/FIXMEs in ExeFmtpCreateImageSection

svn path=/trunk/; revision=68660
2015-08-10 10:57:24 +00:00
Christoph von Wittich
e0e3c56ecb [SETUPAPI] add support for LZ compressed files. fixes ATI Radeon driver installation by inf CORE-10000
svn path=/trunk/; revision=68659
2015-08-10 10:52:21 +00:00
Daniel Reimer
c1d8c92be3 [SHIMGVW]
File navigation with left and right keys by Carlo Bramini 
CORE-9608 #resolve #comment Committed, thx for help. ^^

svn path=/trunk/; revision=68658
2015-08-10 10:23:55 +00:00
Daniel Reimer
ba09898f4c [RAPPS]
New programs for rapps by Petr Akhlamov 
CORE-9152 #comment Partial sync skipping DFend and QBittorrent AND WinFF because there is no direct link mirror. Additionally I updated the stuff to more recent versions AND fixed the D/L links....

svn path=/trunk/; revision=68657
2015-08-10 10:12:20 +00:00
Daniel Reimer
1ac98047c5 [RAPPS]
Update Java to fix important security holes ^^
Move VBA to games section where it belongs

svn path=/trunk/; revision=68656
2015-08-10 09:10:12 +00:00
Daniel Reimer
b4a8fea769 [RAPPS]
Adding New Apps for rapps and Removing Some Unneedful Spaces in aklepad.txt by Henry Tang Ih
CORE-9953 #comment, Patch committed incl. German translation and some fixes. Still missing: Unlocker and GNU Octave

svn path=/trunk/; revision=68655
2015-08-10 09:02:36 +00:00
Aleksey Bragin
de5e5ba45e [LDR]
- Use newer implementation of RtlActivateActivationContextUnsafeFast(): its time finally has come (see r52615 and r52612). It returns proper return value instead of pushing STATUS_SUCCESS into PRTL_ACTIVATION_CONTEXT_STACK_FRAME type and its "Trying to activate improper activation context" warning pops up all the time (its disabled in trunk to prevent debug log spam).

svn path=/trunk/; revision=68654
2015-08-09 14:54:45 +00:00
Aleksey Bragin
9512b57324 [LDR]
- Add debug prints to aid tracing the activation context stuff problems. Turned off by default.

svn path=/trunk/; revision=68653
2015-08-09 14:20:40 +00:00
Eric Kohl
6fdee3b3af Show a warning page, when a user tries to delete an active partition.
CORE-9996 #resolve

svn path=/trunk/; revision=68652
2015-08-09 13:14:00 +00:00
Christoph von Wittich
7756ab656a [FUSION] store the PDB files in a different directory to avoid name collisions. Patch by Amine
svn path=/trunk/; revision=68651
2015-08-09 13:10:17 +00:00
Daniel Reimer
a400ad445b [FUSION] Use a static library instead of an objects one. Fix MSVC build. Brought to you by Amine!
svn path=/trunk/; revision=68650
2015-08-09 10:24:37 +00:00
Daniel Reimer
c1ae42088e [CMAKE] Include TARGET_OBJECTS expressions in SOURCES target property output. Patch by Amine Khaldi
svn path=/trunk/; revision=68649
2015-08-09 09:50:46 +00:00
Daniel Reimer
27c42db9b0 [RAPPS]
Adding New Apps for rapps and Removing Some Unneedful Spaces in aklepad.txt by Erdem Ersoy
CORE-9953 #comment Added Agat, Audacity, Gens, HexEdit, Shed, UltraISO and VBA-SDL because of the prove in image form that it works. Rest ist still not committed.
+ Removed the UTF BOMs again!
+ Added German Translations
+ Corrected the Coding to UTF-8

svn path=/trunk/; revision=68648
2015-08-09 09:31:12 +00:00
Christoph von Wittich
edd56f01c6 [FUSION] Use different base addresses for the fusion dlls to prevent relocations. Brought to you by Amine! CORE-9992
svn path=/trunk/; revision=68647
2015-08-09 09:27:30 +00:00
Daniel Reimer
35fd7142ca [RAPPS]
Add pack of themes Watercolor 4.3 by Alexander Rechitskiy
CORE-9814 #resolve #comment Added to RAPPS

svn path=/trunk/; revision=68646
2015-08-09 08:27:45 +00:00
Daniel Reimer
541b7f0a38 [shell32]
Change Trash to Recycle Bin by Lee Schroeder
CORE-8391 #resolve #comment Committed the big one with changes to all RC files, because it's the right way to do that. All these strings are originated from the english resource and NEVER were translated up to now, so we keep these strings in sync. Second argument. Trash is not the right word here (YES, a non native dares to say this ^^) We use the Windows way here, unless someone gives me a REALLY good reason not to ^^

svn path=/trunk/; revision=68645
2015-08-09 07:56:47 +00:00
Daniel Reimer
5a27a5a227 [TRANSLATION]
Updating Turkish Translation by Erdem Ersoy
CORE-9873 #resolve #comment Committed 01.08 patch + USETUP and INF file, thx for help.

svn path=/trunk/; revision=68644
2015-08-09 07:44:57 +00:00
Daniel Reimer
4f342910e0 [TRANSLATION]
New File For Turkish Translation Notes by Erdem Ersoy
CORE-9894 #resolve #comment Committed.

svn path=/trunk/; revision=68643
2015-08-09 07:39:29 +00:00
Daniel Reimer
c24dd4b755 [SYSDM]
Translation fix dll/cpl/sysdm/lang/nl by learn_more
CORE-9905 #resolve #comment Committed, thx for help ^^

svn path=/trunk/; revision=68642
2015-08-09 07:34:07 +00:00
Daniel Reimer
0d3e0a5dfe [TRANSLATION]
Polish translation update by Adam Stachowicz
CORE-9964 #resolve #comment Committed, thx for help ^^

svn path=/trunk/; revision=68641
2015-08-09 07:28:19 +00:00
Daniel Reimer
bb4f36c7ce [VMWINST]
Goodbye VMWInst, you served us well in a time loooooong ago ^^

svn path=/trunk/; revision=68640
2015-08-08 17:34:51 +00:00
Daniel Reimer
0dc6b52a76 [user32]
Improve OIC_SAMPLE icon by Jared Smudde 
CORE-9896 #resolve #comment Committed, thx for help ^^

svn path=/trunk/; revision=68639
2015-08-08 17:28:56 +00:00
Hermès Bélusca-Maïto
d72bc455ab [NTVDM]: Addendum to r68609 (explicitely mention that the CS segment is the one of the caller). Add a debug print.
svn path=/trunk/; revision=68638
2015-08-08 17:27:23 +00:00
Daniel Reimer
9a0ca4df5e [shimgvw]
Add icons for different images by Jared Smudde
CORE-9926 #resolve #comment Committed, thx for help ^^

svn path=/trunk/; revision=68637
2015-08-08 16:46:46 +00:00
Thomas Faber
ae64df8016 [NTMARTA]
- In AccpOpenNamedObject, immediately save the last error in case of OpenService failure instead of calling another function in between.
CORE-9990 #resolve

svn path=/trunk/; revision=68636
2015-08-08 16:37:55 +00:00
Daniel Reimer
2adc84ff9d [RAPPS]
Add winspy++ to rapps by Stefano Toncich
CORE-9659 #resolve #comment Committed with swyter's suggestions and a german translation included.

svn path=/trunk/; revision=68635
2015-08-08 15:59:39 +00:00
Daniel Reimer
e2fef1ba36 [TRANSLATION]
Add/Update Chinese (zh-CN) translation by Henry Tang Ih
CORE-9003 #comment All v6 patches committed. Thx for help. ^^

svn path=/trunk/; revision=68634
2015-08-08 15:48:10 +00:00
Daniel Reimer
cf8417d6d9 [BROWSEUI]
Missing italian translations in ReactOS by Carlo Bramini
CORE-9725 #comment browseui patch committed.

svn path=/trunk/; revision=68633
2015-08-08 15:39:43 +00:00
Daniel Reimer
1aba7cb107 [RAPPS]
Add winmerge to rapps
CORE-9954 #resolve #comment Added to rapps.

svn path=/trunk/; revision=68632
2015-08-08 15:32:41 +00:00
Daniel Reimer
adb5a0f8f3 [RAPPS]
Add Scribus 1.4.5 to rapps by Henry Tang Ih 
CORE-9751 #resolve #comment Added to rapps.

svn path=/trunk/; revision=68631
2015-08-08 15:27:41 +00:00
Thomas Faber
6371885a14 [WIN32K:NTGDI]
- Improve invalid parameter handling in IntGdiExtCreatePen. Patch by Benedikt Freisen.
CORE-9740 #resolve

svn path=/trunk/; revision=68630
2015-08-08 14:57:47 +00:00
Christoph von Wittich
52ba781764 [SETUPAPI]
RequiredSize must be in characters in SetupGetInfFileListW

svn path=/trunk/; revision=68629
2015-08-08 13:20:39 +00:00
Christoph von Wittich
bdb599cd5e [SETUPAPI]
set the correct LastError in case of failure

svn path=/trunk/; revision=68628
2015-08-08 12:53:32 +00:00
Thomas Faber
7d80502d38 [WSCRIPT]
- Fix missing include that's required by midl

svn path=/trunk/; revision=68627
2015-08-08 11:36:49 +00:00
Thomas Faber
ff0b908185 [NTDLL:LDR]
- Enable relocation debug prints again. While it's not a critical error anymore when they happen it's still critical for debugging issues.

svn path=/trunk/; revision=68626
2015-08-08 11:32:43 +00:00
Daniel Reimer
7d2ab73251 [RAPPS]
Database update

svn path=/trunk/; revision=68625
2015-08-08 10:23:41 +00:00
Thomas Faber
80f748811c [USERENV]
- Complain if GetUserProfileDirectoryW failed

svn path=/trunk/; revision=68624
2015-08-08 09:50:19 +00:00
Christoph von Wittich
1f7ffb9c1d [GDI32_APITEST]
-include the testdata in all targets
-load it from the correct path even when the application is using a different working directory

svn path=/trunk/; revision=68623
2015-08-08 08:31:49 +00:00
James Tabor
3b0dfe2c25 [Win32k]
- Fix typo, see CORE-9989.
- Add caption text is truncated flag support.

svn path=/trunk/; revision=68622
2015-08-08 06:48:53 +00:00
James Tabor
085f7653ed [Win32k]
- Move menu related functions. Support more system commands. Add a thread based menu structure.

svn path=/trunk/; revision=68621
2015-08-08 00:25:04 +00:00
Aleksandar Andrejevic
d1c5a86965 [FASTFAT]
VfatWrite (but not VfatRead) is supposed to return STATUS_INVALID_USER_BUFFER
if an error occurred while locking the buffer.
[KERNEL32]
Reading 0 bytes using ReadFile doesn't always succeed on Windows.


svn path=/trunk/; revision=68620
2015-08-07 23:48:54 +00:00
Aleksandar Andrejevic
b6956aa369 [NTOS:CC]
In CcCopyData, Buffer can be NULL during read/write operations.
[FASTFAT]
Use SEH to catch exceptions thrown by MmProbeAndLockPages.
Lock the user buffer before changing the file allocation size.


svn path=/trunk/; revision=68619
2015-08-07 19:17:40 +00:00
Christoph von Wittich
96c2ec9407 [GDI32_APITEST]
use correct testdata path

svn path=/trunk/; revision=68618
2015-08-07 17:40:55 +00:00
Thomas Faber
176bad4690 [USER32]
- Make a debug print less useless

svn path=/trunk/; revision=68617
2015-08-07 17:30:12 +00:00
Christoph von Wittich
61359d4e52 [BOOTDATA]
rename data folder to testdata

svn path=/trunk/; revision=68616
2015-08-07 17:22:00 +00:00
Thomas Faber
88ee639b06 [WINLOGON]
- Load sfc_os.dll because applications have a tendency to create remote threads in winlogon with sfc_os function pointers, assuming that it is loaded. See https://bitsum.com/aboutwfp.asp
CORE-9598 #resolve

svn path=/trunk/; revision=68615
2015-08-07 16:28:49 +00:00
Hermès Bélusca-Maïto
86366aa0e7 Adjust file header according to the previous commit.
svn path=/trunk/; revision=68614
2015-08-07 16:12:06 +00:00
Hermès Bélusca-Maïto
f6fbd83783 [NTVDM]
PS2:
- By default all the PS/2 ports are disabled. They become enabled by the BIOS at the POST step.
- Similarly it is the BIOS POST that sets up the PS/2 controller configuration byte.
- Synchronize the value of bit 2 "System flag" and bit 4 "Keyboard enable flag" in the status register, according to what is set in the controller configuration register. What is the "keyboard enable flag" ? See http://www.os2museum.com/wp/the-dos-4-0-shell-mouse-mystery/ for more details...

HW MOUSE:
- Resetting the mouse sends also an ACKnowledge byte too...

BIOS32:
- Fix the reported number of bytes in the BIOS configuration table.
- Enable the PS/2 ports in the POST.
- Implement the "Pointing Device BIOS Interface" INT 15h, AH=C2h, AL=00h...09h based on VBox OSE & SeaBIOS; we should make our PS/2 mouse driver use it.

The real call to INT 15h, AH=C2h function is still disabled because our mouse driver doesn't react well with it, when we run some applications like MS Diagnostics.

PS2 MOUSE DRV:
- Update copyright notice;
- Remove 2 useless functions;
- I've put in comments in the code the places where calls to the BIOS ps/2 mouse interface are needed.

svn path=/trunk/; revision=68613
2015-08-07 16:10:18 +00:00
Thomas Faber
33d53d44da [NTOS:MM]
- Arch, don't remove all the page protections
CORE-9808

svn path=/trunk/; revision=68612
2015-08-07 16:09:02 +00:00
Thomas Faber
aa52dc7498 [NTOS:MM]
- Allow (and then ignore) PAGE_NOCACHE in the protection flags for MmMapViewOfSection
CORE-9808

svn path=/trunk/; revision=68611
2015-08-07 15:52:04 +00:00
Hermès Bélusca-Maïto
640136731e [NTVDM]: Fix few file headers.
svn path=/trunk/; revision=68610
2015-08-07 15:50:09 +00:00
Hermès Bélusca-Maïto
2abf03735c [NTVDM]: DOS: When we create a new PSP, or terminate a TSR, we *must* use the code segment value of the CALLER!! and not the current one (DOS code segment). Should fix a lot of stuff...
svn path=/trunk/; revision=68609
2015-08-07 15:14:19 +00:00
James Tabor
05ef43979f [NtGdi]
- Add more function for NtUser.

svn path=/trunk/; revision=68608
2015-08-07 05:56:01 +00:00
Aleksandar Andrejevic
08d0aae07e [FASTFAT]
Irp->UserBuffer being NULL doesn't indicate any error. It could be that the
caller really wants the result stored at address NULL (which can be valid,
and is valid by default for programs like NTVDM).


svn path=/trunk/; revision=68607
2015-08-07 03:30:05 +00:00
Hermès Bélusca-Maïto
ab22534129 [NTVDM]
- Copy-paste error fix in the initialization of the collating table.
- Fix DosCombineFreeBlocks so that it doesn't say "DOS memory arena corrupted" because while combining blocks, the current block became the last one and we tried to merge it with a next block which, by definition, cannot exist (see comment in the code).
- Remove a spurious call to DosCombineFreeBlocks in DosResizeMemory which was forgotten in r68596.
- Check the validity of the encountered MCBs during the loop for linking or unlinking the UMB chain to the main arena chain.
- Fix the size of the created UMB blocks.

svn path=/trunk/; revision=68606
2015-08-06 23:00:17 +00:00
James Tabor
7da324031a [User32]
- Fix a old code port that was missed from the last menu rewrite.

svn path=/trunk/; revision=68605
2015-08-06 13:17:27 +00:00
Hermès Bélusca-Maïto
8ae14960c1 [NTVDM]:
- Use a static buffer for read or writes of "few" bytes (and allocate one for larger operations).
- Writes of zero length, in DOS, truncates or extends the file to the current position of the file pointer. This fixes some "corruption" in some files (so far, only .INI files) in Windows 3.11 installation.

svn path=/trunk/; revision=68604
2015-08-06 01:32:38 +00:00
James Tabor
6995f22fa9 [Win32SS]
- Implement OEM bitmaps sizes for server information. If more is need, it will be added. This will be plugged in later.

svn path=/trunk/; revision=68603
2015-08-06 00:56:01 +00:00
Aleksandar Andrejevic
702a0556a1 [NTVDM]
Make our VGA DAC behave like the cirrus one: palette changes do not apply
until all 3 color components have been set.


svn path=/trunk/; revision=68602
2015-08-05 20:46:42 +00:00
Hermès Bélusca-Maïto
97b7898dfe [NTVDM]: EMS functions.
- Implement function 4Dh "Get All Handles Number of Pages", 54h "Get Handle Directory / Search for Named Handle / Get Total Number of Handles"
- Fix the return error of few functions.
- Start handling the "system handle" (special handle 0; see the specs for more details); WIP.

svn path=/trunk/; revision=68601
2015-08-05 19:06:58 +00:00
Hermès Bélusca-Maïto
f4853ceb55 [NTVDM]
- Increase the maximum number of EMS handles to the maximum permitted by the specification (ie. 255 handles)
- Zero out EMS handles names.
- EMS status are always returned in the AH register!
- Implement functions 4Bh "Get Number of Opened Handles" and 4Ch "Get Handle Number of Pages"
- Remove an hardcoded value.
- Cosmetic change: rename EMS_STATUS_OK to EMS_STATUS_SUCCESS to comply with the name convention used also in XMS, etc...

svn path=/trunk/; revision=68600
2015-08-05 15:12:46 +00:00
Aleksandar Andrejevic
7f132c17b0 [NTVDM]
Implement EMS function AH = 58h "Get Mappable Physical Physical Address Array".


svn path=/trunk/; revision=68599
2015-08-05 03:57:28 +00:00
Hermès Bélusca-Maïto
c549f52a2b [NTVDM]
- Add some level of "Advanced debugging" (see ntvdm.h) which one can adjust to enable/disable debugging features inside NTVDM (this can be useful as long as NTVDM is under heavy bugfixing. When it will be more perfect, this stuff will be removed).
- Add the possibility to load option ROMs at a given segment. Currently their list should be specified from inside ntvdm.c (in the BiosInitialize call), but I plan to make it available from a registry option (or via command-line for NTVDM-standalone mode).
- Start to separate the initialization of "static" BIOS data (stuff that lives in ROM space) and initialization of "dynamic" BIOS data (eg. initializing the interrupt vector table, the BIOS data area at segment 40h, ...) so that we may be able to reuse part of our code to be able to more-or-less run external (16-bit) BIOSes, or the Windows NTVDM BIOS that uses BOPs to run some of its stuff in ntvdm in 32-bit (as we do for our 32-bit BIOS, except that *all* of our bios is 32-bit, not just some parts). Also, some file reorganization will be in order there soon...

- Add video BIOS version information in memory so that tools such as Microsoft Diagnostics can correctly recognize our video BIOS (btw, we try to emulate the functionality of Cirrus' CL-GD5434).
- Correctly put video BIOS ROM header (+ checksum) in memory so that it is recognized as such by diagnostics tools.
- During BIOS POST, scan for ROMs starting segment 0xC000 (where video ROMs reside).
- Store statically the BIOS configuration table.

- Fix INT 16h, AH=12h "Get extended shift states" so that it correctly returns the state of right Ctrl and Alt keys.
- Fix bit-setting state; report that our keyboard is 101/102 enhanced keyboard.
- Correctly set the error return values (AH=86h and CF set) when a function of INT 15h is unsupported.
- Implement INT 15h, AH=C9h "Get CPU Type and Mask Revision"; INT 1Ah, AH=02h "Get Real-Time Clock Time" and Ah=04h "Get Real-Time Clock Date" by reading the CMOS.
- Implement CMOS century register support.

svn path=/trunk/; revision=68598
2015-08-04 20:17:05 +00:00
Hermès Bélusca-Maïto
4689564d5b Remove a useless check.
svn path=/trunk/; revision=68597
2015-08-04 19:47:50 +00:00
Hermès Bélusca-Maïto
c6e44cc971 [NTVDM]: By default, disable run-time DOS memory arena integrity checks (which was introduced along with UMB stuff in r68586).
svn path=/trunk/; revision=68596
2015-08-04 19:46:52 +00:00
Pierre Schweitzer
927b1841a1 [CDFS]
Remove broken check. Broken cases are already handled by upper if case.
This fixes the regression that leaded some valid ISOs not to be read anymore by ReactOS

CORE-9254

svn path=/trunk/; revision=68595
2015-08-02 12:29:59 +00:00
Thomas Faber
6f37e5b2e3 [NTOS:SE]
- Allow any valid ACE revision in SepPropagateAcl
CORE-9955 #resolve

svn path=/trunk/; revision=68594
2015-08-02 12:17:10 +00:00
Thomas Faber
41ea67d64d [NTOS:MM]
- Don't accept 64 bit PE files on x86 (will cause use of uninitialized variable ImageBase). CORE-9955
- Remove a pointless check in MmMapViewOfSection

svn path=/trunk/; revision=68593
2015-08-02 09:15:39 +00:00
Aleksandar Andrejevic
6828502269 [NTVDM]
Implement XMS function 0Fh (Reallocate Extended Memory Block).


svn path=/trunk/; revision=68592
2015-08-01 21:48:06 +00:00
Hermès Bélusca-Maïto
96c972db0b [NTVDM]: Fix the return code of 2 functions.
svn path=/trunk/; revision=68591
2015-08-01 21:40:58 +00:00
Eric Kohl
785ea69bd4 [PARPORT]
Remove DPRINTs from PdoWrite.
CORE-9942 #resolve

svn path=/trunk/; revision=68590
2015-08-01 19:41:24 +00:00
Hermès Bélusca-Maïto
768e35e84d [NTVDM]: Use the while() construct for looping into doubly-linked lists where we can remove items from it in the middle of the loop code.
svn path=/trunk/; revision=68589
2015-08-01 18:56:44 +00:00
Eric Kohl
9d780c6b0b [PARPORT]
- Add support for IRP_MJ_READ.
- IRP_MJ_READ and IRP_MJ_WRITE return STATUS_NOT_SUPPORTED for FDO devices.

svn path=/trunk/; revision=68588
2015-08-01 18:02:45 +00:00
Hermès Bélusca-Maïto
5c15cde76e [MSPAINT_NEW]
Fix build on MSVC by rewriting the code in *STANDARD* C++ !! (and not into some strange idiom called "GCC-C++"). I suggest also to write a proper class for dynamically-allocated (resource) strings instead of either having the static arrays of hardcoded sizes, or being tempted to use non-standard constructs as the one I just saw.
(and btw, instead of defining a new "SIZEOF()" macro, there is one which already exists in the PSDK called "ARRAYSIZE()" which just does the correct job).

svn path=/trunk/; revision=68587
2015-08-01 17:30:17 +00:00
Hermès Bélusca-Maïto
2d44138c21 [NTVDM]
EMS:
- Introduce (and use) helpers for checking validity of EMS handles.
- Do not hardcode the EMS page frame segment, but instead allow it to be changed (for now, it is still set to a default value; in the future, via some configuration file or via the registry). This is done by acquiring a UMB block (see after).

XMS:
- Implement functions 0x01 "Request HMA" and 0x02 "Release HMA".
- Fix the return value of functions 0x04 "Global disable A20" and 0x08 "Query free Extended Memory"; simplify code of function 0x0B "Move EMB".
- Halfplement function 0x0F "Reallocate Extended Memory Block" in the simple case of size reduction (size expansion is left to the programmer as an exercise :PP )
- Rewrite the UMB provider support (functions 0x10, 0x11, 0x12) by calling the Upper Memory Area manager helpers (see after) (this is closer to reality: UMBs are either provided by XMS driver itself, or by an EMS driver which hooks into the XMS driver chain -- as it is done with MS' himem+EMM386; sometimes all that stuff is contained inside one driver only --) instead of calling back into DOS. This is the DOS which calls XMS for getting the UMB blocks and initializing them! (and not the other way around as it was done in r68001!).

NTVDM:
- Introduce an "Upper Memory Area manager" which maintains a list of areas of upper memory (>= A000:0000 and <= FFFF:000F) that can be used as RAM blocks. It is intended to work closely with the NTVDM memory manager and be used by XMS for getting possible free UMBs, and by VDDs for implementing the VDDInclude/ExcludeMem APIs (which adds/remove blocks in/from the UMB pool; those are unaccessible to DOS if those APIs are called after NTVDM have been started, but are accessible by XMS).

DOS:
- Add a helper function for detecting early DOS arena corruptions (for debugging purposes only).
- Make the DOS memory manager really UMB-compatible. This means:
  * not hardcoding the start of the UMB chain;
  * getting all the available UMB blocks from XMS and initializing them, marking the reserved blocks as read-only (with a correct header; reserved blocks are eg. VGA memory area, ROM blocks...).

There is room for improvements obviously (see the FIXMEs in the code). Used documentation is mentioned in comments in the code.

This commit should fix quite some apps, as well as it fixes corruptions of loaded ROMs in upper memory: that's how I came into working on fixing the UMB support. In other words, during those two last weeks, I was like in: http://i.imgur.com/zoWpqEB.gifv

CORE-9969 #resolve

svn path=/trunk/; revision=68586
2015-08-01 17:07:07 +00:00
Hermès Bélusca-Maïto
4d6da0ec7a [NTVDM]
- Remove some hardcoded values.
- Reshuffle again DOS initialization to better reflect how it is done in the real world (see "Advanced MS-DOS Programming" by Ray Duncan, Chapter 2 "MS-DOS in Operation"): split DOS data stuff into DOS BIOS data, and DOS kernel data areas.

In preparation for an upcoming commit.

svn path=/trunk/; revision=68585
2015-08-01 12:41:22 +00:00
Benedikt Freisen
88adae5ab6 [MSPAINT_NEW]
- use optimal buffer size to load null terminated strings using LoadString
- add printing-related menu entries and dialogs (no printing functionality yet)

svn path=/trunk/; revision=68584
2015-07-31 17:33:21 +00:00
James Tabor
2ce4504816 [NtGdi]
- Fix locking.

svn path=/trunk/; revision=68583
2015-07-31 06:55:22 +00:00
James Tabor
6fe69964e1 [Win32SS]
- Start ordering functions into separate files.

svn path=/trunk/; revision=68582
2015-07-30 07:49:09 +00:00
Aleksandar Andrejevic
bfb9c92b07 [NTVDM]
- Combine free blocks after resizing.
- Fix the LastParagraph value in the PSP.


svn path=/trunk/; revision=68581
2015-07-29 02:03:48 +00:00
David Quintana
0dfcc314e5 [EXPLORER]
* Rework the WIN7_COMPAT_MODE into actually just disabling the incompatible functions, and introduce WIN7_DEBUG_MODE which does the rest of the "hacks" I used to ease development.

svn path=/trunk/; revision=68580
2015-07-29 01:29:29 +00:00
Eric Kohl
184bf48b97 [PARPORT]
Reduce the minimum I/O-Range size for parallel ports to 4. This fixes port detection on VMware.
Found by Colin Finck.

svn path=/trunk/; revision=68579
2015-07-26 19:30:21 +00:00
Thomas Faber
e6d1e20049 [ROSAUTOTEST]
- When directly submitting the results to the web service, make sure to URL-encode the test log, or & signs will terminate the log and make Testman see the test as crashed (and have all other kinds of possible consequences)

svn path=/trunk/; revision=68578
2015-07-26 10:02:03 +00:00
Thomas Faber
0436f08597 [WS2_32_APITEST]
- Apparently doesntexist.reactos.org... exists

svn path=/trunk/; revision=68577
2015-07-26 09:26:29 +00:00
Thomas Faber
5ae53d1709 [USER32_WINETEST]
- Skip test_paintingloop instead of test_paint_messages? Grml
ROSTESTS-18

svn path=/trunk/; revision=68576
2015-07-26 09:11:08 +00:00
Thomas Faber
1a5b34df4a [USER32_WINETEST]
- Skip user32:msg_paint test_paint_messages if running on Windows in non-interactive mode. This should allow WHS-Testbot to get a bit further
ROSTESTS-185
ONLINE-441 ROSTESTS-184

svn path=/trunk/; revision=68575
2015-07-26 08:41:13 +00:00
Thomas Faber
10d23d4e83 [KMTESTS:RTL]
- Fix build
CORE-9947

svn path=/trunk/; revision=68574
2015-07-26 08:05:07 +00:00
Thomas Faber
92fefd09ba [PSDK]
- Add support for intsafe signed Add functions
- Guard signed math in ENABLE_INTSAFE_SIGNED_FUNCTIONS
CORE-9947 #resolve

svn path=/trunk/; revision=68573
2015-07-26 08:03:02 +00:00
Thomas Faber
b6c1dfa714 [PSDK]
- intsafe: use the correct type to check overflow in DEFINE_SAFE_ADD
CORE-9946 #resolve

svn path=/trunk/; revision=68572
2015-07-26 07:48:24 +00:00
Eric Kohl
d03a382228 [NTOSKRNL]
NtQuerySystemInformation:
- Windows Vista and later: Check the information class before probing the buffer.
- Pre-Vista Windows: Check the information class after probing the buffer.
- Pre-Vista Windows: Fixed the aligment check for invalid information classes.
- Pre-Vista Windows: The SystemFlagsInformation and SystemKernelDebuggerInformation classes return no required length in case of an error.
This fixes all ntdll_apitest:NtSystemInformation fails.


svn path=/trunk/; revision=68571
2015-07-25 11:53:16 +00:00
Eric Kohl
4a1740bc9e [NTOSKRNL]
Revert r68346.
CORE-9933 #resolve

svn path=/trunk/; revision=68570
2015-07-25 10:21:18 +00:00
Eric Kohl
403459d8f4 [DIKPART]
Implement the RESCAN command.

svn path=/trunk/; revision=68569
2015-07-24 20:02:56 +00:00
James Tabor
937fab0c67 [User32]
- Fix check menu item and preserve the calling ID. See CORE-9884.

svn path=/trunk/; revision=68568
2015-07-24 10:16:53 +00:00
Benedikt Freisen
e97072ac60 [MSPAINT_NEW] move hDrawingDC and mirror/rotate stuff to ImageModel
svn path=/trunk/; revision=68566
2015-07-23 13:52:02 +00:00
Benedikt Freisen
e49e629215 [MSPAINT_NEW]
- move bitmap and DC initialization to ImageModel
- remove unused global variables
- remove copy-pasta bug from SelectionModel::DrawSelection

svn path=/trunk/; revision=68565
2015-07-23 13:11:54 +00:00
Amine Khaldi
9a5944f03d [README.WINE] Mark some modules as synced with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68564
2015-07-23 13:08:39 +00:00
Benedikt Freisen
6fd38c7880 [MSPAINT_NEW] initialize ImageModel member variables
svn path=/trunk/; revision=68563
2015-07-23 07:48:32 +00:00
Eric Kohl
4317118d34 [MSGINA]
Show shutdown dialog at the logon screen if the user wants to shutdown. Patch by Jared Smudde.
CORE-9919 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=68562
2015-07-22 20:28:51 +00:00
Amine Khaldi
33f303a420 [DBGHELP] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68561
2015-07-22 19:50:35 +00:00
Amine Khaldi
afdc6b377b [WININET_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68560
2015-07-22 19:43:32 +00:00
Amine Khaldi
fa6c5cde14 [WININET] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68559
2015-07-22 19:43:18 +00:00
Amine Khaldi
9e1c2a00b9 [WINHTTP_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68558
2015-07-22 19:39:37 +00:00
Amine Khaldi
4f5f0ecab5 [WINHTTP] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68557
2015-07-22 19:39:23 +00:00
Amine Khaldi
d173b48397 [COMDLG32_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68556
2015-07-22 19:35:36 +00:00
Amine Khaldi
8d686fb686 [COMDLG32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68555
2015-07-22 19:35:34 +00:00
Amine Khaldi
44aca5e627 [COMCTL32_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68554
2015-07-22 19:30:52 +00:00
Amine Khaldi
3b13364f05 [COMCTL32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68553
2015-07-22 19:30:27 +00:00
David Quintana
300237adee [CONFIGURE.CMD]
Add a case for VSSolution generation with VS14. It DOES NOT WORK with the cmake version we use currently, but it's better to have the error rather than generating ninja files without warning.

svn path=/trunk/; revision=68551
2015-07-22 13:58:05 +00:00
Amine Khaldi
c033464790 [XMLLITE_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68548
2015-07-22 00:49:37 +00:00
Amine Khaldi
f740d443f7 [XMLLITE] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68547
2015-07-22 00:49:19 +00:00
Amine Khaldi
88ef075b78 [WSHOM_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68546
2015-07-22 00:47:52 +00:00
Amine Khaldi
ac8ca6838d [WSHOM.OCX] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68545
2015-07-22 00:47:35 +00:00
Amine Khaldi
40ac828ca5 [WINDOWSCODECS_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68544
2015-07-22 00:45:50 +00:00
Amine Khaldi
9fdfcff1b4 [WINDOWSCODECS] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68543
2015-07-22 00:45:26 +00:00
Amine Khaldi
b8cba24681 [WBEMPROX_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68542
2015-07-22 00:43:56 +00:00
Amine Khaldi
50574c92e8 [WBEMPROX] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68541
2015-07-22 00:43:39 +00:00
Amine Khaldi
f033047d9a [WBEMDISP] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68540
2015-07-22 00:41:30 +00:00
Amine Khaldi
cd5337a343 [VERSION_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68539
2015-07-22 00:40:49 +00:00
Amine Khaldi
71ab52b724 [VERSION] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68538
2015-07-22 00:40:38 +00:00
Amine Khaldi
9aa1d41ab8 [VBSCRIPT_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68537
2015-07-22 00:40:02 +00:00
Amine Khaldi
b9357adadb [VBSCRIPT] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68536
2015-07-22 00:39:49 +00:00
Amine Khaldi
0c3a554a96 [USP10_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68535
2015-07-22 00:38:30 +00:00
Amine Khaldi
558f064f89 [URLMON_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68534
2015-07-22 00:37:31 +00:00
Amine Khaldi
f8adfa6715 [URLMON] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68533
2015-07-22 00:37:05 +00:00
Amine Khaldi
aced48d4b9 [D3DX9_24] => [D3DX9_43] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68532
2015-07-22 00:34:54 +00:00
Amine Khaldi
2a02b4e23a [D3DCOMPILER_43] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68531
2015-07-22 00:32:43 +00:00
Amine Khaldi
763adf51fe [D3D8][D3D9][DDRAW][WINED3D] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68530
2015-07-21 23:40:47 +00:00
Amine Khaldi
2b0ef47d12 [D3DRM_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68529
2015-07-21 23:33:35 +00:00
Amine Khaldi
bfcbe3d973 [D3DRM] Sync with Wine Staging 1.7.47. CORE-9924
[PSDK] Update d3drm.h.

svn path=/trunk/; revision=68528
2015-07-21 23:33:10 +00:00
Amine Khaldi
1a0aa3e9fd [QUARTZ_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68527
2015-07-21 23:30:04 +00:00
Amine Khaldi
46dfae3faa [QUARTZ] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68526
2015-07-21 23:29:47 +00:00
Amine Khaldi
b4e4e5004d [MSDMO] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68525
2015-07-21 23:28:13 +00:00
Amine Khaldi
f4d73cfa6b [DXGI] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68524
2015-07-21 23:27:21 +00:00
Amine Khaldi
3c29e34f0a [DXDIAGN_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68523
2015-07-21 23:25:58 +00:00
Amine Khaldi
a035ca3f75 [DXDIAGN] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68522
2015-07-21 23:25:41 +00:00
Amine Khaldi
bb3a434883 [DMUSIC] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68521
2015-07-21 23:24:15 +00:00
Amine Khaldi
cc62311c13 [DINPUT_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68520
2015-07-21 23:23:09 +00:00
Amine Khaldi
016d59d5d7 [DINPUT] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68519
2015-07-21 23:22:55 +00:00
Amine Khaldi
39f15d94d9 [DEVENUM] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68518
2015-07-21 23:21:01 +00:00
Amine Khaldi
7b16137177 [D3DXOF] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68517
2015-07-21 23:19:30 +00:00
Amine Khaldi
00eb27264a [AMSTREAM_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68516
2015-07-21 23:17:52 +00:00
Amine Khaldi
fec08edff6 [AMSTREAM] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68515
2015-07-21 23:17:39 +00:00
Amine Khaldi
1ccf92b83b [INETCPL] Let the default homepage be our website.
svn path=/trunk/; revision=68514
2015-07-21 23:16:24 +00:00
Amine Khaldi
746516f162 [INETCPL] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68513
2015-07-21 23:07:30 +00:00
Amine Khaldi
d39036a255 [DXSDK] Add missing D3DXDisassembleEffect declaration.
svn path=/trunk/; revision=68512
2015-07-21 23:06:36 +00:00
Aleksandar Andrejevic
524f53d073 Forgot to commit this file.
svn path=/trunk/; revision=68509
2015-07-21 00:49:11 +00:00
Aleksandar Andrejevic
6c06ac0ea8 [NTVDM]
Start implementing VESA BIOS Extensions (VBE) for our emulated
Cirrus Logic CL-GD5434.


svn path=/trunk/; revision=68508
2015-07-21 00:46:12 +00:00
Amine Khaldi
0e5cec0429 [WTSAPI32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68507
2015-07-20 23:03:32 +00:00
Amine Khaldi
bc0088d758 [WINSCARD] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68506
2015-07-20 23:02:36 +00:00
Amine Khaldi
8bd6a81c1c [WINEMP3.ACM] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68505
2015-07-20 23:01:25 +00:00
Amine Khaldi
6eb801b9cb [TWAIN_32_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68504
2015-07-20 23:00:00 +00:00
Amine Khaldi
d9bd126c73 [USP10] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68503
2015-07-20 22:59:38 +00:00
Amine Khaldi
b652ba2ef1 [SHLWAPI_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68502
2015-07-20 22:58:24 +00:00
Amine Khaldi
3bed48c060 [SHLWAPI] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68501
2015-07-20 22:57:09 +00:00
Amine Khaldi
1f9af4cf9b [SHDOCVW] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68500
2015-07-20 22:56:16 +00:00
Amine Khaldi
69c06cca57 [SCRRUN_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68499
2015-07-20 22:55:40 +00:00
Amine Khaldi
b672c2d10d [SCRRUN] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68498
2015-07-20 22:55:19 +00:00
Amine Khaldi
786aa41d34 [RSAENH] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68497
2015-07-20 22:54:41 +00:00
Amine Khaldi
b6bf232f18 [RICHED20_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68496
2015-07-20 22:53:56 +00:00
Amine Khaldi
e917285fba [RICHED20] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68495
2015-07-20 22:53:23 +00:00
Amine Khaldi
2d643ebc15 [RASAPI32_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68494
2015-07-20 22:52:14 +00:00
Amine Khaldi
b70a79fc29 [RASAPI32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68493
2015-07-20 22:50:34 +00:00
Amine Khaldi
22cec4a8b4 [QMGRPRXY] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68492
2015-07-20 22:49:30 +00:00
Amine Khaldi
14b7a66b66 [QMGR_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68491
2015-07-20 22:48:46 +00:00
Amine Khaldi
c22de4d293 [QMGR] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68490
2015-07-20 22:48:28 +00:00
Amine Khaldi
ba989e1c40 [OLEDLG_WINETEST] Import from Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68489
2015-07-20 22:46:22 +00:00
Amine Khaldi
f52f16e748 [OLEDLG] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68488
2015-07-20 22:45:19 +00:00
Amine Khaldi
f2c0f1c18d [OLEAUT32_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68487
2015-07-20 22:44:40 +00:00
Amine Khaldi
6d155369d1 [OLEAUT32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68486
2015-07-20 22:44:15 +00:00
Thomas Faber
2318d9807c [C++]
- Make <cmath> functions available in top-level namespace. Fixes stlport build with VS2015.
- Remove unused __cmath_power and __pow_helper

svn path=/trunk/; revision=68485
2015-07-20 22:35:06 +00:00
Amine Khaldi
fc031fc414 [OLEACC_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68484
2015-07-20 21:52:30 +00:00
Amine Khaldi
b17a4d83bd [OLEACC] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68483
2015-07-20 21:52:13 +00:00
Amine Khaldi
5672b06b75 [PSDK] Add GetFileVersionInfoSizeEx{A,W} definitions.
svn path=/trunk/; revision=68482
2015-07-20 21:50:59 +00:00
Amine Khaldi
042358329a [PSDK] Update oleacc.idl CORE-9924
svn path=/trunk/; revision=68481
2015-07-20 21:46:05 +00:00
Amine Khaldi
7751de28b6 [PSDK] Update wincodec.idl CORE-9924
svn path=/trunk/; revision=68480
2015-07-20 21:43:12 +00:00
Amine Khaldi
17c642e23d [PSDK] Import bits2_{0,5}.idl from Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68479
2015-07-20 21:40:05 +00:00
Amine Khaldi
3a55b53c93 [PSDK] Update urlmon.idl. CORE-9924
svn path=/trunk/; revision=68478
2015-07-20 21:34:01 +00:00
Amine Khaldi
00d5e0a722 [PSDK] Update tom.idl. CORE-9924
svn path=/trunk/; revision=68477
2015-07-20 21:25:42 +00:00
James Tabor
c70bbfb729 [Win32k]
- Add ellipsis to the caption text if the window size is reduced. See CORE-9474, it can use more tweaks.
- Also after all this, DefWndNCPaint can soon be moved into Win32k, draw.c in already in. This could help with caption redrawing while moving the window.

svn path=/trunk/; revision=68476
2015-07-20 19:58:11 +00:00
Eric Kohl
75b8f2bb9f [DISKPART]
Speed up the interpreter a bit. Patch by Lee Schroeder.
CORE-9925 #resolve #comment Thank's a lot!

svn path=/trunk/; revision=68475
2015-07-20 19:47:08 +00:00
James Tabor
4cb15718ab [Win32k]
- Improve painting messages, separated functions and dual functions for isolating drawing issues. Next thing to do is fix Set Window Position; Still no SWP_FRAMECHANGED support.
- See CORE-7447 for test results.

svn path=/trunk/; revision=68474
2015-07-20 19:34:35 +00:00
Eric Kohl
062fc062d2 [DISKPART]
- Use the partition list code from usetup. Scan all harddisks at startup and keep the list alive as long as diskpart is running.
- Use the partiton list in the 'select disk' and 'list disk' commands.
- Implement the 'list disk' and 'list partition' commmands.
- Add required strings.

svn path=/trunk/; revision=68473
2015-07-20 19:17:06 +00:00
Amine Khaldi
afe5b2c7bf [OLE32_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68470
2015-07-19 23:12:15 +00:00
Amine Khaldi
bc504c5a3f [OLE32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68469
2015-07-19 23:10:53 +00:00
Amine Khaldi
6108ea6bc9 [ODBCCP32_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68468
2015-07-19 23:09:55 +00:00
Amine Khaldi
cb7d607aed [ODBCCP32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68467
2015-07-19 23:09:04 +00:00
Amine Khaldi
b2b1bf9eef [MSXML3_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68466
2015-07-19 23:07:29 +00:00
Amine Khaldi
f756c9c7a0 [MSXML3] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68465
2015-07-19 23:07:13 +00:00
Amine Khaldi
8d9feb25c4 [MSTASK_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68464
2015-07-19 23:06:14 +00:00
Amine Khaldi
c4ea999155 [MSTASK] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68463
2015-07-19 23:05:56 +00:00
Amine Khaldi
e70d9ba6d5 [MSI_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68462
2015-07-19 23:04:56 +00:00
Amine Khaldi
3acd6eee67 [MSI] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68461
2015-07-19 23:04:25 +00:00
Amine Khaldi
98c7de7d7a [MSPATCHA] Add import lib.
svn path=/trunk/; revision=68460
2015-07-19 23:02:13 +00:00
Amine Khaldi
46be2c72e1 [MSGSM32.ACM] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68459
2015-07-19 23:01:00 +00:00
Amine Khaldi
2a2dfbb73c [MSG711.ACM] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68458
2015-07-19 22:56:28 +00:00
Amine Khaldi
b687fe70e9 [MSCTF_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68457
2015-07-19 22:55:02 +00:00
Amine Khaldi
9f4e57acd8 [MSCTF] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68456
2015-07-19 22:54:48 +00:00
Amine Khaldi
47a6c45fd6 [MSADP32.ACM] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68455
2015-07-19 22:49:34 +00:00
Amine Khaldi
4c4170d093 [MSACM32_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68454
2015-07-19 22:44:00 +00:00
Amine Khaldi
a0281be468 [MSACM32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68453
2015-07-19 22:43:17 +00:00
Amine Khaldi
3686da5663 [MPR_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68452
2015-07-19 22:42:18 +00:00
Amine Khaldi
cacf9555ac [MPR] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68451
2015-07-19 22:41:45 +00:00
Amine Khaldi
4dd778b23e [MMDEVAPI_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68450
2015-07-19 22:41:06 +00:00
Amine Khaldi
cfe6b7259d [MMDEVAPI] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68449
2015-07-19 22:39:34 +00:00
Amine Khaldi
74a9f79c00 [MCIQTZ32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68448
2015-07-19 22:38:20 +00:00
Amine Khaldi
e7f5265814 [JSCRIPT_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68447
2015-07-19 22:36:43 +00:00
Amine Khaldi
b76ad047da [JSCRIPT] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68446
2015-07-19 22:36:25 +00:00
Amine Khaldi
b4eaf61627 [PSDK] Update objidl.idl. CORE-9924
svn path=/trunk/; revision=68445
2015-07-19 22:32:16 +00:00
Amine Khaldi
27ec0bb430 [INSENG] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68444
2015-07-19 22:31:17 +00:00
Eric Kohl
d3ffa60381 [DISKPART]
Fix MSVC build failure.

svn path=/trunk/; revision=68443
2015-07-19 17:52:46 +00:00
Eric Kohl
3df39cf7a0 [DISKPART]
Implement the "list disk" and "select disk" commands.

svn path=/trunk/; revision=68442
2015-07-19 17:33:29 +00:00
Thomas Faber
f51b244380 [OLE32_WINETEST]
- Skip ole32:dragdrop test_DoDragDrop if running on Windows in non-interactive mode. This should allow WHS-Testbot to get a bit further
ROSTESTS-182
ONLINE-441 ROSTESTS-181

svn path=/trunk/; revision=68441
2015-07-19 17:16:38 +00:00
Amine Khaldi
ab5f90fbb5 [IMAADP32.ACM] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68440
2015-07-19 13:33:54 +00:00
Amine Khaldi
87f76fb7fc [PSDK] Update mm{reg,system}.h. CORE-9924
svn path=/trunk/; revision=68439
2015-07-19 13:33:09 +00:00
Amine Khaldi
6f97228c45 [GDIPLUS_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68438
2015-07-19 13:31:38 +00:00
Amine Khaldi
373482cc7d [GDIPLUS] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68437
2015-07-19 13:31:15 +00:00
Amine Khaldi
1174b60215 [PSDK] Update gdiplus{flat,types}.h. CORE-9924
svn path=/trunk/; revision=68436
2015-07-19 13:27:27 +00:00
Amine Khaldi
9587ab7139 [PSDK] Import inseng.idl from Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68435
2015-07-19 13:26:11 +00:00
Amine Khaldi
5aca83b750 [INETCOMM] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68434
2015-07-19 13:24:54 +00:00
Amine Khaldi
bae1157f0f [IEFRAME] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68433
2015-07-19 13:24:09 +00:00
Amine Khaldi
31acde69d1 [HHCTRL.OCX] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68432
2015-07-19 13:21:48 +00:00
Amine Khaldi
7676e852d3 [PSDK] Update wincodecsdk.idl. CORE-9924
svn path=/trunk/; revision=68431
2015-07-19 13:18:47 +00:00
Amine Khaldi
1ba24fbfc4 [FUSION_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68430
2015-07-19 13:17:08 +00:00
Amine Khaldi
c2ad444c97 [FUSION] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68429
2015-07-19 13:16:45 +00:00
Amine Khaldi
e5a146feaf [FLTLIB] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68428
2015-07-19 13:14:56 +00:00
Amine Khaldi
23857afe80 [CRYPT32_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68427
2015-07-19 13:14:09 +00:00
Amine Khaldi
c8467f6d31 [CRYPT32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68426
2015-07-19 13:13:36 +00:00
Amine Khaldi
cf784b770c [AVIFIL32] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68425
2015-07-19 13:10:52 +00:00
Amine Khaldi
b78f55ed3e [ATL100_WINETEST] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68424
2015-07-19 13:09:22 +00:00
Amine Khaldi
7d9e7e2460 [ATL][ATL80][ATL100] Sync with Wine Staging 1.7.47. CORE-9924
svn path=/trunk/; revision=68423
2015-07-19 13:08:46 +00:00
Amine Khaldi
b0221abfa9 [PSDK] Update cvconst.h. CORE-9924
svn path=/trunk/; revision=68422
2015-07-19 13:06:07 +00:00
Thomas Faber
e39f524e17 [NTOS:MM]
- Simplify MiInitSystemMemoryAreas by introducing a helper, MiCreateArm3StaticMemoryArea. Patch by Mike Nordell

svn path=/trunk/; revision=68421
2015-07-19 08:29:58 +00:00
Thomas Faber
88fed9bfce [CMD]
- Remove an unused but set variable. Fixes compilation with FEATURE_UNIX_FILENAME_COMPLETION defined. Patch by Lee Schroeder.
CORE-9913 #resolve

svn path=/trunk/; revision=68420
2015-07-19 08:21:58 +00:00
Hermès Bélusca-Maïto
027dd2f4f0 [NTVDM]: Add a write-protect ROM helper and use it when possible external ROMs are loaded.
svn path=/trunk/; revision=68419
2015-07-18 23:46:22 +00:00
Hermès Bélusca-Maïto
3d9861826c [NTVDM]
- Move some #defines into their correct headers.
- Fix some DPRINTs.
- Add missing DOS SYSVars values (memory-related), confirmed by DOS undocumented & FreeDOS.
- Implement INT 21h, AX=5700h and 5701h "Get/Set File last-written date & time".
- Implement INT 2Fh, AH=13h "Set Disk Interrupt Handler" chain support, which is an obscure functionality (to make story short: allows inserting disk filter drivers): see the comments inside the code (dos.c/dos.h) for more information.

svn path=/trunk/; revision=68418
2015-07-18 19:45:37 +00:00
Hermès Bélusca-Maïto
7d277c43a9 [NTVDM]
We don't support any PS/2 keyboard command for now. Just return ACKnowledge. This unblocks some programs that want to initialize the keyboard by sending keyboard commands and then performing polling on the port until "valid" data comes out. (unblocks e.g. DOS Mugen game, amongst others...).

svn path=/trunk/; revision=68415
2015-07-18 00:48:38 +00:00
Aleksandar Andrejevic
dc52a69141 [FAST486]
Combine FPREM and FPREM1 into one case.


svn path=/trunk/; revision=68400
2015-07-14 23:29:23 +00:00
Aleksandar Andrejevic
33cbfd3217 [FAST486]
In FPREM and FPREM1, copy the lowest 3 bits of the quotient
into C1, C3 and C0 (in that order!).


svn path=/trunk/; revision=68399
2015-07-14 23:15:46 +00:00
Benedikt Freisen
d9f3b5c508 [MSPAINT_NEW]
Pasting a larger-than-current-canvas image now DOES resize the canvas.
(adapted from a patch by Gian Sass)
CORE-9674 #resolve #comment Fixed in r68398

svn path=/trunk/; revision=68398
2015-07-13 14:46:41 +00:00
Hermès Bélusca-Maïto
ef9c79d518 [NTVDM]: Fix compilation in STANDALONE mode.
CORE-9823 #resolve #comment Fixed in r68396!

svn path=/trunk/; revision=68396
2015-07-13 01:22:34 +00:00
Hermès Bélusca-Maïto
597a383e60 [NTVDM]: Commit some local changes that can be committed now:
- Whitespace fixes.
- Improve some DPRINTs.
- hardcoded_values--;
- Fix DisplayMessage() for NULL-terminated strings.
- Free the allocated block of memory in the mouse driver cleanup procedure.
- Properly inherit the parent process environment block if needed.
- Return the correct last error if DosCopyEnvironmentBlock fails.
- Big ifs turned into switch.
- Implement some INT 2Fh DOS multiplex functions (AX=1200h "Installation check", AX=1203h "Get DOS data segment", AX=1214h "Compare FAR pointers", AX=122Fh "Set DOS version to return"); remove the DPRINT for AX=1680h "Release Current Virtual Machine Time-slice".
- Stubplement INT 2Ah "DOS critical sections / network" (it just monitors calls to itself at the moment).
- Use the boot drive root path as the current directory if we failed retrieving a valid one.
- Offsetize the DOS_SYSVARS members (so that I don't have to compute by head the offsets, especially when some of the members is a structure from which I don't know in advance its size); add some C_ASSERTs on the size of DOS standard structures.
- Move the NullDriverRoutine buffer outside the sysvars buffer (because it has nothing to do inside it).
- In ConDrvReadInput: do not echo the first part of an extended character.
- Add basic support for changing the reported DosVersion.

svn path=/trunk/; revision=68395
2015-07-13 01:21:46 +00:00
Eric Kohl
9dc9e37fcc [NETCFGX]
- Initialize the 'IP Address' and 'Gateway Address' edit dialogs properly.
- OK pushbuttons are default pushbuttons.

svn path=/trunk/; revision=68394
2015-07-12 21:49:10 +00:00
Thomas Faber
082ca2d474 [NTDLL_APITEST]
- Add test for SystemKernelDebuggerInformation, showing that it accepts an unaligned info pointer

svn path=/trunk/; revision=68393
2015-07-12 17:52:42 +00:00
Eric Kohl
b0f5f88ed5 [NETCFGX]
Enable the 'Edit...' and 'Remove' buttons on the Advanced IP Settings dialog only if the 'IP addresses' and 'Dafault gateways' lists are not empty.

svn path=/trunk/; revision=68392
2015-07-12 17:16:35 +00:00
Thomas Faber
39d42581f4 [NTDLL_APITEST]
- Add some tests for NtQuerySystemInformation with invalid info class

svn path=/trunk/; revision=68391
2015-07-12 08:53:40 +00:00
Christoph von Wittich
0c5abacf52 [NTOSKRNL]
NtQuerySystemInformation: check for correct alignment

svn path=/trunk/; revision=68390
2015-07-12 08:20:13 +00:00
Christoph von Wittich
d92f46f3a4 [RTL]
sync compression functions with wine

svn path=/trunk/; revision=68389
2015-07-11 13:47:22 +00:00
Eric Kohl
e2dc21346a [USETUP]
Show an error message if formatting a partition fails.
Based on patch by mna.
CORE-7969 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=68388
2015-07-11 12:40:34 +00:00
Hermès Bélusca-Maïto
cf58e13f77 [KERNEL32]: Fix GCC build.
svn path=/trunk/; revision=68387
2015-07-11 00:29:01 +00:00
Hermès Bélusca-Maïto
7ffba6f094 [NDK][KERNEL32][LIBCNTPR]
Add RtlAnsiCharToUnicodeChar prototype inside NDK.

[NDK][NTVDM]
Add few missing RTL bitmap prototypes.

svn path=/trunk/; revision=68386
2015-07-11 00:18:30 +00:00
Hermès Bélusca-Maïto
0a18a70623 [KERNEL32]: Whitespace fix; remove useless FIELD_OFFSET definition since we have it in the standard (*DK) headers.
svn path=/trunk/; revision=68385
2015-07-11 00:02:59 +00:00
Hermès Bélusca-Maïto
79a454c070 [KERNEL32]
Since CsrClientCallServer returns the value of ApiMessage.Status, then just use ApiMessage.Status instead of declaring another Status variable for querying the return value of CsrClientCallServer (continuation of r62460).

svn path=/trunk/; revision=68384
2015-07-10 23:57:26 +00:00
Benedikt Freisen
1d4daced52 [MSPAINT_NEW] use the same hard-coded observer pattern for the SelectionModel (WIP)
svn path=/trunk/; revision=68383
2015-07-09 18:48:42 +00:00
Benedikt Freisen
3116acb259 [MSPAINT_NEW] refactoring: move selection management to a dedicated SelectionModel (WIP)
svn path=/trunk/; revision=68382
2015-07-09 09:48:01 +00:00
Ged Murphy
b0451457d7 [ATL]
- Add the IAtlMemMgr interface
- Add a basic implementation of CWin32Heap which just implements the base IAtlMemMgr
- Required for CAtlString / CAtlStringMgr (coming later)

svn path=/trunk/; revision=68381
2015-07-09 08:18:24 +00:00
Ged Murphy
d064fe61ec [ATL]
- Add basic support for CAtlList, CAtlPlex, CElementTraitsBase, CDefaultCompareTraits.
- Implements CAtlList::IsEmpty, ::GetHeadPosition, ::GetNext, ::AddTail, ::RemoveTail, ::RemoveAll
- Required in the new devmgr code.

svn path=/trunk/; revision=68380
2015-07-09 07:51:43 +00:00
Ged Murphy
74a3a7414b [DEV[DEVMGR]
- Use the correct HINSTANCE in the dll. Fixes loading strings for tooltips, etc.
- Rename CMainWindow to CDeviceManager
- Fixup the decelerations and add missing SAL decoration

svn path=/trunk/; revision=68378
2015-07-08 06:43:16 +00:00
Hermès Bélusca-Maïto
49467814ac [NTVDM]
- Add few remaining members to the SYSVARS list.
- Implement retrieving the (DOS) boot drive (by using the host boot drive letter from %SYSTEMDRIVE%).
Should fix Win3.11 and MSD 2.0+ boot drive retrieval.

svn path=/trunk/; revision=68377
2015-07-07 23:51:57 +00:00
Ged Murphy
9370c5b6ea Minor code cleanup
svn path=/trunk/; revision=68376
2015-07-07 20:33:54 +00:00
Thomas Faber
8c5fdce1fa [SHELL32_WINETEST]
- Sync shfldr_special.c and shlview.c with Wine. Fixes some shell folder reference leaks.
CORE-9867

svn path=/trunk/; revision=68374
2015-07-07 13:44:32 +00:00
Ged Murphy
57d99fef8e [DEVMGR]
Start to fixup and merge the resources. English only at the moment

svn path=/trunk/; revision=68373
2015-07-07 12:51:45 +00:00
Benedikt Freisen
52f4de88b2 [MSPAINT_NEW] turn the history into an ImageModel
svn path=/trunk/; revision=68372
2015-07-07 11:56:37 +00:00
Ged Murphy
7948e912e3 [DEVMGR]
- Rearrange the file structure, move the properties/resource/misc stuff to a ./properties folder
- Add a CMakeLists.txt file to combine both old and new code. Should now build with the msvc RosBe (doesn't yet run)

svn path=/trunk/; revision=68371
2015-07-07 11:55:36 +00:00
Benedikt Freisen
63185511a1 [MSPAINT_NEW] further ATLification, hard-coded observer pattern, minor cleanup (fourth batch of git commits)
svn path=/trunk/; revision=68370
2015-07-07 11:44:50 +00:00
Ged Murphy
c9860c44d6 [DEVMGR]
I know this *_new thing is a bit overused, but there are a lot of changes coming to devmgr and rather than take it out of the build for a few days, it's easier to do it this way

svn path=/trunk/; revision=68369
2015-07-07 11:43:15 +00:00
Benedikt Freisen
b912eb3b15 [MSPAINT_NEW] manage palette and tools data in a PaletteModel and ToolsModel class, respectively; fix tiny bug in mouse.cpp (third batch of git commits)
svn path=/trunk/; revision=68368
2015-07-07 11:15:24 +00:00
Ged Murphy
e60f09bacc [DEVMGR]
- last few fixes to the device manager code to get it building with rosbe (msvc)
- Next steps are to merge it with the existing devmgr code (mostly done in my WC) and get it running via mmc.exe & devmgmt.msc

svn path=/trunk/; revision=68367
2015-07-07 11:05:25 +00:00
Benedikt Freisen
ae313a0aee [MSPAINT_NEW] split CMainWindow: factor out CImgAreaWindow and CMiniatureWindow (second batch of git commits)
svn path=/trunk/; revision=68366
2015-07-07 11:02:30 +00:00
Benedikt Freisen
0dcecd61fc [MSPAINT_NEW] port to ATL (first batch of git commits)
svn path=/trunk/; revision=68365
2015-07-07 10:42:49 +00:00
Hermès Bélusca-Maïto
4a2b05ae84 [NTVDM]
Implement basic DOS country info (some stuff is not implemented yet, but the basic functionality is there). This is needed by Microsoft Diagnostics 2.0+ (amongst others)...
See also r66039.
CORE-9903 #resolve

svn path=/trunk/; revision=68363
2015-07-07 00:33:53 +00:00
Hermès Bélusca-Maïto
cf5ce092b5 [NTVDM]
- Let the mouse driver use its own 32-to-16 call scratch buffer.
- Simplify some code.

svn path=/trunk/; revision=68362
2015-07-07 00:11:18 +00:00
Thomas Faber
c77efa29ff [RAPPS_NEW][EXPLORER][RSHELL][BROWSEUI]
- Use ATL::CWindow methods where appropriate. By Benedikt Freisen.
CORE-9675 #resolve

svn path=/trunk/; revision=68361
2015-07-06 19:38:22 +00:00
Thomas Faber
49363e72c9 [ATL]
- Implement missing ATL::CWindow methods. Patch by Benedikt Freisen.
CORE-9675

svn path=/trunk/; revision=68360
2015-07-06 19:29:21 +00:00
Thomas Faber
b0f3e5d9aa [RAPPS_NEW][EXPLORER][RSHELL][BROWSEUI]
- Unambiguously specify top-level namespace for Win32 API functions in preparation for upcoming ATL changes. Based on a patch by Benedikt Freisen.
CORE-9675

svn path=/trunk/; revision=68359
2015-07-06 19:20:39 +00:00
Thomas Faber
fcce5b86dc [ACTXPRXY]
- Sync usrmarshal.c to Wine aka fix build

svn path=/trunk/; revision=68358
2015-07-06 18:51:18 +00:00
Thomas Faber
4b4eaae90e [PSDK]
- Add IFolderView2 definition from Wine

svn path=/trunk/; revision=68357
2015-07-06 18:38:15 +00:00
Eric Kohl
785b2eb8b8 [USETUP]
Make the keyboard layouts selection not dependent on the selected language.
Patch by joao.jeronimo.89.
CORE-9630 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=68354
2015-07-05 21:00:38 +00:00
Pierre Schweitzer
fb0aea8099 [NTFS]
Properly return allocation size on directory enum

svn path=/trunk/; revision=68353
2015-07-05 20:31:54 +00:00
Thomas Faber
64379e8f3a [NTOS:MM]
- Show that PAGE_NOCACHE also works for image and data sections
- Show that *MapViewOfSection returns user space addresses
CORE-9808

svn path=/trunk/; revision=68352
2015-07-05 19:44:05 +00:00
Thomas Faber
7346aece52 [KMTESTS:MM]
- Add a test for \Device\PhysicalMemory sections, which shows that we have trouble with PAGE_NOCACHE.
CORE-9808

svn path=/trunk/; revision=68351
2015-07-05 19:17:50 +00:00
Pierre Schweitzer
29d31f9aed [ARF]
Fix build(tm)

svn path=/trunk/; revision=68350
2015-07-05 19:09:20 +00:00
Pierre Schweitzer
c0146f1340 [NTFS]
Return correct size in FileNetworkOpenInformation operation

svn path=/trunk/; revision=68349
2015-07-05 19:08:08 +00:00
Pierre Schweitzer
53bbe9ea86 [NTFS]
Continue streams integration:
- NtfsGetFileSize() will now return the file size depending on the open data stream
- NtfsGetFileSize() will also optionally return allocated size
- In NtfsMakeFCBFromDirEntry(), when initializing FSRTL_COMMON_FCB_HEADER entry, use data stream sizes

svn path=/trunk/; revision=68348
2015-07-05 19:04:05 +00:00
Hermès Bélusca-Maïto
83159263f9 [NTVDM]
- Implement INT 10h, AH=13h "Write String" function.
- Fix VidBiosPrintCharacter to use the colour attribute only in graphics mode, or when explicitely needed.
- Fix some special cases where specifying a BIOS mode page of 0xFF means "use current page".
- Use a macro to check whether a given mode number specifies a text mode, and use it where needed.

svn path=/trunk/; revision=68347
2015-07-05 18:35:25 +00:00
Eric Kohl
08507c0a9a [NTOSKRNL]
NtQuerySystemInformation: Return ResultLength only in case of success.

svn path=/trunk/; revision=68346
2015-07-05 09:58:03 +00:00
Pierre Schweitzer
451f37cfc3 [NTFS]
Ignore DOS name only entries when browsing index.

CORE-9086

svn path=/trunk/; revision=68345
2015-07-05 09:04:24 +00:00
Ged Murphy
e399ab4063 [DEVMGR]
- Implement very basic uninstall functionality
- Move device action code into the DeviceView class

svn path=/trunk/; revision=68344
2015-07-05 08:49:54 +00:00
Ged Murphy
8fdb754153 [DEVMGR]
Add the 'add hardware' option for the maun menu or if the root node is selected

svn path=/trunk/; revision=68343
2015-07-04 21:31:19 +00:00
Ged Murphy
b5e1b529b3 [DEVMGR]
- Add a separate class for the root node
- Move creating the action menu items to a generic function so we can use it for both the context menu and the main menu
- Create the main action menu as a dynamic popup menu. It doesn't work quite the same as the menus via the resources, so if any menu expects know how to fix this, be my guest

svn path=/trunk/; revision=68342
2015-07-04 21:12:06 +00:00
Pierre Schweitzer
f871bb9384 [NTFS]
Complete BrowseIndexEntries() implementation and simplify NtfsFindMftRecord() implementation

svn path=/trunk/; revision=68341
2015-07-04 19:52:31 +00:00
Eric Kohl
c681e13dae [USETUP]
Assign the HiddenSectors values properly.

svn path=/trunk/; revision=68340
2015-07-04 16:10:50 +00:00
Eric Kohl
5e346150a3 [USETUP]
- Add description of the 'L' key to the partition selection page.
- Make the 'ENTER' key work for logical partitions too. Selected unpartitioned space will be converted to a logical partition.
Patch by Gerhard Gruber (sparhawk).
CORE-9641 #resolve 

svn path=/trunk/; revision=68339
2015-07-04 16:04:09 +00:00
Ged Murphy
aeed3091c7 [DEVMGR]
Replace hard coded strings with resources

svn path=/trunk/; revision=68338
2015-07-04 13:40:17 +00:00
Amine Khaldi
72127bd933 [SHELL32] Add an icon to Network Connections in Start menu. By Jared Smudde. CORE-9009
svn path=/trunk/; revision=68337
2015-07-03 18:43:46 +00:00
Amine Khaldi
90e11c6263 [TASKMGR] Fix some multi-threaded drawing issues. Brought to you by Joachim Henze. CORE-9868
svn path=/trunk/; revision=68336
2015-07-03 17:17:56 +00:00
Ged Murphy
27e12f2db6 [DEVMGR]
- Implement dynamic context menu for device and class nodes
- Fix CanUninstall to return correct results
- Strings hardcoded for now, will fix soon

svn path=/trunk/; revision=68334
2015-07-03 06:56:58 +00:00
Pierre Schweitzer
5c8a9ffd29 [NTFS]
Kill a magic value.
Dedicated to Hervé :-)

svn path=/trunk/; revision=68333
2015-07-02 20:11:11 +00:00
Johannes Anderwald
861b64ae2a [DDK]
- add missing PcUnregisterAdapterPowerManagement

svn path=/trunk/; revision=68332
2015-07-02 15:40:49 +00:00
Johannes Anderwald
d2374e8208 [PORTCLS]
- implement & export PcUnregisterAdapterPowerManagement

svn path=/trunk/; revision=68331
2015-07-02 15:35:19 +00:00
Johannes Anderwald
0c4a5a1f46 [HDAUDBUS]
- partly implement HDA_TransferCodecVerbs
- stubplement HDAUDIO_BUS_INTERFACE_V2
- silence traces

svn path=/trunk/; revision=68330
2015-07-02 11:07:39 +00:00
Pierre Schweitzer
ed161d747f [NTFS_TEST]
No need for such test anylonger, we have NTFSInfo now which is better :-)

svn path=/trunk/; revision=68329
2015-07-01 11:17:22 +00:00
Johannes Anderwald
a5e2945149 [PORTCLS]
- check if there are enough irp stack locations

svn path=/trunk/; revision=68328
2015-07-01 07:39:35 +00:00
Pierre Schweitzer
edae2b9bfb [NTFS]
Fix user buffer handling for FSCTL_GET_NTFS_VOLUME_DATA. It fixes NTFSInfo.
We're just lacking a few information in the output data now

CORE-8725

svn path=/trunk/; revision=68327
2015-06-30 21:24:03 +00:00
Pierre Schweitzer
1c3c66afa4 [NTFSINFO]
Time to free some Sysinternals tool: ntfsinfo.

To make it short, this tool dumps various information about a NTFS volume and its reserved meta-data files

Our version comes with three advantages compared to the Russinovich's tool:
- It's FLOSS
- It works properly on NT5+ (developed with W2K3 & W7) whereas R's cannot display meta-data files information
- It will open a volume by default if none provided

One issue so far: it doesn't work properly on ReactOS!

CORE-8725

svn path=/trunk/; revision=68326
2015-06-30 21:03:55 +00:00
Johannes Anderwald
5b284d6338 [HDAUDBUS]
- fix small bug

svn path=/trunk/; revision=68325
2015-06-30 19:06:36 +00:00
Johannes Anderwald
c3b021b163 [HDAUDBUS]
- interface stub

svn path=/trunk/; revision=68321
2015-06-30 12:37:39 +00:00
Johannes Anderwald
a91363bc5d [HDAUDBUS]
- move code
- set FILE_AUTOGENERATED_DEVICE_NAME for pdos. Hint by ThFabba
- driver now gets further

svn path=/trunk/; revision=68320
2015-06-30 11:36:52 +00:00
Thomas Faber
6faf4f830e [MSI_WINETEST]
- Skip msi:msi test if running on Windows in non-interactive mode. This should allow WHS-Testbot to get a bit further
ROSTESTS-180
ONLINE-441 ROSTESTS-179

svn path=/trunk/; revision=68319
2015-06-30 11:34:34 +00:00
Thomas Faber
df14063ebc [KMTESTS:MM]
- Fix some massive NP pool leakage.

svn path=/trunk/; revision=68318
2015-06-30 10:54:41 +00:00
Johannes Anderwald
38d324f824 [HDAUDBUS]
- forward start device irp to lower device. Hint by ThFabba
- implement BusQueryCompatibleIDs

svn path=/trunk/; revision=68317
2015-06-30 10:16:41 +00:00
Pierre Schweitzer
eacb96fe2c [BROWSEUI]
Revert r68305 per Christoph's request

svn path=/trunk/; revision=68316
2015-06-29 20:40:12 +00:00
Eric Kohl
d25d5b8cec [NTOSKRNL]
Fix CmpDestroyHiveViewList adding checks for empty lists.

Thank you very much Thomas!

svn path=/trunk/; revision=68315
2015-06-29 20:29:19 +00:00
Eric Kohl
9826966d55 [NTOSKRNL]
Disable code in CmpDestroyHiveViewList(). Needs more testing!

svn path=/trunk/; revision=68314
2015-06-29 18:50:18 +00:00
Eric Kohl
3a7d34ee38 [NTOSKRNL]
Add CmpDestroySecurityCache() and CmpDestroyHiveViewList() stubs and call them in CmpDestroyHive and CmUnloadKey().

CORE-6492 #resolve #comment Thank you Hermes! This is exactly what I needed!

svn path=/trunk/; revision=68313
2015-06-29 18:26:56 +00:00
Johannes Anderwald
223bd478e0 [HDAUDBUS]
- add driver inf
- fix build for gcc builds

svn path=/trunk/; revision=68312
2015-06-29 17:10:04 +00:00
Johannes Anderwald
cf7fc816a1 [HDAUDBUS]
- start implementing HDAUDIO Bus driver 
- based heavily on Haiku exellent driver 

svn path=/trunk/; revision=68311
2015-06-29 17:03:33 +00:00
Pierre Schweitzer
7b665169ed [NTFS]
Simplify the implementation of NtfsGetFileSize()

svn path=/trunk/; revision=68310
2015-06-28 21:26:19 +00:00
Pierre Schweitzer
a45dcb0d07 [NTFS]
Validate the stream we're trying to open properly exists.
This check might have to be moved later on when the driver switches to RW

svn path=/trunk/; revision=68309
2015-06-28 21:16:03 +00:00
Pierre Schweitzer
296712e3fa [NTFS]
Always gather the size of the unnamed stream for directory display.
This fixes file size display when there are several data streams available

svn path=/trunk/; revision=68308
2015-06-28 20:55:29 +00:00
Eric Kohl
7c3f4c94a4 [USETUP]
Restrict valid characters of the install path to:
- Letters
- Digits
- Dots (.)
- Backslashes (\)
- Dashes (-)
- Underscores (_)

CORE-6179 #resolve

svn path=/trunk/; revision=68307
2015-06-28 19:06:07 +00:00
Hermès Bélusca-Maïto
0bc85fb9f3 [NTOS]
- Do not forget to initialize LoadDll->NamePointer in DbgkMapViewOfSection!!
- Just copy the NamePointer (pointer to pointer to file name) in DbgUiConvertStateChangeStructure. See the description of the lpImageName member of the LOAD_DLL_DEBUG_INFO structure in https://msdn.microsoft.com/en-us/library/windows/desktop/ms680351(v=vs.85).aspx for more details.

This fixes some debugging stuff with GDB (see the below-mentioned report).

Adapted from a patch by andy-123 (whom I don't remember his name^^),
CORE-7019 #resolve #comment Fixed in r68306
CORE-8622 #comment An updated fix was committed in r68306

svn path=/trunk/; revision=68306
2015-06-28 18:52:51 +00:00
Christoph von Wittich
143664a895 [BROWSEUI]
don't expose some interfaces
expose IID_IContextMenu3 from CBandSiteMenu

svn path=/trunk/; revision=68305
2015-06-28 18:22:02 +00:00
Eric Kohl
2423b35126 [CMLIB]
HvFree:
- Free the BaseBlock.
- Do not free the hive itself because the HHIVE is part of the CMHIVE structure and freeing it here could be an unpleasant surprise.

[NTOSKRNL]
CmpDestroyHive: Free the CMHIVE after calling HvFree.
CmUnloadKey: Free the hive storage, the hive locks and the CMHIVE properly.

svn path=/trunk/; revision=68303
2015-06-28 15:41:18 +00:00
Pierre Schweitzer
fbff7e0e47 [NTFS]
Implement support for NTFS $DATA streams:
- The driver is now able to read various streams for a same file, using the same syntax as Windows.
- This fixes to read (in general) files with multiple streams where reading unnamed stream was leading to read beyond file end
- Also fix reading small files which are smaller than a sector

For demo, see: http://www.heisspiter.net/~Pierre/rostests/NTFS_Streams.png

svn path=/trunk/; revision=68302
2015-06-28 13:14:07 +00:00
Christoph von Wittich
ec8ef644e3 [KERNEL32]
warn about unimplemented MB_ERR_INVALID_CHARS case

svn path=/trunk/; revision=68301
2015-06-28 13:06:43 +00:00
Christoph von Wittich
f399e4f3e4 [KERNEL32]
return the thread ansicodepage when no ansicodepage exists for a specific lcid in CP_THREAD_ACP case

svn path=/trunk/; revision=68300
2015-06-28 12:34:01 +00:00
Christoph von Wittich
9ea5cf5ae9 [KERNEL32]
replace WideCharToUtf7 with wine version

svn path=/trunk/; revision=68299
2015-06-28 10:21:52 +00:00
Hermès Bélusca-Maïto
159d2fcc05 [SHELL32]:Add SmartCard icon from Tango; patch by Lee Schroeder.
CORE-9888 #resolve

svn path=/trunk/; revision=68298
2015-06-28 10:05:56 +00:00
Christoph von Wittich
469292197b [KERNEL32]
replace Utf7ToWideChar with wine version

svn path=/trunk/; revision=68297
2015-06-28 09:00:03 +00:00
Christoph von Wittich
6caacf4e1a fix a typo
svn path=/trunk/; revision=68296
2015-06-27 19:30:17 +00:00
Eric Kohl
3507ef2ac6 [NTOSKRNL]
Implement NtUnloadKey2. TODO: Destroy the unlinked hive.
CORE-3094

svn path=/trunk/; revision=68295
2015-06-27 19:26:12 +00:00
Amine Khaldi
bc5c68db6d [KBSWITCH] Improve mouse events handling. By Joachim Henze. CORE-9883
svn path=/trunk/; revision=68294
2015-06-27 17:15:38 +00:00
Amine Khaldi
50991778f3 [DESK] Use pixels instead of Pixel. By Jared Smudde. CORE-9738
svn path=/trunk/; revision=68293
2015-06-27 17:09:04 +00:00
Pierre Schweitzer
9c3630ca79 [NTFS]
When dumping attributes, also dump attributes from the $ATTRIBUTE_LIST if present

svn path=/trunk/; revision=68291
2015-06-27 15:06:25 +00:00
Pierre Schweitzer
c1f1ff059c [NTFS]
While handling IRP_MN_QUERY_DIRECTORY, in case there is no $FILE_NAME attribute, dump file attributes & MFT ID.
This fixes ASSERT failure when browsing some Win7 volumes

svn path=/trunk/; revision=68290
2015-06-27 13:40:05 +00:00
Amine Khaldi
a011fa9bc5 [DEVMGMT] Free this module from the devil. Addendum to r68185. Spotted by fox_anthony.
svn path=/trunk/; revision=68289
2015-06-27 13:05:01 +00:00
Thomas Faber
c8c9e7d157 [NTOS:KE]
- Fix a typo in KiGetCacheInformation. Spotted by Mike.

svn path=/trunk/; revision=68287
2015-06-27 10:58:32 +00:00
Pierre Schweitzer
fc363d1f59 [NTFS]
Dump available streams (if any!) in case unnamed stream isn't available when trying to read a file

svn path=/trunk/; revision=68286
2015-06-27 09:04:39 +00:00
Pierre Schweitzer
950f284f09 [NTFS]
Don't attempt to open the unnamed stream from $DATA attribute on file lookup. It was unused & leaking.

It fixes opening files that don't have unnamed stream (even though we cannot read there contents yet as we only support unnamed stream)

svn path=/trunk/; revision=68285
2015-06-27 08:55:34 +00:00
Amine Khaldi
78f1c4a361 [USERENV] Add %HOMEDRIVE% and %HOMEPATH% environment variables. Brought to you by Radek Liška. CORE-9875
svn path=/trunk/; revision=68284
2015-06-26 18:59:25 +00:00
Amine Khaldi
ea61881cf9 [SHELL32] Get the Run dialog icon from shell32. By Jared Smudde. CORE-9837
svn path=/trunk/; revision=68283
2015-06-26 18:32:57 +00:00
Amine Khaldi
26878eaacf [MSIEXEC][RUNONCE][WINLOGON] Properly track resource file dependencies. CORE-9806
svn path=/trunk/; revision=68282
2015-06-26 18:04:31 +00:00
Amine Khaldi
dd49d4d4a9 [IEFRAME] Add some missing quotes to ieframe.rc. NFC. Spotted by Jared Smudde. CORE-9843
svn path=/trunk/; revision=68281
2015-06-26 17:33:45 +00:00
Amine Khaldi
ddbc58e7bd [KBSWITCH] Re-register the systray icon after explorer restart. By Joachim Henze. CORE-9869
svn path=/trunk/; revision=68280
2015-06-26 17:18:26 +00:00
Amine Khaldi
1c88ff2f14 [DDK] Annotate hdaudio.h. CORE-9882
svn path=/trunk/; revision=68279
2015-06-26 16:44:31 +00:00
Amine Khaldi
5703a3911d [DDK] Bring hdaudio.h to DDK formatting. NFC.
svn path=/trunk/; revision=68278
2015-06-26 16:32:40 +00:00
Amine Khaldi
ef406986cb [DDK] Explicitly mark the function pointers as NTAPI. CORE-9882
svn path=/trunk/; revision=68277
2015-06-26 16:20:37 +00:00
Johannes Anderwald
e95016183a [DDK]
- add hdaudio.h

svn path=/trunk/; revision=68276
2015-06-26 14:42:09 +00:00
Thomas Faber
261e8039e2 [MSIMTF]
- Add a stub implementation for IActiveIMMMessagePumpOwner.
- Use #ifdef __REACTOS__ to mark a ROS-diff
CORE-4953 #resolve

svn path=/trunk/; revision=68275
2015-06-26 12:27:54 +00:00
Thomas Faber
85c2fc1bcd [NTOS:MM]
- Do not request a page in MiAllocatePagesForMdl if no pages are available. Fixes kmtest:MmMdl.
CORE-9879 #resolve

svn path=/trunk/; revision=68274
2015-06-26 11:02:40 +00:00
Thomas Faber
09da0e3011 [NTOS:MM]
- Mark the page as being on the standby list before dereferencing it in MmFreePagesFromMdl. Since the PFN is marked as deleted, MiDecrementReferenceCount will correctly insert it into the free list, but this is required to satisfy MiDecrementReferenceCount's sanity check.
CORE-9877 #resolve

svn path=/trunk/; revision=68273
2015-06-26 10:40:49 +00:00
Ged Murphy
656342ff11 [DEVMGR]
- Add support for selecting any device when refreshing the view. This allows us to re-select a device after it's been enabled instead of collapsing the tree and losing track of what you did.
- Plug some memory leaks
- HeapAlloc -> new

svn path=/trunk/; revision=68272
2015-06-26 08:45:49 +00:00
Thomas Faber
eb33bb164d [KMTESTS:MM]
- Add a test for MmAllocatePagesForMdl

svn path=/trunk/; revision=68271
2015-06-26 07:31:01 +00:00
Christoph von Wittich
2888f4bedb [VIDEOPRT]
export functions needed by gfx drivers
patch by Mike Nordell
CORE-9808

svn path=/trunk/; revision=68270
2015-06-26 06:14:15 +00:00
Pierre Schweitzer
7420a2aff7 [NTFS]
In NtfsFindFileAt() directly print first entry value instead of its address

svn path=/trunk/; revision=68269
2015-06-25 20:51:30 +00:00
Pierre Schweitzer
de1f1fca9f [NTFS]
Don't attempt to read the unnamed stream of the $DATA attribute of each file matching:
- We don't need such attribute later on
- In case there's no such unammed stream, finding the file fails, whereas the file really exist

This fixes (at least here) browsing Win7 NTFS system drives, where our driver was always failing on pagefile.sys

svn path=/trunk/; revision=68268
2015-06-25 20:49:40 +00:00
Ged Murphy
f6cf980d01 [DEVMGR]
- When disabling a device, show the user a message box to confirm before disabling
- Some code cleanup

svn path=/trunk/; revision=68267
2015-06-25 20:34:57 +00:00
Eric Kohl
6488706ef3 [USETUP]
Remove obsolete restriction info.

svn path=/trunk/; revision=68266
2015-06-25 20:20:21 +00:00
Ged Murphy
b9e36d1c46 [DEVMGR]
- Add basic functionality for enabling and disabling devices. Make it accessible via the toolbar and main menu
- Implement checking whether a device has a problem and if a device can be uninstalled
- Implement getting, setting and removing device flags in the install params
- Fix creating and destroying the (currently empty) context menu

svn path=/trunk/; revision=68265
2015-06-25 18:59:23 +00:00
Thomas Faber
32e831b904 [SHELL32]
- Fix shell folder reference leak in _OpenDirectory.
CORE-9867

svn path=/trunk/; revision=68263
2015-06-25 14:04:02 +00:00
Thomas Faber
970ab0db9a [SHELL32]
- Fix reference leak in SHLoadInProc

svn path=/trunk/; revision=68261
2015-06-25 12:57:03 +00:00
Thomas Faber
c46e00e0e7 [SHELL32]
- Fix shell folder reference leak in SHGetFileInfoW
CORE-9867

svn path=/trunk/; revision=68260
2015-06-25 12:51:38 +00:00
Eric Kohl
da6ce53e1e [NTOSKRNL]
xHalIoReadPartitionTable: Do not return a valid partiton number for container partitions.

svn path=/trunk/; revision=68258
2015-06-24 20:22:19 +00:00
Eric Kohl
562e0f513f [USETUP]
- ReAllocateLayoutBuffer: Write all new partition table entries to the disk.
- UpdateDiskLayout:
  - Create link entries for logical partitions.
  - Wipe unused logical partiton table entries.

svn path=/trunk/; revision=68257
2015-06-24 20:06:33 +00:00
Hermès Bélusca-Maïto
406e3ca53b [GRMBL]: Fix build on *niks.
svn path=/trunk/; revision=68256
2015-06-24 20:00:23 +00:00
Hermès Bélusca-Maïto
f4c0c8f78c [TOOLS_BIN2C]
- Fix a GCC warning (error on Macs) concerning the printf "%Iu" specifier.
- To make sure data included by bin2c, that need to be interpreted as a (long) string, is correctly NULL-terminated, introduce an output format called "STR": this creates a long character array using the "\xXX" format.
- To circumvent a silly limitation of MSVC (all versions?) about the maximum length (65535 bytes) of a char string (aka. char MyArray[] = "...my_long_string...";), introduced yet another output format called "BINSTR" which creates an array of bytes that is NULL-terminated (aka. char MyArray[] = {0xde, 0xad, 0xbe, 0xef, 0x00};).
- Finally, the output format "BIN" is the regular bin2c format (simple array of bytes).

[HAL_PCIDATA][FREELDR_INSTALL]
Use the above-described functionality (for HAL_PCIDATA, use BINSTR format because the PciVendors data is otherwise too large to be stored in "char_string" format).

svn path=/trunk/; revision=68255
2015-06-24 19:54:19 +00:00
Pierre Schweitzer
81d3bf2654 [NTFS]
- Bail out if no subnode is available
- It's unimplemented if subnodes are available

svn path=/trunk/; revision=68254
2015-06-24 19:21:04 +00:00
Christoph von Wittich
523cfe4c4e [HIDCLASS]
fix a "formatting bug"

svn path=/trunk/; revision=68251
2015-06-24 10:58:39 +00:00
Thomas Faber
e243a508a4 [USBCCGP]
- Reset FunctionDescriptorCount to zero in USBCCGP_LegacyEnum since the function can be called multiple times
CORE-9226

svn path=/trunk/; revision=68250
2015-06-24 10:31:50 +00:00
Johannes Anderwald
943d65a922 [HIDCLASS]
- fix a bug

svn path=/trunk/; revision=68249
2015-06-24 10:13:15 +00:00
Thomas Faber
634ccedc1c [ROSAUTOTEST]
- Flush cout after each write as already done by Colin in r66855, per ROSTESTS-158
- Use DbgPrint instead of OutputDebugStringA again because the latter only calls the former anyway
Fixes test summary lines not being recognized by Testman, especially on VMware.

A little summary so we don't keep going back and forth with this function:
1) Only writing complete lines is required to that the output doesn't mix with debug output from other components. See r55618
2) OutputDebugStringA splits its input into 512-byte-sized blocks with no regard for line breaks, so using it with strings larger than 512 bytes breaks (1).
3) OutputDebugStringA eventually calls DbgPrint("%s", string) anyway so using it with chunks smaller than 512 bytes is not an optimization
As a result, yes this function MUST split up the lines itself, this can't be optimized or simplified away! kthxbye
ROSTESTS-178 #resolve

svn path=/trunk/; revision=68246
2015-06-23 10:06:38 +00:00
Thomas Faber
77ad885551 [ROSAUTOTEST]
- Revert r66855 to make the upcoming commit's diff show my actual changes.
ROSTESTS-178 ROSTESTS-158

svn path=/trunk/; revision=68245
2015-06-23 09:54:46 +00:00
Pierre Schweitzer
f710a888d6 [CDFS]
In case of directory enumeration, validate the record earlier to really prevent any potentiel buffer overflow

CORE-9254

svn path=/trunk/; revision=68244
2015-06-23 06:54:44 +00:00
Thomas Faber
5ab078c226 [NTOS:MM]
- Print some debug information before asserting in MiRosUnmapViewOfSection.
CORE-9865

svn path=/trunk/; revision=68243
2015-06-22 20:47:56 +00:00
Pierre Schweitzer
1b62b46a8f [CDFS]
Prevent code duplication by making CdfsGetEntryName() call CdfsGetDirEntryName() which is now available driver-wide

svn path=/trunk/; revision=68242
2015-06-22 18:42:56 +00:00
Amine Khaldi
d958941422 [CMD][EXPLORER] Properly track resource file dependencies. CORE-9806
svn path=/trunk/; revision=68241
2015-06-22 18:39:14 +00:00
Amine Khaldi
b8911d58ce [LIVECD] Add the required folder for the favorites menu to work. By Barrett Karish. CORE-9780
svn path=/trunk/; revision=68240
2015-06-22 18:33:49 +00:00
Pierre Schweitzer
8329f09d38 [CDFS]
Revamp r68233:
- Don't duplicate code, implement checks in a helper function
- When checking name content, do it earlier for better performances
- Add extra checks to prevent a potential buffer overflow in case of Joliet names with illformed entries

CORE-9254

svn path=/trunk/; revision=68239
2015-06-22 17:27:47 +00:00
Amine Khaldi
44c6fbb63a [EXPLORER] Explicitly request applications to re-register their systray icons as soon as explorer is started. By Joachim Henze. CORE-9824
svn path=/trunk/; revision=68238
2015-06-22 16:01:43 +00:00
Christoph von Wittich
c8d74211dc [USBEHCI]
fix some typos

svn path=/trunk/; revision=68236
2015-06-22 10:00:00 +00:00
Eric Kohl
c1b19cee9b [USETUP]
UpdateDiskLayout:
- Resize the layout buffer if necessary.
- Start writing logical partitions to the disk.
- Disable the code that wipes unused table entries. May be enabled later.
Right now, you can only create one logical partition because the link entries are not created yet.

svn path=/trunk/; revision=68235
2015-06-21 20:18:23 +00:00
Thomas Faber
0617f84eda [RTL][NDK][NTDLL_APITEST]
- Properly implement/declare/test RtlCopyMappedMemory... it's not that hard
CORE-9857

svn path=/trunk/; revision=68234
2015-06-21 19:15:01 +00:00
Pierre Schweitzer
adb3662527 [CDFS]
Add a few sanity checks to our handling of ISO 9660 / Joliet:
- Null name entries are forbidden
- Degenerated entries (mistmaching sizes) reveal broken layout

In both cases, the lookup for a file is aborted and the CD considered as corrupted by the FSD.
explorer displays empty CDs then.

CORE-9254 #resolve #comment Fixed with r68233

svn path=/trunk/; revision=68233
2015-06-21 16:47:23 +00:00
Thomas Faber
3faaa34e03 [RTL][NTDLL]
- Add basic implementations of RtlApplicationVerifierStop and RtlCopyMappedMemory for the benefit of some Windows dlls
CORE-9857 CORE-9858 #resolve

svn path=/trunk/; revision=68232
2015-06-21 16:38:44 +00:00
Pierre Schweitzer
8faad3f2aa [CDFS]
Remove redundant code now we have IRP context dispatch

svn path=/trunk/; revision=68231
2015-06-21 14:02:35 +00:00
Daniel Reimer
a800f88087 [TRANSLATION]
Updating Turkish Translation by Erdem Ersoy
CORE-9755 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=68230
2015-06-21 11:20:39 +00:00
Eric Kohl
ac6878aaab [FSLIB]
Remove the HiddenSectors hack because usetup initializes the HiddenSectors value properly.

svn path=/trunk/; revision=68229
2015-06-21 09:39:06 +00:00
Pierre Schweitzer
bdc699aac8 [NTFS]
CcInitializeCacheMap can raise exceptions, wrap it into a SEH block

svn path=/trunk/; revision=68228
2015-06-21 09:26:15 +00:00
Thomas Faber
f8ba038509 [NTOS:CC]
- Raise an exception in case of failure in CcInitializeCacheMap
CORE-9848

svn path=/trunk/; revision=68227
2015-06-21 09:20:01 +00:00
Eric Kohl
38638f5766 [USETUP]
UpdateDiskLayout:
- Set the proper HiddenSectors value.
- Fix counting the PartitonaNumber.
UpdatePartitionNumbers() has become obsolete. Remove it.

svn path=/trunk/; revision=68226
2015-06-21 08:55:43 +00:00
Thomas Faber
e9138ce35a [NTDLL_APITEST]
- Add a test for SystemFlagsInformation that demonstrates the parameter checks performed by NtQuerySystemInformation/NtSetSystemInformation
CORE-9849

svn path=/trunk/; revision=68225
2015-06-21 08:50:10 +00:00
Pierre Schweitzer
f633746280 [NTOSKNRL]
As shown by the non commited yet tests from Thomas, we have to check for privilege in NtSetSystemInformation - SystemFlagsInformation

svn path=/trunk/; revision=68224
2015-06-21 08:07:11 +00:00
Pierre Schweitzer
c6f9fe3713 [NTOSKRNL]
- Probe input buffer for read in NtSetSystemInformation() and call the helpers function in a PSEH block
- For the NtSetSytemInformation - SystemSessionCreate specific case, as we return session ID, probe for write directly there.

svn path=/trunk/; revision=68223
2015-06-21 08:06:25 +00:00
Pierre Schweitzer
c37f5f9e7c [NTOSKRNL]
Revert r68221: probing *should* be done in NtSetSystemInformation()
Let's check there why it's not done instead...

svn path=/trunk/; revision=68222
2015-06-21 05:46:38 +00:00
Pierre Schweitzer
103e282d2d [NTOSKRNL]
Don't trust the user!
Probe buffers in NtSetSystemInformation - SystemSessionCreate and in NtSetSystemInformation - SystemSessionDetach

svn path=/trunk/; revision=68221
2015-06-21 05:40:15 +00:00
Pierre Schweitzer
4453279e3e [NTOSKRNL]
Don't use SYSTEM_INFORMATION_CLASS definition from Wine but from NDK.
Fix naming accordingly

svn path=/trunk/; revision=68220
2015-06-21 05:33:53 +00:00
Thomas Faber
6607052bc0 [SHELL32]
- Use CreateViewObject instead of QueryInterface to get a drop target from a shell folder.
CORE-9846

svn path=/trunk/; revision=68219
2015-06-21 05:30:20 +00:00
Thomas Faber
c146d77c04 [SHELL32]
- Finally give up on that assert. It's not easily fixable
CORE-9839 or CORE-9844 or CORE-9845 or whatever

svn path=/trunk/; revision=68218
2015-06-21 05:21:30 +00:00
Thomas Faber
3d3afdd225 [SHELL32]
- Test your code, Arch! Fix another assertion failure.
CORE-9845 #resolve

svn path=/trunk/; revision=68217
2015-06-21 04:56:38 +00:00
Aleksandar Andrejevic
e2c2d3379b [NTVDM]
Begin upgrading the VGA emulation to SuperVGA emulation
(Cirrus Logic CL-GD5343 compatible).
This is still a WIP. So far only the VCLK and MCLK have been implemented.


svn path=/trunk/; revision=68216
2015-06-21 02:36:20 +00:00
Thomas Faber
8d850ac341 [SHELL32]
- Fix assertion failure in 2nd stage by setting s_IsTerminated when an instance does not yet exist.
- Rename CComCreatorSingleton to CComCreatorCentralInstance since it's not /technically/ a singleton

svn path=/trunk/; revision=68215
2015-06-20 21:46:16 +00:00
Eric Kohl
f7bbd54974 [USETUP]
DumpPartitionTable: Improve the output and print the partition start and length in sectors instead of bytes.

svn path=/trunk/; revision=68214
2015-06-20 18:17:03 +00:00
Eric Kohl
566b655046 [USETUP]
AddDiskToList: Fix the allocation of the disk layout buffer.

CORE-9821 #resolve #comment Please retest.

svn path=/trunk/; revision=68213
2015-06-20 17:59:14 +00:00
Thomas Faber
cf0e32066c [SHELL32]
- Also make My Computer a singleton, as shown by the CMyComputer test. With r68210 and this commit, SHFileOperation on a large number of files is approximately 3 times as fast.
CORE-9839 #resolve

svn path=/trunk/; revision=68212
2015-06-20 17:52:28 +00:00
Thomas Faber
1fd75ca0e4 [GRML]
- Fix build

svn path=/trunk/; revision=68211
2015-06-20 17:04:27 +00:00
Thomas Faber
cc47f60138 [SHELL32]
- Introduce a CComCreatorSingleton class and use it for CDesktopFolder. Multiple calls to SHGetDesktopFolder will now return the same instance, which provides a massive speedup in many shell operations.
CORE-9839

svn path=/trunk/; revision=68210
2015-06-20 16:54:52 +00:00
Thomas Faber
6bb0bec44f [SHELL32_APITEST]
- Add a test for CLSID_MyComputer that shows this folder object is also cached.
CORE-9839

svn path=/trunk/; revision=68209
2015-06-20 16:28:38 +00:00
Thomas Faber
3a77e2ede5 [SHELL32]
- Addendum to r68202
CORE-9839

svn path=/trunk/; revision=68208
2015-06-20 15:23:25 +00:00
Eric Kohl
22d0c7022c [USETUP]
Add support for logical partitions to the partition deletion code.

svn path=/trunk/; revision=68207
2015-06-20 13:42:39 +00:00
Amine Khaldi
01158ef322 [REACTOS][VMWINST][WELCOME] Properly track resource file dependencies. CORE-9806
svn path=/trunk/; revision=68206
2015-06-20 13:03:46 +00:00
Amine Khaldi
cea8c71960 [MMSYS] Move the speaker bitmap up 5 pixels. By Jared Smudde. CORE-9790
svn path=/trunk/; revision=68205
2015-06-20 13:02:14 +00:00
Amine Khaldi
1c1e79e557 [BROWSEUI] Make the view->go to menu items reflect the toolbar buttons status. By Barrett Karish with some slight changes by me. CORE-9800
svn path=/trunk/; revision=68204
2015-06-20 12:59:55 +00:00
Thomas Faber
cf07db224f [ATL]
- Implement CComClassFactorySingleton

svn path=/trunk/; revision=68203
2015-06-20 12:08:13 +00:00
Thomas Faber
dddbfc03a0 [SHELL32]
- Separate CDesktopFolder's IDropTarget out into its own class (since each caller needs its own instance)
CORE-9839

svn path=/trunk/; revision=68202
2015-06-20 10:26:22 +00:00
Thomas Faber
0c99435b9a [ATL]
- Fix compilation when UNICODE is not defined
CORE-9258 #resolve

svn path=/trunk/; revision=68201
2015-06-20 09:22:55 +00:00
Thomas Faber
9046d69084 [SHELL32_APITEST]
- Add a test showing that repeated calls to SHGetDesktopFolder return pointers to the same object, and that its CreateViewObject method instead creates new objects.
CORE-9839

svn path=/trunk/; revision=68200
2015-06-20 09:07:29 +00:00
Thomas Faber
52e13410cb [APITESTS]
- Make CUnknownBase constructor parameters optional

svn path=/trunk/; revision=68199
2015-06-20 08:51:07 +00:00
Hermès Bélusca-Maïto
1509a6fe36 [ROSAPPS]: Merge the two existing CATs into one and improve it (see r66942, r66989 and r66990).
svn path=/trunk/; revision=68198
2015-06-19 22:38:34 +00:00
Eric Kohl
501e32913a [USETUP]
Implement CreateLogicalPartition. Now we can create logical partitons, but they will not be written to a disk yet.

svn path=/trunk/; revision=68197
2015-06-19 19:01:39 +00:00
Thomas Faber
7b8f59932c [ADVAPI32]
- Use a separate heap allocation for the thread parameters to ScServiceMainStub, since the thread can live longer than the ACTIVE_SERVICE structure
CORE-9235

svn path=/trunk/; revision=68196
2015-06-19 18:16:27 +00:00
Thomas Faber
9f97886e2a [WIN32K:NTUSER]
- Restructure co_UserProcessHotKeys to correctly process modifier-only hotkeys. Fixes start menu opening after Win+X shortcuts, and probably several other hotkey-related issues. Thanks to reactosfanboy.
CORE-9728 #resolve

svn path=/trunk/; revision=68190
2015-06-18 15:45:32 +00:00
Thomas Faber
8c4e56def9 [USER32_APITEST]
- Arch, will you stop only testing your code with MSVC?!

svn path=/trunk/; revision=68189
2015-06-18 14:02:55 +00:00
Thomas Faber
484a5f8751 [USER32_APITEST]
- Fail if we get too many WM_HOTKEY messages
CORE-9728

svn path=/trunk/; revision=68188
2015-06-18 13:59:51 +00:00
Thomas Faber
b86dbc4c76 [INCLUDE]
- Fix undocshell.h build without UNICODE defined

svn path=/trunk/; revision=68187
2015-06-18 13:45:17 +00:00
Thomas Faber
171f891e93 [USER32_APITEST]
- Add a simple test for RegisterHotKey with regular vs modifier-only hotkeys
CORE-9728

svn path=/trunk/; revision=68186
2015-06-18 13:41:52 +00:00
Ged Murphy
1a053ef99c [DEVMGR]
- Add tooltips for the toolbar
- Fix the 'disable' button not showing for devices that be disabled
- Some code cleanup / noise

svn path=/trunk/; revision=68185
2015-06-18 13:08:11 +00:00
Ged Murphy
9f2ae55de0 [DEVMGR]
- Add support for WM_ENTERMENULOOP/WM_EXITMENULOOP and update the status bar style to allow hints to be drawn
- Fixup the menu hints

svn path=/trunk/; revision=68184
2015-06-18 11:02:52 +00:00
Amine Khaldi
5a5f8b1df4 [SHELL32] Add printer icons. By Lee Schroeder. CORE-9829
svn path=/trunk/; revision=68183
2015-06-18 10:48:00 +00:00
Ged Murphy
f36c37f8d9 [DEVMGR]
- In 'Devices by Connection, if a device has a problem, expand the treeview to to show that problem device.
- Add a missing break in WM_COMMAND to stop the app from closing
- Fix clearing the lists

svn path=/trunk/; revision=68182
2015-06-18 10:26:30 +00:00
Hermès Bélusca-Maïto
38dbc4f271 [NTVDM]: Implement INT 10h, AX=1018/1019 "Set/Get PEL Mask".
svn path=/trunk/; revision=68181
2015-06-17 23:21:12 +00:00
Ged Murphy
66bbc9e4c1 [DEVMGR]
- Make class and device nodes polymorphic and move the code into separate files
- Add an abstract base class which we attach to the listview nodes
- Add double clicking of nodes

svn path=/trunk/; revision=68180
2015-06-17 21:26:42 +00:00
Pierre Schweitzer
a29eac1548 [CDFS]
Don't attempt to complete an IRP that was took over by FsRtl.

CORE-9777 #resolve #comment Fixed in r68179

svn path=/trunk/; revision=68179
2015-06-17 20:33:08 +00:00
Amine Khaldi
928bb9e412 [CDFS] Update the file paths in the header blocks. NFC
svn path=/trunk/; revision=68178
2015-06-17 20:27:52 +00:00
Pierre Schweitzer
fda3b2bf68 [NDK]
Fix KNODE definition, to be compatible with w2k3.

Thanks to Thomas for his help.

svn path=/trunk/; revision=68177
2015-06-17 20:07:44 +00:00
Amine Khaldi
972e24df5e [SHELL32] Report file system changes in SHChangeNotifyRegister. Brought to you by Huw Campbell. CORE-1171
svn path=/trunk/; revision=68176
2015-06-17 19:55:43 +00:00
Thomas Faber
2abff2a105 [FASTFAT]
- Set the correct length in FsdGetFsVolumeInformation/FsdGetFsAttributeInformation, and write back partial data when returning STATUS_BUFFER_OVERFLOW
- Replace unnecessary checks with ASSERTs
CORE-9820 #resolve

svn path=/trunk/; revision=68175
2015-06-17 19:19:39 +00:00
Amine Khaldi
dc03297c13 [SHELL32] Fix IDI_SHELL_EXTENDED_PROPERTIES, use the icons 6 and 7 for floppy drive and remove floppy.ico. By Jared Smudde. CORE-9804
svn path=/trunk/; revision=68174
2015-06-17 18:30:14 +00:00
Pierre Schweitzer
de7f49ecd3 [NTOSKRNL]
Implement NtQuerySystemInformation - SystemNumaAvailableMemory
Stub out NtQuerySystemInformation - SystemPrefetcherInformation
Stub out NtQuerySystemInformation - SystemExtendedProcessInformation
Stub out NtQuerySystemInformation - SystemRecommendedSharedDataAlignment

svn path=/trunk/; revision=68173
2015-06-17 18:23:39 +00:00
Amine Khaldi
bb203b40e4 [CRYPTUI][NETSHELL] Add some missing DS_MODALFRAME. By Jared Smudde. CORE-9822
svn path=/trunk/; revision=68172
2015-06-17 17:32:48 +00:00
Pierre Schweitzer
0b3c4c8734 [NTOSKRNL]
Completely implement Complete NtQuerySystemInformation - SystemNumaProcessorMap

CORE-9680

svn path=/trunk/; revision=68171
2015-06-17 17:28:19 +00:00
Amine Khaldi
564ff01f3d [APPLICATIONS] Properly track resource file dependencies. CORE-9806
svn path=/trunk/; revision=68170
2015-06-17 17:20:29 +00:00
Ged Murphy
d9a14b3064 [DEVMGR]
- Make sure the device nodes use the latest device status'

svn path=/trunk/; revision=68169
2015-06-17 08:38:34 +00:00
Christoph von Wittich
7e9f045d24 [DEVMGMT]
fix a typo

svn path=/trunk/; revision=68168
2015-06-17 08:24:05 +00:00
Ged Murphy
fc3ebc1877 [DEVMGR]
- Add the (not yet dynamic) context menu
- Implement right click node select

svn path=/trunk/; revision=68167
2015-06-17 08:15:08 +00:00
Thomas Faber
ab14879b70 [NTDLL_APITEST]
- Also test FileFsAttributeInformation in NtQueryVolumeInformationFile

svn path=/trunk/; revision=68166
2015-06-17 06:54:17 +00:00
Ged Murphy
a676d524c9 [DEVMGR]
- Move the devmgmt code to devmgr where it belongs and start to rewrite it (devmgmt_new wasn't a good design). It's not part of devmgr yet, I'll merge it and add it to the build when it's more complete.
- Add support for caching devices to speed up switching device views
- start to add dynamic context support so we can enable/disable, update and uninstall devices depending on its state.
- WIP

svn path=/trunk/; revision=68165
2015-06-16 21:13:28 +00:00
Ged Murphy
89f1ac6897 [DEVMGMT]
Add the icon back

svn path=/trunk/; revision=68164
2015-06-16 12:45:24 +00:00
Ged Murphy
5e1ecf69f1 [DEVMGMT]
The new device manager will be located in devmgr.dll

svn path=/trunk/; revision=68163
2015-06-16 12:22:14 +00:00
Ged Murphy
a68dd56665 [DEVMGR]
Make the header c++ friendly

svn path=/trunk/; revision=68162
2015-06-16 12:18:01 +00:00
Thomas Faber
bfe3738fc9 [NTDLL_APITEST]
- Fix GCC build

svn path=/trunk/; revision=68161
2015-06-16 11:40:51 +00:00
Thomas Faber
7a983aa51b [NTDLL_APITEST]
- Test FileFsVolumeInformation in NtQueryVolumeInformationFile test
CORE-9820

svn path=/trunk/; revision=68160
2015-06-16 11:33:35 +00:00
Hermès Bélusca-Maïto
93c0a8a1a0 [NTVDM]: Commit what I have in my local wc so far (and which is commitable & works):
- Simplify PicIRQComplete helper function.
- Set up temporary stack for the BIOS.
- Initialize the "User Data Area" that is found at 0050:xxxx (see http://helppc.netcore2k.net/table/memory-map for more details).
- Some INT --> UINT
- Simplify few macros.
- Simplify DOS initialization; add few functions that will be useful later on.
- Remove trailing whitespace.

svn path=/trunk/; revision=68159
2015-06-15 23:43:16 +00:00
Eric Kohl
3a9b7ef77e [USETUP]
Improve the recovery console:
- Add help texts.
- Implement the partinfo command which displays the partition table of the chosen drive.

svn path=/trunk/; revision=68158
2015-06-15 22:44:12 +00:00
Amine Khaldi
67137377fb [UDFS] Remove definitions that exist in platform headers and use those instead.
svn path=/trunk/; revision=68157
2015-06-15 21:19:04 +00:00
Eric Kohl
e8fdb27bd1 [USETUP]
Fix broken filesystem detection.
- Treat FAT32 filesystems like FAT filesystems because we do not provide a FAT32 entry in the filesystemlist.
- HACK: Do not try to check an unidentified filesystem.

CORE-9815 #resolve

svn path=/trunk/; revision=68156
2015-06-15 20:47:30 +00:00
Amine Khaldi
aa4376498d [THEMEUI] Revert r67304 (Leverage add_registry_inf() as suggested by Timo). Figuring out why that doesn't work is left as an exercise for the reader. See CORE-5984 for details.
svn path=/trunk/; revision=68155
2015-06-15 20:42:08 +00:00
Amine Khaldi
f8effe197f [CMAKE] Use a separate set for the optimization level in GCC release builds. We should revisit this to see if we need this rbuild era block nowadays.
svn path=/trunk/; revision=68154
2015-06-15 18:59:46 +00:00
Amine Khaldi
ef6a028073 [CMAKE] Disable treating warnings as errors in GCC release builds, at least until we get everything under control, for example CORE-7885.
svn path=/trunk/; revision=68153
2015-06-15 18:48:38 +00:00
Thomas Faber
4945778e7d [NTOS:CC]
- Properly stub CcCanIWrite, CcDeferWrite, CcFastCopyRead, CcFastCopyWrite
CORE-9624

svn path=/trunk/; revision=68152
2015-06-15 18:44:08 +00:00
Amine Khaldi
820f01a764 [NDK][NTDLL][PSAPI] Correct the the names of two LDR_DATA_TABLE_ENTRY fields. Brought to you by Mike Nordell aka tamlin. CORE-9817
svn path=/trunk/; revision=68151
2015-06-15 18:38:57 +00:00
Amine Khaldi
7a3b665ba3 [CMAKE] Add some FIXMEs so these won't be forgotten.
svn path=/trunk/; revision=68150
2015-06-15 17:45:24 +00:00
Amine Khaldi
2d7fe93b09 [CMAKE] Disable debug sections compression in GCC release builds.
svn path=/trunk/; revision=68149
2015-06-15 17:35:29 +00:00
Amine Khaldi
983d1bf043 [CMAKE] Disable debugging related GCC flags in release mode.
svn path=/trunk/; revision=68148
2015-06-15 17:26:04 +00:00
Amine Khaldi
74c80a51dd [CMAKE] Disable rossym for GCC release builds.
svn path=/trunk/; revision=68147
2015-06-15 16:43:11 +00:00
Daniel Reimer
ad9dc105b0 [UDFS]
Use the same fix for the PIMAGE_NT_HEADERS32 redefinition which is bein used in uniata. Spotted by Thomas Faber

svn path=/trunk/; revision=68146
2015-06-15 11:59:49 +00:00
Daniel Reimer
da7e2c1c32 [ARM arch]
PATCH: Get configure and host-tools building on arm again by Steven Edwards from dev-ml
+ adding Timo's portable sqrt variant to where it's needed to fix win32k build.
+ disabled the assert in sqrt.c for now.

svn path=/trunk/; revision=68145
2015-06-15 11:40:33 +00:00
Daniel Reimer
1b5231d4ed [UDFS]
Fix compilation for AMD64 and ARM.
- It's no good idea to use the x86 ASM optimizations on any architecture. Luckily Alter made plain C++ ones for that case, too. Thus modify the #ifdefs a bit to use em.
- Fix a few directly used functions instead of the defined architecture fixed ones of em.
- After some discussion with Thomas Faber the ULONG vs UINT32 problems were resolved by using the same platform defines for all three architectures.
BUILDS? yes WORKS? Trololololo ^^

svn path=/trunk/; revision=68144
2015-06-15 11:35:30 +00:00
Daniel Reimer
6d2d280649 [UDFS]
VC makefiles and their deps are not needed for us.

svn path=/trunk/; revision=68143
2015-06-15 01:35:25 +00:00
Pierre Schweitzer
3e7c3b4697 [NTOSKRNL]
Complete NtQuerySystemInformation - SystemNumaProcessorMap stub so that it is possible to query the highest node number (and only that!)

CORE-9680

svn path=/trunk/; revision=68142
2015-06-14 19:58:45 +00:00
Pierre Schweitzer
5ee87f9ad5 [NTOSKRNL]
Stub out NtSetSystemInformation - SystemLoadGdiDriverInSystemSpaceInformation
Stub out NtQuerySystemInformation - SystemNumaProcessorMap

svn path=/trunk/; revision=68141
2015-06-14 19:27:19 +00:00
Pierre Schweitzer
4bcdd47a49 [KERNEL32]
Fix stupidness, spotted by Thomas

svn path=/trunk/; revision=68140
2015-06-14 18:54:57 +00:00
Hermès Bélusca-Maïto
1011d89eaa [TOOLS]
Improve bin2c by saving in a #define the size of the generated array, and specify this size in the declaration of the array so that doing sizeof(...) becomes possible. Use "unsigned char" as the (portable) type of the contents of the array.

[HAL]
Add PCHAR casts where needed to take into account the previous modifications.

svn path=/trunk/; revision=68139
2015-06-14 18:13:50 +00:00
Hermès Bélusca-Maïto
2893d3c4ad [NTVDM]: Allocate a dedicated block of memory for the mouse driver, in which we write all the needed info (instead of putting them in the BIOS space). The INT32 stubs go in this region, too.
svn path=/trunk/; revision=68138
2015-06-14 16:40:45 +00:00
Pierre Schweitzer
a4ff3c9e3f [KERNEL32]
Addendum to r68136: use appropriate define.
Spotted by Thomas

svn path=/trunk/; revision=68137
2015-06-14 16:00:27 +00:00
Pierre Schweitzer
0680a926e0 [KERNEL32]
Implement GetNumaHighestNodeNumber()
Implement GetNumaNodeProcessorMask()
Implement GetNumaProcessorNode()
Implement GetNumaAvailableMemoryNode()

They won't work yet though, given that the kernel mode counterpart is still unimplemented.

CORE-9680

svn path=/trunk/; revision=68136
2015-06-14 15:52:28 +00:00
Pierre Schweitzer
b0cffa2e64 [NDK]
Add definition for SYSTEM_NUMA_INFORMATION

Source: http://fy5388.blog.163.com/blog/static/564995372009112711571197/

svn path=/trunk/; revision=68135
2015-06-14 15:49:39 +00:00
Hermès Bélusca-Maïto
64a8bbf00f [NTVDM]
- Stubplement the font generator functions for text-mode.
- Store in plane 2+ the font ONLY in text mode (guilty r68085). Fixes spurious graphics corruption in gfx modes.
CORE-9791
CORE-9794 #resolve #comment Should be fixed in r68134.

svn path=/trunk/; revision=68134
2015-06-14 15:35:38 +00:00
Thomas Faber
be73844e6c [MC]
- Add missing status codes STATUS_SMARTCARD_CERT_EXPIRED through STATUS_NO_S4U_PROT_SUPPORT.
CORE-8373

svn path=/trunk/; revision=68133
2015-06-14 11:19:02 +00:00
Thomas Faber
9c0c299bb9 [MSAFD]
- Fix error mapping for STATUS_INVALID_CONNECTION
CORE-9810 CORE-9807 #resolve

svn path=/trunk/; revision=68132
2015-06-14 08:03:15 +00:00
Thomas Faber
e2985287b0 [AFD]
- Immediately finish a zero-length request in TdiSendDatagram. This may not be completely correct (should possibly get forwarded to tcpip instead) but is better than asserting.
CORE-9810

svn path=/trunk/; revision=68131
2015-06-14 07:58:58 +00:00
Thomas Faber
9df20e14a3 [AFD]
- Don't leave the IRP queued if TdiSendDatagram does not perform its downcall. Complete it instead.
CORE-9810

svn path=/trunk/; revision=68130
2015-06-14 07:54:19 +00:00
Thomas Faber
b5c2e0b0d1 [AFD]
- Fail sends on sockets that are not connected in AfdConnectedSocketWriteData
CORE-9810

svn path=/trunk/; revision=68129
2015-06-14 07:48:28 +00:00
Thomas Faber
b5319f8a97 [PSDK]
- Add STATUS_INVALID_SIGNATURE through STATUS_PROTOCOL_NOT_SUPPORTED

svn path=/trunk/; revision=68128
2015-06-14 07:44:06 +00:00
Aleksandar Andrejevic
7d7bef9d4a [NTOS|MM]
Addendum to 68126. The loader should return STATUS_INVALID_IMAGE_PROTECT
if e_lfanew is 0, or if the DOS stub appears too large due to a bad
e_lfanew. (Note: All plain MZ executables have an invalid e_lfanew)


svn path=/trunk/; revision=68127
2015-06-14 04:07:11 +00:00
Aleksandar Andrejevic
5c16c47c54 [NTOS|MM]
Return STATUS_INVALID_IMAGE_PROTECT if the NT header can't be read from the file.


svn path=/trunk/; revision=68126
2015-06-14 01:37:56 +00:00
Aleksandar Andrejevic
cecde584e8 [FAST486]
FPU exceptions are delayed until the next non-control FPU instruction.


svn path=/trunk/; revision=68125
2015-06-13 23:12:55 +00:00
Eric Kohl
84d963d77a [USETUP]
AssignDriveLetters: Fix the code that assigns drive letters to logical partitions.

svn path=/trunk/; revision=68124
2015-06-13 23:11:57 +00:00
Timo Kreuzer
0dfd2330e2 [NTOSKRNL]
- Set VadType = VadImageMap for image section mappings
- Rewrite MmGetFileNameForAddress and NtAreMappedFilesTheSame. Take into account that the first address must be an image section mapping
- Fixes a few kernel32_winetest:virtual tests
CORE-9736 #resolve

svn path=/trunk/; revision=68123
2015-06-13 19:18:25 +00:00
Eric Kohl
1d240a84ee [USETUP]
Allocate a disk layout buffer that is large enough to keep all partitions of the disk.

CORE-5818 resolve

svn path=/trunk/; revision=68122
2015-06-13 12:46:42 +00:00
Thomas Faber
09b36e8cd5 [AFD]
- Probe for read access only in TdiSend/TdiSendDatagram
CORE-9807 resolve

svn path=/trunk/; revision=68121
2015-06-13 12:30:33 +00:00
Thomas Faber
d555f45389 [WS2_32_APITEST]
- Add a test for send/sendto with a read-only buffer
CORE-9807

svn path=/trunk/; revision=68120
2015-06-13 12:29:07 +00:00
Amine Khaldi
cbfd0d8498 [SERVMAN] Use a glob mechanism as resource files lists do not change often. CORE-9806
svn path=/trunk/; revision=68119
2015-06-13 11:41:32 +00:00
Amine Khaldi
3ca11592cc [SERVMAN] Properly track resource file dependencies. CORE-9806
svn path=/trunk/; revision=68118
2015-06-13 11:12:48 +00:00
Amine Khaldi
1b969c0a85 [CMAKE] Introduce add_rc_deps() to take care of adding OBJECT_DEPENDS to rc source files. CORE-9806
svn path=/trunk/; revision=68117
2015-06-13 11:05:03 +00:00
Amine Khaldi
fcbc8f277a [USER32][UXTHEME] Properly paint the general menubar when application is themed. Brought to you by Stefano Toncich aka Tonix. CORE-9585
svn path=/trunk/; revision=68116
2015-06-13 11:00:24 +00:00
Eric Kohl
be9ea7e123 [USETUP]
Get rid of CheckForLinuxFdiskPartitions.

svn path=/trunk/; revision=68115
2015-06-13 10:08:36 +00:00
Daniel Reimer
e93ccca737 [USETUP]
Update german language header.

svn path=/trunk/; revision=68114
2015-06-12 23:37:41 +00:00
Eric Kohl
063de8230b [USETUP]
Mark a disk as clean after the partition table has been written to the disk.

svn path=/trunk/; revision=68113
2015-06-12 22:56:36 +00:00
Eric Kohl
76e910579c [USETUP]
- Implement mandatory filesystem selection, formatting and filesystem checks for all new partitons.
- Implement optional filesystem selection, formatting and filesystem checks for formatted boot and install partitions.
- Enable installing ReactOS on primary partitions other than the first one. Usetup will install Freeloader on the first (or active) partition (aka boot partition) and install ReactOS on the chosen partition (aka install partition).

svn path=/trunk/; revision=68112
2015-06-12 21:51:57 +00:00
Amine Khaldi
55ee8217db [COMCTL32][EXPLORER][UXTHEME] Properly draw the taskbar rebar when themes are enabled. Brought to you by Stefano Toncich aka Tonix. CORE-8901
svn path=/trunk/; revision=68111
2015-06-12 19:11:48 +00:00
Aleksandar Andrejevic
70a31e656a [NTVDM]
Make fast memory hooks FASTCALL.
Only register the VGA memory hook for the region that needs to be hooked.


svn path=/trunk/; revision=68110
2015-06-12 16:25:23 +00:00
Aleksandar Andrejevic
c063145e96 [FAST486][NTVDM]
Use FASTCALL instead of NTAPI. Merge EmulatorReadMemory with MemRead and
EmulatorWriteMemory with MemWrite.


svn path=/trunk/; revision=68109
2015-06-12 03:30:40 +00:00
Hermès Bélusca-Maïto
845fdcac41 [NTVDM]: The DOS session ID specified in the NTVDM command line is in hexadecimal format (and not decimal!). Fixes NTVDM start with double-click after 9-10 launches, on ROS and Windows.
svn path=/trunk/; revision=68108
2015-06-12 01:19:19 +00:00
Aleksandar Andrejevic
4269196da9 [FAST486]
The VM flag must be cleared before loading the new stack segment on a return
from v86 mode.


svn path=/trunk/; revision=68107
2015-06-11 21:52:46 +00:00
Pierre Schweitzer
ad577755ca [NTFS]
- Use a lookaside list for FCB allocation
- Properly delete FCB in NtfsMountVolume()

svn path=/trunk/; revision=68106
2015-06-11 20:54:01 +00:00
Christoph von Wittich
658c64a7fe [HAL]
replace ' laH' by TAG_HAL

svn path=/trunk/; revision=68105
2015-06-11 18:38:52 +00:00
Daniel Reimer
67e8c26969 [DEVMGR]
Replace all E/A (German Eingabe/Ausgabe) -> I/O (Input/Output) EXCEPT in the german RC file.

svn path=/trunk/; revision=68103
2015-06-10 21:45:45 +00:00
Daniel Reimer
3aa5d0fc69 [GDI32]
[USER32]
Fix release build.

svn path=/trunk/; revision=68102
2015-06-10 12:04:51 +00:00
Daniel Reimer
971503da5d [ROSHTTPD]
Fix release build

svn path=/trunk/; revision=68101
2015-06-10 12:01:01 +00:00
Amine Khaldi
b6f88d3326 [USETUP] 1024 * 1024 is 1048576 not 1048756. Spotted by Mike Nordell aka tamlin. CORE-9792
svn path=/trunk/; revision=68100
2015-06-10 09:56:48 +00:00
Hermès Bélusca-Maïto
3e0d421012 [NTVDM]
- Some INT --> UINT fixes.
- Fix the third value of MemorySizes according to the specification, confirmed by Aleksander.

svn path=/trunk/; revision=68099
2015-06-10 01:30:30 +00:00
Amine Khaldi
3ea683ba53 [SYSSETUP][UNATTENDED] Add a way to disable Gecko install. Brought to you by V.
svn path=/trunk/; revision=68098
2015-06-09 23:20:33 +00:00
Amine Khaldi
f52d4e3c8d [RAPPS] Missed this bit.
svn path=/trunk/; revision=68097
2015-06-09 22:51:50 +00:00
Amine Khaldi
6a8943cf42 [RAPPS] Fix the fact that the rapps download dialog uses the 32pixel icon for the download window. By Ismael Ferreras Morezuelas (IRC name swyter). CORE-9750
svn path=/trunk/; revision=68096
2015-06-09 22:49:12 +00:00
Aleksandar Andrejevic
f3c5b91037 [NTVDM]
Implement cycle-based timing for VGA.


svn path=/trunk/; revision=68095
2015-06-09 19:22:52 +00:00
Christoph von Wittich
d4365a1beb [WIN32K]
fix some file headers and typos

svn path=/trunk/; revision=68094
2015-06-09 17:43:00 +00:00
Daniel Reimer
5765e6951a [TRANSLATIONS]
Add/Update Chinese (zh-CN) translation by Henry Tang Ih
CORE-9003 #comment V5 patch committed, thx ^^

svn path=/trunk/; revision=68093
2015-06-09 16:21:25 +00:00
Daniel Reimer
f4e66ec3af [rapps]
Add zh-CN translation in RAPPS by Henry Tang Ih
CORE-9554 #resolve #comment Committed v4 and v5. Thx ^^

svn path=/trunk/; revision=68092
2015-06-09 16:12:17 +00:00
Aleksandar Andrejevic
a9a14ab22b [NTVDM]
Properly clear the video memory when switching to a different mode.


svn path=/trunk/; revision=68091
2015-06-09 14:48:30 +00:00
Aleksandar Andrejevic
e730ef4e7d [NTVDM]
Adjust Bda->ScreenColumns in graphics modes. Fix line wrapping.


svn path=/trunk/; revision=68090
2015-06-09 14:00:43 +00:00
Hermès Bélusca-Maïto
d15ab1916a [NTVDM]: Fix INT 10h, AH=09h/0Ah by correctly advancing the write position (but scrolling is not supported in those functions), and make VidBiosDrawGlyph support using or not the attribute byte (for text modes only).
svn path=/trunk/; revision=68088
2015-06-09 12:47:58 +00:00
Amine Khaldi
07d842f6c6 [UDFS] Fix all GCC warnings! By V. with one little change by me to keep MSVC build working :)
svn path=/trunk/; revision=68087
2015-06-09 10:40:26 +00:00
Aleksandar Andrejevic
7395dd7c82 [NTVDM]
Implement drawing characters for all supported video modes.


svn path=/trunk/; revision=68086
2015-06-09 04:03:27 +00:00
Hermès Bélusca-Maïto
d1e9089ea0 [NTVDM]: Properly set the character height in the BDA per-mode (it appears that they are decorrelated, in video mode, with the CRTC settings, so I need to store the size separately instead of computing it by hand); correctly set the proper font when chaanging modes.
svn path=/trunk/; revision=68085
2015-06-09 00:56:08 +00:00
Eric Kohl
98710e2c01 [DEVMGR]
Display device relations.

svn path=/trunk/; revision=68084
2015-06-08 23:54:18 +00:00
Eric Kohl
e2952ec3d1 [UMPNPMGR]
Implement first part of PNP_GetDeviceList and PNP_GetDeviceListSize.

svn path=/trunk/; revision=68083
2015-06-08 23:29:59 +00:00
Hermès Bélusca-Maïto
173bc48053 [NTVDM]: Fix my fix (r68005) of fix of r68003 aka. properly set the FirstBoot variable so that we can detect cold reboots.
svn path=/trunk/; revision=68082
2015-06-08 21:06:28 +00:00
Eric Kohl
5e2fe69e38 [UDFS]
Remove license, evaluation and demo features. They makes no sense in an open source driver.

svn path=/trunk/; revision=68081
2015-06-08 19:54:46 +00:00
Aleksandar Andrejevic
8469eeff5e [FAST486]
Add constants for numeric limits.


svn path=/trunk/; revision=68079
2015-06-08 15:56:19 +00:00
Aleksandar Andrejevic
ea6ec077c9 [FAST486]
Fix IMUL. MINSHORT and MAXSHORT aren't good constants since they don't have
a (SHORT) cast, and (LONG)((SHORT)MINSHORT) is uglier than just using -32768.


svn path=/trunk/; revision=68078
2015-06-08 15:25:48 +00:00
Amine Khaldi
d87b37c078 [MMSYS] Addendum to r68073. CORE-9580
svn path=/trunk/; revision=68077
2015-06-08 15:08:16 +00:00
Amine Khaldi
0f20f1f0b7 [UDFS] Add a PCH.
svn path=/trunk/; revision=68076
2015-06-08 14:27:09 +00:00
Amine Khaldi
c5c93fc98b [UDFS] Explicitly mention the license (GPLv2).
svn path=/trunk/; revision=68075
2015-06-08 14:24:47 +00:00
Eric Kohl
8e26f382d9 [NTOSKRNL]
Add NtPlugPlayControl.PlugPlayControlQueryDeviceRelations.

svn path=/trunk/; revision=68074
2015-06-08 14:02:36 +00:00
Amine Khaldi
888c2fb967 [MMSYS] Add new MIDI, Play and Stop icons. By Henry Tang Ih, corrected by Jared Smudde. CORE-9580
svn path=/trunk/; revision=68073
2015-06-08 13:41:05 +00:00
Aleksey Bragin
90df906826 [GDI]
Remove unused macros around non-existing GDIOBJ_Free* functions.

svn path=/trunk/; revision=68072
2015-06-08 13:20:18 +00:00
Amine Khaldi
2c6ad1891f [LAUTUS] Lautus theme improvements by Jared Smudde. See CORE-9770 for details.
svn path=/trunk/; revision=68071
2015-06-08 12:09:12 +00:00
Amine Khaldi
073b64f1bc [BROWSEUI] Disable the Up button when we navigate up to the desktop. By Barrett Karish. CORE-8881
svn path=/trunk/; revision=68070
2015-06-08 12:01:53 +00:00
Amine Khaldi
66b9b5427f [OLE32_APITEST] Add test for IInitializeSpy. By Mark Jansen. See ROSTESTS-175 for more details.
svn path=/trunk/; revision=68069
2015-06-08 11:05:35 +00:00
Amine Khaldi
820994b29f [MMSYS] Do not disable a group box when no mixers are detected. By Jared Smudde. CORE-9776
svn path=/trunk/; revision=68068
2015-06-08 11:00:48 +00:00
Amine Khaldi
05cfb81d81 [USER32_WINETEST] Sync with Wine Staging 1.7.43.
svn path=/trunk/; revision=68067
2015-06-08 10:56:37 +00:00
Aleksandar Andrejevic
441b62e7eb [NTVDM]
Fix INT 21h, AH=55h. It's supposed to set the current PSP too.
Fix the order of registers in DOS_REGISTER_STATE to make it more compatible.


svn path=/trunk/; revision=68066
2015-06-07 23:07:15 +00:00
Aleksandar Andrejevic
f37afd481a [NTVDM]
Revert r67603, apparently DosTerminateProcess should just always pop the registers.
Make our DOS_REGISTERS_STATE structure more compatible.


svn path=/trunk/; revision=68065
2015-06-07 20:29:56 +00:00
Amine Khaldi
9ae8d00e9b [XDK][PSDK][DDK] Fix packing of TOKEN_STATISTICS. Fixes GCC build.
svn path=/trunk/; revision=68064
2015-06-07 19:27:33 +00:00
Amine Khaldi
c88d661b1b [XDK][PSDK][DDK] Share more Se types between winnt and ntifs. Also add missing and improve some existing types and definitions in winnt to match the other.
svn path=/trunk/; revision=68063
2015-06-07 18:49:31 +00:00
Eric Kohl
071eb9ad40 [DISK]
Revert accidential changes.

svn path=/trunk/; revision=68062
2015-06-07 13:44:49 +00:00
Amine Khaldi
f1e3085aa8 [XDK][PSDK][DDK] Share more Se types between winnt and ntddk/ntifs/wdm. Also add missing and improve some existing types and definitions in winnt to match the others.
svn path=/trunk/; revision=68061
2015-06-07 13:14:36 +00:00
Amine Khaldi
36447efe6e [XDK] Add some workarounds for the UM/KM types mismatches.
svn path=/trunk/; revision=68060
2015-06-07 13:01:46 +00:00
Eric Kohl
62aa5d355b [DISK]
Get rid of explicit status definition. Import ntiologc.h instead.

svn path=/trunk/; revision=68059
2015-06-07 11:46:34 +00:00
Amine Khaldi
b0f2f00f53 [XDK][PSDK][DDK] Share some Se types between winnt and ntifs/wdm. WIP.
svn path=/trunk/; revision=68058
2015-06-07 09:57:36 +00:00
Amine Khaldi
42d76b52a0 [XDK] Add some workarounds for the UM/KM types mismatches.
svn path=/trunk/; revision=68057
2015-06-07 09:28:56 +00:00
Amine Khaldi
725b5f5a6e [XDK] Correct the paths for some output headers.
svn path=/trunk/; revision=68056
2015-06-07 09:13:09 +00:00
Aleksandar Andrejevic
22fff9076e [NTVDM]
Fix the previous fix.


svn path=/trunk/; revision=68055
2015-06-07 02:51:06 +00:00
Aleksandar Andrejevic
42155044da [NTVDM]
Stubplement INT 25h and INT 26h. These interrupt calls are really weird since
they don't IRET on return, so the default interrupt stub messes up the stack.


svn path=/trunk/; revision=68054
2015-06-07 02:49:54 +00:00
Amine Khaldi
8a8d30c688 [LOTUS] Create the textfiles folder in preparation for the output files.
svn path=/trunk/; revision=68053
2015-06-06 22:24:42 +00:00
Amine Khaldi
3a721ec184 [SHELL32] Add colon to Recycle Bin properties. By Jared Smudde. CORE-9771
svn path=/trunk/; revision=68052
2015-06-06 21:09:05 +00:00
Amine Khaldi
debb8a2b7f [LAUTUS] Make the text files UTF-8 without BOM, and convert them to UTF-16 LE at compile time. Remove the now unneeded application/octet-stream type property and set native EOL one. CORE-9770
svn path=/trunk/; revision=68051
2015-06-06 18:27:12 +00:00
Amine Khaldi
084970da0a [FONTVIEW][HIVECLS] File filter improvements by Lee Schroeder. See CORE-9763 for details.
svn path=/trunk/; revision=68050
2015-06-06 17:20:49 +00:00
Amine Khaldi
7a90496c39 [UXTHEME] Add a missing WS_EX_DLGMODALFRAME check from the unthemed titlebar drawing code. By Ismael Ferreras Morezuelas (IRC name swyter). CORE-9635
svn path=/trunk/; revision=68049
2015-06-06 17:08:21 +00:00
Hermès Bélusca-Maïto
94ad6e5990 Really fix r68047.
svn path=/trunk/; revision=68048
2015-06-06 15:39:25 +00:00
Amine Khaldi
afc5e24006 [LAUTUS] Revert r68045. Things are not always what they seem (tm).
svn path=/trunk/; revision=68047
2015-06-06 15:24:52 +00:00
Amine Khaldi
a38569842b [UDFS] Remove some unneeded headers, we have our own. CORE-9774
svn path=/trunk/; revision=68046
2015-06-06 15:23:00 +00:00
Amine Khaldi
d533ede7a9 [LAUTUS] These ini files do not seem to be of application/octet-stream type.
svn path=/trunk/; revision=68045
2015-06-06 15:14:16 +00:00
Amine Khaldi
a92db93809 [HIVECLS] Add the needed registry items for AssocGetPerceivedType. By Mark Jansen. CORE-9754
svn path=/trunk/; revision=68044
2015-06-06 14:30:30 +00:00
Amine Khaldi
bb6348e9a3 [SHLWAPI_WINETEST] Add tests for AssocGetPerceivedType. By Mark Jansen. CORE-9754
svn path=/trunk/; revision=68043
2015-06-06 14:27:39 +00:00
Amine Khaldi
9a780542fc [SHLWAPI] Implement AssocGetPerceivedType. By Mark Jansen. CORE-9754
svn path=/trunk/; revision=68042
2015-06-06 14:23:05 +00:00
Amine Khaldi
390609a4f4 [UDFS] Enable the GCC build now. CORE-9774
svn path=/trunk/; revision=68041
2015-06-06 14:05:59 +00:00
Amine Khaldi
889b50cfdf [UDFS] Fix includes. CORE-9774
svn path=/trunk/; revision=68040
2015-06-06 13:48:19 +00:00
Hermès Bélusca-Maïto
765cdc072a [NTVDM]: Update the character height value in the BDA each time we set up a different graphics font. Also, update the ScreenRows variable accordingly (taken from dosbox).
svn path=/trunk/; revision=68039
2015-06-06 13:21:25 +00:00
Amine Khaldi
24a6ef1789 [UDFS] Fix an include. CORE-9774
svn path=/trunk/; revision=68038
2015-06-06 13:07:21 +00:00
Amine Khaldi
9a67ed6926 [UDFS] Svn add some missing files. CORE-9774
svn path=/trunk/; revision=68037
2015-06-06 12:57:53 +00:00
Amine Khaldi
7504b2b969 [UDFS] Import a UDF File System Driver created by Alexander Telyatnikov (Alter) and co. Many thanks to Alexander Rechitskiy (jeditobe), the negotiator for opening the source of the whole software package (DVD Write Now) under the GPLv2 license and to the authors for kindly accepting to do so. I introduced many changes to the original code (made it use our PSEH3 for SEH, got it to compile from within ReactOS in both MSVC and Windows GCC builds...etc) and it's still WIP. We'll hopefully have an excellent collaboration to improve it and maintain its sync.. Stay tuned ;) CORE-9774
svn path=/trunk/; revision=68036
2015-06-06 12:52:13 +00:00
Amine Khaldi
f89c69d7fd [KERNEL32] Apply Wine commit 80695cd by Akihiro Sagawa: Return correct buffer size when returning DBCS characters. CORE-9246
svn path=/trunk/; revision=68034
2015-06-06 12:25:23 +00:00
Amine Khaldi
2d7936f464 [KERNEL32] Apply Wine commit 89a558f by Akihiro Sagawa: Avoid uninitialised value read in GetCalendarInfoA. CORE-9246
svn path=/trunk/; revision=68033
2015-06-06 12:22:55 +00:00
Amine Khaldi
9ed7ee953b [HIVECLS] Improvements to MIME types by Jared Smudde. CORE-9762
svn path=/trunk/; revision=68032
2015-06-06 12:07:16 +00:00
Christoph von Wittich
2ea30bfeae [NTOSKRNL]
do not set ReturnLength in ProcessWow64Information error case
add size check in PROCESSOR_POWER_INFORMATION stub

svn path=/trunk/; revision=68031
2015-06-06 09:36:01 +00:00
Christoph von Wittich
451c233f29 [HAL]
fix a typo
add BusAddress to DPRINT

svn path=/trunk/; revision=68030
2015-06-06 08:37:53 +00:00
Aleksandar Andrejevic
b0c5426a7c [NTVDM]
Programs don't expect the XMS function AH = 07h to access the keyboard
controller, since the specification says it's done in a hardware-independent
way. So, reimplement this function by calling EmulatorGetA20() instead.
Also, for the sake of simplicity, use EmulatorSetA20 instead of PCAT_A20Control
to change the A20 state.


svn path=/trunk/; revision=68029
2015-06-06 02:22:36 +00:00
Aleksandar Andrejevic
50f36e7cb3 [NTVDM]
- Implement the DOS idle interrupt.
- Link to the parent's environment block by default in DosCreatePsp.
- Fix INT 21h/36h (Get Free Space) to report 0xFFFF if the number
of clusters is too high to fit in a word.


svn path=/trunk/; revision=68028
2015-06-05 22:22:04 +00:00
Aleksandar Andrejevic
44d853be5b [FAST486]
opgroups.c: We shouldn't restore SP in the opcode handler as that might
interfere with triple faults. Also, in this case it's also wrong because
the exception procedure already restores the stack pointer.
common.c: Fix a comment, no code changes.


svn path=/trunk/; revision=68027
2015-06-05 20:03:55 +00:00
Eric Kohl
c3834b6428 [SYSSETUP]
- Add missing VolumeClassInstaller export.
- Implement TapeClassInstaller and VolumeClassInstaller.

svn path=/trunk/; revision=68026
2015-06-05 19:09:41 +00:00
Amine Khaldi
b6e76c0f6b [NTOSKRNL] Fix NtQuerySystemInformation not returning correct ResultLength for SystemFileCacheInformation. Fixes tons of ntdll:info tests. Brought to you by Tetsui Ohkubo. CORE-9757
svn path=/trunk/; revision=68024
2015-06-05 17:57:28 +00:00
Eric Kohl
f5cb18efea [SYSSETUP]
Add CoInstaller stubs.

svn path=/trunk/; revision=68022
2015-06-05 15:19:09 +00:00
Aleksandar Andrejevic
8bdaa7f0e1 [FAST486]
- Restore the stack pointer on an exception.
- Fix the parameter size for 286 call gates. Caught by V.


svn path=/trunk/; revision=68021
2015-06-05 14:02:24 +00:00
Eric Kohl
c3f90daa0d [DEVMGR]
Display class CoInstallers.

svn path=/trunk/; revision=68020
2015-06-05 13:47:39 +00:00
Christoph von Wittich
84f75a68b8 [SHELL32]
replace some sizeof(var)/sizeof(WCHAR) by _countof

svn path=/trunk/; revision=68019
2015-06-05 08:11:25 +00:00
Christoph von Wittich
356aa4f4ad [SHELL32]
show/hide some controls on disk drive properties based on drive type

svn path=/trunk/; revision=68018
2015-06-05 07:38:17 +00:00
Aleksandar Andrejevic
8d62f932c5 [NTVDM]
Store 8.3 file names in SFT entries. Some programs expect them there.


svn path=/trunk/; revision=68017
2015-06-04 22:56:02 +00:00
Aleksandar Andrejevic
e97fb8ee65 [FAST486]
Fix VERR and VERW.


svn path=/trunk/; revision=68016
2015-06-04 20:25:14 +00:00
Christoph von Wittich
17d16d0718 [SHELL32]
fix reported disk size

svn path=/trunk/; revision=68015
2015-06-04 18:18:48 +00:00
Aleksandar Andrejevic
673eb8b36f [FAST486]
- Interrupts always clear TF.
- Let at least one instruction happen between #DB's (when TF is set).


svn path=/trunk/; revision=68014
2015-06-04 14:48:07 +00:00
Daniel Reimer
d0d90ef6da [RAPPS]
update cab maker scripts. POSIX toy is untested!

svn path=/trunk/; revision=68013
2015-06-04 14:23:08 +00:00
Daniel Reimer
0bdf53ecfa [RAPPS]
Move the RAPPS DB out of the source.

svn path=/trunk/; revision=68012
2015-06-04 14:12:33 +00:00
Daniel Reimer
f8a9a96121 [TRANSLATIONS]
Missing italian translations in ReactOS by Carlo Bramini
CORE-9725 #comment WineD3D, ieframe and shortcuts patches committed. thx ^^
See issue 9725 for more details.

svn path=/trunk/; revision=68011
2015-06-04 14:10:08 +00:00
Daniel Reimer
f74dad0dc1 [TRANSLATIONS]
Add/Update Chinese (zh-CN) translation by Henry Tang Ih
CORE-9003 #comment Forgot one file...
See issue 9003 for more details.

svn path=/trunk/; revision=68010
2015-06-04 14:08:06 +00:00
Daniel Reimer
64df8c274d [RAPPS_NEW]
Remove copy of rapps DB

svn path=/trunk/; revision=68009
2015-06-04 14:02:06 +00:00
Daniel Reimer
1975891903 [rapps]
[rapps_new]
Add zh-CN translation in RAPPS/RAPPS_NEW by Henry Tang Ih
CORE-9554 #comment V3 patch committed

svn path=/trunk/; revision=68008
2015-06-04 14:00:51 +00:00
Christoph von Wittich
10ca80e69e [SETUPAPI]
there are three overlay icons
ImageList_SetOverlayImage expects an overlay index based on 1

svn path=/trunk/; revision=68006
2015-06-04 08:29:55 +00:00
Hermès Bélusca-Maïto
6844f1e037 [NTVDM]: Fix my fix of r68003.
svn path=/trunk/; revision=68005
2015-06-04 02:14:24 +00:00
Hermès Bélusca-Maïto
77f9846093 [INCLUDE:ASM]: fix the .space macro definition for MASM: it aims at imitating the .space macro of GAS. Its syntax is: ".space size_in_bytes optional_fill_byte_defaults_to_zero" . As previously declared, it was doing the reverse: filling *just* one (zero?) bytes with 'count' interpreted as a byte value. Also add a .skip macro that exactly does the same (and is equivalent of the same one in GAS).
svn path=/trunk/; revision=68004
2015-06-04 01:53:22 +00:00
Hermès Bélusca-Maïto
e1aecc4b70 [NTVDM]: Do not rely on 0xCCCC for cold reboot checks. Fix some sentences.
svn path=/trunk/; revision=68003
2015-06-04 00:13:43 +00:00
Hermès Bélusca-Maïto
3461ea9719 [NTVDM]: Enable reads for current address and count registers (caught by Mysoft); for 16-bit accesses, be sure to drop the carry when shifting left CurrAddress; fix comments.
svn path=/trunk/; revision=68002
2015-06-03 21:23:30 +00:00
Aleksandar Andrejevic
3c167d248f [NTVDM]
Implement XMS functions 10h, 11h and 12h by forwarding them to the
VDM DOS memory manager.
CORE-9651 CORE-9741 #resolve #comment Fixed in revision 68001.


svn path=/trunk/; revision=68001
2015-06-02 21:59:19 +00:00
Eric Kohl
132e058f65 [CDFS]
Initialize an uninitialized variable.

svn path=/trunk/; revision=68000
2015-06-02 13:14:33 +00:00
Eric Kohl
9e959dc0a3 [CDFS]
Add IRP_MJ_QUERY_VOLUME_INFORMATION.FileFsFullSizeInformation to CDFS too.

svn path=/trunk/; revision=67999
2015-06-02 12:37:37 +00:00
Eric Kohl
ec3eb2d675 [FASTFAT]
Add IRP_MJ_QUERY_VOLUME_INFORMATION.FileFsFullSizeInformation. This fixes a number of ntdll winetests.

svn path=/trunk/; revision=67998
2015-06-02 09:08:33 +00:00
Eric Kohl
102fea8ac8 [CDFS]
Finally queue IRP_MJ_CREATE IRPs too.

svn path=/trunk/; revision=67997
2015-06-01 19:22:42 +00:00
Amine Khaldi
5ff668f298 [KERNEL32] Apply Wine commit debd62c by Daniel Jelinski: Improved stub for GetCalendarInfo's CAL_SCALNAME. CORE-9246
svn path=/trunk/; revision=67996
2015-06-01 18:53:24 +00:00
Amine Khaldi
582fcf61a6 [CRT][LIBCNTPR] Adopt strtoul() from Wine Staging 1.7.37. Fixes a msvcrt:string test. CORE-9246
svn path=/trunk/; revision=67995
2015-06-01 18:49:52 +00:00
Eric Kohl
51086174d5 [CDFS]
Queue IRP_MJ_READ, IRP_MJ_WRITE, IRP_MJ_CLOSE and IRP_MJ_CLEANUP IRPs.

svn path=/trunk/; revision=67994
2015-06-01 17:15:11 +00:00
Daniel Reimer
39d0fe44d8 [TRANSLATIONS]
Add/Update Chinese (zh-CN) translation by Henry Tang Ih
CORE-9003 #resolve #comment Trunk patch applied, thx ^^
See issue 9003 for more details.

svn path=/trunk/; revision=67993
2015-06-01 17:13:53 +00:00
Daniel Reimer
0710e9e266 [ROSAPPS]
Add/Update Chinese (zh-CN) translation by Henry Tang Ih
CORE-9003 #comment ROSApps patch applied

svn path=/trunk/; revision=67992
2015-06-01 17:11:00 +00:00
Eric Kohl
378407a5c8 [CDFS]
Queue IRP_MJ_DIRECTORY_CONTROL IRPs.

svn path=/trunk/; revision=67991
2015-06-01 15:04:50 +00:00
Eric Kohl
ef692c9c85 [CDFS]
Fix indentation and coding style. No code changes!

svn path=/trunk/; revision=67990
2015-06-01 15:00:51 +00:00
Eric Kohl
d284e715f4 [CDFS]
Do not complete an IRP that will be passed down to a lower driver.

svn path=/trunk/; revision=67989
2015-06-01 14:26:58 +00:00
Eric Kohl
2ae749ea34 [CDFS]
- Move the fastio code to a separate file.
- Add Pierres IRP-Queue code and use it for IRP_MJ_QUERY_VOLUME_INFORMATION, IRP_MJ_SET_VOLUME_INFORMATION, IRP_MJ_QUERY_INFORMATION, IRP_MJ_SET_INFORMATION, IRP_MJ_DEVICE_CONTROL and IRP_MJ_FILE_SYSTEM_CONTROL requests.

svn path=/trunk/; revision=67988
2015-06-01 13:13:18 +00:00
Amine Khaldi
cf09e71a19 [KERNEL32] Apply Wine commit 81dc0fe by Daniel Jelinski: Implement CAL_ICALINTVALUE in GetCalendarInfo. CORE-9246
svn path=/trunk/; revision=67987
2015-06-01 10:00:31 +00:00
Amine Khaldi
3323a3b964 [KERNEL32] Sync CompareStringW() with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67986
2015-06-01 09:56:53 +00:00
Amine Khaldi
a4bc0dbd76 [DEVMGMT_NEW] Revert r67976 as requested by Ged.
svn path=/trunk/; revision=67985
2015-06-01 09:25:46 +00:00
Pierre Schweitzer
4512ae4da4 [NTFS]
So faar our driver is read-only

svn path=/trunk/; revision=67984
2015-05-31 21:31:14 +00:00
Pierre Schweitzer
4a632280f0 [NTFS]
Directly implement NtfsOpenFileById() for special files from the MFT where we cannot moonwalk there path.
It concerns any file with ID < 0x10.
This function can only cope with file which ID is < 0xc. Windows Internals reports that 0xc - 0xf entries are unused.

It would be interesting to double check returrned status in case of error, and also what Windows returns when attempting weird opening of suchs entries (overwrite, create for unused, etc).

svn path=/trunk/; revision=67983
2015-05-31 21:28:52 +00:00
Christoph von Wittich
5d511f10ac [DEVMGMT_NEW]
enable/disable context menu items on selection change

svn path=/trunk/; revision=67981
2015-05-31 09:14:29 +00:00
Daniel Reimer
94a8aa121b [DXDIAG]
Update german translation. Apply slight design fixes to the rest of the languages.

svn path=/trunk/; revision=67980
2015-05-31 07:15:23 +00:00
Christoph von Wittich
19d0becca8 [DEVMGMT_NEW]
show popupmenu on right click (not finished yet)

svn path=/trunk/; revision=67979
2015-05-30 20:32:37 +00:00
Christoph von Wittich
54294b0fb1 [DEVMGMT_NEW]
update german translation

svn path=/trunk/; revision=67978
2015-05-30 20:05:34 +00:00
David Quintana
bc0a82a1ac [devmgmt_new]
Hopefully fix build in case-sensitive hosts.

svn path=/trunk/; revision=67977
2015-05-30 19:57:18 +00:00
David Quintana
481667de41 [DEVMGMT_NEW]
At the request of Christoph von Wittich, bring devmgmt_new into the build.
* Created CMakeLists.txt and added to parent folder.
* Removed some references to CAtlString that were not needed and are not implemented in our headers.
* Fixed build with gcc.
* Spread all the changes done to the english resources to the other languages. Many languages now contain untranslated strings that will need to be fixed.
Note that I made no effort to fix any bugs or improve any features. The app comes as-is, except it now builds with rosbe.

svn path=/trunk/; revision=67976
2015-05-30 19:53:44 +00:00
Amine Khaldi
2bf0f53d8a [DXDIAG] Improve the content of the tabs that have missing content. By Lee Schroeder. See CORE-8969 for more details.
svn path=/trunk/; revision=67975
2015-05-30 19:04:23 +00:00
Amine Khaldi
bc1e6e58ea [USER32] Sync edit.c with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67974
2015-05-30 17:14:16 +00:00
Amine Khaldi
c71f683e88 [README.WINE] Mark sortkey.c as synced with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67973
2015-05-30 17:13:30 +00:00
Amine Khaldi
e59aa0f1d0 [WIN32K] Apply some bits of Wine commit 88acc9c8 by Akihiro Sagawa: Don't modify output glyph metrics unless the function succeeds. CORE-9746
svn path=/trunk/; revision=67972
2015-05-30 17:00:52 +00:00
Christoph von Wittich
b1e5b0ed46 [NTVDM]
adjust VdmMenuPos in case the menu already exists
CORE-9487

svn path=/trunk/; revision=67971
2015-05-30 16:05:10 +00:00
Hermès Bélusca-Maïto
9565c83981 [NTVDM]: When ntvdm crashes and we restart it in the same console, do not add fresh new menu items but just keep the old ones.
Patch by Christoph von Wittich, with some added comments to think about.
CORE-9487 #resolve

svn path=/trunk/; revision=67970
2015-05-30 15:51:18 +00:00
Daniel Reimer
829726353b [RAPPS]
Update entries to recent versions... btw... why do we have all these files twice now???

svn path=/trunk/; revision=67969
2015-05-30 15:15:24 +00:00
Daniel Reimer
09a677918c [rapps]
[rapps_new]
Add zh-CN translation in RAPPS/RAPPS_NEW by Henry Tang Ih
CORE-9554 #comment V2 patch committed. Thx ^^

svn path=/trunk/; revision=67968
2015-05-30 14:18:31 +00:00
Daniel Reimer
ad3824d2e0 [STOBJECT]
Missing italian translations in ReactOS by Carlo Bramini
CORE-9725 #comment stobject patch committed. thx ^^

svn path=/trunk/; revision=67967
2015-05-30 14:09:29 +00:00
Daniel Reimer
ce34521083 [RAPPS]
Update LibreOffice version to 4.4.3 and add zh-CN translation in RAPPS/RAPPS_NEW by Henry Tang Ih
CORE-9748 #resolve #comment Committed, thx

svn path=/trunk/; revision=67966
2015-05-30 14:09:12 +00:00
Amine Khaldi
8b64c9ce1f [NETAPI32] Fix array index use before limits check. By Kudratov Olimjon using Cppcheck. CORE-8978
svn path=/trunk/; revision=67965
2015-05-30 10:24:29 +00:00
Amine Khaldi
0e02eb304d [FTP] Fix array index use before limits check. By Kudratov Olimjon using Cppcheck. CORE-8978
svn path=/trunk/; revision=67964
2015-05-30 10:21:48 +00:00
Amine Khaldi
d6a45cb528 [NOTEPAD] Fix array index use before limits check. By Kudratov Olimjon using Cppcheck. CORE-8978
svn path=/trunk/; revision=67963
2015-05-30 10:19:49 +00:00
Amine Khaldi
7140da34ed [NOTEPAD] Fix loading font settings. By Lee Schroeder. CORE-9074
svn path=/trunk/; revision=67962
2015-05-30 10:15:48 +00:00
Aleksandar Andrejevic
e9fde4873d [NTVDM][BASESRV]
- When a DOS application is started by a process that has no console,
the ConsoleHandle in the VDM_CONSOLE_RECORD is initially NULL.
Fix that by making an initial VDM_GET_FIRST_COMMAND call in NTVDM
and setting the ConsoleHandle to the handle of NTVDM's console in
BaseSrvGetNextVDMCommand.
- Fix a bug in BaseSrvGetVDMExitCode (VDM_READY means the task has exited).


svn path=/trunk/; revision=67961
2015-05-30 02:23:44 +00:00
Amine Khaldi
47f56b8765 [USER32] Sync combo.c with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67960
2015-05-29 22:06:52 +00:00
Amine Khaldi
ebef8a5c75 [USER32] Sync button.c with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67959
2015-05-29 21:48:55 +00:00
Amine Khaldi
e753bc0b4c [README.WINE] Mark some user32 source files as synced with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67958
2015-05-29 21:30:01 +00:00
Amine Khaldi
af907575d7 [WIN32K] Sync bezier.c with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67957
2015-05-29 20:57:23 +00:00
Timo Kreuzer
604dacb5af [CRT]
Implement a portable version of sqrt. It's using an optimized combination of different algorithms, resulting in code that calculates the result in the maximum possible (when internally using double) precision with only 11 multiplications and a single division.

svn path=/trunk/; revision=67956
2015-05-29 20:10:48 +00:00
Amine Khaldi
27c53b6562 [README.WINE] Update user32 path.
svn path=/trunk/; revision=67955
2015-05-29 20:04:05 +00:00
Amine Khaldi
aecde940b9 [XDK] Addendum to r67919.
svn path=/trunk/; revision=67954
2015-05-29 20:01:51 +00:00
Amine Khaldi
b97ddad165 [WIN32K] Apply Wine commit aec376d by Huw Davies: Clear the accel flags.
svn path=/trunk/; revision=67953
2015-05-29 17:14:30 +00:00
Johannes Anderwald
1412b0426b [SNDVOL32]
- revert 67251 as it breaks the dynamic user interface
[KS]
- fix bugs to return pin / topology node names

svn path=/trunk/; revision=67952
2015-05-29 15:01:34 +00:00
Eric Kohl
38b7201227 [USETUP]
- Fix indenttation fof comments.
- Replace SectorsPerTrack by SectorAlignment in partition size and location calculations.

svn path=/trunk/; revision=67951
2015-05-29 14:06:01 +00:00
Eric Kohl
3eb7effa38 [USETUP]
Update prototypes.

svn path=/trunk/; revision=67950
2015-05-29 11:44:34 +00:00
Amine Khaldi
e4f03e95bc [WIN32K] Update FTVectorToPOINTFX to reduce diff to Wine.
svn path=/trunk/; revision=67949
2015-05-29 11:21:31 +00:00
Amine Khaldi
d0fbb92a57 [WIN32K] Apply Wine commit 147765a by Sam Edwards: Prevent possible buffer overflows in get_glyph_outline.
svn path=/trunk/; revision=67948
2015-05-29 11:03:17 +00:00
Amine Khaldi
0a619bf67b [WIN32K] Add some missing range checks in ftGdiGetGlyphOutline. Fixes some gdi32:font tests. Thanks to Benedikt Freisen for the inspection. CORE-9746
svn path=/trunk/; revision=67947
2015-05-29 10:50:38 +00:00
Amine Khaldi
58999a1bfd [TCPIP] The driver does both v4 and v6. CORE-9744
svn path=/trunk/; revision=67946
2015-05-29 08:56:05 +00:00
Amine Khaldi
a33904e62f [NTDLL_WINETEST] Sync with Wine Staging 1.7.43.
svn path=/trunk/; revision=67945
2015-05-29 08:46:58 +00:00
Amine Khaldi
2bfe43a8b8 [WINE/INCLUDE] Update winioctl.h.
svn path=/trunk/; revision=67944
2015-05-29 08:46:19 +00:00
Hermès Bélusca-Maïto
02a99fdc3a [PSDK]: Remove commented-out Get/SetStdHandle API prototypes from wincon.h (they must be in winbase.h), and add a new console API prototype in wincon.h
svn path=/trunk/; revision=67943
2015-05-28 23:47:55 +00:00
Aleksandar Andrejevic
1371cf3d00 [NTVDM]
Implement panning by moving the addressing coordinates up instead
of moving the display coordinates down.


svn path=/trunk/; revision=67942
2015-05-28 15:45:40 +00:00
Amine Khaldi
64f488b5d7 [CMAKE] Do not treat C4189 as an error when compiling with VS 2010, or when in release mode.
svn path=/trunk/; revision=67941
2015-05-28 12:19:24 +00:00
Amine Khaldi
945f960a7d [TCPIP] Identify TCP/IP driver as version 4. By Lee Schroeder. CORE-9744
svn path=/trunk/; revision=67940
2015-05-28 10:31:38 +00:00
Amine Khaldi
7e52c2b702 [PSDK] Update access.idl.
svn path=/trunk/; revision=67939
2015-05-28 10:26:15 +00:00
Aleksandar Andrejevic
2cbf3e4d56 [NTVDM]
Implement VGA panning.


svn path=/trunk/; revision=67938
2015-05-27 23:31:49 +00:00
James Tabor
b61240a9fd [NtUser]
- De-reference global cursor. See CORE-8305.

svn path=/trunk/; revision=67937
2015-05-27 22:13:03 +00:00
Eric Kohl
f4494b1b46 [PARPORT]
- Add FdoQueryBusRelations to enumerate the 'attached' raw port.
- Create the PDO for the raw port (\Device\ParallelX) and let the symbolic link (\DosDevices\LPTX) point to it.
- Move the open, close and write code from the FDO to the PDO.

svn path=/trunk/; revision=67936
2015-05-27 20:18:10 +00:00
Amine Khaldi
556d08c8f1 [PSDK] Apply Wine commit ea41f29 by Vincent Povirk: Fix off-by-one error in EmfPlusRecordType enumeration.
svn path=/trunk/; revision=67935
2015-05-27 19:58:39 +00:00
Aleksandar Andrejevic
71d4766281 [NTVDM]
Now that the Fast486 FPU is feature-complete, tell programs that we have a builtin FPU.
(This commit may cause regressions if there are bugs in the FPU)


svn path=/trunk/; revision=67934
2015-05-27 01:07:05 +00:00
Aleksandar Andrejevic
391168594d [FAST486]
Implement FPATAN.
Fix the sign of the FPTAN result. Spotted by fox_anthony.


svn path=/trunk/; revision=67933
2015-05-27 01:00:20 +00:00
Aleksandar Andrejevic
d0860613d9 [FAST486]
Implement FPTAN by calculating the sine and then dividing it by
the approximated cosine: sqrt(1 - sin(x) ^ 2).
This method turned out to be faster and more precise than the
Maclaurin series for tan(x), which converges very slowly.


svn path=/trunk/; revision=67932
2015-05-26 19:11:33 +00:00
Daniel Reimer
644884cece [rapps]
[rapps_new]
Add zh-CN translation in RAPPS/RAPPS_NEW by Henry Tang Ih
CORE-9554 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=67931
2015-05-26 18:18:27 +00:00
Daniel Reimer
c770f94d2d [TRANSLATION]
Adding Turkish Translations (inf) by Erdem Ersoy
CORE-9138 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=67930
2015-05-26 18:12:08 +00:00
Daniel Reimer
dc318d55ce [TRANSLATION]
work on Romanian related strings in drivers inf by Stefan Fulea
CORE-9572 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=67929
2015-05-26 18:05:52 +00:00
Daniel Reimer
f4905944e7 [TRANSLATIONS]
Updating Turkish Translations by Erdem Ersoy
CORE-9587 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=67928
2015-05-26 18:01:39 +00:00
Daniel Reimer
60144bb5c4 [TRANSLATION]
Czech translation update by Radek Liska
CORE-9528 #resolve #comment Committed, thx ^^

svn path=/trunk/; revision=67927
2015-05-26 17:56:10 +00:00
Daniel Reimer
3b10de3445 [ROSAPPS]
General improvements to rosapps by Jared Smudde
ROSAPPS-301 #resolve #comment Committed, thx for help.

svn path=/trunk/; revision=67926
2015-05-26 17:35:57 +00:00
Daniel Reimer
3b85679f99 [SYSDM]
Increase some text field sizes to make more text fit inside
German translation update
Fix copypasta...

svn path=/trunk/; revision=67925
2015-05-26 17:23:45 +00:00
Amine Khaldi
94346f3670 [NETAPI32_WINETEST] Sync with Wine Staging 1.7.43.
svn path=/trunk/; revision=67924
2015-05-26 17:17:50 +00:00
Amine Khaldi
a03392cf34 [MSVCRT_WINETEST] Sync with Wine Staging 1.7.43.
svn path=/trunk/; revision=67923
2015-05-26 17:15:48 +00:00
Amine Khaldi
d869cbf31d [PSDK] Add missing DYNAMIC_TIME_ZONE_INFORMATION and QueryInformationJobObject.
svn path=/trunk/; revision=67922
2015-05-26 16:25:42 +00:00
Amine Khaldi
71939f691e [WINE/INCLUDE] Add missing RTL_DYNAMIC_TIME_ZONE_INFORMATION and RtlQueryDynamicTimeZoneInformation.
svn path=/trunk/; revision=67921
2015-05-26 12:09:59 +00:00
Amine Khaldi
76fcd7212a [FREETYPE] Update to v2.5.5. CORE-8888
svn path=/trunk/; revision=67920
2015-05-26 12:02:58 +00:00
Amine Khaldi
226060f3b6 [PSDK] Update JOB_OBJECT_* defines.
svn path=/trunk/; revision=67919
2015-05-26 12:00:39 +00:00
Pierre Schweitzer
488b5f9d64 [NTFS]
- Don't attempt to moon walk path name for reserved MFT entries.
- Don't attempt to dereference file name if it doesn't exist

svn path=/trunk/; revision=67918
2015-05-26 07:10:45 +00:00
Eric Kohl
d91adcaebf [SYSDM]
Add the hardware profile property sheet dialog.

svn path=/trunk/; revision=67917
2015-05-25 22:02:05 +00:00
Amine Khaldi
cce4df4a3e [GDI32_WINETEST] Sync with Wine Staging 1.7.43.
svn path=/trunk/; revision=67916
2015-05-25 18:52:18 +00:00
Amine Khaldi
a91416131e [ADVAPI32_WINETEST] Sync with Wine Staging 1.7.43.
svn path=/trunk/; revision=67915
2015-05-25 18:46:12 +00:00
Pierre Schweitzer
3e2082bafa [FASTFAT]
[NTFS]
Addendum to r67911

svn path=/trunk/; revision=67914
2015-05-25 17:54:27 +00:00
Pierre Schweitzer
23eb05714f [NTFS]
Call NtfsGetUserBuffer() when required, don't reimplement the wheel everytime

svn path=/trunk/; revision=67913
2015-05-25 17:45:04 +00:00
Pierre Schweitzer
3deb2b256e [NTFS]
Fix MmGetSystemAddressForMdlSafe() call, as it was done in r67808

svn path=/trunk/; revision=67912
2015-05-25 17:43:04 +00:00
Pierre Schweitzer
37a429b0be [FASTFAT]
[NTFS]
Remove useless cast and use appropriate macro.
Spotted by Thomas

svn path=/trunk/; revision=67911
2015-05-25 17:30:01 +00:00
Pierre Schweitzer
94d99f3fe3 [NTFS]
Acquire FCB resource (shared) before trying to attempt its data

svn path=/trunk/; revision=67910
2015-05-25 17:06:00 +00:00
Pierre Schweitzer
c28fc5a816 [NTFS]
If IRP can't wait, queue it

svn path=/trunk/; revision=67909
2015-05-25 16:52:15 +00:00
Pierre Schweitzer
8034fab3df [NTFS]
Implement NtfsMarkIrpContextForQueue() which allows marking an IRP to queue it

svn path=/trunk/; revision=67908
2015-05-25 16:52:02 +00:00
Thomas Faber
596e134bad [WIN32K:NTUSER]
- Use UserRefObjectCo in IntNotifyWinEvent to avoid a reference leak in case the call-out does not return
- Sanitize list walk

svn path=/trunk/; revision=67907
2015-05-25 15:28:06 +00:00
Thomas Faber
950f55d8b7 [RTL][NTOSKRNL]
- Don't cast CONTAINING_RECORD

svn path=/trunk/; revision=67906
2015-05-25 15:04:09 +00:00
Pierre Schweitzer
8f4f1ce119 [NTFS]
Handle IRP_MJ_FILE_SYSTEM_CONTROL with the dispatch routine

svn path=/trunk/; revision=67905
2015-05-25 12:55:51 +00:00
Eric Kohl
6971703339 [SYSDM]
- Implement changing the hardware profile order.
- Keep button states up-to-date.

svn path=/trunk/; revision=67904
2015-05-25 12:23:12 +00:00
Pierre Schweitzer
4eabc351c6 [NTFS]
Handle IRP_MJ_CREATTE with the dispatch routine

svn path=/trunk/; revision=67903
2015-05-25 11:58:23 +00:00
Pierre Schweitzer
7638a0acc6 [NTOSKRNL]
Fix a fixme: add a tag for tunnel cache allocations

CORE-7272

svn path=/trunk/; revision=67902
2015-05-25 11:49:14 +00:00
Pierre Schweitzer
4f63d24fbf [KERNEL32_APITEST]
Add very long tests for tunnel cache.
So far, they are skipped because they are really long (they require more than 15s to complete).
Unfortunately, for unknown reason now, they are failing in ReactOS (whereas they shouldn't!).

An idea would be to see whether we can set an expiry of 1s for tunnel cache just for dbgtests and query the value from registry, so that it could help reduce test duration on ReactOS (but not on w2k3).

ROSTESTS-177

svn path=/trunk/; revision=67901
2015-05-25 11:38:02 +00:00
Pierre Schweitzer
a26a39f194 [KERNEL32_APITEST]
Add more tests for tunnel cache

svn path=/trunk/; revision=67900
2015-05-25 11:14:12 +00:00
Amine Khaldi
750ff6722d [README.WINE] Mark more modules as synced with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67899
2015-05-25 10:56:43 +00:00
Amine Khaldi
526b2a7bc7 [README.WINE] Mark some modules as synced with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67898
2015-05-25 10:34:03 +00:00
Pierre Schweitzer
11f128b53d [KERNEL32_APITEST]
Add simple tests regarding renaming and tunnel cache behavior for short names in user mode.
Longer tests should be added to show what happens in case of cache expiry.
All pass on w2k3 but not on ReactOS.

CORE-3875

svn path=/trunk/; revision=67897
2015-05-25 10:30:12 +00:00
Amine Khaldi
3704750e43 [CRYPTUI] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67896
2015-05-25 09:39:49 +00:00
Amine Khaldi
68218cc19a [PSDK] Update cryptuiapi.h. CORE-9246
svn path=/trunk/; revision=67895
2015-05-25 09:39:00 +00:00
Aleksandar Andrejevic
2e1b7a80e9 [FAST486]
Fix the implementation of FSIN and FCOS:
First of all, 4 steps for a Maclaurin series is not enough.
Second, the angle should be normalized to the [-pi/2, pi/2] range.


svn path=/trunk/; revision=67894
2015-05-25 03:23:40 +00:00
Eric Kohl
ce55b55006 [SYSDM]
Show a warning if the user tries to copy or rename a hardware profile to a name that is already in use.

svn path=/trunk/; revision=67893
2015-05-24 22:51:12 +00:00
Pierre Schweitzer
1dd645fcbd [NTFS]
Handle IRP_MJ_CLOSE with the dispatch routine

svn path=/trunk/; revision=67892
2015-05-24 21:29:34 +00:00
Amine Khaldi
f73342d9da [README.WINE] Mark some modules as synced with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67891
2015-05-24 20:51:18 +00:00
Amine Khaldi
bb9bbd5c2c [NOTEPAD] Printer output improvements by Ricardo Hanke. See CORE-9088 for more details.
svn path=/trunk/; revision=67890
2015-05-24 20:37:29 +00:00
Eric Kohl
b08761f826 [SYSDM]
- Move the code to copy and rename hardware profiles from the dialog procedures into separate functions.
- Use the dialogs only to retrieve the destination profile name.
- Do not copy or rename a hardware profile if it source and destination name is the same.
- Replace a hard.-coded string by a resource string.

svn path=/trunk/; revision=67889
2015-05-24 20:20:04 +00:00
Pierre Schweitzer
d9c71ea288 [KMTEST]
Leak less memory.

svn path=/trunk/; revision=67888
2015-05-24 18:14:49 +00:00
Pierre Schweitzer
23a0889551 [KMTEST]
Enable FsRtlTunnel tests.
They all pass in ReactOS now.

CORE-7272

svn path=/trunk/; revision=67887
2015-05-24 17:42:52 +00:00
Pierre Schweitzer
df216184d2 [NTOSKRNL]
Short commit message: implementation of (names) tunnel cache in file system RTL.
This is in the vast majority work done by Johannes Anderwald, I've just reviewed, fixed a few things, and implemented last bits.

Thanks to Johannes for his initial implementation (and huge work!).
Dedicated to Hervé's secret plans ;-).

CORE-7272
CORE-3875

svn path=/trunk/; revision=67886
2015-05-24 17:42:05 +00:00
Pierre Schweitzer
0d763e60fb [KMTEST]
Don't attempt to allocate null-size buffer when copying empty string.

Note to next generations students: test your code and DON'T LEAK MEMORY!!!!
It still leaks atm, will have a look later on.
Note to Mr Bragin, beloved ReactOS Project Coordinator: did you actually reviewed your students work?

CORE-7272

svn path=/trunk/; revision=67885
2015-05-24 17:31:49 +00:00
Pierre Schweitzer
4c9b6600ea [NTFS]
Use non-paged lookaside list for IRP context allocation

svn path=/trunk/; revision=67883
2015-05-24 15:26:15 +00:00
Eric Kohl
6c9074c225 [NTOSKRNL]
IoCreateDevice: Assign SePublicOpenUnrestrictedSd to new devices.

CORE-9176

svn path=/trunk/; revision=67882
2015-05-24 14:38:55 +00:00
Amine Khaldi
7858fab04b [KBDHU] Fix MSVC build when the default code page is a MBCS. By Yuntian Zhang. CORE-7417
svn path=/trunk/; revision=67881
2015-05-24 14:26:31 +00:00
Pierre Schweitzer
63560ef203 [FASTFAT]
- Add a debugging assert that will save your lot of time if you attempt to manually queue a wrong IRP. You cannot queue an IRP which is set to be later queued again. This is a broken behavior.
- Remove a bit of code duplication

svn path=/trunk/; revision=67880
2015-05-24 12:39:10 +00:00
Hermès Bélusca-Maïto
578d9849a0 [NTVDM]
- Update the CrtModeControl byte in the BDA when we change video modes.
- Implement INT 10h, AX=1003h "Toggle Intensity/Blinking Bit".
- Partially implement INT 10h, AH=1Bh "Functionality/State Information (VGA)".

svn path=/trunk/; revision=67879
2015-05-24 12:35:29 +00:00
Pierre Schweitzer
d4a0828949 [NTFS]
Implement request qeueing (based on FastFAT work)

svn path=/trunk/; revision=67878
2015-05-24 12:28:51 +00:00
Pierre Schweitzer
d71894a0ad [NTFS]
- Only free the IRP context in case the request is not to be queued
- Stubplement request queueing support in NtfsDispatch()

svn path=/trunk/; revision=67877
2015-05-24 12:20:51 +00:00
Pierre Schweitzer
6277edf7d8 [NTFS]
Handle IRP_MJ_WRITE with the dispatch routine

svn path=/trunk/; revision=67876
2015-05-24 12:17:43 +00:00
Pierre Schweitzer
ab8558bafd [NTFS]
Split NtfsFsdDispatch() in two.
Now, NtfsFsdDispatch() will only take care of allocating the IRP context and complete the IRP in case it failed (that fixes a null-pointer dereference, just for the record).
NtfsDispatch() will really dispatch the IRP to the internal functions. So that it can be called either directly from NtfsFsdDispatch() or by a queued IRP (to be implemented).

svn path=/trunk/; revision=67875
2015-05-24 10:48:15 +00:00
Aleksandar Andrejevic
c1600b9458 [FAST486]
Implement FSQRT using the Babylonian method.


svn path=/trunk/; revision=67874
2015-05-23 23:44:10 +00:00
Aleksandar Andrejevic
fe6672870b [FAST486]
- Fix the FPU constants.
- Fix rounding.
- Fix FSCALE.


svn path=/trunk/; revision=67873
2015-05-23 20:26:32 +00:00
Amine Khaldi
35e73601a0 [INETCPL][USRMGR] Update CPL Descriptions. By Jared Smudde. CORE-9713
svn path=/trunk/; revision=67872
2015-05-23 16:05:40 +00:00
Amine Khaldi
208dfa5c5c [BOOTDATA] Add Mozilla's NSS CA roots to the ReactOS registry and give the certs their own file. By Ismael Ferreras Morezuelas aka swyter. CORE-9065
svn path=/trunk/; revision=67871
2015-05-23 15:56:26 +00:00
Amine Khaldi
200a4fc8cb [WINED3DCFG] Add MB to the Video Memory Size options and finish capitalizing the labels as most of the labels are already capitalized. By Jared Smudde. CORE-9726
svn path=/trunk/; revision=67870
2015-05-23 15:50:30 +00:00
Amine Khaldi
90aaf85ee4 [PSDK] Update wincrypt.h and schannel.h with the latest Win32 defines of modern crypto. By Ismael Ferreras Morezuelas aka swyter. CORE-9065
svn path=/trunk/; revision=67869
2015-05-23 15:46:13 +00:00
Daniel Reimer
cf4d6e39e7 [WINED3D] - Update german language
svn path=/trunk/; revision=67868
2015-05-23 15:31:23 +00:00
Amine Khaldi
2779f602cb [NTOBJSHEX] Add Italian translation by Carlo Bramini. CORE-9725
svn path=/trunk/; revision=67867
2015-05-23 15:23:25 +00:00
Amine Khaldi
0b8283748d [WINED3DCFG] Change the name to "WineD3D Options" as the Community decided. Patch by Jared Smudde. CORE-9724
svn path=/trunk/; revision=67866
2015-05-23 15:18:17 +00:00
Daniel Reimer
894b7e0f01 [C++]
Add arm version of r64555. ROSAPPS builds now completely @ ARM arch.

svn path=/trunk/; revision=67865
2015-05-23 13:59:28 +00:00
Amine Khaldi
9196ea556e [CMAKE] Do not treat C4189 as an error in Release builds.
svn path=/trunk/; revision=67864
2015-05-23 12:24:57 +00:00
Amine Khaldi
0aeb9104ed [CMAKE] Update rsym location.
svn path=/trunk/; revision=67863
2015-05-23 12:10:20 +00:00
Amine Khaldi
e7a9440fb8 [CMAKE] Default to Debug for the build type in GCC builds.
svn path=/trunk/; revision=67862
2015-05-23 11:45:59 +00:00
Amine Khaldi
233d650aa0 [CMAKE] Fix and improve the Release build type of the MSVC builds.
svn path=/trunk/; revision=67861
2015-05-23 10:34:25 +00:00
Amine Khaldi
dcf26d6a7f [CMAKE] Don't set initial flags for Release build type, let us handle them ourselves.
svn path=/trunk/; revision=67860
2015-05-23 10:32:43 +00:00
Amine Khaldi
5db57580e8 [CMAKE] Fix setting CMake build type so we can use other types too (like Release).
svn path=/trunk/; revision=67859
2015-05-23 10:31:52 +00:00
Amine Khaldi
bbea4532a8 [MSPORTS] Add Italian translation by Carlo Bramini. CORE-9725
svn path=/trunk/; revision=67858
2015-05-23 10:29:54 +00:00
James Tabor
7c6525d4f5 - Kill debug spam.
svn path=/trunk/; revision=67857
2015-05-23 07:19:50 +00:00
James Tabor
ba9580261a [NtUser]
- Since this is hiding the cursor, no window, just return. See CORE-9723.

svn path=/trunk/; revision=67856
2015-05-23 04:43:32 +00:00
Aleksandar Andrejevic
f0ffcaf0c8 [FAST486]
Use a better algorithm for the base 2 logarithm.
Put the shared code for FPREM and FPREM1 in an inline function used by both.


svn path=/trunk/; revision=67855
2015-05-23 02:50:11 +00:00
Hermès Bélusca-Maïto
ebc2ff9c41 [NTVDM]: Temporarily disable yielding (see r67851) because it causes timing issues (slowdowns).
svn path=/trunk/; revision=67854
2015-05-23 02:08:50 +00:00
Aleksandar Andrejevic
6b67f245cf [FAST486]
Fix FIST(P) and FRNDINT.


svn path=/trunk/; revision=67853
2015-05-22 23:09:13 +00:00
Aleksandar Andrejevic
961a258af9 [FAST486]
Fix multiple FP80-to-int conversion issues.


svn path=/trunk/; revision=67852
2015-05-22 21:57:28 +00:00
Hermès Bélusca-Maïto
a4585313a5 [NTVDM]: at the end of a cpu slice, yield execution to other threads in the system.
svn path=/trunk/; revision=67851
2015-05-22 21:21:43 +00:00
Thomas Faber
bac6c8579c [ADVAPI32]
- Do not fail in RegQueryInfoKeyW if NtQuerySecurityObject fails, as shown by the test
CORE-9719

svn path=/trunk/; revision=67850
2015-05-22 16:19:23 +00:00
Thomas Faber
f7bf32d2ad [ADVAPI32_APITEST]
- Fix test failures on Win 2003: unlike on Win7, write rights don't imply read
CORE-9719

svn path=/trunk/; revision=67849
2015-05-22 16:06:58 +00:00
Thomas Faber
9600755aaa [ADVAPI32_APITEST]
- Add a test for calling RegQueryInfoKey with different access rights
CORE-9719

svn path=/trunk/; revision=67848
2015-05-22 15:47:02 +00:00
Aleksandar Andrejevic
ac3616d42c [FAST486]
Fix Fast486FpuToInteger.


svn path=/trunk/; revision=67846
2015-05-22 04:51:20 +00:00
Aleksandar Andrejevic
d9dcc9a022 [FAST486]
Implement FPREM and FPREM1.


svn path=/trunk/; revision=67845
2015-05-22 03:59:24 +00:00
Aleksandar Andrejevic
15c2b7663c [FAST486]
Fix comparing NaNs in Fast486FpuCompare.


svn path=/trunk/; revision=67844
2015-05-22 03:40:44 +00:00
Thomas Faber
7e58e7cf42 [ADVAPI32]
- Add a debug print in unusual failure case of RegQueryInfoKeyW
CORE-9719

svn path=/trunk/; revision=67843
2015-05-21 22:16:39 +00:00
Eric Kohl
86c2f31a49 [SYSDM]
Implement hardware profile deltion.

svn path=/trunk/; revision=67842
2015-05-21 21:47:57 +00:00
Aleksandar Andrejevic
fe362794c6 [FAST486]
Due to some kind of mixup, I thought the series for log(x) was actually for log10(x).
Fix Fast486FpuCalculateLogBase2 by dividing the result with log(2) and not log10(2).


svn path=/trunk/; revision=67841
2015-05-21 17:27:47 +00:00
Aleksandar Andrejevic
1e5d331ec6 [FAST486]
No underflows will occur in Fast486FpuAdd when the signs are different, since
the exponent won't be reduced.


svn path=/trunk/; revision=67840
2015-05-21 00:51:21 +00:00
Aleksandar Andrejevic
4e457245b2 [FAST486]
Fix the broken math in r67838.


svn path=/trunk/; revision=67839
2015-05-21 00:44:49 +00:00
Aleksandar Andrejevic
b0aa61088d [FAST486]
Fix a copy-paste bug. Adjust the number when subtracting in Fast486FpuAdd. Don't overflow
the mantissa in Fast486FpuToSingle/Fast486FpuToDouble without correcting the exponent.


svn path=/trunk/; revision=67838
2015-05-20 23:16:36 +00:00
Hermès Bélusca-Maïto
fd3f43887a [ntvdm]: use an "unsigned" abs for the comparison (that's what I want). fix msvc warning.
svn path=/trunk/; revision=67837
2015-05-20 22:05:58 +00:00
Christoph von Wittich
0621d3bc17 [IEFRAME]
convert german translation to UTF-8

svn path=/trunk/; revision=67836
2015-05-20 18:43:08 +00:00
Aleksandar Andrejevic
f0ffa72fc9 [FAST486]
Properly implement FRNDINT.


svn path=/trunk/; revision=67835
2015-05-20 17:23:55 +00:00
Christoph von Wittich
c3e0cd41ca [WIN32SS]
spelling fix

svn path=/trunk/; revision=67834
2015-05-20 06:51:57 +00:00
Daniel Reimer
44fe04c85c [MAZESCR]
INI files for setting parameters? Lets get to the past Win 3.11 standards and make a configure dialog for that which reads and writes the stuff to the registry.

svn path=/trunk/; revision=67833
2015-05-20 01:57:07 +00:00
Aleksandar Andrejevic
4b0eed1598 [FAST486]
Fix Fast486FpuFromDoubleReal.


svn path=/trunk/; revision=67832
2015-05-20 01:04:21 +00:00
David Quintana
e99e22229d [STOBJECT]
Followup to r67830: When no one handles a message, properly return that it was not handled.
This way all messages are handled correctly and not just NCCREATE.
Also took the chance to short-cut NCDESTROY, since the icon handlers have no need to receive this message.
CORE-9592 #resolve

svn path=/trunk/; revision=67831
2015-05-19 20:31:31 +00:00
Christoph von Wittich
f799cb1290 [stobject]
do not handle WM_NCCREATE in ProcessWindowMessage
otherwise it get passed to ProcessIconMessage which will flag it as handled in case g_NumIcons is 0
which then will result in ATL not calling DefWndProc anymore
CORE-9592

svn path=/trunk/; revision=67830
2015-05-19 19:58:11 +00:00
Amine Khaldi
51db26b100 [SHELL32] Fix a typo. Spotted by IRC nick premoboss. CORE-9704
svn path=/trunk/; revision=67829
2015-05-19 19:38:06 +00:00
Aleksandar Andrejevic
904dcace9b [FAST486]
Fix Fast486FpuArithmeticOperation. It doesn't really matter for the operation
itself which operand is the source/destination, because the FPU actually
always performs the operation on ST0 and something else. So, FDIV/FDIVR were
never really reversed here, it's just that FDIV always divides ST0 by something
and FDIVR always divides something by ST0.


svn path=/trunk/; revision=67828
2015-05-19 16:57:46 +00:00
Aleksandar Andrejevic
94d8c8c4b2 [FAST486]
Fix UnsignedDivMod128 (again).
Fix Fast486FpuAdd to handle numbers whose difference of exponents is greater than
the number of bits in the mantissa.


svn path=/trunk/; revision=67827
2015-05-19 02:37:17 +00:00
Aleksandar Andrejevic
3bdb6b6e45 [FAST486]
Add checks for special numbers in Fast486FpuAdd.
Don't use pointers to out-of-scope variables.


svn path=/trunk/; revision=67826
2015-05-18 23:33:25 +00:00
Eric Kohl
a37d047ad8 [SYSDM]
The maximum length of hardware profiles names is 79 characters. Use a matching string length and set the length of the edit control accordingly.

svn path=/trunk/; revision=67825
2015-05-18 20:29:14 +00:00
Pierre Schweitzer
4f7de22ae4 [FASTFAT]
Implement support for FastIO for:
- FastIoQueryBasicInfo
- FastIoQueryStandardInfo

Now, with this commit and the two previous, ReactOS won't attempt to issue an IRP for these query, but will directly go with the FastIO path.
The performance improvement is really visible in 1st stage (at least, here with VBox).

svn path=/trunk/; revision=67824
2015-05-18 19:51:14 +00:00
Pierre Schweitzer
30c11d7825 [NTOSKRNL]
Addendum to r67822: Add IoSetIoCompletion() to header

svn path=/trunk/; revision=67823
2015-05-18 19:49:15 +00:00
Pierre Schweitzer
13cb30a578 [NTOSKRNL]
Implement FastIO support for:
- NtFsControlFile()
- NtLockFile()
- NtUnlockFile()
- NtQueryInformationFile()

svn path=/trunk/; revision=67822
2015-05-18 19:47:11 +00:00
Aleksandar Andrejevic
b96fb17aab [FAST486]
Implement FYL2X and FYL2XP1.


svn path=/trunk/; revision=67821
2015-05-18 15:27:08 +00:00
Aleksandar Andrejevic
de0880752b [FAST486]
Fix several division related problems:
- In UnsignedDivMod128, fix the leading zero calculation for 128-bit numbers.
- In Fast486FpuDivide, there's no need to increase the exponent by 64 (adding zeros
at the end of a number after the decimal point changes nothing).
- FDIV/FDIVR were reversed


svn path=/trunk/; revision=67820
2015-05-18 12:17:40 +00:00
Aleksandar Andrejevic
ec471e2759 [FAST486]
- Zero is not a denormalized number.
- In Fast486FpuMultiply, we must account for the fact that the resulting mantissa
also has the "decimal point" at the second position.


svn path=/trunk/; revision=67819
2015-05-18 04:42:22 +00:00
Aleksandar Andrejevic
a6d59a04f6 [FAST486]
- Don't forget to check whether the FPU stack element exists before using it.
- Implement FSCALE.


svn path=/trunk/; revision=67818
2015-05-17 21:52:12 +00:00
Aleksandar Andrejevic
5be848439a [FAST486]
Fix F2XM1.
Implement FSIN, FCOS and FSINCOS.


svn path=/trunk/; revision=67817
2015-05-17 19:48:57 +00:00
Timo Kreuzer
df9f3a9e44 [WIN32K]
Add debug prints to NtGdiPathToRegion

svn path=/trunk/; revision=67815
2015-05-17 16:26:23 +00:00
Aleksandar Andrejevic
abd0364559 [FAST486]
Implement F2XM1 using a Maclaurin series.


svn path=/trunk/; revision=67814
2015-05-17 16:21:29 +00:00
Eric Kohl
ade7bb8278 [SYSDM]
Implement renaming and copying of hardware profiles.
Modifications are not yet stored in the registry. WIP

svn path=/trunk/; revision=67813
2015-05-17 16:11:15 +00:00
Amine Khaldi
dc555fa1f5 [SHLWAPI] Properly stub SHGetPrivateProfileSection. CORE-9708
svn path=/trunk/; revision=67812
2015-05-17 14:53:38 +00:00
Timo Kreuzer
e59b02d08f [WIN32K]
Add debugprints to some region and path functions.

svn path=/trunk/; revision=67811
2015-05-17 14:34:49 +00:00
Timo Kreuzer
635d9ca5a2 [NTOSKRNL]
Implement MiGetFileObjectForSectionAddress and use it in MmGetFileNameForAddress and NtAreMappedFilesTheSame. Don't call MmLocateMemoryAreaByAddress from these functions anymore.

svn path=/trunk/; revision=67810
2015-05-17 13:46:12 +00:00
Timo Kreuzer
18861e4fde [GDIPLUS]
Add even more debugprints

svn path=/trunk/; revision=67809
2015-05-17 13:44:34 +00:00
Pierre Schweitzer
89eca90722 [FASTFAT]
Fix a fixme in VfatGetUserBuffer():
Only request high priority page when in the paging path. Otherwise, request normal priority

svn path=/trunk/; revision=67808
2015-05-17 12:22:28 +00:00
Timo Kreuzer
22106e6ce1 [GDIPLUS]
Add some debug output to try to track winetest failures.

svn path=/trunk/; revision=67807
2015-05-17 11:49:04 +00:00
Timo Kreuzer
8613578cea [DINPUT_WINETEST]
Skip randomly failing tests. See ROSTESTS-176 and CORE-9710

svn path=/trunk/; revision=67806
2015-05-17 10:55:03 +00:00
Pierre Schweitzer
f1701931b0 [CONSOLE]
Fix memory leaks

svn path=/trunk/; revision=67805
2015-05-17 10:20:58 +00:00
Pierre Schweitzer
ff88b914aa [SETUPAPI]
Fix a memory leak

svn path=/trunk/; revision=67804
2015-05-17 10:09:50 +00:00
Pierre Schweitzer
266e481f4c [WS2_32]
RtlFreeHeap -> FreeHeap

svn path=/trunk/; revision=67803
2015-05-17 10:07:00 +00:00
Pierre Schweitzer
8f143b24e3 [INFLIB]
Don't free memory twice on failure

svn path=/trunk/; revision=67802
2015-05-17 09:41:54 +00:00
Pierre Schweitzer
22fd66f79e [CREATE_NLS]
Initialize line count before incrementing it

svn path=/trunk/; revision=67801
2015-05-17 09:38:32 +00:00
James Tabor
65d178a69b - Fix local build.
svn path=/trunk/; revision=67800
2015-05-17 08:37:00 +00:00
Timo Kreuzer
9b3193b087 [NTOSKRNL]
Kill all the code to remove memory areas from the old tree as well.

svn path=/trunk/; revision=67799
2015-05-17 00:35:56 +00:00
Timo Kreuzer
683badded6 [NTOSKRNL]
Don't check if a AMR3 owned memory area can be inserted, since we already know it's ok. Delete the related memory area code.

svn path=/trunk/; revision=67798
2015-05-17 00:35:47 +00:00
Timo Kreuzer
c7d21f63c2 [NTOSKRNL]
Add a tiny hack to MiFindEmptyAddressRangeInTree and MiFindEmptyAddressRangeDownTree to support VADs in the kernel VA range. Make MmFindGap use those functions to look for free space.

svn path=/trunk/; revision=67797
2015-05-17 00:35:37 +00:00
Timo Kreuzer
c6d5bbaa74 [NTOSKRNL]
Get rid of MiRosTakeOverSharedUserPage. We don't need it anymore, since the user page is manually handled in the page fault handler and since it's outside the VAD region, we don't need to block that range. Now there should be no memory areas left at all in MmDeleteProcessAddressSpace.

svn path=/trunk/; revision=67796
2015-05-17 00:35:23 +00:00
Timo Kreuzer
2b1be6187c [NTOSKRNL]
Modify MmLocateMemoryAreaByAddress as well to use the VAD table. Since the page fault handler uses it to find ARM3-Fault pages and the shared user page does have a memory area, but not a VAD, add a check for the shared user page in the old fault handler.

svn path=/trunk/; revision=67795
2015-05-17 00:35:09 +00:00
Timo Kreuzer
3538fd9556 [NTOSKRNL]
Implement MiRosCleanupMemoryArea to cleanup memory areas from MmCleanProcessAddressSpace, since later when we remove the old-style memory area links, we will not be able to retrieve those.

svn path=/trunk/; revision=67794
2015-05-17 00:34:59 +00:00
Timo Kreuzer
3565260212 [NTOSKRNL]
Use the VAD tree to search for MEMORY_AREAS, except when inserting an ARM3 based MA. In this case we still need to use the old tables, since the related VAD is already inserted into the VAD tree.

svn path=/trunk/; revision=67793
2015-05-17 00:34:45 +00:00
Timo Kreuzer
53a77173f5 [NTOSKRNL]
Insert kernel memory areas into a "kernel VAD table".

svn path=/trunk/; revision=67792
2015-05-16 23:36:42 +00:00
Timo Kreuzer
3964d05fb8 [NTOSKRNL]
- Allocate Memory area before trying to insert it in different pathes of MmCreateMemoryArea. This change is a preparation for upcoming changes.
- Cleanup MmInsertMemoryArea from useless stuff

svn path=/trunk/; revision=67791
2015-05-16 21:30:52 +00:00
Timo Kreuzer
cf491f89ab [NTOSKRNL]
Use 1 as base address parameter to MmCreateMemoryArea, when 0 is the actual base and remove FixedAddress parameter in MmCreateMemoryArea

svn path=/trunk/; revision=67790
2015-05-16 21:30:28 +00:00
Pierre Schweitzer
d2818e587c [NTOSKRNL]
Formatting. No code change!

svn path=/trunk/; revision=67789
2015-05-16 21:13:22 +00:00
Daniel Reimer
ce915e428f [MAZE*]
Loading from ini file works flawless, even on ROS, so... ENABLE it.

svn path=/trunk/; revision=67788
2015-05-16 21:00:03 +00:00
Timo Kreuzer
595df76091 [NTOSKRNL]
Add an MMVAD to the MEMORY_AREA structure, instead of allocating a new one to synchronize with the process VAD tree

svn path=/trunk/; revision=67787
2015-05-16 20:10:41 +00:00
Timo Kreuzer
5280b4e3c6 [NTOSKRNL]
Convert MEMORY_AREA::EndingAddress to EndingVpn

svn path=/trunk/; revision=67786
2015-05-16 20:10:26 +00:00
Timo Kreuzer
85f59f294f [NTOSKRNL]
Convert MEMORY_AREA::StartingAddress to StaringVpn

svn path=/trunk/; revision=67785
2015-05-16 20:10:03 +00:00
Timo Kreuzer
418daaac86 [NTOSKRNL]
Convert StartingAddress and EndingAddress members in MEMORY_AREA to ULONG_PTR. Remove unused MmFindGapAtAddress.

svn path=/trunk/; revision=67784
2015-05-16 20:09:40 +00:00
Aleksandar Andrejevic
199d9183e6 [NTVDM]
Drivers that have no I/O status routine should be treated as "ready".


svn path=/trunk/; revision=67783
2015-05-16 20:06:28 +00:00
Pierre Schweitzer
37811969c0 [NTOSKRNL]
Stub support for IOCTL_WMI_SET_MARK

CORE-9699

svn path=/trunk/; revision=67782
2015-05-16 20:00:34 +00:00
Daniel Reimer
d6510c4911 [MAZESCR]
Made mazescr use screensaver.lib for multi screen support
Add symbol to make things look more... mature in C:\ReactOS
Fixes of my two problems (app does not really terminate and maze is not generated completely) and tidy up (-200 lines of code!) of my mess and the mess we had in there before by David Quintana. Thx man :-D

svn path=/trunk/; revision=67781
2015-05-16 19:16:40 +00:00
Hermès Bélusca-Maïto
a175511a5a [NTVDM]: Reload the new PIT count as soon as we have finished to set it. Tested by V. q;^D
svn path=/trunk/; revision=67780
2015-05-16 19:15:25 +00:00
Daniel Reimer
6ad55cd339 [ROSAPPS]
Add symbols to make things look more... mature in C:\ReactOS

svn path=/trunk/; revision=67779
2015-05-16 19:12:30 +00:00
Daniel Reimer
f58c18579a [3DTEXT]
Add symbol to make things look more... mature in C:\ReactOS

svn path=/trunk/; revision=67778
2015-05-16 19:11:03 +00:00
Timo Kreuzer
3fa1dc5790 [KMIXER]
YDEBUG -> NDEBUG

svn path=/trunk/; revision=67777
2015-05-16 18:50:27 +00:00
Pierre Schweitzer
2e4a56a039 [NTOSKRNL]
IOCTL_WMI_29 is IOCTL_WMI_SET_MARK

CORE-9699

svn path=/trunk/; revision=67776
2015-05-16 18:25:48 +00:00
Timo Kreuzer
590281aa7b [CRT]
Fix ceilf and floorf. Spotted by Thomas.

svn path=/trunk/; revision=67775
2015-05-16 17:25:45 +00:00
Pierre Schweitzer
3ab971bc6b [NTOSKRNL]
Plug (and play?) a memory leak

svn path=/trunk/; revision=67774
2015-05-16 17:13:18 +00:00
Amine Khaldi
a7fea1598b [CMAKE] Do not unset this in MSVC_IDE mode. Will be removed when the upcoming RosBE lands as there seems to be a bug in the current CMake version.
svn path=/trunk/; revision=67773
2015-05-16 13:11:43 +00:00
Pierre Schweitzer
a185668536 [CRT]
Properly copy va_list (ie, do it in a portable and corrrect way) and make sure it doesn't leak

svn path=/trunk/; revision=67772
2015-05-16 12:13:12 +00:00
Pierre Schweitzer
2d5809b784 [CRT]
Don't mess up with the stack nor leak resources

svn path=/trunk/; revision=67771
2015-05-16 12:07:38 +00:00
Timo Kreuzer
ea08eb054f [NDK]
- Add coprocessor constants

[NTOSKRNL]
- Handle process in NtFlushInstructionCache and validate parameters
- Use _MoveToCoprocessor instead of GCC inline assembly for ARM

svn path=/trunk/; revision=67770
2015-05-16 11:30:28 +00:00
Daniel Reimer
95d3ac5244 [SHELL32]
German translation update

svn path=/trunk/; revision=67769
2015-05-16 11:28:38 +00:00
Daniel Reimer
e3d4d2d4c9 [MSPORTS]
German Translation update, made moar space for translators, one alignment fix

svn path=/trunk/; revision=67768
2015-05-16 11:27:59 +00:00
Amine Khaldi
6248f264b5 [IMAGEHLP_WINETEST] Add tests for ImageLoad, ImageUnload and GetImageUnusedHeaderBytes. By Mark Jansen.
svn path=/trunk/; revision=67767
2015-05-16 11:18:30 +00:00
Amine Khaldi
cbf5e3881f [SHELL32] Italian translation update by Carlo Bramini. CORE-9704
svn path=/trunk/; revision=67766
2015-05-16 11:16:17 +00:00
Amine Khaldi
8d0e6718ae [IMAGEHLP_WINETEST] Add to and fix MSVC build. By Mark Jansen.
svn path=/trunk/; revision=67765
2015-05-16 10:24:11 +00:00
Pierre Schweitzer
279c4411fa [NTFS]
Fix memory leaks

svn path=/trunk/; revision=67764
2015-05-16 10:23:55 +00:00
Pierre Schweitzer
8c1bb8bed1 [PCIX]
Don't mess up with the stack nor leak resources

svn path=/trunk/; revision=67763
2015-05-16 10:17:19 +00:00
Amine Khaldi
871a52055d [MPLAY32] Don't use the timer proc to check if playback should stop. Fixes an issue where the playback does not stop/repeat with some devices if it has reached its end. By Ricardo Hanke. CORE-9414
svn path=/trunk/; revision=67762
2015-05-16 10:10:36 +00:00
Pierre Schweitzer
f7719d6aff [REGEDIT]
No va_list init is required

svn path=/trunk/; revision=67761
2015-05-16 10:10:02 +00:00
Pierre Schweitzer
b2c0d6a7f3 [PING]
Don't mess up with the stack nor leak resources

svn path=/trunk/; revision=67760
2015-05-16 10:08:00 +00:00
Amine Khaldi
eb981b9f25 [SHELL32] Added resource strings for floppy drive and removable drive. By Barrett Karish. CORE-9626
svn path=/trunk/; revision=67759
2015-05-16 10:00:30 +00:00
Amine Khaldi
0c1f9d1e1a [COMCTL32][COMDLG32][EXPLORER][MPLAY32][NOTEPAD] Update/Add Chinese (Traditional) translations. By Alvin Wong. CORE-9637
svn path=/trunk/; revision=67758
2015-05-16 09:55:04 +00:00
Amine Khaldi
3456a302fa [MSPORTS] Improve the Port Settings page for parallel ports. Add "LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL" to the main RC file. By Jared Smudde with some changes by me. CORE-9653
svn path=/trunk/; revision=67757
2015-05-16 09:47:18 +00:00
Amine Khaldi
35a85dbcaf [SYSDM] Improve the custom pagefile size range limiting. By Radek Liska. CORE-9658
svn path=/trunk/; revision=67756
2015-05-16 09:40:46 +00:00
Amine Khaldi
d617cfed60 [NTOSKRNL] Use the correct registry key name for ExpGetCurrentUserUILanguage. By Alvin Wong. CORE-9697
svn path=/trunk/; revision=67755
2015-05-16 09:22:10 +00:00
Amine Khaldi
52b8c4d4aa [SHELL32] Add "..." to the copying operation title. By Jared Smudde. CORE-9634
svn path=/trunk/; revision=67754
2015-05-16 09:11:23 +00:00
Amine Khaldi
24c8aa0916 [POWERCFG] Fix some clipping. By Jared Smudde. CORE-9700
svn path=/trunk/; revision=67753
2015-05-16 09:02:29 +00:00
Amine Khaldi
804810bf37 [APPWIZ] Remove rsrc.rc and move its content to appwiz.rc. Add a better bitmap to the create shortcut window. By Jared Smudde. CORE-9633
svn path=/trunk/; revision=67752
2015-05-16 08:59:21 +00:00
Hermès Bélusca-Maïto
b7f9d7e14d Fix Mr.GCC
svn path=/trunk/; revision=67751
2015-05-15 23:16:58 +00:00
Hermès Bélusca-Maïto
cecab82329 [NTVDM]
- Simplify CurrentDirectories array usage.
- We can directly use a pointer to a DOS_DATA structure stored in the guest memory.
- Use the DOS data structures for CurrentDrive (in DOS_DATA) and LastDrive (this is in fact NumLocalDrives in the SYSVARS list).
- Use ANSI versions of GetLocaleInfo where applicable.

svn path=/trunk/; revision=67750
2015-05-15 23:13:40 +00:00
Aleksandar Andrejevic
6020ed7ad1 [NTVDM]
Implement those IOCTLs (0x06 and 0x07) for files too, not just devices.


svn path=/trunk/; revision=67749
2015-05-15 22:29:07 +00:00
Aleksandar Andrejevic
2e894b43c1 [NTVDM]
Implement DOS IOCTLs 0x06 (Get Input Status) and 0x07 (Get Output Status).


svn path=/trunk/; revision=67748
2015-05-15 22:18:04 +00:00
Pierre Schweitzer
56472fe96e [NTOSKRNL]
Fix symbolic names list bound check in IopCreateArcNamesCd().
Spotted by "msuhanov"

CORE-9698 #resolve #comment Fixed in r67747. Thanks!

svn path=/trunk/; revision=67747
2015-05-15 21:08:06 +00:00
Aleksandar Andrejevic
08ec785c24 [NTVDM]
Reverse the HSYNC/VSYNC polarity when it should be reversed.


svn path=/trunk/; revision=67746
2015-05-15 19:51:40 +00:00
Amine Khaldi
9b1cceafb1 [SYSDM] Simplify loading usrmgr.cpl. By Jared Smudde. CORE-9694
svn path=/trunk/; revision=67745
2015-05-15 16:47:21 +00:00
Pierre Schweitzer
972e0e8125 [FASTFAT]
Hey Arch, if you simplify, do it completely!
Addendum to r67743: don't double free the context

svn path=/trunk/; revision=67744
2015-05-15 16:33:20 +00:00
Pierre Schweitzer
3b6a55716f [FASTFAT]
Bring in initiated work on IRPs in NTFS (and complete it).
This simplifies the way IRPs and their context are handled in the driver.
Only VfatDispatchRequest() is responsible of completing IRPs (if required), freeing the IRP context (if required), and queueing the IRP for later completion (if required).
This allows removing duplicated code, hacks, and so on. It might help reducing IRP leaks, or memory leaks.

By default, VfatDispatchRequest() will complete the IRP and delete the IRP context.
In case you don't want it to complete the IRP (because you passed it down, for instance), remove the IRPCONTEXT_COMPLETE flag. See for instance: VfatDeviceControl().
In case you want to queue the IRP (you previously called: VfatQueueRequest()), call the newly introduced VfatMarkIrpContextForQueue() function that will prepare it.

svn path=/trunk/; revision=67743
2015-05-15 16:03:29 +00:00
Aleksandar Andrejevic
45e50d10a0 [NTVDM]
- Properly initialize the current directories on startup.
- Add a missing colon after the drive letter.


svn path=/trunk/; revision=67742
2015-05-15 00:39:34 +00:00
Aleksandar Andrejevic
d81d62d615 [NTVDM]
- Make the Sda pointer point to the right place.
- Fix a buffer overflow.


svn path=/trunk/; revision=67741
2015-05-15 00:20:54 +00:00
Timo Kreuzer
e9f29e5951 [MSHTML/OLEAUT32]
Make msvc.S compile on ARM, too

svn path=/trunk/; revision=67740
2015-05-14 22:33:27 +00:00
Timo Kreuzer
80fec2464d [KS] "Fix" ARM build
svn path=/trunk/; revision=67739
2015-05-14 22:33:15 +00:00
Timo Kreuzer
c8fa6a70c9 [VIDEOPRT]
Fix ARM build

svn path=/trunk/; revision=67738
2015-05-14 22:33:03 +00:00
Timo Kreuzer
6eae9fd0d8 [RPCRT4]
Fix ARM build

svn path=/trunk/; revision=67737
2015-05-14 22:32:49 +00:00
Timo Kreuzer
369786f126 [KERNEL32/KSECDD/GDI32/BMFD/DBGHELP/HALARM/SETUPLDR]
Fix ARM build

svn path=/trunk/; revision=67736
2015-05-14 22:32:35 +00:00
Timo Kreuzer
adc234ba9c [NTOSKRNL]
Fix ARM build

svn path=/trunk/; revision=67735
2015-05-14 22:31:58 +00:00
Timo Kreuzer
014f5582c3 [FRAMEDYN]
Separate exports by architecture and add ARM exports

svn path=/trunk/; revision=67734
2015-05-14 22:31:25 +00:00
Timo Kreuzer
06165f05bd [CMAKE]
Exclude some modules from ARM build

svn path=/trunk/; revision=67733
2015-05-14 22:31:12 +00:00
Timo Kreuzer
9b8b564ef5 [CMAKE]
Make sure WIN32 is defined for ARM builds

svn path=/trunk/; revision=67732
2015-05-14 22:30:56 +00:00
Timo Kreuzer
350a7747d4 [CRT]
Rename __CxxFrameHandler to __CxxFrameHandler3

svn path=/trunk/; revision=67731
2015-05-14 22:30:48 +00:00
Timo Kreuzer
c8a7258733 [MSVCRT]
- Separate C++ exports per architecture, add ARM exports (that again have different mangling)
- Add symbol aliases for ARM C++ exports
- Compile in/out functions only on x86
- Add some missing exports for non-x86

svn path=/trunk/; revision=67730
2015-05-14 21:53:15 +00:00
Timo Kreuzer
febee0a7a2 [CRT]
setjmp is a macro expanding to _setjmp or _setjmpex. In soviet russia and on ARM builds, the compiler will convert invocation of _setjmp back into a call to setjmp. The compiler handles _setjmp and _setjmpex in the same way, generating code where r0 points to the jump_buf and r1 points to the current functions stack frame (sp on function entry). So make setjmp and _setjmp aliases to _setjmpex and make the latter use r1.

svn path=/trunk/; revision=67729
2015-05-14 21:52:45 +00:00
Timo Kreuzer
2f20d0b140 [CRT]
Don't use _control87 on ARM builds

svn path=/trunk/; revision=67728
2015-05-14 21:52:23 +00:00
Timo Kreuzer
7b2824f7ee [CRT]
add __va_copy for ARM

svn path=/trunk/; revision=67727
2015-05-14 21:52:09 +00:00
Hermès Bélusca-Maïto
6b9a175dfb [NTVDM]
- Add some early "return" after calls to EmulatorTerminate()
- Some VDDs rely on the fact that NTVDM calls ExitProcess on Windows when it is going to quit, so let's do the same.
- Put port 61h (and 62h) support in ppi.c (programmable-peripheral-interface).

svn path=/trunk/; revision=67726
2015-05-14 21:13:07 +00:00
Eric Kohl
b4e859a232 [NTOSKRNL]
Create the "Hardware Profiles\0000" key as part of the registry setup. This must be done at this point because the "Hardware Profiles\Current" link will only be created, if the "Hardware Profiles\0000" key exists.

svn path=/trunk/; revision=67725
2015-05-14 21:08:42 +00:00
Timo Kreuzer
8bfb541424 [LIBSAMPLERATE]
Fix build

svn path=/trunk/; revision=67724
2015-05-14 20:58:41 +00:00
Timo Kreuzer
12ac6dabfb [D3DX9_36/WINED3D]
Partly revert previous changes, bringing back copysignf. Add global defines copysignf=_copysignf, since we have that now.

svn path=/trunk/; revision=67723
2015-05-14 20:45:56 +00:00
Timo Kreuzer
b2135ede32 [CRT]
Update / improve math.h a bit

svn path=/trunk/; revision=67722
2015-05-14 20:21:14 +00:00
Timo Kreuzer
0c72efe8f1 [CRT]
Make sure to get no errors, when implementing functions that exist as intrinsics.

svn path=/trunk/; revision=67721
2015-05-14 20:20:59 +00:00
Timo Kreuzer
c40efb1837 [CRT/CPPRT]
Add some files for non-x86 to build

svn path=/trunk/; revision=67720
2015-05-14 20:20:31 +00:00
Timo Kreuzer
03282ac383 [CRT]
Fix build

svn path=/trunk/; revision=67719
2015-05-14 19:51:12 +00:00
Timo Kreuzer
d924c50bdf [CRT]
Add simple C implementations for acosf, ceilf, floorf, fmodf and fix sqrtf

svn path=/trunk/; revision=67718
2015-05-14 19:44:50 +00:00
Timo Kreuzer
6115da1a2a [CRT]
Add simple C implementations for _chgsignf, _copysignf, _hypotf, asinf, atan2f, atanf, coshf, expf, log10f, modff, sinhf, tanf, tanhf

svn path=/trunk/; revision=67717
2015-05-14 19:06:00 +00:00
Timo Kreuzer
81e0eb6b13 [NTOSKRNL]
Rewrite KiSwapContext for ARM

svn path=/trunk/; revision=67716
2015-05-14 14:50:19 +00:00
Timo Kreuzer
6212c824eb [NTOSKRNL] Fix compilation of some ARM assembler files
[NTDLL] Add missing ASM stubs for ARM

svn path=/trunk/; revision=67715
2015-05-14 14:50:07 +00:00
Timo Kreuzer
845ec2108d [NTOSKRNL] Fix some Interlocked exports for non-x86, export some ARM specific functions
[NTDLL] Export some ARM specific functions
[SCSIPORT] Fix ARM exports

svn path=/trunk/; revision=67714
2015-05-14 14:49:41 +00:00
Eric Kohl
a84978c658 [PARPORT]
Implement basic funtions of the parallel port driver. It supports Centronics-Mode only.
You can print files using: copy <filename> lpt1:

svn path=/trunk/; revision=67713
2015-05-14 14:42:05 +00:00
Thomas Faber
f1291bfaea [ADVAPI32_WINETEST]
- Replace test_reg_query_info with the upstream version as promised in r67424.
CORE-6976

svn path=/trunk/; revision=67712
2015-05-14 13:08:07 +00:00
Thomas Faber
f94cb518bb [ADVAPI32]
- Add parameter check to RegQueryInfoKeyA
CORE-6976

svn path=/trunk/; revision=67711
2015-05-14 13:02:49 +00:00
Timo Kreuzer
a4c81347b4 [CRT]
Add stubs for __stoi64 and __stou64

svn path=/trunk/; revision=67710
2015-05-14 10:20:08 +00:00
Timo Kreuzer
c167f82226 [D3DX9_36/WINED3D]
- Remove useless copysignf invocation and the wrong defines for it
- BrokenHacksOnTopOfBrokenCode--;
- Should be sent upstream

svn path=/trunk/; revision=67709
2015-05-14 10:00:37 +00:00
Aleksandar Andrejevic
0aff65fcb4 [FAST486]
- Make Fast486ReadMemory and Fast486WriteMemory FASTCALL.
- Fix build when FAST486_NO_FPU is defined.


svn path=/trunk/; revision=67708
2015-05-13 23:26:25 +00:00
Aleksandar Andrejevic
365727d3e7 [NTVDM]
Fill the part of the buffer that was supposed to receive memory data
above the MAX_ADDRESS with 0xFF.


svn path=/trunk/; revision=67707
2015-05-13 23:23:17 +00:00
Amine Khaldi
41b8d0a78c [CMAKE] Add a minimum major/minor subsystem version number for ARM. Dedicated to Timo.
svn path=/trunk/; revision=67706
2015-05-13 12:12:20 +00:00
Aleksandar Andrejevic
915d26288b [FAST486]
For regular protected mode interrupts, the TF and NT flags should be cleared.


svn path=/trunk/; revision=67704
2015-05-13 03:00:54 +00:00
Aleksandar Andrejevic
dafeadd7ab [FAST486]
Addendum to r67702.


svn path=/trunk/; revision=67703
2015-05-12 21:37:10 +00:00
Aleksandar Andrejevic
84ed5d3cf2 [FAST486]
Superfluous prefixes don't usually generate #UD, except for LOCK.


svn path=/trunk/; revision=67702
2015-05-12 20:08:39 +00:00
Daniel Reimer
1e3adf9e73 [REGEXPL]
Reenable for amd64

svn path=/trunk/; revision=67701
2015-05-12 19:16:30 +00:00
Daniel Reimer
a990c60f4d [C++]
Add amd64 version of r64555. Suggested and reviewed by Thomas Faber

svn path=/trunk/; revision=67700
2015-05-12 19:16:03 +00:00
Aleksandar Andrejevic
8664805720 Fix build. Forgot a file.
svn path=/trunk/; revision=67699
2015-05-12 19:11:53 +00:00
Aleksandar Andrejevic
0dc2da8084 [FAST486]
- Only flush the TLB when needed.
- Flush the TLB after a reset.


svn path=/trunk/; revision=67698
2015-05-12 19:10:52 +00:00
Daniel Reimer
5670e997ca [REDEXPL]
This is evil under amd64, too... so we disable it for now.
[ROSHTTPD]
UINT -> size_t
[NCFTP]
About time to clean this mess. Are we a Unix? No sir!

svn path=/trunk/; revision=67697
2015-05-12 18:14:39 +00:00
Daniel Reimer
7511e4b024 [OLEAUT32]
Wine guys... if you put all stuff which uses one local variable in a #ifdef __i386__, then god heaven... put that one in a #ifdef, too! Should be sent upstream!

svn path=/trunk/; revision=67696
2015-05-12 18:09:04 +00:00
Aleksandar Andrejevic
091319ab73 [FAST486]
Fix TLB flushing. An unused entry should be INVALID_TLB_ENTRY (0xFFFFFFFF) and not 0.


svn path=/trunk/; revision=67695
2015-05-12 17:09:16 +00:00
Amine Khaldi
3889e12a3a [WINMINE] Sync with Wine Staging 1.7.37 while keeping our own resources. CORE-9246
svn path=/trunk/; revision=67692
2015-05-12 14:40:23 +00:00
Amine Khaldi
f730a539f5 [NDK] Add FILE_READ_ONLY_VOLUME definition in NTOS_MODE_USER mode. [SHELL32] Remove the now unneeded FILE_READ_ONLY_VOLUME definition.
svn path=/trunk/; revision=67691
2015-05-12 12:51:50 +00:00
Amine Khaldi
05a5f2bb89 [CMAKE] Prevent CMake from doing importlib handling as we do that on our own.
svn path=/trunk/; revision=67690
2015-05-12 12:19:41 +00:00
Amine Khaldi
abebbac08d [CMAKE] The /SUBSYSTEM flag takes uppercase parameters.
svn path=/trunk/; revision=67689
2015-05-12 12:18:02 +00:00
Amine Khaldi
7af59d2927 [CMAKE] Take into account the build type when referencing rsym.
svn path=/trunk/; revision=67688
2015-05-12 12:11:50 +00:00
Amine Khaldi
a4e41cab78 [CMAKE] Update rsym location in the GCC build.
svn path=/trunk/; revision=67687
2015-05-12 11:40:07 +00:00
Amine Khaldi
cec93846d6 [CMAKE] Set the /MP flag for MSVC_IDE globally.
svn path=/trunk/; revision=67686
2015-05-12 11:38:32 +00:00
Amine Khaldi
75b42e9678 [CMAKE] Set "Debug" as the default build type globally.
svn path=/trunk/; revision=67685
2015-05-12 11:35:19 +00:00
Amine Khaldi
78eb5f5154 [GENINCDATA] Add missing psdk dependency.
svn path=/trunk/; revision=67684
2015-05-12 11:32:51 +00:00
Amine Khaldi
4f9b940d54 [SHELL32] Don't provide the format option when the volume is read only. By Barrett Karish. CORE-9530
svn path=/trunk/; revision=67683
2015-05-12 10:57:24 +00:00
Amine Khaldi
f591467049 [LIVECD] Rename "Audiorecorder" shortcut to "Sound Recorder". By Jared Smudde. CORE-9687
svn path=/trunk/; revision=67682
2015-05-12 10:46:26 +00:00
Amine Khaldi
70f374d4e7 [NOTEPAD] Apply Wine commit 7854f19 by Andrew Eikum: Don't specify initial dir for save and open dialogs. CORE-9371
svn path=/trunk/; revision=67681
2015-05-12 10:39:31 +00:00
Amine Khaldi
3b59131ee6 [NOTEPAD] Apply Wine commit 80cf194 by Francois Gouget: Remove the unimplemented help search menu. CORE-9371
* The previous commit (r67679) was from Francois Gouget too. Apologies.

svn path=/trunk/; revision=67680
2015-05-12 10:27:25 +00:00
Amine Khaldi
17390e9975 [NOTEPAD] Apply Wine commit 9b21a10 by Alexandre Julliard: Remove the 'Help on Help' menu. It is redundant with the help application's 'Help' menu and clutters notepad. CORE-9371
svn path=/trunk/; revision=67679
2015-05-12 10:22:20 +00:00
Amine Khaldi
b2e5b85696 [NOTEPAD] Apply Wine commit 276306e by Alexandre Julliard: Don't offer vertical fonts in the font dialog. CORE-9371
svn path=/trunk/; revision=67678
2015-05-12 10:13:32 +00:00
Amine Khaldi
6a731923f3 [NOTEPAD] Apply Wine commit dc8b11e by Frédéric Delanoy: Use BOOL type where appropriate. CORE-9371
svn path=/trunk/; revision=67677
2015-05-12 10:11:31 +00:00
Aleksandar Andrejevic
5f2e9eb893 [NTVDM]
Fix the XMS driver (again):
- Don't return handle information for unallocated handles.
- Don't allow freeing unallocated handles.


svn path=/trunk/; revision=67676
2015-05-12 03:47:10 +00:00
Aleksandar Andrejevic
367a28ce87 [NTVDM]
Fix the XMS driver. AH = 08h is supposed to return the size of the
largest free block in AX, and the total amount of *free* memory
in DX.


svn path=/trunk/; revision=67675
2015-05-12 03:37:00 +00:00
Aleksandar Andrejevic
c0e9ec7940 [FAST486]
The default segment is SS when the SIB base is EBP.


svn path=/trunk/; revision=67674
2015-05-12 02:47:59 +00:00
Aleksandar Andrejevic
c2725fbadb [FAST486]
The TSS limit is usually the actual limit - 1.
[NTVDM]
Increase the XMS size to use the last megabyte too.


svn path=/trunk/; revision=67673
2015-05-11 23:56:15 +00:00
Hermès Bélusca-Maïto
5e85a378c0 Revert a change that should never have been done.
svn path=/trunk/; revision=67672
2015-05-11 23:10:00 +00:00
Hermès Bélusca-Maïto
16d08be7b0 [NTVDM][DDK]
Implement VDD user hooks: they are called when a DOS program is started or terminated, and when the VM enters a blocking state or is resumed.

[NTVDM]
- Do some parameter checks and set last errors in VDD memory helpers.
- Fix a bug in VDDInstallIOHook when installing IO hooks: the IoHandlers pointer MUST NEVER be incremented!!

[TESTVDD]: Update my test VDD with tests for the user hooks.

svn path=/trunk/; revision=67671
2015-05-11 23:04:24 +00:00
Pierre Schweitzer
7f03ff50e9 [NTFS]
Handle IRP_MJ_DEVICE_CONTROL with the dispatch routine

svn path=/trunk/; revision=67670
2015-05-11 21:11:48 +00:00
Aleksandar Andrejevic
07a731ed1c [FAST486]
Duplicate prefixes don't generate #UD. Multiple segment overrides
override each other, and so do REP and REPNZ.


svn path=/trunk/; revision=67669
2015-05-11 18:49:10 +00:00
Amine Khaldi
8d53d6c2bd [PSDK] Bring lmserver.h a bit into our formatting. NFC.
svn path=/trunk/; revision=67668
2015-05-11 17:27:08 +00:00
Amine Khaldi
4e7c96a96e [CDROM_NEW] Fix MSVC build.
svn path=/trunk/; revision=67667
2015-05-11 17:23:38 +00:00
Thomas Faber
442e80cb84 [PSDK]
- Add __field_bcount_full
- Add a stub definition for __deref_out_range

svn path=/trunk/; revision=67666
2015-05-11 16:15:18 +00:00
Thomas Faber
1e20486956 [DDK]
- Add NTSTRSAFE_UNICODE_STRING_MAX_CCH

svn path=/trunk/; revision=67664
2015-05-11 14:09:02 +00:00
Amine Khaldi
0c5434f36d [WS2_32] Apply Wine commit 51e7732 by Piotr Caban: Fix ai_canonname buffer allocation in addrinfo_AtoW.
svn path=/trunk/; revision=67663
2015-05-11 13:43:37 +00:00
Amine Khaldi
eacecfd85e [WTSAPI32_WINETEST] Import from Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67661
2015-05-11 12:58:10 +00:00
Amine Khaldi
4f5bd9b360 [WTSAPI32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67660
2015-05-11 12:55:05 +00:00
Amine Khaldi
02b3db07d5 [PSDK] Add missing WTS_CURRENT_SERVER_HANDLE definition.
svn path=/trunk/; revision=67659
2015-05-11 12:52:08 +00:00
Amine Khaldi
a9b4645a46 [WINTRUST_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67658
2015-05-11 12:51:23 +00:00
Amine Khaldi
bf967c9470 [WINTRUST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67657
2015-05-11 12:51:01 +00:00
Amine Khaldi
f3b6069ebd [WINDOWSCODECS_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67656
2015-05-11 12:50:02 +00:00
Amine Khaldi
cc67cfede3 [WINDOWSCODECS] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67655
2015-05-11 12:49:42 +00:00
Amine Khaldi
037f0d351f [XCOPY] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67654
2015-05-11 12:47:54 +00:00
Thomas Faber
059e72b8c3 [CRT]
- Add missing __INTRIN_INLINE for x64 intrinsics

svn path=/trunk/; revision=67653
2015-05-11 12:27:54 +00:00
Thomas Faber
4b07b445ac [CRT]
- Fix some x64 GCC intrinsics

svn path=/trunk/; revision=67652
2015-05-11 12:10:19 +00:00
Aleksandar Andrejevic
6fb47e311b [NTVDM]
Use the SDA for storing the request in DosCallDriver.
Rename some more fields we aren't going to use to "Unused..." in the SDA.


svn path=/trunk/; revision=67651
2015-05-11 03:36:02 +00:00
Aleksandar Andrejevic
c7f19ff4c0 [FAST486]
In HLT, check the CPL and not CS.DPL.


svn path=/trunk/; revision=67650
2015-05-11 03:31:04 +00:00
Aleksandar Andrejevic
e4960b02d3 [NTVDM]
Move various private DOS variables into the Swappable Data Area.
It's still mostly unused though.


svn path=/trunk/; revision=67649
2015-05-11 02:54:46 +00:00
Aleksandar Andrejevic
f1bf14da62 [FAST486]
Don't perform privilege checks while reading the IDT, GDT or TSS.


svn path=/trunk/; revision=67648
2015-05-11 02:49:25 +00:00
Aleksandar Andrejevic
ee08940855 [FAST486]
The LMSW instruction doesn't #GP when the program tries to return to real mode.
Rather, it just doesn't happen (the PE bit remains 1).


svn path=/trunk/; revision=67647
2015-05-10 23:50:33 +00:00
Aleksandar Andrejevic
45b03b53d3 [FAST486]
Don't check for gates in virtual 8086 mode.


svn path=/trunk/; revision=67646
2015-05-10 22:54:15 +00:00
Aleksandar Andrejevic
ed774c797b [FAST486]
- Fix VM86-related stuff.
- Optimize MOV.


svn path=/trunk/; revision=67645
2015-05-10 21:59:07 +00:00
Pierre Schweitzer
4daee24f06 [NTFS]
Don't call MmGetSystemAddressForMdl()

svn path=/trunk/; revision=67644
2015-05-10 21:24:51 +00:00
Timo Kreuzer
acfb380603 [RTL]
Implement DbgUserBreakPoint and DbgBreakPointWithStatus on ARM

svn path=/trunk/; revision=67643
2015-05-10 21:05:01 +00:00
Timo Kreuzer
c7e9f9e06c [CRT]
Implement __rt_srsh

svn path=/trunk/; revision=67642
2015-05-10 21:04:48 +00:00
Timo Kreuzer
70ff0e774d [CRT/RTL/NTOSKRNL]
Add new ARM files to build and improve the stubs a bit

svn path=/trunk/; revision=67641
2015-05-10 21:04:27 +00:00
Timo Kreuzer
9fbce543e9 [ASM]
- Make syscalls ARM compatible

svn path=/trunk/; revision=67640
2015-05-10 21:03:53 +00:00
Timo Kreuzer
89ee675f59 [KSARM.H]
- Fix/add a number of macros based on native definitions
- Add "intrinsics" for GNU ARM assembler
- Move trap macros to asmmacro.S

svn path=/trunk/; revision=67639
2015-05-10 21:03:33 +00:00
Timo Kreuzer
7c09970347 [ASM]
Update templates for asm include generation

svn path=/trunk/; revision=67638
2015-05-10 21:03:09 +00:00
Timo Kreuzer
d6c154bc77 [CRT]
- Add _JUMP_BUFFER for ARM
- On ARM there are no underscore prefixes

svn path=/trunk/; revision=67637
2015-05-10 21:02:53 +00:00
Pierre Schweitzer
07f38d007d [NTFS]
- Only set the IOSB status if we complete the IRP
- Fix the assert: the caller might want not to complete the IRP nor to queue it (passed down IRPs)

svn path=/trunk/; revision=67636
2015-05-10 20:56:48 +00:00
Pierre Schweitzer
0c5f4d92cd [NTFS]
Add two more flags (mutually exclusive) for IRP context:
- _COMPLETE will cause the IRP to be completed at the end of the dispatch, with the run-time priority boost set by caller
- _QUEUE will cause the IRP to be queued for delayed execution (not yet implemented)

This allows more flexibility for callers that can set the behavior thanks to the flags.
Default behavior is the previous one: by default the IRP is completed at the end of the dispatch

That one should really come to FastFAT...

svn path=/trunk/; revision=67635
2015-05-10 20:47:44 +00:00
Pierre Schweitzer
edef9fdfae [NTFS]
Handle IRP_MJ_READ with the dispatch routine

svn path=/trunk/; revision=67634
2015-05-10 20:35:40 +00:00
Timo Kreuzer
241a326520 [NTOSKRNL/MM]
Add MI_MAKE_CLEAN_PAGE
Use PTE access macros for portability

svn path=/trunk/; revision=67633
2015-05-10 19:35:24 +00:00
Timo Kreuzer
73e043f5b5 [NTOSKRNL]
- Fix MMPTE vs MMPDE usage
- Use MiPteToPde instead of MiAddressToPte

svn path=/trunk/; revision=67632
2015-05-10 19:35:00 +00:00
Timo Kreuzer
c74c888770 [XDK/DDK/NDK/PSDK/ARMDDK]
- Move stuff from armddk.h to XDK/DDK
- Fix ARM CONTEXT flags
- Add missing KeGetCurrentIrql() for ARM
- Improve some amd64 based definitions
- Use Native math for Int64Sh**Mod32 on ARM

svn path=/trunk/; revision=67631
2015-05-10 19:34:38 +00:00
Timo Kreuzer
840af6fcb3 [NDK]
- Remove unused HYPERSPACE_BASE (which was broken for x86, too)
- Add PAE values for HYPER_SPACE and HYPER_SPACE_END on x86
- Add missing MM_HAL_VA_START and MM_HAL_VA_END for ARM

svn path=/trunk/; revision=67630
2015-05-10 19:33:56 +00:00
Hermès Bélusca-Maïto
d60f8dcc0a [NTVDM]: Implement support for DMA transfers, single-mode only for now, and fix its support for VDDs.
svn path=/trunk/; revision=67629
2015-05-10 18:02:45 +00:00
Timo Kreuzer
fe491d1d3b [RICHED20_WINETEST]
Hey Arch, stop breaking GCC build, while trying to fix MSVC build!

svn path=/trunk/; revision=67628
2015-05-10 17:59:10 +00:00
Timo Kreuzer
f2b82513c2 [RICHED20_WINETEST]
Fix a few more set-but-unused warnings. ("Should be sent to wine-staging"(tm))

svn path=/trunk/; revision=67627
2015-05-10 17:54:02 +00:00
Timo Kreuzer
079df38c99 [KMTEST]
Hey Arch, if you turn warnings into errors, make sure to fix the warnings before!

svn path=/trunk/; revision=67626
2015-05-10 17:37:54 +00:00
Hermès Bélusca-Maïto
e2d20087ab [ROSTESTS]: Move old testdata directory into the new one and add test files by Victor Martinez.
ROSTESTS-169 #resolve

svn path=/trunk/; revision=67625
2015-05-10 14:59:04 +00:00
Pierre Schweitzer
e1c4e3ae3a [NTFS]
Don't force the run-time priority boost in NtfsFsdDispatch(). Some dispatched MJ functions might want to adjust it (MJ_READ/MJ_WRITE/MJ_CREATE).

The same should be actually done in FastFAT. I believe that would help avoiding several code duplications... 

svn path=/trunk/; revision=67624
2015-05-10 14:36:00 +00:00
Aleksandar Andrejevic
4b508e967a [FAST486]
Fix LTR.


svn path=/trunk/; revision=67623
2015-05-10 14:34:28 +00:00
Hermès Bélusca-Maïto
25427ebb72 [NTVDM]: Fix a bug introduced in r67619.
svn path=/trunk/; revision=67622
2015-05-10 14:26:49 +00:00
Thomas Faber
f7d9d7088b [CDFS]
- Mark volumes as read-only. Patch by Barrett Karish.
CORE-9655 #resolve

svn path=/trunk/; revision=67621
2015-05-10 14:09:47 +00:00
Hermès Bélusca-Maïto
020e3f1630 [NTVDM]: Fix current directory stuff.
svn path=/trunk/; revision=67620
2015-05-10 13:34:02 +00:00
Hermès Bélusca-Maïto
86ba2faa4e [NTVDM]: Fix DOS file find. Introduced in r61507, it was indeed untested...
svn path=/trunk/; revision=67619
2015-05-10 12:25:27 +00:00
Hermès Bélusca-Maïto
122a0a5ccc [NTVDM]: Fix (again) command-line parsing in DosCreateProcess.
svn path=/trunk/; revision=67618
2015-05-10 11:34:35 +00:00
Pierre Schweitzer
2225244d03 [NTFS]
Addendum to r67540: don't complete the IRP twice (NtfsQueryInformation() + NtfsFsdDispatch()).
This fixes regression

svn path=/trunk/; revision=67617
2015-05-10 10:30:40 +00:00
Hermès Bélusca-Maïto
32bc389748 [NTVDM]: temporary fix for "lastdrive": put it to 'Z' (max drive letter you can have on DOS). A better fix would be DOS listing all the accessible drives in the current PC and compute the last one.
svn path=/trunk/; revision=67616
2015-05-10 10:28:33 +00:00
Pierre Schweitzer
8ddf736b58 [NTFS]
Handle IRP_MJ_DIRECTORY_CONTROL with the dispatch routine

svn path=/trunk/; revision=67615
2015-05-10 10:17:29 +00:00
Pierre Schweitzer
8426d2f96e [NTFS]
NTFS doesn't need CdfsGetEntryName()

svn path=/trunk/; revision=67614
2015-05-10 10:02:53 +00:00
Aleksandar Andrejevic
2c93627ac0 [NTVDM]
Make sure the BOP doesn't repeat when the timeout expires in INT 15h, AH = 41h.


svn path=/trunk/; revision=67613
2015-05-10 02:10:19 +00:00
Aleksandar Andrejevic
4113fbb5a3 [NTVDM]
- Modify the int32 dispatch to clear the CF only on entry, so that we can
track in our handlers whether it was the first time the BOP executed.
- Implement INT 15h, AH = 41h (Wait On External Event).
- Fix INT 15h, AX = E801h - modify the stack CF instead of the handler CF.
- Make INT 16h AH = 00h clear CF when there is a character, so that the BOP doesn't
repeat.


svn path=/trunk/; revision=67612
2015-05-10 01:42:39 +00:00
Aleksandar Andrejevic
8872cfb339 [NTVDM]
- Implement XMS function 0x0E (Get Handle Information).
- Fix INT 15h, AX = E820h - setCF can't be used inside an int32 callback for changing
the return carry flag, because it has a different meaning there (it means that the BOP
should be repeated). Instead, we must modify the CF that was pushed on the stack.


svn path=/trunk/; revision=67611
2015-05-10 00:55:38 +00:00
Aleksandar Andrejevic
ec4790f045 [NTVDM]
Correct the byte order of the magic value: 'PAMS' -> 'SMAP'.


svn path=/trunk/; revision=67610
2015-05-09 23:56:38 +00:00
Aleksandar Andrejevic
18f771e535 [NTVDM]
Implement BIOS INT 15h functions AX = E820 (Get Memory Map) and AX = E801
(Get Memory Size for >64M Configurations).


svn path=/trunk/; revision=67609
2015-05-09 23:48:09 +00:00
Thomas Faber
88f12ca109 [DDK]
- Include <suppress.h> from wdm.h to satisfy __WARNING_MEMORY_NOT_ACQUIRED. Patch by Mark Jansen.
CORE-9657 #resolve

svn path=/trunk/; revision=67608
2015-05-09 22:49:37 +00:00
Thomas Faber
d0fb55f564 [CMAKE]
- Enable C4189 (local variable initialized but not referenced) on MSVC builds and make it an error.
CORE-9676 #resolve

svn path=/trunk/; revision=67607
2015-05-09 22:44:52 +00:00
Aleksandar Andrejevic
6cba38d854 [FAST486]
If the executable bit of a segment descriptor is set, it's never a grow-down segment.


svn path=/trunk/; revision=67606
2015-05-09 21:56:40 +00:00
Aleksandar Andrejevic
b3dfcac1cf [NTVDM]
Remove an accidentally committed temporary DPRINT1.


svn path=/trunk/; revision=67605
2015-05-09 03:15:11 +00:00
Hermès Bélusca-Maïto
464ff78f4e [NTVDM]: hardcoded_values--;
svn path=/trunk/; revision=67604
2015-05-08 23:47:33 +00:00
Aleksandar Andrejevic
cd1046dd75 [NTVDM]
DosTerminateProcess shouldn't blindly attempt to restore the old state,
(for example if the process was started manually by a debugger).


svn path=/trunk/; revision=67603
2015-05-08 23:26:15 +00:00
Hermès Bélusca-Maïto
410c54e5f9 [NTVDM]: Merge Bios32 ResetBop with POST function.
svn path=/trunk/; revision=67602
2015-05-08 19:43:12 +00:00
Hermès Bélusca-Maïto
b86604cdde [NTVDM]: Implement PC reset handling in the BIOS. Used by some apps for switching from protected mode back to real mode the 286 way (see: http://www.rcollins.org/articles/pmbasics/ for more details).
svn path=/trunk/; revision=67601
2015-05-08 19:26:46 +00:00
Benedikt Freisen
ff8b29da1b [MSPAINT_NEW] Convert to C++, update header comments
svn path=/trunk/; revision=67600
2015-05-08 16:27:46 +00:00
Benedikt Freisen
a95c9f4d03 [MSPAINT_NEW] bootstrap mspaint_new from mspaint
svn path=/trunk/; revision=67599
2015-05-08 16:02:36 +00:00
Aleksandar Andrejevic
93b0b74399 [FAST486]
Fix the order of operatins in RETF.


svn path=/trunk/; revision=67598
2015-05-08 03:43:31 +00:00
Aleksandar Andrejevic
7dbe9e8e67 [FAST486]
The "Call" parameter should be true for calls.


svn path=/trunk/; revision=67597
2015-05-08 02:30:28 +00:00
Aleksandar Andrejevic
d28f0fd901 [FAST486]
Don't forget to check for gates in 16-bit protected mode too.


svn path=/trunk/; revision=67596
2015-05-08 01:34:18 +00:00
Hermès Bélusca-Maïto
1522bf4fc0 [NTVDM]
- Move some interrupt initialization where it belongs and activate few other ones.
- Initialize interruct vector for INT 2Ah (Network check) because some apps directly call it and crash if it contains NULL.

svn path=/trunk/; revision=67595
2015-05-07 23:54:47 +00:00
Hermès Bélusca-Maïto
226f484ce6 [NTVDM]: Initialize only the interrupt vectors that we really need, and nothing else. I also include a (by default disabled) option that activates extended debug features that may break some DOS apps (for example, initializing ALL of the non-handled interrupts to a default vector), to be used at your own risk.
svn path=/trunk/; revision=67594
2015-05-07 23:11:32 +00:00
Aleksandar Andrejevic
e37ae6f6bd [FAST486]
Support legacy (286) Task State Segments in Fast486InterruptInternal and Fast486CallGate.


svn path=/trunk/; revision=67593
2015-05-07 13:38:29 +00:00
Aleksandar Andrejevic
26ba3ae4f6 [FAST486]
The NULL selector is valid in the LDT.


svn path=/trunk/; revision=67592
2015-05-07 12:18:41 +00:00
Aleksandar Andrejevic
dfb9b0ea42 [FAST486]
Add support for legacy (286) Task State Segments.


svn path=/trunk/; revision=67591
2015-05-07 03:22:18 +00:00
Hermès Bélusca-Maïto
a3c2a76a7e [NTVDM]: Update the console title only in non-standalone mode.
svn path=/trunk/; revision=67590
2015-05-07 01:44:29 +00:00
Hermès Bélusca-Maïto
dcfe21b3c1 [NTVDM]
- Improvement/Usability: when a DOS app is started in a separate console, print its full path as it's done in Windows.
- Stubplement a LoadGlobalSettings function for NTVDM so that it will be able to grab user settings from the registry.
- Move DOS-only related variables AcceptCommands, CommandThread and SessionId to where they belong. I will rework ConsoleCtrlHandler to make it more elegant in the future (DOS-agnostic).
- Remove the useless ENTER-key-up hack.

svn path=/trunk/; revision=67589
2015-05-07 01:23:33 +00:00
Aleksandar Andrejevic
194530e567 [NTVDM]
Fix the previous fix.


svn path=/trunk/; revision=67588
2015-05-07 00:53:47 +00:00
Aleksandar Andrejevic
17fd1cc052 [NTVDM]
Fix the calculation of the executable's base size.


svn path=/trunk/; revision=67587
2015-05-07 00:36:14 +00:00
Aleksandar Andrejevic
6dede8eba6 [NTVDM]
... and don't forget to set AH to the error code.


svn path=/trunk/; revision=67586
2015-05-06 23:13:55 +00:00
Aleksandar Andrejevic
93e6fa1b01 [NTVDM]
Implement EMS function AH = 59h (Get Expanded Memory Hardware Information).


svn path=/trunk/; revision=67585
2015-05-06 23:06:28 +00:00
Aleksandar Andrejevic
f619a2d270 [NTVDM]
- INT 21h AH = 0Ah: don't increment the count for a backspace.
- Fix the EMS version number.


svn path=/trunk/; revision=67584
2015-05-06 22:41:22 +00:00
David Quintana
f6f2e8dbac [EXPLORER]
Remove notification icons when their attached HWND is no longer valid. Patch by Joachim Henze (reactosfanboy), with some extra newlines by me.
CORE-9537 #resolve

svn path=/trunk/; revision=67583
2015-05-06 22:13:06 +00:00
Hermès Bélusca-Maïto
9e03420395 [NTVDM]: Move the DosStartProcess dprint inside the function.
svn path=/trunk/; revision=67582
2015-05-06 22:07:16 +00:00
Ged Murphy
3dd1331f2c [ATL]
Add support for assigning CAtlString to WCHAR

svn path=/trunk/; revision=67581
2015-05-06 21:56:24 +00:00
Aleksandar Andrejevic
17047d0b62 [NTVDM]
Try to find the shortened full path in DosLoadExecutable, and use that whenever
possible.


svn path=/trunk/; revision=67580
2015-05-06 21:56:15 +00:00
Ged Murphy
41044145e2 [ATL]
Add skeleton support for CAtlStringW

svn path=/trunk/; revision=67579
2015-05-06 21:31:40 +00:00
Aleksandar Andrejevic
df3b279994 [NTVDM]
The DOS CON driver shouldn't return DOS_DEVSTAT_BUSY while an extended
character can be read.


svn path=/trunk/; revision=67578
2015-05-06 20:09:38 +00:00
Aleksandar Andrejevic
5f9be9e447 [NTVDM]
Implement EMS functions AH = 47h and AH = 48h (Save/Restore Page Map).


svn path=/trunk/; revision=67574
2015-05-06 03:52:19 +00:00
Aleksandar Andrejevic
ea58ec7edb [NTVDM]
Implement EMS function AH = 53h (Get/Set Handle Name).
Some programs expect to find the string "EMMXXXX0" at offset 0x0A in
the segment where the EMS interrupt handler is, so move the interrupt
handler BOP to the private device area of the EMS driver.


svn path=/trunk/; revision=67573
2015-05-06 03:38:41 +00:00
Aleksandar Andrejevic
64dcdf9208 [NTVDM]
Don't set all the bits in the bitmap in XmsAlloc.


svn path=/trunk/; revision=67572
2015-05-06 02:05:01 +00:00
Ged Murphy
3f81100a8b Revert NTAPI changes.
MS uses stdcall by default (/gz), we don't and need to explicitly add this in the headers

svn path=/trunk/; revision=67571
2015-05-05 22:30:50 +00:00
Daniel Reimer
8ad8574f4b [RC] Truncate some too long strings in resources. Some I cant't cut down because of it's language were marked as too long for translators to fix. VMWInst skipped, it should die anyway.
svn path=/trunk/; revision=67570
2015-05-05 21:00:44 +00:00
Aleksandar Andrejevic
fbd6184f27 [NTVDM]
Fix INT 16h, AH=01h/11h.


svn path=/trunk/; revision=67569
2015-05-05 20:49:09 +00:00
Timo Kreuzer
066c89edc7 [NTOSKRNL/FREELDR/NDK]
- "equalize" internal arch specific Mm headers
- Move some definitions into more appropriate locations

svn path=/trunk/; revision=67568
2015-05-05 20:36:07 +00:00
Timo Kreuzer
e2ae1410f2 [NTOSKRNL]
Clean up some obsolete architecture specific Mm definitions

svn path=/trunk/; revision=67567
2015-05-05 20:35:27 +00:00
Timo Kreuzer
29182af8fc [NTOSKRNL]
Remove unused MmGetPageDirectory.

svn path=/trunk/; revision=67566
2015-05-05 20:35:00 +00:00
Timo Kreuzer
472e68f392 [DDK]
Fix declaration of NdisCopyLookaheadData

svn path=/trunk/; revision=67565
2015-05-05 20:34:34 +00:00
Timo Kreuzer
1112c00ae0 [CPPRT]
Add some symbol aliases for ARM

svn path=/trunk/; revision=67564
2015-05-05 20:14:28 +00:00
Ged Murphy
b9c0d08099 [DDK]
Fix the FS filter callback definitions

svn path=/trunk/; revision=67563
2015-05-05 18:54:28 +00:00
Aleksandar Andrejevic
82000b2bed [NTVDM]
Revert r67561. It's incorrect.


svn path=/trunk/; revision=67562
2015-05-05 18:16:56 +00:00
Aleksandar Andrejevic
d9c9353901 [NTVDM]
The DOS CON driver should support extended keystrokes.


svn path=/trunk/; revision=67561
2015-05-05 17:56:37 +00:00
Aleksandar Andrejevic
935a593a23 [NTVDM]
Fix the BIOS handling of extended scancodes.


svn path=/trunk/; revision=67560
2015-05-05 17:37:06 +00:00
Daniel Reimer
ba0887eb81 [ROSAPPS]
After r67555 regexpl builds fine on MSVC. So reactivate it. Thx goes to ThFabba

svn path=/trunk/; revision=67559
2015-05-05 17:02:28 +00:00
Christoph von Wittich
ded00cc5f0 [NTVDM]
addenum to r67557

svn path=/trunk/; revision=67558
2015-05-05 08:11:22 +00:00
Christoph von Wittich
5324112cdb [NTVDM]
don't try to deference an uninitialized Timer

svn path=/trunk/; revision=67557
2015-05-05 08:07:08 +00:00
Aleksandar Andrejevic
4e51a1b77e [NTVDM]
In DosTerminateProcess, McbSegment is the segment of the MCB itself, not the data
it contains.


svn path=/trunk/; revision=67556
2015-05-05 03:52:25 +00:00
Thomas Faber
6e72d71daa [C++]
- Add nothrow versions of new/delete operators
- Add <cassert>
- Fix a TODO and add missing dependency to <exception> header

svn path=/trunk/; revision=67555
2015-05-05 02:44:17 +00:00
Daniel Reimer
72d0938ba9 oooops
svn path=/trunk/; revision=67554
2015-05-05 01:27:21 +00:00
Daniel Reimer
2daf95e450 [ROSAPPS]
Disable regexpl for now because this is a strange MSVC build error...

svn path=/trunk/; revision=67553
2015-05-05 01:25:11 +00:00
Daniel Reimer
edcfde0c22 [ROSAPPS]
Add some missing german translations
Add some missing manifests
Improve some resources
Add possibility to build an application with one language

svn path=/trunk/; revision=67552
2015-05-05 01:07:42 +00:00
Aleksandar Andrejevic
fc5ec1fbac [NTVDM]
Send 0xE0 before each extended key scancode.


svn path=/trunk/; revision=67551
2015-05-05 00:55:56 +00:00
Daniel Reimer
cd87007594 [ROSAPPS]
Fix binpatch and systeminfo MSVC build.

svn path=/trunk/; revision=67550
2015-05-05 00:18:15 +00:00
Hermès Bélusca-Maïto
0048c572a0 [NTVDM]: Add a debug feature to detect which apps erroneously call by themselves the BIOS initialization routine (POST). For whatever reason it is what MSD version 2 and above does.
svn path=/trunk/; revision=67549
2015-05-05 00:11:43 +00:00
Daniel Reimer
26aa5486a1 [ROSAPPS]
Fix symdump, ncftp and netreg MSVC build.

svn path=/trunk/; revision=67548
2015-05-04 23:08:17 +00:00
Aleksandar Andrejevic
772a8d3918 [FAST486]
The parameter count is not pushed onto the stack for call gates.


svn path=/trunk/; revision=67547
2015-05-04 22:16:20 +00:00
Hermès Bélusca-Maïto
048d0522f4 [USETUP]: Instead of defining a special function "DrawInputField" just to draw an input field for entering the partition size number, just use the already existing CONSOLE_SetInputTextXY function (and adapt the calling code because the string buffer for the SetInputTextXY function wants a unicode string). We now have a consistent input UI for usetup.
CORE-9453 #resolve #comment I committed a more elegant solution to this problem.

svn path=/trunk/; revision=67546
2015-05-04 20:50:51 +00:00
Aleksandar Andrejevic
ac4f5ac401 [FAST486]
- Implement call gates.
- Fix Fast486InterruptInternal and get rid of ugly hacks.
- Fix IRET (CS loaded too early).
- Add a structure definition for the 16-bit TSS (not supported yet).


svn path=/trunk/; revision=67545
2015-05-04 19:14:23 +00:00
Aleksandar Andrejevic
866f04e377 [NTVDM]
Implement VGA read mode 1.


svn path=/trunk/; revision=67541
2015-05-03 22:02:41 +00:00
Pierre Schweitzer
0a02a6e9b7 [NTFS]
Handle the file query information IRP major with the dispatch routine

svn path=/trunk/; revision=67540
2015-05-03 18:36:58 +00:00
Pierre Schweitzer
7a305fc01f [NTFS]
Store stack & FO in IRP context

svn path=/trunk/; revision=67539
2015-05-03 18:25:55 +00:00
Pierre Schweitzer
0e1b711195 [NTFS]
Set a flag in the IRP context when an IRP can wait on locking

svn path=/trunk/; revision=67538
2015-05-03 18:17:39 +00:00
Timo Kreuzer
344e771eb2 [CRT]
- Implement portable fabsf.c
- Move some ARM stubs to a better location
- Add stubs for __dtoi64, __i64tos, __u64tos, _clearfp

svn path=/trunk/; revision=67537
2015-05-03 18:15:19 +00:00
Pierre Schweitzer
f982ad2644 [NTFS]
An IRP context without an IRP sounds like a challenge...

svn path=/trunk/; revision=67536
2015-05-03 18:13:16 +00:00
Timo Kreuzer
11a3512389 [ATL]
- Handle failure to allocate VM for thunk code
- Factor out the assembly thumk code, fix amd64 code and implement ARM code

svn path=/trunk/; revision=67535
2015-05-03 18:03:31 +00:00
Timo Kreuzer
a1bc58aee7 [ATL]
- Convert tabs to spaces
- Remove excessive local variable indentation for alignment, since that doesn't help to improve readability
- No code changes

svn path=/trunk/; revision=67534
2015-05-03 15:10:09 +00:00
Aleksandar Andrejevic
1317139297 [FAST486]
Don't overwrite the masked flags in IRET.


svn path=/trunk/; revision=67533
2015-05-03 13:14:53 +00:00
Amine Khaldi
dff30c48fa [KERNEL32] Add Italian translation by Carlo Bramini. CORE-9650
svn path=/trunk/; revision=67532
2015-05-03 12:56:51 +00:00
Amine Khaldi
6135f8221c [SETUPAPI_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67531
2015-05-03 11:33:46 +00:00
Amine Khaldi
a31e415ce7 [REG_WINETEST] Import from Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67530
2015-05-03 11:32:28 +00:00
Amine Khaldi
43536d8977 [REG] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67529
2015-05-03 11:30:49 +00:00
Aleksandar Andrejevic
923efbbc4e [FAST486]
Properly check the limit for "expand down" segments.


svn path=/trunk/; revision=67528
2015-05-03 03:37:06 +00:00
Aleksandar Andrejevic
3da5321a16 [NTVDM]
- Fix a typo.
- Use a #define for the device flag.
- In r67526, the following change was committed but not described in the commit message:
- Enable opening devices in DosCreateFile and DosCreateFileEx.


svn path=/trunk/; revision=67527
2015-05-03 02:11:32 +00:00
Aleksandar Andrejevic
a1e439008e [FAST486]
Update the copyright year (better late than never).
Push the error code inside Fast486InterruptInternal, to make the size of the
pushed value on the stack correct.
Update the CPL in Fast486TaskSwitch.


svn path=/trunk/; revision=67526
2015-05-03 01:45:57 +00:00
Timo Kreuzer
e8cff2f3a5 [NDK]
Add a few definitions based on (Windows RT 8.1) symbol files, ks386.inc, ksamd64.inc, ksarm.inc and Windows 10 WDK (ntosp.h ftw!)

svn path=/trunk/; revision=67525
2015-05-02 23:12:19 +00:00
Timo Kreuzer
5b7d2dec59 [NTOSKRNL]
- Implement KiCpuId and make use of it
- Get rid of ugly CPUID, RDMSR and WRMSR functions
- remove unused KTS_ constants

svn path=/trunk/; revision=67524
2015-05-02 23:11:50 +00:00
Timo Kreuzer
0100d8de0c [NTOSKRNL] Handle some more KeFeatureFlags in amd64/cpu.c and set RtlpUse16ByteSLists
[NTDLL] Set RtlpUse16ByteSLists
[RTL] Make use of RtlpUse16ByteSLists in x64 Interlocked SList functions

svn path=/trunk/; revision=67523
2015-05-02 22:20:59 +00:00
Timo Kreuzer
e31acf630c [RTL]
- Implement C versions of RtlInterlockedPushEntrySList, RtlInterlockedPushListSList, RtlInterlockedPopEntrySList and RtlInterlockedFlushSList.
- RtlInterlockedPushListSList is fastcall, not stdcall

svn path=/trunk/; revision=67522
2015-05-02 22:20:38 +00:00
Timo Kreuzer
0c0c8d637f [DDK/XDK]
- Improve definition of ExInterlockedCompareExchange64 and interlocked SList functions and improve some annotations based on native header
- Update processor feature constants

svn path=/trunk/; revision=67521
2015-05-02 22:20:18 +00:00
Timo Kreuzer
49dfd75396 [XDK/DDK/NDK]
Simplify RtlXxxByteSwap macros (use them unconditionally)

svn path=/trunk/; revision=67520
2015-05-02 22:19:47 +00:00
Timo Kreuzer
6223a53eb1 [CRT] Fix MSVC warnings
svn path=/trunk/; revision=67519
2015-05-02 22:19:31 +00:00
Hermès Bélusca-Maïto
bc3ca7d415 [NTVDM]
Mouse:
- Remove now useless code in mouse support in BIOS.
- Implement INT 33h, AH=1Bh "Return mouse sensitivity" (returning hardcoded standard values since we don't support custom sensitivities) (AH=13h and 1Ah are marked as UNSUPPORTED).
- INT 33h, AH=1Fh "Disable mouse driver" returns in ES:BX the old INT 33h vector value: implement that.
- Implement INT 33h, AH=21h "Software reset", AH=24h and 4Dh and 6Dh "Software version and mouse info", "pointer to copyright string" and "version 'string'" functionalities.

DOS:
- Initialize in Win2k3-ntvdm-compatible order the DOS drivers: NUL, then CON, then XMS, and then EMS.
- Fix segment/offset inversion usage in INT 21h, AH=5Ch "Lock/Unlock region of file": when using MAKELONG macro to build a far pointer, the first parameter (loword) is the offset, and the second parameter (hiword) is the segment.

svn path=/trunk/; revision=67518
2015-05-02 20:48:08 +00:00
Amine Khaldi
b18c48243f [BOOTDATA] Add missing font DPI entries in registry. By Ziliang Guo. CORE-8902
svn path=/trunk/; revision=67517
2015-05-02 19:55:55 +00:00
Amine Khaldi
e242dc3f08 [SYSSETUP] Fix timezone setup in the unattended install of ReactOS. Spotted and fixed by V. CORE-9648
svn path=/trunk/; revision=67516
2015-05-02 19:48:26 +00:00
Amine Khaldi
a4675648df [WBEMDISP_WINETEST] Import from Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67515
2015-05-02 19:40:48 +00:00
Amine Khaldi
8597a0a5f3 [WBEMDISP] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67514
2015-05-02 19:38:14 +00:00
Aleksandar Andrejevic
af48f83e26 [NTVDM]
Save/restore the processor state when executing/terminating nested tasks.


svn path=/trunk/; revision=67513
2015-05-02 18:51:03 +00:00
Aleksandar Andrejevic
a4901dfae5 [FAST486]
When storing a segment selector, the operand size attribute is only ignored when
writing to memory (where it's treated as if it's always 16-bit).


svn path=/trunk/; revision=67512
2015-05-02 16:09:00 +00:00
Timo Kreuzer
9806b6c055 [CRT]
Implement _setjmp / longjmp on ARM

svn path=/trunk/; revision=67511
2015-05-02 14:07:28 +00:00
Timo Kreuzer
dbdef0de20 [CRT]
Add stub for __i64tod and C++ wrappers for ARM

svn path=/trunk/; revision=67510
2015-05-02 12:48:50 +00:00
Amine Khaldi
c8824c92cf [MSPORTS] Introduce a setting that makes the driver accept resources with an IRQ instead of only resources without an IRQ. Brought to you by The ReactOS Printing Group. CORE-9645
svn path=/trunk/; revision=67509
2015-05-02 10:23:26 +00:00
Amine Khaldi
25b7bb215e [PARPORT] Introduce a skeleton that will serve as base for implementing the parallel port function driver. Brought to you by The ReactOS Printing Group. CORE-9644
svn path=/trunk/; revision=67508
2015-05-02 10:15:37 +00:00
Aleksandar Andrejevic
b2311765e9 [NTVDM]
Implement INT 27h (Terminate and Stay Resident).
Keep track of the last entry SS:SP in the INT 21h handler.
Restore the stack in DosTerminateProcess.
The number of bytes to keep resident applies only to the block which holds the PSP,
other blocks are not freed.


svn path=/trunk/; revision=67507
2015-05-02 02:59:21 +00:00
Hermès Bélusca-Maïto
dc0c0c695b Fix compilation.
svn path=/trunk/; revision=67506
2015-05-02 01:26:42 +00:00
Hermès Bélusca-Maïto
0345f7203f [NTVDM]
- Fix command-line handling.
- Disable a hack introduced in r65012 for testing purposes.

svn path=/trunk/; revision=67505
2015-05-02 01:23:27 +00:00
Aleksandar Andrejevic
9b5a4bf8a2 [NTVDM]
Implement INT 21h, AH = 36h "Get Free Disk Space".


svn path=/trunk/; revision=67504
2015-05-01 23:04:03 +00:00
Thomas Faber
5f7df0d9ad [NPFS]
- Correctly check for write quota in NpCommonWrite. Should fix test regressions after enabling fast I/O.

svn path=/trunk/; revision=67503
2015-05-01 19:40:04 +00:00
Pierre Schweitzer
8ce4d75f45 [NTFS]
Why would you allocate NTFS global data structure twice to use it from only one location?
Fix that misbehavior.

svn path=/trunk/; revision=67502
2015-05-01 18:58:00 +00:00
Pierre Schweitzer
e7ad148a6c [NTFS]
Add FastIO non-support in NTFS

svn path=/trunk/; revision=67501
2015-05-01 18:38:10 +00:00
Pierre Schweitzer
b4e21f0b6f [CDFS]
No, FastIo is not possible!

svn path=/trunk/; revision=67500
2015-05-01 17:45:16 +00:00
Pierre Schweitzer
e295fdb99b [CDFS]
Set SizeOfFastIoDispatch member

svn path=/trunk/; revision=67499
2015-05-01 17:41:38 +00:00
Aleksandar Andrejevic
613b74b43d [NTVDM]
Separate the process-related code from the DOS kernel.
Enable starting processes from other processes in STANDALONE mode.
Implement INT 21h, AH = 55h and INT 21h, AH = 26h (Create/Clone PSP).
Implement overlay loading.


svn path=/trunk/; revision=67498
2015-05-01 15:42:54 +00:00
Thomas Faber
2aab9460a2 [BLUE]
- Arch, learn how to properly revert things?

svn path=/trunk/; revision=67497
2015-05-01 13:58:37 +00:00
Thomas Faber
067be5c23a [BLUE][CDFS]
- Arch, don't assume the driver you see in the backtrace is one that needs fixing. CDFS is the one who's a file system driver here...

svn path=/trunk/; revision=67496
2015-05-01 13:56:37 +00:00
Thomas Faber
a1283b2745 [BLUE]
- FastIoDispatch is not optional for file system drivers!

svn path=/trunk/; revision=67495
2015-05-01 13:46:08 +00:00
Thomas Faber
e03d4423da [NTOS:IO]
- Implement Fast I/O support in NtReadFile/NtWriteFile
CORE-9624

svn path=/trunk/; revision=67494
2015-05-01 13:20:26 +00:00
Thomas Faber
68defa9dd4 [KMTESTS:IO]
- Also test write operations in IoReadWrite
- Add some nonzero success statuses
CORE-9624

svn path=/trunk/; revision=67493
2015-05-01 12:50:12 +00:00
Eric Kohl
e6c08e03e2 [FASTFAT]
VfatRead: Check the Length before checking the ByteOffset because reading 0 bytes should always be successful.

svn path=/trunk/; revision=67492
2015-05-01 12:15:49 +00:00
Thomas Faber
e02846b73f [NTOS:IO]
- Free the correct event pointer when out of memory in IopDeviceFsIoControl

svn path=/trunk/; revision=67491
2015-05-01 12:00:50 +00:00
Thomas Faber
bb4b99166e [NTOS:IO]
- Don't leak event object reference when out of memory in NtReadFile/NtWriteFile

svn path=/trunk/; revision=67490
2015-05-01 11:57:51 +00:00
Thomas Faber
fbe8fcb291 [NTOS:IO]
- IopCompleteRequest: in case of an exception, fail the IRP as shown by kmtest:IoReadWrite
CORE-9624

svn path=/trunk/; revision=67489
2015-05-01 11:52:32 +00:00
Thomas Faber
f1b1a2086e [KMTESTS:IO]
- Fix GCC build

svn path=/trunk/; revision=67488
2015-05-01 11:07:40 +00:00
Thomas Faber
abb2dff020 [KMTESTS:IO]
- Add a test for the interaction between NtReadFile and a file system driver
CORE-9624

svn path=/trunk/; revision=67487
2015-05-01 11:03:21 +00:00
Thomas Faber
054e41ecad [KMTEST]
- Add TESTENTRY_NO_READONLY_DEVICE and TESTENTRY_BUFFERED_IO_DEVICE flags for standalone drivers

svn path=/trunk/; revision=67486
2015-05-01 10:52:37 +00:00
Thomas Faber
6a200446dc [NTOS:IO]
- Add missing SEH around user buffer access in IopCompleteRequest
- Remove a redundant condition
CORE-9624

svn path=/trunk/; revision=67485
2015-05-01 10:49:50 +00:00
David Quintana
fd81042a22 Note to self: review diffs and remove temporary changes BEFORE commiting (not after).
svn path=/trunk/; revision=67484
2015-04-30 22:09:11 +00:00
David Quintana
3933ca6bce This commit brings support for compiling ReactOS with Visual Studio 2015 RC (and possibly the final release).
[BUILD]
msvc.cmake: Disable thread-local static initialization.
CMakeLists.txt: Disable PCH for VS2015.
configure.cmd: Make it aware of cl.exe version 19.x

[CPPRT]
Add alias for the new variants of the delete operators.

[BROWSEUI]
[MFIFS]
[FRAMEDYN]
[NDIS]
[DDK]
[PSDK]
[STLPORT]
Add explicit declarations of the new delete operators for those modules that don't use the WITH_RUNTIME option.

[WIDL]
[WPP]
Do not alias the snprintf family of functions to the _snprintf variants, since VS14 already declares them internally.

svn path=/trunk/; revision=67483
2015-04-30 21:48:26 +00:00
Timo Kreuzer
a4df06a55c [CRT/KERNEL32]
Add some more ARM stubs

svn path=/trunk/; revision=67482
2015-04-30 21:07:08 +00:00
Timo Kreuzer
3a25ca3b5c [CRT]
Add a number of ARM 

svn path=/trunk/; revision=67481
2015-04-30 21:04:29 +00:00
Amine Khaldi
80217852de [COMCTL32] Export DrawShadowText() and mention that it's exported only in v6. Dedicated to Stefano Toncich aka Tonix.
svn path=/trunk/; revision=67480
2015-04-30 15:56:19 +00:00
Aleksandar Andrejevic
1160180478 [FAST486]
When a segment isn't present, the exception should always be #NP (unless
it was the stack segment, in which case the exception should be #SS).


svn path=/trunk/; revision=67479
2015-04-29 20:41:41 +00:00
Aleksandar Andrejevic
5891e0a021 [NTVDM]
The fix in r67477 was incorrect. When loading an executable high, we need to
allocate all of the memory and copy the program itself to the highest part of it.
I know it sounds illogical but that's how it works...


svn path=/trunk/; revision=67478
2015-04-29 03:18:02 +00:00
Aleksandar Andrejevic
294468d4e7 [NTVDM]
If both e_minalloc and e_maxalloc are 0, the program should be loaded high.


svn path=/trunk/; revision=67477
2015-04-29 01:21:58 +00:00
Aleksandar Andrejevic
eba20f3ad8 [NTVDM]
Also check for BlockData == 0 in RosResizeMemory. This, however, wasn't a crash since we
were lucky enough to cast the segment to a WORD before the access.


svn path=/trunk/; revision=67476
2015-04-29 00:58:22 +00:00
Aleksandar Andrejevic
86c7c4fb83 [NTVDM]
Don't crash when DosFreeMemory is called with BlockData == 0.


svn path=/trunk/; revision=67475
2015-04-29 00:47:06 +00:00
David Quintana
38af0226a1 [RAPPS_NEW]
Continue the work converting the UI to using ATL-wrapped windows. CORE-9593

[RSHELL]
[EXPLORER]
Fixup two class declarations to work with the rosctrls.h changes.

svn path=/trunk/; revision=67474
2015-04-29 00:07:54 +00:00
Timo Kreuzer
4d59b2ba82 [NDK/KERNEL32]
Improve definition of FIBER. Based on ks386.inc, ksarm.h and ksamd64.inc

svn path=/trunk/; revision=67473
2015-04-28 21:27:35 +00:00
Timo Kreuzer
58de1d8ba9 [KERNEL32/NDK]
Move definition of FIBER to NDK

svn path=/trunk/; revision=67472
2015-04-28 21:27:16 +00:00
Timo Kreuzer
6a0d45da07 [NDK]
- Move definition of TIMER_TABLE_ENTRY from ntoskrnl to NDK
- Add definitions of KTIMER_TABLE, KDPC_LIST, SYNCH_COUNTERS

svn path=/trunk/; revision=67471
2015-04-28 21:26:56 +00:00
Timo Kreuzer
6077e75c7f [NDK]
Use portable definitions for service table constants. (Moved from ARM specific definition in ntoskrnl internal header, with a fixed value for TABLE_NUMBER_BITS, which is 1, not 3)

svn path=/trunk/; revision=67470
2015-04-28 21:26:37 +00:00
Timo Kreuzer
a129e1c53e [NDK]
- Move _MMPTE definition to arch specific files
- Fix _MMPTE_HARDWARE on arm (struct, not union!)

svn path=/trunk/; revision=67469
2015-04-28 21:26:15 +00:00
Timo Kreuzer
0a97d41371 [PSDK]
Update sdkddkver.h with latest version constants up to windows 10.

svn path=/trunk/; revision=67468
2015-04-28 21:25:57 +00:00
Timo Kreuzer
a2e4378502 [FREELDR]
Hey Arch, hyperspace is not the page table range!
Rename HYPER_SPACE_ENTRY to SELFMAP_ENTRY.

svn path=/trunk/; revision=67467
2015-04-28 21:25:43 +00:00
Timo Kreuzer
1eea6a990f [NTOSKRNL]
Fix MSVC warnings.

svn path=/trunk/; revision=67466
2015-04-28 21:25:21 +00:00
Christoph von Wittich
68e04b629e spelling fixes
no code changes

svn path=/trunk/; revision=67465
2015-04-28 19:22:43 +00:00
Thomas Faber
22d49c5df5 [NTOS:MM]
- Consistently return STATUS_INVALID_IMAGE_PROTECT from PeFmtCreateSection if the PE signature is missing. Patch by V.
CORE-9618 #resolve

svn path=/trunk/; revision=67464
2015-04-28 07:07:57 +00:00
Aleksandar Andrejevic
12c22c7748 [FAST486]
The segment loading/storing MOV is always 16-bit and ignores OPSIZE.


svn path=/trunk/; revision=67463
2015-04-28 00:56:56 +00:00
Aleksandar Andrejevic
f7561326df [NTVDM]
In DosAllocateMemory, when the "last fit" allocation strategy is selected, split
the block so that the last part of it is used.


svn path=/trunk/; revision=67462
2015-04-27 18:23:39 +00:00
Daniel Reimer
c54e0547e1 [CYLFRAC] Change to use scrnsave library. Tidy up all now useless stuff. Tabs -> spaces. Single language link in support added. Noticable change: Multi Monitor support!
svn path=/trunk/; revision=67461
2015-04-27 17:25:42 +00:00
David Quintana
d793ad1a16 [RAPPS_NEW]
Initial work on a lightweight layout engine for ATL::CWindow. 
Although a lot of work is still required making the classes more generic and layout-aware,
but it is already able to replicate the original rapps layout without explicit positioning of the windows.
Committing mostly for backup/history purposes.
CORE-9593

svn path=/trunk/; revision=67460
2015-04-27 15:01:40 +00:00
Aleksandar Andrejevic
a2b6d6c3e5 [NTVDM]
Remove the useless wrappers BiosPeekCharacter and BiosGetCharacter. They're also
a source of bugs since 0xFFFF could legitimately appear in the buffer.


svn path=/trunk/; revision=67459
2015-04-27 14:14:14 +00:00
Aleksandar Andrejevic
619aaae278 [NTVDM]
Revert one unwanted change in r67457.


svn path=/trunk/; revision=67458
2015-04-27 04:12:31 +00:00
Aleksandar Andrejevic
a8c3b4f1d9 [NTVDM]
- In INT 21h, AH = 0Ah, the final carriage return is not counted.
- Implement XMS function 0Bh (Move Extended Memory Block).
- The driver must preserve the contents of unlocked Extended Memory Blocks (EMBs),
so move the bitmap setting/clearing code into XmsAlloc and XmsFree.
- Make XmsAlloc optimize memory blocks by moving them around, except it can't
move locked blocks.


svn path=/trunk/; revision=67457
2015-04-27 03:37:24 +00:00
Aleksandar Andrejevic
2351ed3e6e [NTVDM]
Don't search through high memory again after we've finished searching
through high memory and low memory.


svn path=/trunk/; revision=67456
2015-04-27 01:05:25 +00:00
Daniel Reimer
a80379f358 [STARFIELD] Change to use scrnsave library. Tidy up all now useless stuff. Tabs -> spaces. Single language link in support added. Noticable change: Multi Monitor support!!! TBD, some user configuration stuff maybe
svn path=/trunk/; revision=67455
2015-04-27 01:04:01 +00:00
Aleksandar Andrejevic
0a06865906 [NTVDM]
Properly initialize the CON device file descriptor when copying the system
handle table.


svn path=/trunk/; revision=67454
2015-04-26 23:24:21 +00:00
Sylvain Petreolle
aa2b21abbc [SCHANNEL]
Use the force^W SONAME_LIBGNUTLS constant.

svn path=/trunk/; revision=67453
2015-04-26 20:51:10 +00:00
Daniel Reimer
308a2b8491 [ROSAPPS]
Capitalize "os" in the "ReactOS" part 3 by Adam Stachowicz
CORE-9558 #comment Corrected the one in startmenu.h too.

svn path=/trunk/; revision=67451
2015-04-26 20:43:26 +00:00
Daniel Reimer
a88269dd8b [ROSAPPS]
Capitalize "os" in the "ReactOS" part 3 by Adam Stachowicz
CORE-9558 #comment ROSAPPS patch applied.

svn path=/trunk/; revision=67450
2015-04-26 20:38:46 +00:00
Daniel Reimer
049a0956ea [CARDS]
Alignment issue with the new cards dll by oldman
ROSAPPS-296 #comment Tried to minimize the issue. Better IMO

svn path=/trunk/; revision=67449
2015-04-26 20:22:01 +00:00
Timo Kreuzer
3cbf4011f4 [XDK]
Add arm/mm.h (not used yet)

svn path=/trunk/; revision=67448
2015-04-26 20:20:08 +00:00
Daniel Reimer
22494af5da [MAZE] (RIP GvG...)
Improvements to Maze by Jared Smudde
ROSAPPS-299 #resolve #comment Applied, thx for help.

svn path=/trunk/; revision=67447
2015-04-26 20:02:30 +00:00
Amine Khaldi
3f777318ec [USERENV] Check for invalid parameters in Get{Profiles,UserProfile}Directory{A,W}. Fixes userenv:userenv test crash.
svn path=/trunk/; revision=67446
2015-04-26 19:17:51 +00:00
Amine Khaldi
fb31661620 [USERENV_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67445
2015-04-26 18:38:10 +00:00
Aleksandar Andrejevic
12dff944a2 [NTVDM]
Implement INT 21h, AH = 52h (Get List of Lists - SYSVARS).
Rewrite the SFT code to keep the SFT in guest memory.
Implement the NUL device driver.


svn path=/trunk/; revision=67444
2015-04-26 18:09:57 +00:00
Hermès Bélusca-Maïto
71a0dd0f0e Forgot this change too.
svn path=/trunk/; revision=67443
2015-04-26 17:50:38 +00:00
Hermès Bélusca-Maïto
b4ebdb1ae9 [REACTOS]: Add a "testdata" subdirectory in %SystemRoot%\bin\ where you can put all needed extra files for the tests. In addition, all the files present in your rostests\testdata local directory of your working copy are also copied into %SystemRoot%\bin\testdata .
svn path=/trunk/; revision=67442
2015-04-26 17:47:55 +00:00
Daniel Reimer
c6fef20f03 [ROSAPPS] Fix a few resource errors. Thx goes to Igor Koshpaev for noticing.
svn path=/trunk/; revision=67441
2015-04-26 17:25:26 +00:00
Daniel Reimer
1d2cb78a6c [DXTN]
Really really fix MSVC this time.

svn path=/trunk/; revision=67440
2015-04-26 17:09:11 +00:00
Daniel Reimer
aa76a2c168 [ROSAPPS] put -Wno-unused-but-set-variable between a if(NOT MSVC) to really make MSVC happy this time / Get rid of -Wno-implicit-function-declaration (include juggling + add definitions) and -Wno-format-extra-args (shorten sprinf) in ncftp. / Fix rosperf build and add it to cmake build now.
svn path=/trunk/; revision=67439
2015-04-26 17:08:34 +00:00
Daniel Reimer
7338ca79c0 [DXTN] -Wno-error=unused-but-set-variable -> -Wno-unused-but-set-variable to make MSVC happy
svn path=/trunk/; revision=67438
2015-04-26 14:12:24 +00:00
Daniel Reimer
8d599fac7d [ROSAPPS] Add sysutils/utils folder completely (except rosperf for now) / Fix two wrong output paths in roshttpd and ncftp / -Wno-error=unused-but-set-variable -> -Wno-unused-but-set-variable to make MSVC happy
svn path=/trunk/; revision=67437
2015-04-26 14:11:18 +00:00
Kamil Hornicek
d3a6637990 [W32KNAPI]
- NEW_CURSORICON is no more

svn path=/trunk/; revision=67436
2015-04-26 13:17:24 +00:00
Daniel Reimer
6a5d0fedd8 [ROSAPPS] Add previously built templates back to build. Fix several warnings in dialog and mdi template. This should be it for rosapps stuff
svn path=/trunk/; revision=67435
2015-04-26 13:06:35 +00:00
Daniel Reimer
b9f7c1566a [ROSAPPS] Add all sysutils to build which did build at rbuild times. Fix several warnings in rosddt. Update notevil with moar names to be up to date and really not evil by ignoring some guys. ^^
svn path=/trunk/; revision=67434
2015-04-26 12:28:01 +00:00
Timo Kreuzer
83acbb3784 [CRT]
Add incomplete armintr.h

svn path=/trunk/; revision=67433
2015-04-26 11:41:08 +00:00
Amine Khaldi
e7264e00c5 [SHELL32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67432
2015-04-26 11:27:59 +00:00
Thomas Faber
135c8b4904 [KERNEL32_VISTA]
- Silence debug prints

svn path=/trunk/; revision=67431
2015-04-26 06:10:03 +00:00
Thomas Faber
7d4ae22417 [CMD]
- Account for null terminator returned from RegQueryInfoKey
CORE-6976

svn path=/trunk/; revision=67430
2015-04-26 05:31:16 +00:00
Thomas Faber
fb61dce954 [DHCPCSVC]
- Account for null terminator space after RegQueryInfoKey
CORE-6976

svn path=/trunk/; revision=67429
2015-04-26 04:52:05 +00:00
Thomas Faber
acb27cdc6b [USERENV]
- Add space for terminator to values returned from RegQueryInfoKey
CORE-6976

svn path=/trunk/; revision=67428
2015-04-26 04:10:25 +00:00
Amine Khaldi
bbf3bf51ca [NETCFGX] Improve button placements and fix some typos and truncations. By Joachim Henze. CORE-9575
svn path=/trunk/; revision=67427
2015-04-25 22:49:02 +00:00
Thomas Faber
1b7b922cb0 [ADVAPI32]
- Account for RegQueryInfoKey no longer including the null terminator in EnumHKCRKey/EnumHKCRValue
CORE-6976

svn path=/trunk/; revision=67426
2015-04-25 20:34:35 +00:00
Thomas Faber
541f7f43ec [ADVAPI32]
Fix RegQueryInfoKey
- Return a value in lpcClass if lpClass is NULL
- Return correct error codes as shown by tests
- Correctly name parameters -- most of these are NOT byte counts
CORE-6976

svn path=/trunk/; revision=67425
2015-04-25 19:57:27 +00:00
Thomas Faber
8c6d35fc9e [ADVAPI32_WINETEST]
- Add a test for RegQueryInfoKey. This serves as a placeholder to be replaced with the upstream version once accepted -- however it tests against Win 2003 behavior, so it can validate changes to our advapi32.
CORE-6976

svn path=/trunk/; revision=67424
2015-04-25 19:14:03 +00:00
Pierre Schweitzer
6ebbc59bd5 [KERNEL32]
Remove hack in PrivMoveFileIdentityW and properly handle failing call to BasepNotifyTrackingService().
Fixes regression brought by r67355

svn path=/trunk/; revision=67423
2015-04-25 18:36:41 +00:00
Amine Khaldi
0fb4696970 [WINED3DCFG] Capitalize all the settings. By Jared Smudde. CORE-9573
svn path=/trunk/; revision=67422
2015-04-25 17:42:34 +00:00
Daniel Reimer
b82a314189 [ROSAPPS] Add part of missing sysutils folder and needed win32err lib to build.
svn path=/trunk/; revision=67421
2015-04-25 17:41:44 +00:00
Amine Khaldi
df00499cad [WIN32K] Fix drawing the Start and End Segments with Pie(). Brought to you by Barrett Karish. CORE-6851
svn path=/trunk/; revision=67420
2015-04-25 17:30:43 +00:00
Daniel Reimer
3cd624bc90 [ROSAPPS] Add "net" subfolder to build and add all stuff which was built by rbuild TOO. Remove useless include I added last time. Fix some warnings in ncftp to keep the -Wno-* at a minimum
svn path=/trunk/; revision=67419
2015-04-25 17:11:17 +00:00
Timo Kreuzer
a6acc40a0c [PSDK]
Add missing InitializeSListHead declaration to winbase.h. Fixes amd64 build.

svn path=/trunk/; revision=67418
2015-04-25 17:09:36 +00:00
Amine Khaldi
0ea11601dc [NETCFGX] Improve IDC_DNSADDRLIST and IDC_DNSSUFFIXLIST listboxes so they don't overlap with the buttons below them. By Joachim Henze. CORE-9575
svn path=/trunk/; revision=67417
2015-04-25 16:31:56 +00:00
Aleksandar Andrejevic
716877ae5f [NTVDM]
Fix INT 21h, AH = 29h to stop scanning the filename when it encounters a space.


svn path=/trunk/; revision=67416
2015-04-25 16:20:39 +00:00
Thomas Faber
cfa300d3a1 [NTOS:CM]
- Fix an ASSERT
CORE-6976

svn path=/trunk/; revision=67415
2015-04-25 15:18:37 +00:00
Thomas Faber
410d16c399 [NTDLL_APITEST]
- Add a test for NtQueryKey(KeyFullInformation)
CORE-6976

svn path=/trunk/; revision=67414
2015-04-25 15:05:36 +00:00
Amine Khaldi
5c7145d225 [PSDK] Update wbemdisp.idl. CORE-9246
svn path=/trunk/; revision=67413
2015-04-25 13:16:43 +00:00
Amine Khaldi
5c246f4a7d [VERSION] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67412
2015-04-25 13:13:50 +00:00
Sylvain Petreolle
1dc5cd9816 [IPCONFIG]
Revert r67318.
_tasctime already returns a newline.

svn path=/trunk/; revision=67411
2015-04-25 12:53:50 +00:00
Amine Khaldi
23824431e9 [UXTHEME] Remove unused variable.
svn path=/trunk/; revision=67410
2015-04-25 12:30:45 +00:00
Amine Khaldi
b5956bd4a5 [UXTHEME] Apply Wine commit 7aae2d2 by Mark Harmstone: Free properties when theme file closed.
svn path=/trunk/; revision=67409
2015-04-25 12:20:24 +00:00
Amine Khaldi
51b0710f1e [UXTHEME] Properly initialize transparent.
svn path=/trunk/; revision=67408
2015-04-25 12:14:57 +00:00
Amine Khaldi
f82802d3d6 [UXTHEME] Apply Wine commit 2b650fa by Mark Harmstone: Resize source image if destination smaller than margins.
svn path=/trunk/; revision=67407
2015-04-25 12:08:20 +00:00
Amine Khaldi
72ac5bdaef [UXTHEME] Apply Wine commit b12f73a by Mark Harmstone: Assume imagecount to be 1 if unspecified.
svn path=/trunk/; revision=67406
2015-04-25 12:06:23 +00:00
Amine Khaldi
e21ccdffe2 [UXTHEME] Apply Wine commit c6b4b4b by Mark Harmstone: Fix colour errors in UXTHEME_StretchBlt.
svn path=/trunk/; revision=67405
2015-04-25 12:04:21 +00:00
Amine Khaldi
a3a21c0bcf [UXTHEME_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67404
2015-04-25 11:03:51 +00:00
Amine Khaldi
f2599b4baa [VBSCRIPT_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67403
2015-04-25 11:03:24 +00:00
Amine Khaldi
1a597e49f1 [VBSCRIPT] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67402
2015-04-25 11:03:05 +00:00
Amine Khaldi
5ddcd5ea52 [SXS_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67401
2015-04-25 11:01:29 +00:00
Amine Khaldi
c15a3ee4ba [USP10] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67400
2015-04-25 11:00:58 +00:00
Amine Khaldi
38cd269217 [SHLWAPI_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67399
2015-04-25 10:59:43 +00:00
Amine Khaldi
feb215f7d1 [SHLWAPI] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67398
2015-04-25 10:59:08 +00:00
Amine Khaldi
65a3bbb546 [SHDOCVW_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67397
2015-04-25 10:56:44 +00:00
Amine Khaldi
b1253f2d04 [SHDOCVW] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67396
2015-04-25 10:56:22 +00:00
Amine Khaldi
4c29c0e668 [SCRRUN_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67395
2015-04-25 10:54:49 +00:00
Amine Khaldi
166125e233 [SCRRUN] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67394
2015-04-25 10:54:23 +00:00
Amine Khaldi
6eb0bd7fb7 [RSAENH_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67393
2015-04-25 10:51:57 +00:00
Amine Khaldi
ae20e73806 [RSAENH] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67392
2015-04-25 10:51:25 +00:00
Thomas Faber
c92559c27c [GDI32_APITEST]
- Add a test for NtGdiAddFontResourceW. This goes in gdi32_apitest until we fix w32knapi to be Testman-compatible (ROSTESTS-167). Patch by Víctor Martínez Calvo.
ROSTESTS-166 #resolve

svn path=/trunk/; revision=67391
2015-04-25 10:41:32 +00:00
Thomas Faber
0d0ddf242d [NETSHELL]
- Don't use the connection's name as the tab title in the Connection Properties dialog. Patch by Lee Schroeder.
CORE-9603 #resolve

svn path=/trunk/; revision=67390
2015-04-25 10:26:04 +00:00
Amine Khaldi
8015786c26 [USER32] Mark some functions as synced with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67389
2015-04-25 10:07:43 +00:00
Amine Khaldi
56556c95f2 [USER32] Sync DrawTextExW() with Wine Staging 1.7.37. CORE-9246 CORE-9585
svn path=/trunk/; revision=67388
2015-04-25 09:50:09 +00:00
Aleksandar Andrejevic
4d11a69ba2 [NTVDM]
Fix INT 21h, AH = 29h: stop at the first non-printable character, make
all the characters uppercase in the FCB.


svn path=/trunk/; revision=67387
2015-04-24 23:47:54 +00:00
Christoph von Wittich
91188af8ad [NTOSKRNL]
spelling fixes only
no code changes

svn path=/trunk/; revision=67386
2015-04-24 19:40:38 +00:00
Aleksandar Andrejevic
360a70846b [NTVDM]
- Implement INT 21h AH = 29h (Parse Filename into FCB).
- Loading an overlay does not create a new process.


svn path=/trunk/; revision=67385
2015-04-24 19:35:54 +00:00
Christoph von Wittich
0a98cc57f4 [WIN32K]
use ExFreePoolWithTag instead of ExFreePool

svn path=/trunk/; revision=67384
2015-04-24 19:24:07 +00:00
Christoph von Wittich
10295ad9df [WIN32K]
fix a memory leak in error case

svn path=/trunk/; revision=67383
2015-04-24 18:38:48 +00:00
Thomas Faber
050de17f6a [NTDLL_WINETEST]
- Avoid printing an unterminated string in registry test. Powered by DPH.
- Add a ROS hack to avoid a buffer overflow when one of our DPRINTs is returned by WaitForDebugEvent (e.g. when using DPH)

svn path=/trunk/; revision=67382
2015-04-24 17:37:31 +00:00
Christoph von Wittich
f83b257104 [WIN32K]
fix a memory leak
add a missing pool tag
some spelling fixes

svn path=/trunk/; revision=67381
2015-04-24 14:35:58 +00:00
Amine Khaldi
1fae599114 [RSHELL][COMCTL32] Fix wrong selected item color used by the Start Menu. Brought to you by Stefano Toncich with minor changes by me. CORE-9309
svn path=/trunk/; revision=67380
2015-04-24 14:12:24 +00:00
Christoph von Wittich
91017f0f9a spelling fixes only
svn path=/trunk/; revision=67379
2015-04-24 12:45:55 +00:00
Christoph von Wittich
459dacc793 [NTOSKRNL]
fix a memory leak

svn path=/trunk/; revision=67378
2015-04-24 08:55:24 +00:00
Aleksandar Andrejevic
3a9b91f9d7 [NTVDM]
When the VGA memory map is A0000-BFFFF, mirror the bottom 64 KB into the top.
This should take care of all VGA addressing problems.


svn path=/trunk/; revision=67377
2015-04-24 01:05:50 +00:00
David Quintana
492d1e96d1 [RAPPS_NEW]
* Turn the files into .CPP, to ease future changes. All the code remains class-free for now, with one exception.
 * Adapt the download progress dialog implementation to ATL/C++, which is a best match for COM classes.
 * Add an ATL CModule class to the process, necessary for 
CORE-9593

svn path=/trunk/; revision=67376
2015-04-23 23:08:21 +00:00
Amine Khaldi
551a6399a2 [SHELL32][BROWSEUI] Implement SetAnimation so that AVIs from shell32 can be used when the progress dialog is in use. Brought to you by Robert Naumann. CORE-9327
svn path=/trunk/; revision=67375
2015-04-23 22:35:23 +00:00
Amine Khaldi
4cfa2fc11c [MSTSC] Make the combo box and text box equal sizes. Improve the save as dialog filter. By Jared Smudde. CORE-9596
svn path=/trunk/; revision=67374
2015-04-23 21:44:03 +00:00
Christoph von Wittich
dc0ac57186 [TASKMGR]
fix process cpu time
CORE-9562

svn path=/trunk/; revision=67373
2015-04-23 20:18:38 +00:00
Thomas Faber
8492cfb611 [MSI]
- Apply Wine commit 55b678e1 (msi: Fix an invalid memory access (valgrind).) by Hans Leidekker

svn path=/trunk/; revision=67372
2015-04-23 19:56:02 +00:00
Amine Khaldi
25bb0d3a6f [BROWSEUI] Fix back and forward buttons so they work correctly. Brought to you by Fedor Zaytsev with an improvement suggested by Aleksey. CORE-8894
svn path=/trunk/; revision=67371
2015-04-23 18:54:56 +00:00
Thomas Faber
bccac1a15b [NTDLL_APITEST]
- Gracefully handle failures in NtMapViewOfSection test. CORE-9189
- Correctly handle unterminated strings in NtQueryKey test. Powered by DPH.

svn path=/trunk/; revision=67370
2015-04-23 18:41:08 +00:00
Aleksandar Andrejevic
e5533bb915 [NTVDM]
Store the return address in INT 22h as a far pointer.
The amount of memory stored in the Env variable is EnvSize, not sizeof(Env)
since Env is a pointer.


svn path=/trunk/; revision=67369
2015-04-23 15:19:48 +00:00
Christoph von Wittich
a3d2dff6bc [CRT]
add ARM stub for chkstk_ms (Timo please review)

svn path=/trunk/; revision=67368
2015-04-23 12:27:08 +00:00
Christoph von Wittich
85567042ab [FREELDR]
rename boot.s to boot.S

svn path=/trunk/; revision=67367
2015-04-23 12:13:54 +00:00
Thomas Faber
4744fee712 [URLMON_WINETEST]
- Re-enable skipped protocol tests
ROSTESTS-165 #resolve

svn path=/trunk/; revision=67366
2015-04-23 11:32:20 +00:00
Thomas Faber
d2d1f0f9fc [WININET]
- Add back our Winsock initialization ROS-diff. Wine has only partially fixed this at this point.
CORE-9588

svn path=/trunk/; revision=67365
2015-04-23 10:57:11 +00:00
Aleksandar Andrejevic
03c078dcc0 [BASESRV]
In BaseSrvGetNextVDMCommand, the VDM_FLAG_DONT_WAIT flag is enough to tell it not
to create a wait handle.


svn path=/trunk/; revision=67364
2015-04-23 02:53:08 +00:00
Aleksandar Andrejevic
60eacc928e [NTVDM][KERNEL32]
In DosCreateProcess, allocate space for the environment block dynamically and expand
it if needed, just like we do in CommandThreadProc.
In GetNextVDMCommand, remove the check that checks whether VDMState is one of
VDM_NOT_LOADED, VDM_NOT_READY or VDM_READY - that check makes no sense whatsoever,
since those aren't input values for that structure field. Their bit masks do correspond
to valid input fields, but even then the check makes no sense.


svn path=/trunk/; revision=67363
2015-04-23 02:30:53 +00:00
Aleksandar Andrejevic
a8bc4cd508 [NTVDM]
Implement INT 21h, AH = 34h (Get Address of InDOS Flag).


svn path=/trunk/; revision=67362
2015-04-23 01:17:11 +00:00
Hermès Bélusca-Maïto
91dfded93d [NTVDM]
- Report A20 line status in the PS/2 controller output port.
- Properly implement XMS functions 3 and 5 (Global Enable/Disable A20 line), 4 and 6 (Local Enable/Disable A20 line) and 7 (Get A20 line status) using flag+counter and PS/2 I/O calls.
- Fix XMS driver version report.

svn path=/trunk/; revision=67361
2015-04-23 01:02:36 +00:00
Daniel Reimer
2273067742 [INF]
Add the recently added two font substitutes in livecd.inf either.

svn path=/trunk/; revision=67360
2015-04-22 22:52:32 +00:00
Amine Khaldi
526f31bf61 [SHELL32] Set default values for fields when volume information is not available. Fix drawing of free/used space pie chart when free space is 0 bytes. Disable editing of volume label for non-fixed disks. Brought to you by Barrett Karish. CORE-9595
svn path=/trunk/; revision=67359
2015-04-22 22:24:46 +00:00
Amine Khaldi
45816784bb [SHELL32] Fix improperly formatted or missing disk letter in disk Properties. By Barrett Karish. CORE-9532
svn path=/trunk/; revision=67358
2015-04-22 22:16:58 +00:00
Amine Khaldi
cf73294f5a [GDI32] Add missing newline in a debug print.
svn path=/trunk/; revision=67357
2015-04-22 22:02:45 +00:00
Daniel Reimer
d253af244e [NTVDM]
Add missing \n at DBGPRINT

svn path=/trunk/; revision=67356
2015-04-22 21:35:14 +00:00
Pierre Schweitzer
7576c6a523 [KERNEL32]
- Halfplement BasepGetComputerNameFromNtPath() which allows querying the computer name given a handle & an NT path
- Implement BasepNotifyTrackingService() which issues a FileTrackingInformation on file move

svn path=/trunk/; revision=67355
2015-04-22 21:20:35 +00:00
Amine Khaldi
4c58fa556c [URLMON_WINETEST] Skip test_ftp_protocol() because of timeouts. ROSTESTS-165
svn path=/trunk/; revision=67354
2015-04-22 20:48:13 +00:00
Thomas Faber
a6840dcddd [GDI32][WIN32K:NTGDI]
- Correctly handle relative paths passed to AddFontResource*.
- Fix the user->kernel interface between GdiAddFontResourceW and NtGdiAddFontResourceW
Patch by Víctor Martínez Calvo.
CORE-9079

svn path=/trunk/; revision=67353
2015-04-22 20:24:29 +00:00
Aleksandar Andrejevic
0d91854d88 [NTVDM]
Implement the XMS functions AH = 03h and AH = 04h (global enable/disable A20).
Make the GetHandleRecord function in the EMS driver inline.
CORE-8277 #comment Please retest.


svn path=/trunk/; revision=67352
2015-04-22 19:56:50 +00:00
Hermès Bélusca-Maïto
82b6b75ea9 [NTVDM]
- Fix copy-paste error in the initialization of DriverHeader.
- Use BOP_... syntax for BOP #define names (to comply with the rest of the code).

svn path=/trunk/; revision=67351
2015-04-22 17:27:35 +00:00
Amine Khaldi
cc6f5b085a [RAPPS_NEW] Use rapps as base for implementing the new Applications Manager for ReactOS CE. CORE-9593
svn path=/trunk/; revision=67350
2015-04-22 16:53:55 +00:00
Thomas Faber
1d58087ea8 [NTDLL_APITEST]
- Ensure 4-byte alignment for ATOM_BASIC_INFORMATION
CORE-6994 #resolve

svn path=/trunk/; revision=67349
2015-04-22 15:50:00 +00:00
Amine Khaldi
3c53bca528 [URLMON_WINETEST] Skip test_http_protocol() and test_https_protocol() because of timeouts. ROSTESTS-165
svn path=/trunk/; revision=67348
2015-04-22 12:44:36 +00:00
Aleksandar Andrejevic
ffb82658c9 [NTVDM]
Avoid array indexing with invalid indexes, always.


svn path=/trunk/; revision=67347
2015-04-22 12:13:14 +00:00
Amine Khaldi
f1c1d10824 [XDK] Partially revert r67338. We already have this in ntifs.h
svn path=/trunk/; revision=67346
2015-04-22 08:49:35 +00:00
Amine Khaldi
46aa5717e7 [PSDK] Add missing KF_FLAG_DEFAULT_PATH definition.
svn path=/trunk/; revision=67345
2015-04-22 08:44:41 +00:00
Amine Khaldi
4295aef9da [WININET_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67344
2015-04-22 08:38:32 +00:00
Amine Khaldi
4d912f865f [WININET] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67343
2015-04-22 08:30:31 +00:00
Thomas Faber
c120a9cf67 [SHELL32]
- Add colon after driver letter in Check Disk dialog title. Patch by Barrett Karish
CORE-9583 #resolve

svn path=/trunk/; revision=67342
2015-04-22 07:23:49 +00:00
Aleksandar Andrejevic
3ced4390c5 [FAST486]
Fix compilation when FAST486_NO_PREFETCH is set.


svn path=/trunk/; revision=67341
2015-04-22 03:11:03 +00:00
Aleksandar Andrejevic
25840ba03f [NTVDM]
Implement basic XMS functions.


svn path=/trunk/; revision=67340
2015-04-22 03:10:11 +00:00
Aleksandar Andrejevic
274901555c [NTVDM]
- Move the EMS code from the BIOS to the DOS driver where it belongs.
- Expand the DOS device API with a new function, DosCreateDeviceEx, which
will allow 32-bit DOS driver to reserve private memory.
- For each DOS device, create an entry in guest memory so that 16-bit code
can call 32-bit DOS drivers directly.
- Implement an XMS driver stub that uses the above.
- Arch, that's not how the DOS driver strategy routine works, you need to
give it the request in ES:BX which it will store somewhere, and then call
the interrupt routine.


svn path=/trunk/; revision=67339
2015-04-21 22:48:28 +00:00
Pierre Schweitzer
6c48138b57 [NDK]
Add definition for FILE_TRACKING_INFORMATION

[XDK]
Add definition for FILE_TRACKING_INFORMATION

svn path=/trunk/; revision=67338
2015-04-21 19:47:49 +00:00
Pierre Schweitzer
8b0b3b93fb [KERNEL32]
Move BasepOpenFileForMove() in the Basep functions block.
No code change!

svn path=/trunk/; revision=67337
2015-04-21 19:44:16 +00:00
Amine Khaldi
f14e04fb66 [SHELL32] Add missing colon in window title bar when formatting a disk. By Radek Liska. CORE-9531
svn path=/trunk/; revision=67336
2015-04-21 11:43:15 +00:00
Pierre Schweitzer
305e1f4c19 [KERNEL32]
- Implement BasepOpenFileForMove() used by PrivMoveFileIdentityW(), with its Windows bugs
- Implement PrivMoveFileIdentityW()

Not sure yet why Windows implementation exposes a sharing violation during our API test. Our absence of sharing violation looks more legit...
To be investigated.

svn path=/trunk/; revision=67335
2015-04-21 10:55:26 +00:00
Thomas Faber
95ebf88866 [NTDLL_APITEST]
- Add some more tests for RtlDoesFileExists_*, in particular passing NT paths
CORE-9523

svn path=/trunk/; revision=67334
2015-04-21 10:50:12 +00:00
Thomas Faber
45c2f87c87 [WIN32K:NTUSER]
- Fix some GetWindowPlacement tests
CORE-9578

svn path=/trunk/; revision=67333
2015-04-21 10:14:12 +00:00
Pierre Schweitzer
c45bd159ff [KERNEL32_APITEST]
Force hexa output

svn path=/trunk/; revision=67332
2015-04-21 09:30:05 +00:00
Thomas Faber
842d5b87ea [USER32_APITEST]
- Use correct format specifiers aka fix GCC build

svn path=/trunk/; revision=67331
2015-04-21 09:25:51 +00:00
Thomas Faber
ea06801805 [USER32_APITEST]
- Add a test for GetWindowPlacement
CORE-9578

svn path=/trunk/; revision=67330
2015-04-21 09:21:22 +00:00
James Tabor
5f0ebedf29 [Win32k]
- Passing GetDesktopWindow() to GetWindowPlacement() causes NULL pointer dereference, Bug found by Nathan Osman, Fix CORE-9578.

svn path=/trunk/; revision=67329
2015-04-21 04:45:09 +00:00
Thomas Faber
6523db387b [COMCTL32]
- Fix use after free in DPA_Merge

svn path=/trunk/; revision=67328
2015-04-20 20:01:48 +00:00
Daniel Reimer
af082934c7 [INF]
Add FontSubstitutes for Times and Tms Rmn which are not there in ROS, but in Windows

svn path=/trunk/; revision=67327
2015-04-20 17:25:24 +00:00
Aleksandar Andrejevic
7edf755f1b [NTVDM]
We must set the retry flag when repeating a call to GetNextVDMCommand.


svn path=/trunk/; revision=67326
2015-04-20 17:10:28 +00:00
Aleksandar Andrejevic
cc252d78bd [NTVDM]
Make the total amount of EMS pages configurable.
Allocate memory for EMS instead of sharing a part of the guest memory.


svn path=/trunk/; revision=67325
2015-04-20 14:02:18 +00:00
Thomas Faber
bbb62e8795 [SYSSETUP]
- Addendum to r66069: also install tcpip on the livecd
CORE-9564 CORE-9113

svn path=/trunk/; revision=67324
2015-04-20 09:35:39 +00:00
Thomas Faber
bbb3753f8b [NETSHELL]
- Fix spelling in README. Patch by Jared Smudde.
CORE-9568 #resolve

svn path=/trunk/; revision=67323
2015-04-20 07:32:03 +00:00
Aleksandar Andrejevic
53abec3cb5 [FAST486]
Fix ENTER and LEAVE in the same way I fixed PUSH and POP in the previous 2 commits.


svn path=/trunk/; revision=67322
2015-04-20 02:22:56 +00:00
Aleksandar Andrejevic
399547ef48 [FAST486]
(Addendum to r67320) ... and that goes for POP too...


svn path=/trunk/; revision=67321
2015-04-20 01:25:04 +00:00
Aleksandar Andrejevic
08077d0820 [FAST486]
Whether stack operations use ESP or SP depends on the size of the stack segment.


svn path=/trunk/; revision=67320
2015-04-20 00:36:46 +00:00
Daniel Reimer
43ee605045 [FRAGINATOR]
Make the GUI version actually work by disabling wmain per ifdef which will be set only at CUI build.
Fix resources to make the text fit nicely and get rid of the RLEXT/LTEXT mess
Add German translation

svn path=/trunk/; revision=67319
2015-04-20 00:08:02 +00:00
Thomas Faber
f57822df48 [IPCONFIG]
- Add missing newlines

svn path=/trunk/; revision=67318
2015-04-20 00:03:34 +00:00
Aleksandar Andrejevic
9eca3cf90b [FAST486]
Implement the 287-only instructions FSETPM and FRSTPM as nops. (This is how the 487
is supposed to treat them.)


svn path=/trunk/; revision=67317
2015-04-19 23:11:07 +00:00
Thomas Faber
e7c17c0741 [NETSHELL][COM_APITEST]
- Remove another MessageBox...
- Also test some more interfaces found in netshell classes

svn path=/trunk/; revision=67316
2015-04-19 22:50:25 +00:00
Aleksandar Andrejevic
8083610a98 [FAST486]
Clear the CF and OF flags in AND, OR and XOR.


svn path=/trunk/; revision=67315
2015-04-19 22:34:12 +00:00
Thomas Faber
a7e56b4256 [NETSHELL]
- Do not display a message box in CLanStatus::QueryInterface. Fixes hang when running com_apitest:netshell
- Change the order of some interfaces in CNetworkConnections to make com_apitest slightly happier

svn path=/trunk/; revision=67314
2015-04-19 22:16:34 +00:00
Thomas Faber
a04d175469 [COM_APITEST]
- Add test for netshell classes
- Add some interfaces

svn path=/trunk/; revision=67313
2015-04-19 21:28:09 +00:00
Thomas Faber
bea0b47db6 [NETSHELL]
- Use the correct names for netshell's CLSIDs as indicated by the registry and public symbols

svn path=/trunk/; revision=67312
2015-04-19 21:14:49 +00:00
Thomas Faber
604568dbaf [NETSHELL]
- Keep a CLanStatus instance around in CNetworkConnections (as before r65758) and properly manage its lifetime. Fixes Status context menu item for network connections.
CORE-9564

svn path=/trunk/; revision=67311
2015-04-19 21:07:35 +00:00
Thomas Faber
147890023b [NETSHELL]
- Some additions to the previous commit
- Make destructors private
- Use delete to free object allocated using new
- Try to fix some ITEMIDLIST typing

svn path=/trunk/; revision=67310
2015-04-19 20:56:42 +00:00
Daniel Reimer
1d5b7fe3a9 [ROSAPPS] Add Fraginator to build. This thing NEVER could have worked in that state in RBUILD. rc file was not even selected to have any chance of any dialog. Billions of things are defined a billion times in any language RC file. etcetc.
svn path=/trunk/; revision=67309
2015-04-19 20:30:44 +00:00
Daniel Reimer
c2a8bdf32d [ROSAPPS] Add devutils to cmake build. Thx for Amine Khaldi, Thomas Faber and learn_more for help. More will come.
svn path=/trunk/; revision=67308
2015-04-19 20:27:51 +00:00
Thomas Faber
1b57c10937 [NETSHELL]
Fix artifacts from incomplete C++ conversion:
- Add m_ prefix to member variables to avoid shadowing locals
- Use initializer lists in constructors
- Use destructors instead of putting code in Release
- Avoid C-style casts (not exhaustive)

svn path=/trunk/; revision=67307
2015-04-19 20:18:25 +00:00
Pierre Schweitzer
2a8f6b6f83 [KERNEL32_APITEST]
Complete a bit more the PrivMoveFileIdentityW tests

svn path=/trunk/; revision=67306
2015-04-19 19:36:42 +00:00
Christoph von Wittich
3804a6e321 [RAPPS]
fix handle leaks

svn path=/trunk/; revision=67305
2015-04-19 19:28:03 +00:00
Amine Khaldi
ece1ba5016 [THEMEUI] Leverage add_registry_inf() as suggested by Timo. Addendum to r67242. CORE-5984
svn path=/trunk/; revision=67304
2015-04-19 16:13:02 +00:00
Daniel Reimer
683e673938 [zh-CN, zh-TW, ko-KR] - Fix font size for Chinese and Korean resources to FONT 9. Fonts are still a problem: CORE-9566
svn path=/trunk/; revision=67303
2015-04-19 15:39:35 +00:00
Daniel Reimer
5f7fca0e19 [ROSAPPS] - Fix font size for Chinese and Korean resources to FONT 9. Fonts are still a problem: CORE-9566
svn path=/trunk/; revision=67302
2015-04-19 15:37:29 +00:00
Amine Khaldi
4eb6ce6ee8 [INF] Remove duplicated Romanian translations. Addendum to r67142. Spotted by Thomas Faber. CORE-9516
svn path=/trunk/; revision=67301
2015-04-19 15:28:25 +00:00
Daniel Reimer
d6a3e7a17e [ja-JP]
JP uses MS Gothic UI FONT 9 in Windows 5.2, not a mix of two different sizes and fonts and nothing else!

svn path=/trunk/; revision=67300
2015-04-19 15:21:21 +00:00
Daniel Reimer
e061837c3d [ROSAPPS]
JP uses MS Gothic UI FONT 9 in Windows 5.2
Fix wrong font size
Fix wrong font in a template

svn path=/trunk/; revision=67299
2015-04-19 15:18:22 +00:00
Thomas Faber
295cce9d87 [NETSHELL]{NCPA]
- Move Network Connections back to Control Panel, where it belongs. Was accidentally moved to My Computer in r66485.
CORE-9495 #resolve
CORE-9564

svn path=/trunk/; revision=67298
2015-04-19 15:01:54 +00:00
Daniel Reimer
2afda9e6c7 [ROSAPPS]
There are still RBUILD files in here?? NOT anymore!

svn path=/trunk/; revision=67297
2015-04-19 12:21:56 +00:00
Daniel Reimer
63ffb29130 [DXTN]
Fix build by adding a "-Wno-error=unused-but-set-variable" which is needed.

svn path=/trunk/; revision=67296
2015-04-19 12:15:35 +00:00
Daniel Reimer
ef1f80bd88 [ROSAPPS]
Remove not needed -Wno-error and allow_warnings()

svn path=/trunk/; revision=67295
2015-04-19 12:14:36 +00:00
Timo Kreuzer
8d7d45ce07 [CRT]
Add ARM stubs for _abnormal_termination, _except_handler2, _except_handler3, _global_unwind2, _local_unwind2, __C_specific_handler, __CxxFrameHandler, __rt_srsh

[RTL]
Add ARM stubs for RtlGetCallersAddress, RtlDispatchException, RtlUnwind, RtlInitializeContext

[NTOSKRNL]
Add ARM stubs for READ/WRITE_REGISTER_*

svn path=/trunk/; revision=67294
2015-04-19 10:03:21 +00:00
Thomas Faber
75a0594a4a [WIN32K:NTUSER]
- Remove a useless assert (-Wtype-limits)

svn path=/trunk/; revision=67293
2015-04-19 09:39:47 +00:00
Thomas Faber
42874bbd76 [COMDLG32]
- Revert DIALOG resource changes from r67286. Fixes test regressions.
CORE-9563

svn path=/trunk/; revision=67292
2015-04-19 08:53:57 +00:00
Thomas Faber
f5a19bfe31 [CMAKE]
We have a zero-warnings policy in trunk, accordingly:
- Disable overflow warnings in mciwave
- Remove all -Wno-error directives
- Remove all allow_warnings invocations
- Make allow_warnings defunct, it needs to be reworked, e.g. according to CORE-6959.

svn path=/trunk/; revision=67291
2015-04-19 08:39:58 +00:00
Aleksandar Andrejevic
5e3f9799d4 [NTVDM]
Account for DoubleVision when updating relative movement counters.


svn path=/trunk/; revision=67290
2015-04-19 02:12:12 +00:00
Daniel Reimer
9d66b452ee [DLL]
Add manifests. Let's hope MSVC build survives this...

svn path=/trunk/; revision=67289
2015-04-19 01:38:13 +00:00
Daniel Reimer
b76b713a6b [SHUTDOWN & LICCPA]
Add missing DS_SHELLFONT

svn path=/trunk/; revision=67288
2015-04-19 00:55:40 +00:00
Daniel Reimer
d420c254f2 [WINFILE]
DIALOG -> DIALOGEX
Add missing DS_SHELLFONT

svn path=/trunk/; revision=67287
2015-04-19 00:47:17 +00:00
Daniel Reimer
5c9ae54839 [WIN32]
DIALOG -> DIALOGEX

svn path=/trunk/; revision=67286
2015-04-19 00:40:15 +00:00
Daniel Reimer
4fd1dd0a20 [STOBJECT]
Add missing DS_SHELLFONT

svn path=/trunk/; revision=67285
2015-04-19 00:29:28 +00:00
Daniel Reimer
aa0f3dbd65 [WIN32]
DIALOG -> DIALOGEX
Add missing DS_SHELLFONT

svn path=/trunk/; revision=67284
2015-04-19 00:28:37 +00:00
Hermès Bélusca-Maïto
9d3bb1fef2 [NTVDM]
- Rearrange header inclusions. Put almost all NDK stuff in ntvdm.h.
- sizeof(array)/sizeof(array[0]) --> ARRAYSIZE(array) : increase code readability.
- Use Rtl heap functions (other parts of the code already did use them).

svn path=/trunk/; revision=67283
2015-04-19 00:01:03 +00:00
Timo Kreuzer
b8d8a11522 [WIN32K]
Add missing locking in BASEOBJ::LockShared. Fixes theming regression.
CORE-9535 #resolve

svn path=/trunk/; revision=67282
2015-04-18 23:27:05 +00:00
Daniel Reimer
3c137300a8 [SSSTARS]
Remove useless define.

svn path=/trunk/; revision=67281
2015-04-18 22:01:31 +00:00
Aleksandar Andrejevic
f6e7bd7e87 [NTVDM]
Fix host-to-VGA address translation.


svn path=/trunk/; revision=67280
2015-04-18 22:00:44 +00:00
Pierre Schweitzer
f033a19054 [KERNEL32_APITEST]
Erm. That wasn't meant to remain here! :-P

svn path=/trunk/; revision=67279
2015-04-18 21:34:12 +00:00
Pierre Schweitzer
f656eab188 [KERNEL32_APITEST]
Make PrivMoveFileIdentityW test work even if kernel32_apitest.exe isn't in current directory

svn path=/trunk/; revision=67278
2015-04-18 21:30:15 +00:00
Daniel Reimer
d367e2415e [CMIDriver]
DIALOG -> DIALOGEX
Add DS_SHELLFONT
Add manifest

svn path=/trunk/; revision=67277
2015-04-18 21:28:04 +00:00
Daniel Reimer
0a4db106df [MMSYS]
Forgot these DIALOG -> DIALOGEX

svn path=/trunk/; revision=67276
2015-04-18 20:07:46 +00:00
Daniel Reimer
b307bce29a [APPLICATIONS]
Add missing DS_SHELLFONT

svn path=/trunk/; revision=67275
2015-04-18 20:04:32 +00:00
Daniel Reimer
2f256805b0 [CPL]
DIALOG -> DIALOGEX
Add missing DS_SHELLFONT

svn path=/trunk/; revision=67274
2015-04-18 20:03:37 +00:00
Pierre Schweitzer
ad157d2c6f [KERNEL32_APITEST]
Add tests for PrivMoveFileIdentityW().

Tested on w2k3 by Thomas

svn path=/trunk/; revision=67273
2015-04-18 19:46:57 +00:00
Daniel Reimer
7a96f42b4a [OLEDLG]
Add DS_SHELLFONT, remove DS_SETFONT

svn path=/trunk/; revision=67272
2015-04-18 18:16:27 +00:00
Daniel Reimer
4f8dfe4162 [LOCALUI]
Add DS_SHELLFONT, remove DS_3DLOOK, remove DS_SETFONT

svn path=/trunk/; revision=67271
2015-04-18 18:15:45 +00:00
Daniel Reimer
34605d9db7 [COMDLG32]
Add DS_SHELLFONT, remove DS_3DLOOK

svn path=/trunk/; revision=67270
2015-04-18 18:15:00 +00:00
Daniel Reimer
142d59e17e [COMCTL32]
Add DS_SHELLFONT, remove DS_3DLOOK

svn path=/trunk/; revision=67269
2015-04-18 18:14:17 +00:00
Daniel Reimer
93ab4816cf [ACLUI]
Merge DS_FIXEDSYS and DS_SETFONT to DS_SHELLFONT


svn path=/trunk/; revision=67268
2015-04-18 18:13:04 +00:00
Daniel Reimer
ee6268a918 [SYSDM]
Merge DS_FIXEDSYS and DS_SETFONT to DS_SHELLFONT

svn path=/trunk/; revision=67267
2015-04-18 18:11:58 +00:00
Daniel Reimer
11223a1494 [ACCESS]
Fix one sad and lonely DS_SETFONT

svn path=/trunk/; revision=67266
2015-04-18 18:11:31 +00:00
Daniel Reimer
61e3238726 [EXPLORER]
Merge DS_FIXEDSYS and DS_SETFONT to DS_SHELLFONT

svn path=/trunk/; revision=67265
2015-04-18 18:10:41 +00:00
Daniel Reimer
2b0c1cd0c5 [REGEDIT]
Remove DS_FIXEDSYS

svn path=/trunk/; revision=67264
2015-04-18 18:09:50 +00:00
Thomas Faber
a95722c7b0 [NETAPI32]
- Stub NetEnumerateTrustedDomains.
CORE-9560 #resolve

svn path=/trunk/; revision=67263
2015-04-18 16:40:48 +00:00
Daniel Reimer
f49de0678b [CALC]
Remove useless define.

svn path=/trunk/; revision=67262
2015-04-18 15:59:42 +00:00
Hermès Bélusca-Maïto
24a86ea3e4 [NTVDM]: Fix the fix of r67238 (inversion min/max).
svn path=/trunk/; revision=67261
2015-04-18 15:38:51 +00:00
Daniel Reimer
daa2e87bfe [SYSSETUP]
Whatever the reason was to make all DLGs use "MS Shell Dlg" and one "MS Shell Dlg 2"... this is no more.

svn path=/trunk/; revision=67260
2015-04-18 15:20:12 +00:00
Amine Khaldi
ace0ec521d [SNDREC32] Set the DS_SHELLFONT flag instead of DS_FIXEDSYS and/or DS_SETFONT.
svn path=/trunk/; revision=67259
2015-04-18 14:53:29 +00:00
Amine Khaldi
1eeb7ee623 [WORDPAD] Use DIALOGEX instead of the now obsolete DIALOG. CORE-9559
svn path=/trunk/; revision=67258
2015-04-18 14:49:38 +00:00
Amine Khaldi
48be692eb7 [BROWSEUI] Don't use DS_3DLOOK as it's outdated and not of any use. Set the DS_SHELLFONT flag instead of DS_FIXEDSYS and/or DS_SETFONT.
svn path=/trunk/; revision=67257
2015-04-18 14:45:49 +00:00
Amine Khaldi
4dd2cc5ea1 [WORDPAD] Adjust language resources to ReactOS norms.
svn path=/trunk/; revision=67256
2015-04-18 14:30:12 +00:00
Daniel Reimer
f13344f247 [REGEDIT]
Fix wrong font usage

svn path=/trunk/; revision=67255
2015-04-18 14:28:13 +00:00
Daniel Reimer
e08532d4dd [LICCPA]
Fix wrong behavior using Helvetica instead of MS Shell DLG (Why did anyone have such an idea???)

svn path=/trunk/; revision=67254
2015-04-18 14:22:23 +00:00
Amine Khaldi
0278094b01 [WINHLP32][WORDPAD] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67253
2015-04-18 13:06:39 +00:00
Amine Khaldi
ebc4c80fdc [WINHLP32] Use DIALOGEX instead of the now obsolete DIALOG. CORE-9559
svn path=/trunk/; revision=67252
2015-04-18 12:49:55 +00:00
Amine Khaldi
89023e2a35 [SNDVOL32] Use DIALOGEX instead of the now obsolete DIALOG. CORE-9559
svn path=/trunk/; revision=67251
2015-04-18 12:30:30 +00:00
Thomas Faber
cbe2b11ed5 [MSVCR*]
- Don't bother to clean up at process exit (Wine commit 66a54686 by Alexandre Julliard)

svn path=/trunk/; revision=67250
2015-04-18 12:15:15 +00:00
Daniel Reimer
fd843b6fd0 [IEFRAME]
Add missing DS_SHELLFONT.

svn path=/trunk/; revision=67249
2015-04-18 11:31:28 +00:00
Daniel Reimer
9d424f98da [EXPLORER]
Windres hid the double resource usage very well... Revert the manifest using commit, because we already have one.

svn path=/trunk/; revision=67248
2015-04-18 11:15:51 +00:00
Amine Khaldi
5e47f40aee [NETAPI32] Remove unneeded casts. Inspired by CORE-7324
svn path=/trunk/; revision=67247
2015-04-18 11:07:22 +00:00
Daniel Reimer
f3a11426c9 [MANIFEST]
Add manifest to vmwinst, explorer and winlogon.
Remove em from telephon and ntobjshex again. No dialog, no manifest ^^

svn path=/trunk/; revision=67246
2015-04-18 11:04:59 +00:00
Amine Khaldi
0dcee3cc62 [NTOBJSHEX] Fix copypasta.
svn path=/trunk/; revision=67245
2015-04-18 10:09:15 +00:00
Pierre Schweitzer
b78384bea9 [NTOBJSHEX]
Add French translation

svn path=/trunk/; revision=67244
2015-04-18 10:02:19 +00:00
Daniel Reimer
03aeb818fe [CPL]
Add manifest to telephon.cpl.
[SHELLEXT]
Add manifest to netshell, stobject and ntobjshex.
Translate ntobjshex to German.

svn path=/trunk/; revision=67243
2015-04-18 09:57:21 +00:00
Amine Khaldi
4016681e08 [THEMEUI] Add this module for .msstyle file type association. By Lee Schroeder. CORE-5984
svn path=/trunk/; revision=67242
2015-04-18 09:52:23 +00:00
Pierre Schweitzer
20acb71cf4 [IEFRAME]
Add French translation

svn path=/trunk/; revision=67241
2015-04-18 09:50:23 +00:00
Daniel Reimer
6bb797cec3 Fixing some incorrectly written Reactos/ReactOs -> ReactOS by Raked Liska
CORE-9536 #comment Even less of these now.

svn path=/trunk/; revision=67240
2015-04-18 09:21:51 +00:00
Daniel Reimer
e675ab0cb6 Fixing some incorrectly written Reactos -> ReactOS
CORE-7524 #comment Some less of these now.

svn path=/trunk/; revision=67239
2015-04-18 09:01:23 +00:00
Aleksandar Andrejevic
6381155e6c [NTVDM]
Fix the range check in VgaReadMemory and VgaWriteMemory.


svn path=/trunk/; revision=67238
2015-04-18 04:21:28 +00:00
Hermès Bélusca-Maïto
bfd1c2a6b9 [NTVDM]: Minor code reorganization. StartTickCount is commented out because it's unused at the moment, but it can be useful later on...
svn path=/trunk/; revision=67237
2015-04-18 01:39:29 +00:00
Aleksandar Andrejevic
7087659a28 [NTVDM]
The "WORKING_TIMER" disabled code is so obsolete that it doesn't even compile anymore.


svn path=/trunk/; revision=67236
2015-04-18 00:57:50 +00:00
Hermès Bélusca-Maïto
b673932d12 [NTVDM]: Partial revert to r67234: delays were in fact better than frequencies, in case one would like to define sub-frequency timers. Instead, always specify delays in nanoseconds, and add a macro to convert from frequency in hertz to duration in nanoseconds.
svn path=/trunk/; revision=67235
2015-04-18 00:29:14 +00:00
Hermès Bélusca-Maïto
6dc704ff48 [NTVDM]: For CreateHardwareTimer, use frequencies (in hertz) instead of using milliseconds or nanoseconds (depending on some additional flag to be specified). It's therefore easier to specify what you want.
svn path=/trunk/; revision=67234
2015-04-17 23:58:01 +00:00
Aleksandar Andrejevic
e9b43f93b7 [NTVDM]
The DOS_MCB structure needs to be byte-aligned.


svn path=/trunk/; revision=67233
2015-04-17 21:59:41 +00:00
Thomas Faber
a80d5b8e9d [WINMM]
- Sync MCI_SysInfo with Wine.
CORE-8528 #resolve

svn path=/trunk/; revision=67232
2015-04-17 19:20:32 +00:00
Aleksandar Andrejevic
2dc91ac6c0 [NTVDM]
- The auxiliary PS/2 port IRQ is disabled by default.
- In the DOS mouse driver's IRQ handler, just reading the entire packet
is faster than waiting for one IRQ per byte. (real drivers can do that too,
using polling, which is slower on real hardware but faster in NTVDM).
- Increase the speed of the PS/2 IRQ scheduler so that mouse packets don't
fill up the queue completely. And consequently, increase the number of
CPU steps per cycle to avoid "stuck key" bugs.


svn path=/trunk/; revision=67231
2015-04-17 18:36:45 +00:00
Thomas Faber
22d1251dbc [LIBUSB]
- Make some compilers and static analyzers happy by removing a no-op condition. Patch by Samuel Serapion.
CORE-7214 #resolve

svn path=/trunk/; revision=67230
2015-04-17 18:27:16 +00:00
Thomas Faber
211986401c [NTOS:MM]
- Fix free condition in MiDereferenceImports. Based on a patch by Samuel Serapion.
CORE-7208 #resolve

svn path=/trunk/; revision=67229
2015-04-17 18:21:12 +00:00
Thomas Faber
87424486ea [WIN32K:NTUSER]
- Fix range check in NtUserSetWindowFNID. Patch by Samuel Serapion.
- Update comment on an old hack
CORE-7212 #resolve

svn path=/trunk/; revision=67228
2015-04-17 18:06:39 +00:00
Thomas Faber
d9c9bf096c [WIN32SS]
- Fix some scrollbar bugs as indicated by user32_apitest:SetScrollInfo
- Silence a trace
CORE-9553 #resolve

svn path=/trunk/; revision=67227
2015-04-17 18:02:09 +00:00
Thomas Faber
2829ed5afe [USER32_APITEST]
- Add a test for SetScrollInfo
CORE-9553

svn path=/trunk/; revision=67226
2015-04-17 17:22:07 +00:00
Christoph von Wittich
75e50ba8cd [RAPPS]
initialize CachedEntriesHead
CORE-9060

svn path=/trunk/; revision=67225
2015-04-17 13:06:33 +00:00
Christoph von Wittich
4745785f04 [RAPPS]
free cached entries and some other improvements
patch by Ismael Ferreras Morezuelas aka swyter
CORE-9060

svn path=/trunk/; revision=67224
2015-04-17 12:37:08 +00:00
Hermès Bélusca-Maïto
1e7977088b [NTVDM]: Fix VgaGetDoubleVisionState definition (it was already correctly used in hardware/mouse.c).
svn path=/trunk/; revision=67223
2015-04-17 12:13:49 +00:00
Thomas Faber
e69c4796da [KERNEL32_APITEST]
- Make GetDriveType test succeed if the current directory is the drive root. Spotted by Edijs.
- Use strsafe functions
ROSTESTS-160 #resolve

svn path=/trunk/; revision=67222
2015-04-17 08:09:30 +00:00
Thomas Faber
a239c99e56 [WIN32K:NTUSER]
- Correctly check for WS_EX_NOPARENTNOTIFY in IntSendParentNotify. Patch by Andreas Maier.
CORE-9538 #resolve

svn path=/trunk/; revision=67221
2015-04-17 07:03:37 +00:00
Aleksandar Andrejevic
a64a682051 [NTVDM]
Fix several mouse range-related issues.


svn path=/trunk/; revision=67220
2015-04-17 03:11:18 +00:00
Aleksandar Andrejevic
e4a1abcc2a [NTVDM]
- Completely rewrite the timing system. Replace hardcoded callbacks
with dynamic hardware timers.
- Finish implementing the PS/2 mouse.
- Fix the DOS mouse driver.
Inspired by a patch by Stefano Toncich (Tonix) (see CORE-9166).
CORE-9166 #comment A different fix was committed in r67219.


svn path=/trunk/; revision=67219
2015-04-17 00:20:39 +00:00
Hermès Bélusca-Maïto
33d8a4b74b [CONSRV]: Addendum to r63792: use a separate flag to filter the next-mouse-move event that MUST NOT appear before a button-up event (this appears to be somewhat VM-dependent). See code and CORE-8394 for more details.
svn path=/trunk/; revision=67218
2015-04-17 00:01:37 +00:00
Hermès Bélusca-Maïto
e00d2e49be [CONSRV]: GUI frontend: support the 3rd and 4th mouse button.
svn path=/trunk/; revision=67217
2015-04-16 23:08:19 +00:00
Amine Khaldi
3c22869668 [RPCRT4_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67216
2015-04-16 17:21:14 +00:00
Amine Khaldi
c4cc047656 [IEFRAME] Make ieframe translatable. Thanks to Jared Smudde, Radek Liska and all the other translators mentioned in CORE-9544
svn path=/trunk/; revision=67215
2015-04-16 17:18:48 +00:00
Amine Khaldi
28559e040b [WER] Zap this module. I don't see it in my XP and 2K3 systems. It wasn't even part of the build process. CORE-9246
svn path=/trunk/; revision=67214
2015-04-16 15:05:34 +00:00
Thomas Faber
f499a92d44 [USER32_APITEST]
- Add a test for CreateDialog. Patch by Andreas Maier.
ROSTESTS-163 #resolve

svn path=/trunk/; revision=67213
2015-04-16 11:35:23 +00:00
Amine Khaldi
0f61b39797 [GDIPLUS_WINETEST] Addendum to r58377. gdiplus:image doesn't crash anymore. CORE-6969
svn path=/trunk/; revision=67212
2015-04-16 10:53:37 +00:00
Hermès Bélusca-Maïto
5e36ff31c0 [CD_EXTRAS]: Add the possibility to have different "extras" files for the different CD targets (in addition to the hybridcd) we have (useful for testers, for ReactOS shows, etc...). By Mark Jansen.
CORE-9527 #resolve #comment Added, thanks!

svn path=/trunk/; revision=67211
2015-04-15 21:29:53 +00:00
Eric Kohl
60e0daa326 [SRVSVC]
Implement NetrRemoteTOD.
CORE-5423 #resolve #comment Committed in r67210.

svn path=/trunk/; revision=67210
2015-04-15 21:04:43 +00:00
Amine Khaldi
4e16ae29eb [XMLLITE_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67209
2015-04-15 18:12:48 +00:00
Amine Khaldi
27f42e4074 [QMGR_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67208
2015-04-15 18:12:24 +00:00
Amine Khaldi
c728b137a9 [PROPSYS_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67207
2015-04-15 18:10:59 +00:00
Amine Khaldi
05895bfce5 [PROPSYS] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67206
2015-04-15 18:10:40 +00:00
Amine Khaldi
b2c305e446 [OLEAUT32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67205
2015-04-15 18:10:02 +00:00
Amine Khaldi
e8f37aa2ae [ODBCCP32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67204
2015-04-15 18:09:34 +00:00
Amine Khaldi
e4b0e7aa74 [OLEAUT32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67203
2015-04-15 18:09:13 +00:00
Amine Khaldi
7b4184bd06 [OLEACC] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67202
2015-04-15 18:07:26 +00:00
Amine Khaldi
15d91d11e5 [ODBCCP32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67201
2015-04-15 18:06:22 +00:00
Amine Khaldi
a2f1af1a1d [ODBC32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67200
2015-04-15 18:05:07 +00:00
Amine Khaldi
8046f009ba [NTDSAPI] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67199
2015-04-15 18:04:15 +00:00
Amine Khaldi
8a34b7d620 [XMLLITE] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67198
2015-04-15 18:03:03 +00:00
Eric Kohl
0749fc145c [NETAPI32]
- Add the client interface code of the server service.
- Implement NetRemoteTOD. This will not fix CORE-5423 because the server side (NetrRemoteTOD) is not implemented yet.

svn path=/trunk/; revision=67197
2015-04-14 21:47:06 +00:00
Eric Kohl
fdc0506420 [SRVSVC]
Add the Server service and its interface definition files.



svn path=/trunk/; revision=67196
2015-04-14 20:59:34 +00:00
Timo Kreuzer
2ff3ef05ad [CRT]
Refactor the code for __rt_div to allow reusing it for __rt_sdiv64 and __rt_udiv64 and implement those as asm wrappers around worker functions (due to the calling convention they cannot be implemented fully in C)

svn path=/trunk/; revision=67195
2015-04-14 18:42:28 +00:00
Amine Khaldi
7c438cfca5 [SYSDM] Move the link to the ReactOS homepage over a bit and capitalize some words in the Virtual Memory tab for the English language. By Jared Smudde. CORE-9541
svn path=/trunk/; revision=67194
2015-04-14 17:44:10 +00:00
Amine Khaldi
97c51296c8 [TREE] Fix a character typo. By Lee Schroeder. CORE-9543
svn path=/trunk/; revision=67193
2015-04-14 17:38:42 +00:00
Christoph von Wittich
f607ec2767 [TASKMGR]
fix a resource leak

svn path=/trunk/; revision=67192
2015-04-14 08:05:46 +00:00
Christoph von Wittich
20ab1d5d0d [CHARMAP]
use RegCreateKeyEx instead of RegCreateKey/RegOpenKeyEx

svn path=/trunk/; revision=67191
2015-04-14 08:04:18 +00:00
Christoph von Wittich
05304a280f [CHARMAP]
fix a resource leak

svn path=/trunk/; revision=67190
2015-04-14 07:47:43 +00:00
Christoph von Wittich
ad5812c3fd [DXDIAG]
fix some memory leaks

svn path=/trunk/; revision=67189
2015-04-14 07:41:24 +00:00
Christoph von Wittich
58e6b2e08a [sndvol32]
fix some memory leaks

svn path=/trunk/; revision=67188
2015-04-14 07:30:26 +00:00
Christoph von Wittich
123774cc8c [FONTVIEW]
fix a leak

svn path=/trunk/; revision=67187
2015-04-13 13:44:02 +00:00
Aleksandar Andrejevic
5c1e6cd9ac [NTVDM]
Initialize the list of hooks before the call to NtAllocateVirtualMemory, to prevent crashes
in MemCleanup in case it fails.


svn path=/trunk/; revision=67186
2015-04-13 12:50:34 +00:00
Christoph von Wittich
979022ff03 [CALC]
only update the layout when necessary

svn path=/trunk/; revision=67185
2015-04-13 09:53:35 +00:00
Christoph von Wittich
a24604be32 [RAPPS]
disable the call to FreeAvailableAppList until caching is fixes

svn path=/trunk/; revision=67184
2015-04-13 09:16:23 +00:00
Christoph von Wittich
f7cc513f2a [RAPPS]
fix a big memory leak

svn path=/trunk/; revision=67183
2015-04-13 08:10:54 +00:00
Eric Kohl
90529d6033 [NETAPI32]
Disable some functions in wksta_new.c and re-enable their counterparts in wksta.c. For some reason I cannot get the wine dummy code working in the workstation service. Perhaps it is yet another RPC bug.

CORE-9415

svn path=/trunk/; revision=67182
2015-04-12 22:07:22 +00:00
David Quintana
5dee29daa3 [NTOBJSHEX]
* Fix comparison length: StrCmpNW takes chars, not bytes.
* While at it, make canonical comparisons use memcmp instead of string comparison, as we only care about equality, not ordering.
Better fix for CORE-9432

svn path=/trunk/; revision=67181
2015-04-12 19:00:26 +00:00
Pierre Schweitzer
6abe431f5a [MYCOMPUT]
Add French translation

svn path=/trunk/; revision=67180
2015-04-12 18:22:26 +00:00
Timo Kreuzer
0e17cbc7b8 [CRT]
Implement __rt_sdiv as a wrapper around the unsigned divide (now factored out into an inline worker function)

svn path=/trunk/; revision=67179
2015-04-12 18:07:19 +00:00
Timo Kreuzer
59f40e274f [CRT]
Implement __rt_udiv in C.

svn path=/trunk/; revision=67178
2015-04-12 17:08:11 +00:00
Christoph von Wittich
fe19391da7 [SNDREC32]
do not delete objects which are still selected into a DC

svn path=/trunk/; revision=67177
2015-04-12 16:29:36 +00:00
Christoph von Wittich
d0ab5ca8f8 [TASKMGR]
fix some more memory leaks
CORE-9473

svn path=/trunk/; revision=67176
2015-04-12 16:09:26 +00:00
Christoph von Wittich
24af2268eb [TASKMGR]
fix some memory leaks

svn path=/trunk/; revision=67175
2015-04-12 15:45:40 +00:00
Timo Kreuzer
6c366758de [KMTEST]
Remove now obsolete definitions

svn path=/trunk/; revision=67174
2015-04-12 12:42:50 +00:00
Timo Kreuzer
44ea2025e2 [INCLUDE]
Fix the Interlocked function mess. Implement all Interlocked functions in xdk/interlocked.h as they exist in native. Use this header to generate wdm.h and winnt.h. Remove Interlocked definitions from winbase.h. Fix definition of ExInterlockedAddLargeInteger.

svn path=/trunk/; revision=67173
2015-04-12 12:40:49 +00:00
Amine Khaldi
744730996d [WINE/TEST] Add the possibility of making file names clickable in visual studio output windows by defining WINETEST_MSVC_IDE_FORMATTING. By Mark Jansen. ROSTESTS-156
svn path=/trunk/; revision=67172
2015-04-12 12:26:46 +00:00
Timo Kreuzer
c45766ee82 [REACTOS]
Fix usage of interlocked[Compare]ExchangePointer. These functions take a PVOID* as first parameter and nothing else. In native headers they are inline functions, not macros.

svn path=/trunk/; revision=67171
2015-04-12 12:24:01 +00:00
Daniel Reimer
38e1d11c51 [RAPPS]
My sync script was not completely up to date... forgot these newly added ones in there.

svn path=/trunk/; revision=67170
2015-04-12 11:54:59 +00:00
Daniel Reimer
d73b29f78b [RAPPS]
Update Database
CORE-9348 #resolve #comment Database updated, have fun ^^

svn path=/trunk/; revision=67169
2015-04-12 11:34:00 +00:00
Timo Kreuzer
217f3f66f1 [INCLUDE]
- Add missing KeMemoryBarrierWithoutFence, NUMBER_POOL_LOOKASIDE_LISTS, MM_SHARED_USER_DATA_VA, MM_EMPTY_PTE_LIST, MM_EMPTY_LIST, P*E_PER_PAGE, SESSION_POOL_LOOKASIDES, MiPdeToPte for ARM
- Fix KI_USER_SHARED_DATA for ARM based on native DDK

svn path=/trunk/; revision=67168
2015-04-12 09:48:00 +00:00
Pierre Schweitzer
aec53ac1d0 [MYCOMPUT]
Add Italian translation.
Patch by Carlo Bramini

CORE-9524 #resolve #comment Commited in r67167. Thanks!

svn path=/trunk/; revision=67167
2015-04-12 09:17:53 +00:00
David Quintana
0e0c90edbb [NTOBJSHEX]
* Make the info struct pointers const, to ensure we are not modifying the contents from the const idlists.
* Disable checking that the provided PIDL is part of the folder. Fixes enumeration in ros, but feels a lot like hiding a bug.
CORE-9432 #resolve

svn path=/trunk/; revision=67166
2015-04-12 01:34:53 +00:00
Daniel Reimer
36d7fc27d1 [RAPPS]
Add more recent Setup for Steam (2 years more recent) + localisations for the setup by Radek Liska
CORE-4196 #resolve #comment Added to RAPPS, have fun ^^

svn path=/trunk/; revision=67165
2015-04-11 14:03:58 +00:00
Timo Kreuzer
2530602c53 [FREELDR]
Fix ARM build

svn path=/trunk/; revision=67164
2015-04-11 14:03:19 +00:00
Hermès Bélusca-Maïto
d3b9acd3f5 [CONSRV]: Fix MSVC warnings.
svn path=/trunk/; revision=67163
2015-04-11 13:49:32 +00:00
Timo Kreuzer
89f99d7458 {RTL/ASM]
Fix ARM build

svn path=/trunk/; revision=67162
2015-04-11 12:47:29 +00:00
Timo Kreuzer
29552a8cd5 [CRT]
Add asm stubs for some ARM math functions

svn path=/trunk/; revision=67161
2015-04-11 12:44:55 +00:00
Timo Kreuzer
9db44f101d [INCLUDE]
- Add missing MI_HIGHEST_USER_ADDRESS for ARM
- Fix definition of ARM CONTEXT structure

svn path=/trunk/; revision=67160
2015-04-11 12:24:34 +00:00
Amine Khaldi
4f80779e54 [USETUP] Turkish translation update by Erdem Ersoy. CORE-7861
svn path=/trunk/; revision=67159
2015-04-11 12:02:31 +00:00
Amine Khaldi
e1cacb63f3 [TRANSLATIONS] Turkish translation update by Erdem Ersoy. CORE-7861
svn path=/trunk/; revision=67158
2015-04-11 12:00:56 +00:00
Daniel Reimer
54af000f02 [RAPPS]
Add PDFSAM (split and merge) to rapps
CORE-9517 #resolve #comment Added, have fun ^^

svn path=/trunk/; revision=67157
2015-04-11 11:51:38 +00:00
Daniel Reimer
a0023f9833 [TASKMGR]
TRANSLATION: Ukrainian translation update for taskmgr by Yaroslav Fedoryako
CORE-9461 #resolve #comment Committed, thx for help.

svn path=/trunk/; revision=67156
2015-04-11 11:38:01 +00:00
Daniel Reimer
007d81c134 [SOL]
Untranslated regions
CORE-8324 #resolve #comment Committed, thx for help.

svn path=/trunk/; revision=67155
2015-04-11 11:35:42 +00:00
Daniel Reimer
9abcc053ca [RAPPS]
Updating Turkish Translations (rapps) by Erdem Ersoy
CORE-8874 #resolve #comment Committed, thx for help.

svn path=/trunk/; revision=67154
2015-04-11 11:25:24 +00:00
Amine Khaldi
f1e890b642 [LIBPNG] Update to v1.6.17. CORE-8478
svn path=/trunk/; revision=67153
2015-04-11 11:24:17 +00:00
Daniel Reimer
af24ef419f [SNDREC32]
New Button (Tango Icon) in Sound Recorder by Henry Tang Ih
CORE-8932 #resolve #comment Committed, thx for help.

svn path=/trunk/; revision=67152
2015-04-11 11:16:33 +00:00
Amine Khaldi
b76bb28fb5 [KBDCZ] Fix compiling when the default code page is a MBCS. By Yuntian Zhang. CORE-7416
svn path=/trunk/; revision=67151
2015-04-11 10:40:07 +00:00
Amine Khaldi
9dcda7a0a1 [CMAKE/MSVC] x64 compilation is always treated as if /hotpatch has been specified. CORE-7959
svn path=/trunk/; revision=67150
2015-04-11 09:34:40 +00:00
Timo Kreuzer
d4a96aae26 [PSDK/XDK/CRT]
- Fix ARM build of libwine. Patch by Yuntian Zhang. CORE-8672 #resolve
- Don't include non-existant ARM intrinsic headers

svn path=/trunk/; revision=67149
2015-04-11 08:28:20 +00:00
Timo Kreuzer
1d742c54fb [DESK]
Fix MSVC/x64 warnings

svn path=/trunk/; revision=67148
2015-04-11 08:17:03 +00:00
Christoph von Wittich
5956c4372a [MSPAINT]
enable the call to HtmlHelp (not working yet because of missing help file)
CORE-8738
 

svn path=/trunk/; revision=67147
2015-04-11 06:21:09 +00:00
Timo Kreuzer
7410f3a036 [FAST486]
Fix MSVC warnings

svn path=/trunk/; revision=67146
2015-04-10 22:36:13 +00:00
Timo Kreuzer
02da43250f [KERNEL32_VISTA]
Fix MSVC warnings

svn path=/trunk/; revision=67145
2015-04-10 21:09:43 +00:00
Timo Kreuzer
47c8ea734e [NTOSKRNL]
Add SEH to NtRequestPort. Patch by Alexander Andrejevic.
CORE-7371

svn path=/trunk/; revision=67144
2015-04-10 19:53:08 +00:00
Timo Kreuzer
e8730d240c Nothing happened here.
svn path=/trunk/; revision=67143
2015-04-10 19:45:17 +00:00
Amine Khaldi
4add8053dd [INF] Romanian translation update by Ștefan Fulea. CORE-9516
svn path=/trunk/; revision=67142
2015-04-10 19:39:08 +00:00
Amine Khaldi
087a827a82 [RAPPS] Romanian translation update by Ștefan Fulea. CORE-9516
svn path=/trunk/; revision=67141
2015-04-10 19:21:59 +00:00
Timo Kreuzer
e617f69eee [RTL]
Improve RtlImageNtHeaderEx:
- Fix signed/unsigned mismatch when comparing NT header offset
- Simplify overflow checks
- Add missing overflow-into-systemspace check
CR-77 / CORE-8091 #resolve

svn path=/trunk/; revision=67140
2015-04-10 19:21:22 +00:00
Amine Khaldi
2e5a937eee [TRANSLATIONS] Romanian translation update by Ștefan Fulea. CORE-9516
svn path=/trunk/; revision=67139
2015-04-10 19:20:55 +00:00
Daniel Reimer
2fc7116a9a [INF]
- Convert some ANSI to UTF-8 w/o BOM
- Remove some BOMs ^^

svn path=/trunk/; revision=67138
2015-04-10 13:59:20 +00:00
Amine Khaldi
05ec4eaa72 [RAPPS] nginx license: 2-clause BSD => FreeBSD. By Ștefan Fulea. CORE-9515
svn path=/trunk/; revision=67137
2015-04-10 13:32:03 +00:00
Amine Khaldi
684fc5035e * Update README.WINE a bit to reflect its current state.
svn path=/trunk/; revision=67136
2015-04-10 11:04:13 +00:00
Thomas Faber
cb36e5d0ab [MSHTML]
- Remove nsIDOMWindowUtils::SetCriticalDisplayPortForElement, as it's no longer present in Gecko. Fixes stack corruption when exiting IE.
CORE-9513

svn path=/trunk/; revision=67135
2015-04-10 10:56:23 +00:00
Amine Khaldi
3f329afd50 [CRT] Adopt Wine Staging 1.7.37 _cwait() implementation. CORE-8214 CORE-9246
svn path=/trunk/; revision=67134
2015-04-10 10:49:56 +00:00
Daniel Reimer
5da2d8e642 [RAPPS]
Add Revo uninstaller 1.95 by nicoalta01
CORE-8892 #resolve #comment Added, have fun. I added CCleaner, too while bein at it ^^

svn path=/trunk/; revision=67133
2015-04-10 10:39:24 +00:00
Amine Khaldi
875dcc77a8 [SHELL32] Add floppy drive icon. By Jared Smudde. CORE-9451
svn path=/trunk/; revision=67132
2015-04-10 10:36:48 +00:00
Amine Khaldi
633b2b4d35 [XCOPY] Adjust language resources to ReactOS norms. By Ștefan Fulea. CORE-7845
svn path=/trunk/; revision=67131
2015-04-10 10:34:05 +00:00
Daniel Reimer
3f15f495c2 [RAPPS]
App listing request by oldman
CORE-8521 #resolve #comment Added the three still missing ones, have fun ^^

svn path=/trunk/; revision=67130
2015-04-10 10:13:51 +00:00
Thomas Faber
68348f909b [NTOS:PNP]
- Add missing SEH/Probe in NtGetPlugPlayEvent and IopGetInterfaceDeviceList, and correctly copy the interface list. Patch by Stephan Röger.
CORE-9498 #resolve

svn path=/trunk/; revision=67129
2015-04-10 10:10:28 +00:00
Amine Khaldi
36e31c92b2 [STRMBASE] Fix MediaSeekingPassThru_GetPositions when the pins are unconnected. By Erich E. Hoover. CORE-9303
svn path=/trunk/; revision=67128
2015-04-10 09:47:32 +00:00
Amine Khaldi
2f3d8a962c [STRMBASE] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67127
2015-04-10 09:44:40 +00:00
Thomas Faber
c9fa5328d9 [GDI32]
- Fix uninitialized variable use in EnumEnhMetaFile
- Apply Wine commit 88e81025 (gdi32: Fix typo in a condition (PVS-Studio).) by André Hentschel
CORE-9191 #resolve

svn path=/trunk/; revision=67126
2015-04-10 09:27:25 +00:00
Thomas Faber
a389855f0a [RTL]
- Implement RtlIpv6StringToAddress*. Patch by Mark Jansen.
CORE-6490

svn path=/trunk/; revision=67125
2015-04-10 08:38:05 +00:00
Christoph von Wittich
5436cce638 [RTL]
import LZNT1 decompression from wine staging

svn path=/trunk/; revision=67124
2015-04-10 08:18:00 +00:00
Thomas Faber
1a33147a7b [KERNEL32]
- Fix setting the hour in FileTimeToDosDateTime
CORE-9510 #resolve

svn path=/trunk/; revision=67123
2015-04-09 20:19:55 +00:00
Thomas Faber
9bbf279642 [RTL]
- Implement RtlIpv6AddressToString*. Patch by Mark Jansen.
CORE-6490

svn path=/trunk/; revision=67122
2015-04-09 19:42:18 +00:00
Thomas Faber
d0980fb653 [WS2_32]
- Import GetAddrInfoW and GetNameInfoW from Wine
- Put Wine code in wine/ subfolder
CORE-9509 #resolve

svn path=/trunk/; revision=67121
2015-04-09 16:14:46 +00:00
Amine Khaldi
b0dd365b65 [KERNEL32_VISTA] Add and export IdnTo{Ascii,Unicode}. CORE-9246
svn path=/trunk/; revision=67120
2015-04-09 16:02:48 +00:00
Amine Khaldi
175ee4b5c5 [PSDK] Add missing IdnTo{Ascii,Unicode} declarations.
svn path=/trunk/; revision=67119
2015-04-09 16:02:32 +00:00
Amine Khaldi
bf75b75b22 [SECUR32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67118
2015-04-09 14:26:41 +00:00
Amine Khaldi
eceed9ecc3 [WINHTTP_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67117
2015-04-09 13:31:23 +00:00
Amine Khaldi
c2b421e0a7 [WINHTTP] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67116
2015-04-09 13:29:04 +00:00
Amine Khaldi
4fe2ca037f [URLMON] Stub and export IEInstallScope. Needed by urlmon:misc test.
svn path=/trunk/; revision=67115
2015-04-09 13:15:15 +00:00
Amine Khaldi
5a3125c61d [URLMON_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67114
2015-04-09 12:44:18 +00:00
Amine Khaldi
1a79e7e0b6 [URLMON] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67113
2015-04-09 12:42:05 +00:00
Thomas Faber
02ae5f591c [NDISUIO]
- Another addendum to r67107: don't let CleanupAndFreePacket try to free the buffer since it does not have the correct pointer
CORE-8210

svn path=/trunk/; revision=67110
2015-04-09 10:36:35 +00:00
Thomas Faber
dceb52e202 [PSDK]
- Apply some MIDL build fixes
- Fix eConnTypeRJ11Modem declaration in devicetopology.idl (Wine commit 2190601c by Jacek Caban)

svn path=/trunk/; revision=67109
2015-04-09 10:29:53 +00:00
Amine Khaldi
3e4eea0b98 [NDISUIO] Addendum to r67107. Better ordering of the cleanups. CORE-8210
svn path=/trunk/; revision=67108
2015-04-09 09:50:44 +00:00
Amine Khaldi
0d143e6148 [NDISUIO] Plug a leak on failure path. Spotted by Samuel Serapion using cppcheck. CORE-8210
svn path=/trunk/; revision=67107
2015-04-09 09:39:19 +00:00
Amine Khaldi
8eba329a7c [SERVMAN] Fix some clipping in the about box. By Jared Smudde. CORE-9505
svn path=/trunk/; revision=67106
2015-04-09 09:20:33 +00:00
Daniel Reimer
2b490d5b88 [RAPPS]
Fix the German Ein/Eine CHAOS.
Move Java to the right category.
Remove RosBE ARM/AMD64 for now.

svn path=/trunk/; revision=67104
2015-04-08 19:02:35 +00:00
Amine Khaldi
62f395ffc7 [SERVMAN] Now fix GCC build on *nix.
svn path=/trunk/; revision=67103
2015-04-08 18:38:48 +00:00
Amine Khaldi
0b9cd86300 [SERVMAN] Fix GCC build.
svn path=/trunk/; revision=67102
2015-04-08 18:36:06 +00:00
Ged Murphy
e6783cfeac [SERVMAN]
- Fix that gcc doesn't support c99
- According to Christoph, this should fix the gcc build. If not, blame him.

svn path=/trunk/; revision=67101
2015-04-08 18:31:29 +00:00
Daniel Reimer
1679681323 [RAPPS]
CORE-9060 #comment rapps-db-update-and-enhancement-includes-es-es-l10n-2015-03-20.patch committed + continued your ways in some more entries + made the German translation follow it either + added some missing German translations.

svn path=/trunk/; revision=67100
2015-04-08 18:17:03 +00:00
Ged Murphy
d73995a7ce [SERVMAN]
- Allow params to be passed through the progress dialog
- PAss the start params

svn path=/trunk/; revision=67099
2015-04-08 18:14:16 +00:00
Amine Khaldi
16cf1d284d [MBEDTLS] Import mbed TLS v1.3.10. This is WIP. Brought to you by Peter Hater and co. CORE-9065 CR-70
svn path=/trunk/; revision=67098
2015-04-08 17:48:22 +00:00
Ged Murphy
0172a6e62e Briefly remove from build until I've made a few more changes
svn path=/trunk/; revision=67097
2015-04-08 17:48:20 +00:00
Daniel Reimer
04ffbc846d [INF]
CORE-9060 #comment swyter-rapps-add-short-desktop-title-2015-03-25.patch committed, rest will come soon.

svn path=/trunk/; revision=67096
2015-04-08 17:42:14 +00:00
Ged Murphy
4fe24fa539 [SERVMAN]
- TCHAR -> WCHAR

svn path=/trunk/; revision=67095
2015-04-08 17:30:38 +00:00
Ged Murphy
6de5a3ef96 [SERVMAN]
- Rewrite the progress dialog making it responsible for controlling services. (starting, stopping, etc).
- Fixup the rest of the code to make use of running actions through the progress dialog.
- As a side-effect, this should fix CORE-4585 

svn path=/trunk/; revision=67094
2015-04-08 17:28:46 +00:00
Amine Khaldi
c783e3db2f [MSXML3_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67093
2015-04-08 17:15:53 +00:00
Amine Khaldi
78e4e49279 [MSXML3] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67092
2015-04-08 17:15:30 +00:00
Amine Khaldi
a7321a085f [MSTASK_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67091
2015-04-08 17:14:16 +00:00
Amine Khaldi
3786bae790 [MSVFW32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67090
2015-04-08 17:13:34 +00:00
Amine Khaldi
4ff7f1b3ae [MSRLE32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67089
2015-04-08 17:12:45 +00:00
Amine Khaldi
b072815c05 [MSCMS_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67088
2015-04-08 17:12:02 +00:00
Amine Khaldi
cbf5f03dbb [MSCMS] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67087
2015-04-08 17:11:42 +00:00
Amine Khaldi
18b50f005d [MMDEVAPI_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67086
2015-04-08 17:11:03 +00:00
Amine Khaldi
05597627e0 [MMDEVAPI] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67085
2015-04-08 17:10:40 +00:00
Christoph von Wittich
de68cb4069 [USETUP]
set correct geoid for germany

svn path=/trunk/; revision=67084
2015-04-07 19:50:20 +00:00
Aleksandar Andrejevic
7f52cff19b [NTVDM]
Always use MemRead and MemWrite to read/write memory.


svn path=/trunk/; revision=67082
2015-04-07 04:00:54 +00:00
Amine Khaldi
81c9b448c8 [LIBMPG123] Update to v1.22.1. CORE-6779
svn path=/trunk/; revision=67081
2015-04-06 22:43:14 +00:00
Aleksey Bragin
9f3f53645e [BROWSEUI]
- Fedor Zaytsev: Fix a typo (copy/paste) which resulted in inability to move forward in Explorer (when selecting item from the context menu of the forward button). CORE-9463

svn path=/trunk/; revision=67080
2015-04-06 21:01:20 +00:00
Amine Khaldi
34e8f186a9 [NTDLL_WINETEST] Add tests for RtlIpv6AddressToString(Ex) by Mark Jansen.
svn path=/trunk/; revision=67079
2015-04-06 20:27:41 +00:00
Amine Khaldi
eb06c062c9 [WINE/CONFIG] Import SONAME_LIBTXC_DXTN and adjust it to our dll. CORE-9246
svn path=/trunk/; revision=67078
2015-04-06 20:06:18 +00:00
Pierre Schweitzer
80bdaf1f3e [SMSS]
Fix broken if statement. It couldn't evaluate to true.

svn path=/trunk/; revision=67077
2015-04-06 19:19:35 +00:00
Amine Khaldi
a2a9df3eed [RICHED20_WINETEST] EM_SETSEL tests. Addendum to r67074. By Christoph von Wittich.
svn path=/trunk/; revision=67076
2015-04-06 17:56:33 +00:00
Amine Khaldi
5cc55012a5 [RICHED20] Handle SCF_WORD. By Christoph von Wittich. Already accepted upstream.
svn path=/trunk/; revision=67075
2015-04-06 17:53:46 +00:00
Amine Khaldi
be34509dea [RICHED20] EM_SETSEL should not return 0. By Christoph von Wittich. Already accepted upstream.
svn path=/trunk/; revision=67074
2015-04-06 17:52:16 +00:00
Amine Khaldi
d0713751e1 [RICHED20_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67073
2015-04-06 17:45:01 +00:00
Amine Khaldi
b7d82956a3 [RICHED20] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=67072
2015-04-06 17:44:48 +00:00
Thomas Faber
9ad74ea48e [RPCRT4]
- Avoid double free introduced in r63605.
CORE-8200

svn path=/trunk/; revision=67071
2015-04-06 08:57:12 +00:00
Thomas Faber
3233f5f8b3 [USER32_APITEST]
- Rename CreateWindowEx test to SetParent since that's what it tests

svn path=/trunk/; revision=67070
2015-04-06 06:34:04 +00:00
Hermès Bélusca-Maïto
06b8f6ed65 [KERNEL32]
- Use the correct console critical section when setting console control handlers.
- Hold the console critical section in FreeConsole (so that we avoid freeing the console while also running code in the console control dispatcher...).

svn path=/trunk/; revision=67069
2015-04-05 23:42:26 +00:00
Hermès Bélusca-Maïto
5cdf75a235 [CONSRV][CONSOLE.DLL]
- Correctly retrieve/set the default console properties.
- (for console.dll only): split ApplyConsoleInfo so that it only deals with displaying the confirmation dialog (and set the correct return value for the PSN_APPLY notification message); the code that really sets console properties and save them in the registry is done in the main CPL function, after the property dialog is destroyed and before the CPL returns.

svn path=/trunk/; revision=67068
2015-04-05 23:04:42 +00:00
Pierre Schweitzer
e18a1e92bc [NTOSKRNL]
Implement the reparse points loop in IopParseDevice().

Reviewed by Thomas

svn path=/trunk/; revision=67067
2015-04-05 20:02:30 +00:00
Aleksandar Andrejevic
14ce9b898d [NTVDM]
Fix the shift key. Improve the BIOS keyboard handler. Do not append
modifier keys to the buffer.
CORE-8231 #resolve #comment Fixed in revision r67066.


svn path=/trunk/; revision=67066
2015-04-05 18:40:18 +00:00
Hermès Bélusca-Maïto
965df2ffd2 [CMD]: Check for cmd_realloc returned value. Adapted from patch by Patrick Martin, see CORE-7298.
svn path=/trunk/; revision=67065
2015-04-05 17:11:29 +00:00
Amine Khaldi
a18fba66e3 [MMSYS] Fix some icons and add more appropriate ones. Brought to you by Jared Smudde. CORE-9471 for more details.
svn path=/trunk/; revision=67064
2015-04-05 16:58:46 +00:00
Amine Khaldi
9de3477231 [SHELL32] Fix a label in the Open With dialog. Change Abort to Cancel for English in Extended Properties. Add a new icon to Extended Properties. By Jared Smudde. CORE-9488
svn path=/trunk/; revision=67063
2015-04-05 16:44:54 +00:00
Hermès Bélusca-Maïto
2480c56ec9 [CMD]: Some fixes for SET /A command:
- If we do arithmetics using an non-defined env-var, the latter is automatically understood to be zero.
- If one left-shifts more than 31 bits (or left-shifts a negative number of bits), the result is automaticaly set to zero (checked on Windows'cmd + with cmd_winetest + wine cmd code).

svn path=/trunk/; revision=67062
2015-04-05 16:28:10 +00:00
Hermès Bélusca-Maïto
11cc096ce7 [NTVDM]: Remove an injoke that was added and displayed when an application tried to get the internal DOS list of lists (SYSVARS) and instead replace it by a DPRINT. This won't confuse people anymore.
This DOS list-of-lists feature is completely unimplemented at the moment.

svn path=/trunk/; revision=67061
2015-04-05 13:46:14 +00:00
Timo Kreuzer
f110853aaa [WIN32K]
Allocate the device lock semaphore for a PDEVOBJ in PDEVOBJ_AllocPDEV and implement PDEVOBJ_vDeletePDEV. Fixes a PDEVOBJ leak, found by Thomas and Giannis.

svn path=/trunk/; revision=67060
2015-04-05 12:45:01 +00:00
Thomas Faber
71ac07fc36 [SERVICES]
- Free unknown groups when their reference count reaches zero
CORE-9480 #resolve

svn path=/trunk/; revision=67059
2015-04-05 08:58:08 +00:00
Timo Kreuzer
77eb553987 [WIN32K]
Check in BltMask if the masking operation would exceed the mask bitmap. Should fix crash when running gdi32_apitest MaskBlt.
CORE-9483

svn path=/trunk/; revision=67058
2015-04-05 08:40:52 +00:00
Thomas Faber
d0071adf97 [NTOSKRNL]
- Perform a user-mode wait in NtGetPlugPlayEvent and correctly allow a waiting thread to terminate
CORE-9489 #resolve

svn path=/trunk/; revision=67057
2015-04-05 08:33:08 +00:00
Thomas Faber
be57c2b21b [RTL]
- Use ntstrsafe functions in RtlIpv4AddressToString*. Based on a patch by Mark Jansen.
CORE-6490

svn path=/trunk/; revision=67056
2015-04-05 04:34:23 +00:00
Hermès Bélusca-Maïto
c380c2c783 [CMD]
- Fix some comments that were otherwise hard to understand.
- Don't hardcode MAX_PATH in some API calls but instead use the real array char size.
- Don't leak find-file handles: fix leaked handles to NUL pseudo-file in situations where we do: copy some_file+NUL some_dest_file . Should fix some cmd winetests.

svn path=/trunk/; revision=67055
2015-04-05 00:39:06 +00:00
Hermès Bélusca-Maïto
b696813c4a [CMD]
- Remove useless STRING_START_ERROR1.
- Fix french translation.

svn path=/trunk/; revision=67054
2015-04-05 00:26:12 +00:00
Sylvain Petreolle
d5af8084fb [FREELDR]
In a quest to better registry,
don't break VSSolution builds.
freeldr_pe is not in the same directory and copy doesn't care if you ask to concatenate C:\tomatoes, it already has the first file.

svn path=/trunk/; revision=67053
2015-04-04 20:33:18 +00:00
Christoph von Wittich
a91d1b68a5 [SHELL32]
implement invert selection

svn path=/trunk/; revision=67052
2015-04-04 18:51:28 +00:00
Timo Kreuzer
dd4901282a [GDI32_APITEST]
Add/fix some tests for CreateDIBPatternBrush, GetDIBits, PatBlt and SetWindowExtEx

svn path=/trunk/; revision=67051
2015-04-04 15:58:18 +00:00
Thomas Faber
d030b7f8a7 [USBEHCI]
- Apply power to the right port in SetPortFeature

svn path=/trunk/; revision=67050
2015-04-04 15:50:38 +00:00
Hermès Bélusca-Maïto
fa57d9894f [CMD]: Support space and tabs as parameter separators in the DIR command.
svn path=/trunk/; revision=67049
2015-04-04 15:44:55 +00:00
Hermès Bélusca-Maïto
9beab72eb8 [CMD]: Addendum to r67013: Check whether len > 0 before decrementing it in case we point to a newline. Fix some spurious crashes and should fix some other cmd_winetests.
svn path=/trunk/; revision=67048
2015-04-04 14:59:03 +00:00
Timo Kreuzer
4eebb1e0c9 [GDI32_APITEST]
Add some more tests for MaskBlt

svn path=/trunk/; revision=67047
2015-04-04 14:58:17 +00:00
Timo Kreuzer
9729094318 [GDI32_APITEST]
Fix some broken tests or disable them.

svn path=/trunk/; revision=67046
2015-04-04 14:51:20 +00:00
Timo Kreuzer
437306080d [GDI32_APITEST]
Improve/fix tests for CreateBitmap.

svn path=/trunk/; revision=67045
2015-04-04 14:38:04 +00:00
Timo Kreuzer
7d51577276 [CRT_APITEST]
Disable a broken test.

svn path=/trunk/; revision=67044
2015-04-04 13:42:41 +00:00
Timo Kreuzer
462b429d45 [GDI32_APITEST]
Disable the 7.5 million tests, that make our testbot print failure message forever.

svn path=/trunk/; revision=67043
2015-04-04 13:35:19 +00:00
Timo Kreuzer
f7f6d79a8d [GDI32_APITEST]
Fix GCC build

svn path=/trunk/; revision=67042
2015-04-04 13:09:54 +00:00
Christoph von Wittich
c123b2db8b [INF]
remove BOM

svn path=/trunk/; revision=67041
2015-04-04 13:08:21 +00:00
Timo Kreuzer
afc9bc7f2a [GDI32_APITEST]
Add more tests for ExtCreatePen. This adds tests for almost all thinkable combinations of parameters. On win7: "ExtCreatePen: 7594830 tests executed (0 marked as todo, 0 failures), 0 skipped." After evaluating the results on WHS2003, this test will be disabled, since it is expected that most of these fail on ros atm.

svn path=/trunk/; revision=67040
2015-04-04 12:53:05 +00:00
Christoph von Wittich
aca71f990a [INF]
correctly handle ACPI\ACPI0003 as AcAdapter

svn path=/trunk/; revision=67039
2015-04-04 12:33:51 +00:00
Daniel Reimer
dae118ec51 Add Oracle JRE 7u76 to RAPPS either. It worked nicely @ CLT and more than once I was asked for it.
svn path=/trunk/; revision=67038
2015-04-04 12:06:37 +00:00
Daniel Reimer
4a0458b8a3 Add more drivers to RAPPS by Jared
CORE-9409 #comment Added the NVidia drivers. Have fun ^^

svn path=/trunk/; revision=67037
2015-04-04 11:47:01 +00:00
Daniel Reimer
030d78fa06 Add fall game to rapps by manuel
CORE-9127 #resolve #comment Added, have fun ^^

svn path=/trunk/; revision=67036
2015-04-04 11:31:08 +00:00
Daniel Reimer
49061d84e6 Adding New Apps for Rapps by Erdem Ersoy + German translations by me
CORE-7493 #resolve #comment Added, have fun ^^

svn path=/trunk/; revision=67035
2015-04-04 11:24:24 +00:00
Daniel Reimer
9cda9472ef Add to RAPPS internet browser K-Meleon by Alexander Rechitskiy
CORE-9404 #resolve #comment Added, have fun ^^

svn path=/trunk/; revision=67034
2015-04-04 11:05:00 +00:00
Daniel Reimer
d202c667f5 ADD to RAPPS Microsoft Office Compatibility Pack for Word, Excel, and PowerPoint File Formats by Alexander Rechitskiy
CORE-9350 #resolve #comment Added, have fun ^^

svn path=/trunk/; revision=67033
2015-04-04 10:51:07 +00:00
Daniel Reimer
3a32c013df Add support of ReiserFS (RO) to ReactOS by Alexander Rechitskiy
CORE-8625 #resolve #comment Committed. Have fun ^^

svn path=/trunk/; revision=67032
2015-04-04 10:39:24 +00:00
Thomas Faber
89002ebf06 [SYSSETUP]
- Don't run vmwinst. It no longer works, and the real VMware Tools installer works fine
CORE-9481 #resolve

svn path=/trunk/; revision=67031
2015-04-04 09:07:45 +00:00
Thomas Faber
eaa1887c7d [RTL]
- Use annotations and consistent parameter naming in RtlIpv*

svn path=/trunk/; revision=67030
2015-04-04 08:00:59 +00:00
Thomas Faber
cc33924d4a [NDK][RTL]
- Fix RtlIpv* function prototypes, and add missing ones. Patch by Mark Jansen
CORE-6490

svn path=/trunk/; revision=67029
2015-04-04 07:38:39 +00:00
Thomas Faber
1e9cbe5aab [RAPPS]
- Update README.ENG. Patch by Ismael Ferreras Morezuelas, with review by Jared Smudde
CORE-9060

svn path=/trunk/; revision=67028
2015-04-04 06:48:44 +00:00
Thomas Faber
bd82c844a9 [SERVICES][ADVAPI32]
- Remove old hack member in SC_RPC_CONFIG_INFOA that is no longer necessary and makes info levels other than SERVICE_CONFIG_DESCRIPTION fail. Fixes failure in VMware Tools installer.
- Actually save the new service description in RChangeServiceConfigW
CORE-9479 #resolve

svn path=/trunk/; revision=67027
2015-04-04 06:30:44 +00:00
Thomas Faber
9b70cba818 [USBCCGP]
- Add a DPRINT/ASSERT to USBCCGP_LegacyEnum to test a theory about CORE-9226

svn path=/trunk/; revision=67026
2015-04-03 20:31:10 +00:00
Thomas Faber
9b7e229a23 [UMPNPMGR][NEWDEV]
- Actually create the "InstallEvent" as an event and use it to communicate success from newdev back to umpnpmgr. This works better than checking the process exit code from rundll32 (which always returns 0).
CORE-9477 #resolve

svn path=/trunk/; revision=67025
2015-04-03 18:30:37 +00:00
Giannis Adamopoulos
e68fe3a3b4 [SHELL32]
- Implement handling ctrl+A in the shell view control.

svn path=/trunk/; revision=67024
2015-04-03 16:49:24 +00:00
Christoph von Wittich
83f07e32ef [MYCOMPUT]
now do it properly

svn path=/trunk/; revision=67023
2015-04-03 14:48:39 +00:00
Christoph von Wittich
712a030538 [MYCOMPUT]
fix build

svn path=/trunk/; revision=67022
2015-04-03 14:47:47 +00:00
Christoph von Wittich
f6fa1a2649 [SHELL32]
make "Manage" translatable
by Giannis and me

svn path=/trunk/; revision=67021
2015-04-03 14:38:20 +00:00
Hermès Bélusca-Maïto
b80598739f [CMD]
- GOTO command: Add a lower-bound test when skipping trailing spaces and such.
- CD/CHDIR command: Fix the helper SetRootPath function so that it fails if getting the full path string fails, and remove trailing whitespace from directory string. Fixes stuff like:
  cd .. && echo success
  cd ".. " && echo success
  etc...
CORE-6810

svn path=/trunk/; revision=67020
2015-04-03 13:27:21 +00:00
Thomas Faber
d78406b3f5 [BROWSEUI]
- Correctly handle progress dialog message strings
CORE-9252

svn path=/trunk/; revision=67019
2015-04-03 12:54:42 +00:00
Giannis Adamopoulos
7f9a543084 [SHELL32]
- Explicitly check for pidl type in GetAttributesOf method of CDesktopFolder and CDrivesFolder

svn path=/trunk/; revision=67018
2015-04-03 12:18:07 +00:00
Giannis Adamopoulos
c1904b1628 [SHELL32]
- CFSFolder: Explicitly check for the supported pidl types. A CFSFolder can be created by a drive pidl. Handle this case and return the appropriate attributes in GetAttributesOf.
CORE-9458

svn path=/trunk/; revision=67017
2015-04-03 11:44:30 +00:00
Giannis Adamopoulos
a4ed2e1992 [SHELL32]
- CControlPanelFolder: Factor out CCPLItemMenu class. Use it if the user selected a cpl item and use the default context menu otherwise. 
- CControlPanelFolder: Use ExpandEnvironmentStrings when enumerating applets from the registry. Patch by Christoph.
- CCPLItemMenu: Call Control_RunDLLA directly so as to be able to run control panel applets that don't use the cpl extension.
CORE-7755 CORE-9466

svn path=/trunk/; revision=67016
2015-04-03 11:40:00 +00:00
Giannis Adamopoulos
03b1d10b3e [SHELL32]
- CControlPanelFolder: Explicitly check the pidl type in GetAttributesOf. Do not call the generic SHELL32_GetItemAttributes for cpl items.

svn path=/trunk/; revision=67015
2015-04-03 10:20:30 +00:00
Thomas Faber
df58c359d2 [NTOS:IO]
- Fix file object reference leak in NtWriteFile
CORE-9472 #resolve

svn path=/trunk/; revision=67014
2015-04-03 03:40:53 +00:00
Hermès Bélusca-Maïto
0b933fb6ad [CMD]: Fix the ConWrite newline support I added in r59411 (strpbrk only applies on NULL-terminated strings, whereas here I manipulate char-counted strings). Spotted by Thomas. As a result should fix almost all of the non-NULL-terminated strings that show up in the failed cmd wine test.
svn path=/trunk/; revision=67013
2015-04-03 00:11:42 +00:00
Hermès Bélusca-Maïto
313061d22a [CMD]: When the CD command echoes the current path, it should return to a newline.
CORE-6810

svn path=/trunk/; revision=67012
2015-04-02 23:47:00 +00:00
Christoph von Wittich
aa68fcbde6 [STOBJECT]
Reorder volume menu items
patch by Jared
CORE-9468

svn path=/trunk/; revision=67011
2015-04-02 06:09:25 +00:00
Giannis Adamopoulos
259657ecfa [SHELL32]
- CNetFolder: As this folder isn't really implemented yet, there is no need to call the hacky common implementation of wine's shell folders (which will be removed eventually).

svn path=/trunk/; revision=67010
2015-04-01 20:34:52 +00:00
Giannis Adamopoulos
b1a175cbfa [SHELL32]
- Implement IContextMenu3 interface. Implement drawing the icons on WM_DRAWITEM. CORE-8866

svn path=/trunk/; revision=67009
2015-04-01 20:22:25 +00:00
Giannis Adamopoulos
22c2b66b34 [SHELL32]
- Show hidden files as dithered.

svn path=/trunk/; revision=67008
2015-04-01 19:18:34 +00:00
Amine Khaldi
af9db65fcb [STREAM] Plug a leak on failure path. Spotted by Samuel Serapion using cppcheck. CORE-8211
svn path=/trunk/; revision=67007
2015-04-01 17:53:02 +00:00
Timo Kreuzer
511de2ccea [WINSRV]
Enable C_ASSERT only on x86. Fixes x64 build.

svn path=/trunk/; revision=67006
2015-04-01 17:51:05 +00:00
Christoph von Wittich
aae247f9ff [DEVMGR]
don't show an empty list when no driver files are required
CORE-3341

svn path=/trunk/; revision=67005
2015-04-01 12:03:12 +00:00
Timo Kreuzer
79ca4fbf90 [HOST]
Make sure host-tools hosts get the correct type definitions on 64 bit (native) MSVC builds. x64 builds boot to desktop now.
CORE-8587 #resolve

svn path=/trunk/; revision=67004
2015-04-01 08:35:16 +00:00
Aleksandar Andrejevic
2cef04bd30 [NTVDM]
INT 21h, AH = OAh - Special characters should be echoed onto
the screen (like ^A, etc...) and appended to the buffer.


svn path=/trunk/; revision=67003
2015-03-31 21:45:12 +00:00
Aleksandar Andrejevic
d5976d2739 [NTVDM]
- Implement Ctrl-C using interrupt 0x23.
- Fix INT 21h, AH = 0Ah to detect special characters.
- When attaching to / detaching from the console, adjust the console mode
  and attach/detach the UI.
- Do not translate scancodes to characters while ALT is held down.


svn path=/trunk/; revision=67002
2015-03-31 21:28:40 +00:00
Thomas Faber
8c6b9e9841 [WSCRIPT]
- Correctly use CommandLineToArgvW. Fixes cscript crashing on start.
CORE-9439 #resolve

svn path=/trunk/; revision=67001
2015-03-31 18:30:02 +00:00
Amine Khaldi
06ef60970d [CMD_WINETEST] Do not skip cmd tests. CORE-6810.
svn path=/trunk/; revision=67000
2015-03-31 07:09:02 +00:00
Aleksandar Andrejevic
832ce358b3 [NTVDM]
The DOS CON driver should call INT 29h for output.


svn path=/trunk/; revision=66999
2015-03-31 03:05:09 +00:00
Aleksandar Andrejevic
0f9c01b353 [NTVDM]
Implement INT 21h function AH = 31h (Terminate and Stay Resident).


svn path=/trunk/; revision=66998
2015-03-31 02:39:31 +00:00
Hermès Bélusca-Maïto
4d6b8b2b90 [MSTSC]: Full sentences end with periods. In English (patch by Jared Smudde). Works also for most of other languages (french, spanish, etc...) (by me). For Chinese and Japanese, translaters, please review!
svn path=/trunk/; revision=66997
2015-03-31 00:37:14 +00:00
Hermès Bélusca-Maïto
da96dfb4ae [NOTEPAD]: AlertPrintError displays an incorrect error message, CORE-9417 .
Patch by Ricardo Hanke.

svn path=/trunk/; revision=66996
2015-03-31 00:07:23 +00:00
Hermès Bélusca-Maïto
d329fbebf0 [USETUP]: Add basic installation directory validity check (only for whitespace for now). Patch by Edijs Kolesnikovics, see CORE-6149.
Indeed, some ReactOS (and Windows as well) components do not support the system directory having spaces, in particular SMSS: this is due to the basic command-line parsing rules of SMSS that considers that the presence of a space in the command-line is equivalent to a separator, be it in or out a quoted string.

svn path=/trunk/; revision=66995
2015-03-30 23:32:32 +00:00
Amine Khaldi
0181026801 [SHELL32] Addendum to r66987. CORE-9449
svn path=/trunk/; revision=66994
2015-03-30 23:28:15 +00:00
Amine Khaldi
350a45e452 [DESKADP][DESKMON] Add icons. Brought to you by Jared Smudde. CORE-9413
svn path=/trunk/; revision=66993
2015-03-30 22:50:40 +00:00
Giannis Adamopoulos
a2901cea9f [BROWSEUI]
- CProgressDialog: Allocate big enough buffers needed for the text messages during initialization and don't reallocate them at all. Should stop thrashing the heap while copying a large number of files. 
CORE-9252

svn path=/trunk/; revision=66992
2015-03-30 22:50:34 +00:00
Amine Khaldi
2f48b949ad [DESK] Prevent the "More" label from spilling into other areas and adjust another label position. By Jared Smudde. CORE-9413
svn path=/trunk/; revision=66991
2015-03-30 22:36:23 +00:00
Timo Kreuzer
a8e04976ec [ROSAPPS]
Get kitty back to rosapps

svn path=/trunk/; revision=66990
2015-03-30 22:33:40 +00:00
Timo Kreuzer
7ee7d29258 [CMAKE]
Use native OS tools for concatenating files. Remove cat from host tools.

svn path=/trunk/; revision=66989
2015-03-30 22:31:43 +00:00
Giannis Adamopoulos
897d797800 [EXPLORER]
- Fix showing the website when Help is selected from the start menu.

svn path=/trunk/; revision=66988
2015-03-30 22:28:08 +00:00
Amine Khaldi
d7d7ebb1b9 [SHELL32] Disk Check utility: Make the progress bar longer, shrink the group box, align the checkboxes and shrink the oversize box. Brought to you by Jared Smudde. CORE-9449
svn path=/trunk/; revision=66987
2015-03-30 22:13:37 +00:00
Amine Khaldi
0ed98bc3e8 [MLANG_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66986
2015-03-30 21:45:29 +00:00
Amine Khaldi
ba90de7246 [MLANG] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66985
2015-03-30 21:45:18 +00:00
Amine Khaldi
cb350a41ed [TRANSLATIONS] Russian translation update by Kudratov Olimjon. CORE-9265
svn path=/trunk/; revision=66984
2015-03-30 21:40:50 +00:00
Amine Khaldi
c2a8901863 [SETUPAPI_APITEST] Add tests for SetupDiInstallClassExA and SetupInstallServicesFromInfSectionEx. Brought to you by Victor Martinez with some changes by me. ROSTESTS-157
svn path=/trunk/; revision=66983
2015-03-30 21:08:47 +00:00
Amine Khaldi
f2fb8f0d2c [EXPLORER] Ukrainian translation update by Yaroslav Fedoryako. CORE-9320
svn path=/trunk/; revision=66982
2015-03-30 19:35:15 +00:00
Sylvain Petreolle
e5e4c2bbf0 [IPHLPAPI]
Make GetAdaptersAddresses work, with parameters check.
More work is needed :
-it returns the loopback, which shouldn't appear with default flags.
-the required size is fixed.

svn path=/trunk/; revision=66981
2015-03-30 18:10:36 +00:00
Giannis Adamopoulos
0e91e9fc18 [SHELL32]
- CDefaultContextMenu: GetAttributesOf should only return the requested flags and not more. However our shell is not up to such nice behavior so don't depend o it for now.

svn path=/trunk/; revision=66980
2015-03-30 13:04:48 +00:00
Giannis Adamopoulos
405cd4a9c0 [SHELL32]
- CDefView: Use SHForwardContextMenuMsg to forward menu messages to the context menu class
- CDefaultContextMenu: Implement IContextMenu3 and use SHForwardContextMenuMsg to forward menu messages to shell extensions.
CORE-9446 (part 2/2)

svn path=/trunk/; revision=66979
2015-03-30 12:21:39 +00:00
Giannis Adamopoulos
9fecc42e25 [SHLWAPI]
- Implement SHForwardContextMenuMsg according to http://undoc.airesoft.co.uk/shlwapi.dll/SHForwardContextMenuMsg.php
CORE-9446 (Part 1/2)

svn path=/trunk/; revision=66978
2015-03-30 12:16:29 +00:00
Giannis Adamopoulos
413e9379e1 [shlwapi_undoc.h] - Add definition of SHForwardContextMenuMsg
svn path=/trunk/; revision=66977
2015-03-30 11:42:41 +00:00
Amine Khaldi
d305a81d9b [MCIWAVE] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66976
2015-03-30 11:42:30 +00:00
Giannis Adamopoulos
f151e67cf8 [SHLWAPI]
- Convert SHGetAllAccessSA to a soft stub in the spec file. Having it as a diff with wine doesn't add anything anyway.

svn path=/trunk/; revision=66975
2015-03-30 10:04:26 +00:00
Amine Khaldi
4847616915 [SETUPAPI] Install .Services section optionally. Brought to you by Victor Martinez. CORE-9406
svn path=/trunk/; revision=66974
2015-03-30 09:34:29 +00:00
Amine Khaldi
2c29a8c1ef [SORT] Addendum to r66972. Since we're still playing the "Guess what the real changes are" game despite talking about it over and over, I just decided to join you guys. Fix the an IRP leak. Also tabs => spaces. More will come as long as the game does not stop. No svn history was unnecessarily changed (further) while making this commit.
svn path=/trunk/; revision=66973
2015-03-30 09:25:59 +00:00
Hermès Bélusca-Maïto
5d7944ca6f [SORT]
- Don't leak memory, see CORE-8205 for more details.
- Replace tabs with spaces.

svn path=/trunk/; revision=66972
2015-03-29 22:26:24 +00:00
Sylvain Petreolle
ee70d4e15d [PCNET]
MiTestCard: Fix traces.
Display BCR4 value (physical link state.)

svn path=/trunk/; revision=66971
2015-03-29 17:46:44 +00:00
Amine Khaldi
a3e6e54cb3 * Back down r66964 for now.
svn path=/trunk/; revision=66970
2015-03-29 17:22:16 +00:00
Timo Kreuzer
8c99c1868c [I8042PRT]
Silence debug prints

svn path=/trunk/; revision=66969
2015-03-29 17:06:40 +00:00
James Tabor
774095423b [NtUser]
- Fix the transfer of a global cursor while using ATI. See CORE-9436.

svn path=/trunk/; revision=66968
2015-03-29 16:25:50 +00:00
Johannes Anderwald
da580bb909 - silence traces
svn path=/trunk/; revision=66967
2015-03-29 16:08:14 +00:00
Johannes Anderwald
ae16592727 - silence traces
svn path=/trunk/; revision=66966
2015-03-29 16:02:40 +00:00
Hermès Bélusca-Maïto
1f80c6eecc [ACPI:BUS]: Fix dereferencing NULL pointers in acpi_bus_notify. By Victor Martinez with small adaptation by me.
CORE-8271

svn path=/trunk/; revision=66965
2015-03-29 15:49:03 +00:00
Amine Khaldi
f4c48b73b2 [SETUPAPI] Adopt SetupGetInfFileListW() from Wine Staging 1.7.37. Based on the work of Victor Martinez with my updates. CORE-9431 CORE-9246
svn path=/trunk/; revision=66964
2015-03-29 15:07:27 +00:00
Hermès Bélusca-Maïto
7301ab58e2 [NTVDM]: Introduce the possibility to compile multiple x86-16bit ASM files by using the trick of concatenating them in correct order so that the resulting file is a compilable ASM file. (We cannot do linking or 16-bit objects, so we need to take a middle approach).
CORE-9442 #resolve

svn path=/trunk/; revision=66963
2015-03-29 14:51:14 +00:00
Giannis Adamopoulos
f9d277801c [TEST.H]
- Add an additional new line before showing the test results. 
Some log commands print their lines in multiple print commands. As a result the results line can end up in the middle of a previous log that was not a complete line. This confuses testman and causes it to report this test as a crashed test as it can't find the line with the results. This is not the best fix possible but makes sure that the results in testman fluctuate a bit less.

svn path=/trunk/; revision=66962
2015-03-29 14:51:02 +00:00
Amine Khaldi
ebaa2e4dcd [SAMSRV] Add Italian translation. By Carlo Bramini. CORE-9438
svn path=/trunk/; revision=66961
2015-03-29 14:47:40 +00:00
Thomas Faber
b11c872f36 [NTDLL_APITEST]
- Also test decreasing the size in RtlReAllocateHeap. Patch by Mark Jansen.
CORE-9441

svn path=/trunk/; revision=66960
2015-03-29 14:47:21 +00:00
Thomas Faber
d78755e2b5 [RTL]
- HEAP_ENTRY::Size is in bytes for HEAP_ENTRY_VIRTUAL_ALLOC allocations. Save it accordingly
CORE-9441

svn path=/trunk/; revision=66959
2015-03-29 14:10:20 +00:00
Thomas Faber
c7d57b853b [NTDLL_APITEST]
- Add a test for RtlReAllocateHeap -- shows that it doesn't handle allocations larger than 0x7f000 correctly in ROS
CORE-9441

svn path=/trunk/; revision=66958
2015-03-29 14:07:00 +00:00
Amine Khaldi
106df10e94 [CSCRIPT] Add missing user32 import lib. Fixes build.
svn path=/trunk/; revision=66957
2015-03-29 13:58:24 +00:00
Amine Khaldi
0727fc1781 [WSCRIPT_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66956
2015-03-29 13:54:08 +00:00
Amine Khaldi
0b7f1f2a68 [WSCRIPT] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66955
2015-03-29 13:53:55 +00:00
Amine Khaldi
d6209e66c4 [WSHOM_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66954
2015-03-29 13:36:03 +00:00
Amine Khaldi
dc1f1c687c [WSHOM.OCX] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66953
2015-03-29 13:35:37 +00:00
Timo Kreuzer
04cbcf8063 [CMAKE/BOOTDATA]
Implement support for decentralized registry inf files.
This is done with the new add_registry_inf() cmake function, which takes one or more inf files, which are then converted to UTF-16 and merged into a single registry.inf, which is then used to create the livecd hives and imported by usetup. Move the registry entries for some drivers out of hivesys.inf into separate files next to the driver.

svn path=/trunk/; revision=66952
2015-03-29 11:38:05 +00:00
Timo Kreuzer
774369adf5 [USETUP]
Upgrade a few DPRINT to DPRINT1 for failure cases.

svn path=/trunk/; revision=66951
2015-03-29 11:29:02 +00:00
Thomas Faber
b1ef2ee186 [NTOS:MM]
- Do not track failed pool allocations as successful
CORE-9440 #resolve

svn path=/trunk/; revision=66950
2015-03-29 10:02:47 +00:00
Thomas Faber
7beba3a540 [WSCRIPT]
- Mark as GUI app
CORE-9439

svn path=/trunk/; revision=66949
2015-03-29 07:48:38 +00:00
Thomas Faber
9a56808986 [NTOSKRNL]
- More pool tagging!

svn path=/trunk/; revision=66948
2015-03-29 06:04:19 +00:00
Hermès Bélusca-Maïto
1a06e54fa5 [BIN2C][CAT]: Use stderr for printing errors (to not mix them up with normal output that should go to stdout. This is especially needed for cat).
svn path=/trunk/; revision=66947
2015-03-29 02:00:15 +00:00
Hermès Bélusca-Maïto
02997eb8f4 [CMAKE]
Improve the concatenate_files macro introduced by Timo in r52179 + r52182 and hackfixed in r53914 . Notice that now it can take an arbitrary number of files to be concatenated. Hence you need to specify first the output file, and all the rest is the different files.

[FREELDR]
Use the improved concatenate_files macro.

svn path=/trunk/; revision=66946
2015-03-29 01:53:10 +00:00
Hermès Bélusca-Maïto
d8714d6ad9 [CAT]
- stricmp doesn't exist in *nix, use strcasecmp instead.
- setmode (for setting IO streams mode -- text, binary --) is useless in *nix world, so just define it as a dummy function.
Should fix build.

svn path=/trunk/; revision=66945
2015-03-29 00:52:49 +00:00
Giannis Adamopoulos
b258f29772 [SHELL32]
- Load the shell extensions of the * class only for files.
CORE-6806

svn path=/trunk/; revision=66944
2015-03-29 00:37:39 +00:00
Hermès Bélusca-Maïto
1f2509e3e4 [CAT]: io.h appears to be useless, and seems to not be part of all C setups.
svn path=/trunk/; revision=66943
2015-03-29 00:16:53 +00:00
Hermès Bélusca-Maïto
c1324010e5 [ROSAPPS][HOST-TOOLS]:
- Take the best of the two CAT rosapps and turn them into a host-tool. Will be used later on in the build process.
- Few comment cleaning in bin2c tool.

svn path=/trunk/; revision=66942
2015-03-29 00:13:25 +00:00
David Quintana
3e27daa186 Forgot this file.
svn path=/trunk/; revision=66941
2015-03-28 23:37:36 +00:00
David Quintana
82ddf91104 [SHELL32]
* Implement CLSID_QueryAssociations class. Patch by Ivan Rodionov, with some unrotting by me.
CORE-8188 #resolve

svn path=/trunk/; revision=66940
2015-03-28 23:27:10 +00:00
Sylvain Petreolle
7c5ad5fdfe [REACTOS.DFF]
Show the cornich^W user what to NOT do before losing hair, hours, and hope into mankind.

svn path=/trunk/; revision=66939
2015-03-28 21:36:37 +00:00
Giannis Adamopoulos
747bbec4bb [PSDK]
- Make IsEqualGUID typesafe for c++

[SHELL32]
- Properly call IsEqualIID in _ILIsControlPanel. Should fix CORE-8891.

svn path=/trunk/; revision=66938
2015-03-28 21:11:42 +00:00
Thomas Faber
3b87756ab2 [TCPIP]
- Free transport context in TiCloseFileObject
CORE-9437 #resolve

svn path=/trunk/; revision=66937
2015-03-28 20:49:13 +00:00
Giannis Adamopoulos
261ee47cac [SHELL32]
- CDefaultContextMenu: Reduce relying on the type of the pidl. Query the attributes of the item from the folder instead. 
CORE-8973

svn path=/trunk/; revision=66936
2015-03-28 19:45:27 +00:00
Giannis Adamopoulos
3170beeda2 [SHELL32]
- Fix CControlPanelFolder to report its attributes.

svn path=/trunk/; revision=66935
2015-03-28 19:42:08 +00:00
Amine Khaldi
42075f1674 [MCISEQ] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66934
2015-03-28 19:12:22 +00:00
James Tabor
c06b35f956 [NtUser]
- Patch by Fedor Zaytsev : Fixes edit cursor, remained painted after it was removed, see CORE-2131.


svn path=/trunk/; revision=66933
2015-03-28 17:37:44 +00:00
Thomas Faber
abf3e9f6bf [FASTFAT]
- Assert that clusters supposedly belonging to a file are not in fact marked as free
CORE-9433

svn path=/trunk/; revision=66932
2015-03-28 17:14:14 +00:00
Thomas Faber
7f5f21a52f [FASTFAT]
- Do not delete files that have open handles
- Delete on cleanup instead of close, and do not depend on FileObject->DeletePending (since the last file object is not necessarily the one that caused the delete)
CORE-9433

svn path=/trunk/; revision=66931
2015-03-28 16:58:53 +00:00
Amine Khaldi
addfc9af92 [MSHTML_WINETEST] Skip LCIDToLocaleName related tests.
svn path=/trunk/; revision=66930
2015-03-28 16:52:19 +00:00
Amine Khaldi
ea0f4ccd4c [MSHTML_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66929
2015-03-28 15:53:45 +00:00
Amine Khaldi
1974d5fbfa [MSHTML] Sync with Wine Staging 1.7.37. CORE-9246
[BOOTDATA][APPWIZ][GECKO] Update to version 2.34.

svn path=/trunk/; revision=66928
2015-03-28 15:51:47 +00:00
Amine Khaldi
ed9dd50f5b [PSDK] Update tom.idl. CORE-9246
svn path=/trunk/; revision=66927
2015-03-28 15:30:42 +00:00
Amine Khaldi
ad04fe6e2b [WIN32K] Enable PCH again.
svn path=/trunk/; revision=66926
2015-03-28 14:58:42 +00:00
Aleksandar Andrejevic
d43f9bc544 [FAST486]
Generate a #DE if the division result can't fit in the destination register.


svn path=/trunk/; revision=66925
2015-03-28 02:52:04 +00:00
Sylvain Petreolle
b48ee58890 [RAPPS]
Update NirLauncher location to 1.19.26.
Add French translation.

svn path=/trunk/; revision=66924
2015-03-27 22:04:56 +00:00
Thomas Faber
3f7fa82ae7 [CDFS]
- Simplify string handling, add a few asserts

svn path=/trunk/; revision=66923
2015-03-27 18:09:51 +00:00
Thomas Faber
ddad8b0bd4 [CDFS][MSFS][PCI]
- Use sensible pool tags

svn path=/trunk/; revision=66922
2015-03-27 18:03:39 +00:00
Johannes Anderwald
0d6eafe06a [INF]
- properly install kmixer 
- disable audio category filter  until audio stack is ready

svn path=/trunk/; revision=66921
2015-03-27 17:30:05 +00:00
Thomas Faber
e7f2f6a078 [ACPI]
- Use more sensible pool tags
[NULL]
- Use pool tagging

svn path=/trunk/; revision=66920
2015-03-27 17:20:03 +00:00
Thomas Faber
62e93f4515 [VMWINST]
- Fix build

svn path=/trunk/; revision=66919
2015-03-27 15:44:32 +00:00
Christoph von Wittich
cb7aacdcc6 [INF]
add a dummy inf file for wmiacpi driver

svn path=/trunk/; revision=66918
2015-03-27 15:43:19 +00:00
Thomas Faber
73b5b1423d [PSDK]
- Add InstallHinfSection definitions

svn path=/trunk/; revision=66917
2015-03-27 15:30:22 +00:00
Thomas Faber
0598c4e5cb [PSDK]
- Add NotifyServiceStatusChange definitions

svn path=/trunk/; revision=66916
2015-03-27 14:29:43 +00:00
Thomas Faber
1a3b10604c [KERNEL32]
- Addendum to r66912 and Romanian translation update by Ștefan Fulea
CORE-9429 #resolve

svn path=/trunk/; revision=66915
2015-03-27 13:29:59 +00:00
Thomas Faber
c73e3e5aa4 [SYSSETUP]
- Move the hotkey loop to its own thread to make it work when modal dialogs are open, and also during device installation
CORE-9428

svn path=/trunk/; revision=66914
2015-03-27 11:44:59 +00:00
Thomas Faber
6a983b9dd4 [SYSSETUP]
- Open a command prompt if Shift+F10 is pressed during GUI setup, as Windows does.
CORE-9428 #resolve

svn path=/trunk/; revision=66913
2015-03-27 11:21:40 +00:00
Thomas Faber
597f0e753c [KERNEL32]
- Add missing location friendly names
- Correctly handle location ids larger than USHORT_MAX in NLS_GetGeoFriendlyName

svn path=/trunk/; revision=66912
2015-03-27 11:12:22 +00:00
Thomas Faber
f75a13a609 [CONSRV]
- Make error message actually useful

svn path=/trunk/; revision=66911
2015-03-27 10:10:42 +00:00
Aleksandar Andrejevic
adb7a5b629 [NTVDM]
Fix the implementation of the "Get Device Information" IOCTL.
Remove the broken implementation of the "Set Device Information" IOCTL.


svn path=/trunk/; revision=66910
2015-03-27 01:26:45 +00:00
Hermès Bélusca-Maïto
daa8b930bc [NTVDM]: In case some app sends repeatedly beeps of Frequency == 0 (to stop beeping) but with Duration == INFINITY, do the duration fixup before actually checking whether our previous beep was the same, so that we don't saturate the beep driver with beep stop IRQ requests (Windows seems to handle that properly but ReactOS seems to do not, and the real problem seems to lie in NTOS kernel and not in the beep driver, because the same problem happens even when using windows' beep.sys in ROS). Patch by Aleksander, tested by both of us.
svn path=/trunk/; revision=66909
2015-03-27 00:44:44 +00:00
Giannis Adamopoulos
c31066bab6 [HIVESYS.INF]
- Enable ConnectMultiplePorts for mouclass. This means that "the events generated by all pointing devices on the system are fed to the Windows subsystem in a single input stream".

svn path=/trunk/; revision=66908
2015-03-26 23:57:16 +00:00
Aleksandar Andrejevic
9a34e4374a [NTVDM]
On DOS, CONIN$ and CONOUT$ are actually the same thing - a device called CON.


svn path=/trunk/; revision=66907
2015-03-26 23:31:01 +00:00
Aleksandar Andrejevic
034607a078 [NTVDM]
In the DOS CON driver, for special keys, always send the scancode right after
the 0x00 byte.


svn path=/trunk/; revision=66906
2015-03-26 23:19:22 +00:00
Thomas Faber
d4956b9c39 [NTOS:CM]
- Do not allow the creation of keys in the master hive. Fixes boot with the VMware sound driver from rapps installed (and it works, too).
CORE-5381 #resolve

svn path=/trunk/; revision=66905
2015-03-26 17:02:31 +00:00
Giannis Adamopoulos
1b8371f95e [MSGINA] - Stub ShellDimScreen.
svn path=/trunk/; revision=66904
2015-03-26 15:36:27 +00:00
Hermès Bélusca-Maïto
05aaaf8a04 [NTVDM]
- Fix some english.
- Validity checks for DosGetSftEntry returned pointer added.
- Use unsigned indices for for-loops indices that are always positive.

svn path=/trunk/; revision=66903
2015-03-26 14:52:16 +00:00
Giannis Adamopoulos
4cc760792f [SHLWAPI]
- Improve stubs for SHPropertyBag_ReadDWORD, PathFileExistsDefExtAndAttributesW, IUnknown_QueryServicePropertyBag and SHWindowsPolicyGetValue

svn path=/trunk/; revision=66902
2015-03-26 13:01:58 +00:00
Thomas Faber
508a03733a [SHELL32]
- Correctly handle recursive change notifications in CDefView
- Remove desktop folder hack from SHChangeNotify and move it to CDefView until we have ITranslateShellChangeNotify
Fixes phantom files/folders on desktop. Based on a patch by Huw Campbell.
CORE-8844

svn path=/trunk/; revision=66901
2015-03-26 12:05:54 +00:00
Thomas Faber
8114dd9fe0 [WINMM]
- Apply Wine commit b1d9d43a (winmm: Don't mask out SND_ALIAS_ID or SND_FILENAME in sndPlaySound.) by Andrew Eikum. Fixes crash in winmm_winetest:wave
- Import WINMM_CheckCallback from Wine and use it, various cleanups (commits cb77f9a2, 06d6dd3e, e6a501bb, a311dff7 by Jörg Höhle). In particular, accepting a NULL callback in DriverCallback fixes the crash in winmm_winetest:wave.
CORE-9401 #resolve

svn path=/trunk/; revision=66900
2015-03-26 09:53:23 +00:00
Aleksandar Andrejevic
138a4d56f4 [NTVDM]
Fix a bug in CpuExceptionFilter.


svn path=/trunk/; revision=66899
2015-03-26 01:57:35 +00:00
Hermès Bélusca-Maïto
ba5f34661b [NTVDM]: Improve few DPRINTs and fix the memory range check in the access violation filter.
svn path=/trunk/; revision=66898
2015-03-26 01:52:22 +00:00
Hermès Bélusca-Maïto
2188c7a30c [NTVDM]
Write a proper exception filter for the emulated CPU. Allows to:
- handle memory access exceptions inside the virtual memory space (happens when a VDD installs a memory hook on a memory region and a DOS app tries to read/write inside this region);
- detect NTVDM bugs (if during emulation one tries to read/write in invalid memory areas). This should unveils at least 1 bug in the DOS device emulation, when running 386TO486.COM inside NTVDM.

svn path=/trunk/; revision=66897
2015-03-26 01:46:27 +00:00
Hermès Bélusca-Maïto
8c77dacbfe Fix 3 misspellings. No code changes.
svn path=/trunk/; revision=66896
2015-03-26 01:43:47 +00:00
Aleksandar Andrejevic
56063f930f [NTVDM]
Implement DOS character device support and driver loading support.
Separate the DOS memory manager code from the main DOS kernel source file.

CORE-9370 #resolve #comment Committed in revision r66895.


svn path=/trunk/; revision=66895
2015-03-26 00:21:25 +00:00
Giannis Adamopoulos
4817056662 [SHELL32]
- Stub SHGetComputerDisplayNameW.

svn path=/trunk/; revision=66894
2015-03-26 00:00:24 +00:00
Timo Kreuzer
976a3274ad [WIN32K]
Rewrite brush code in C++

svn path=/trunk/; revision=66893
2015-03-25 22:38:20 +00:00
Timo Kreuzer
ec0f3d9ba9 [WIN32K]
Handle DIB_PAL_INDICES in DIB_BitmapInfoSize

svn path=/trunk/; revision=66892
2015-03-25 22:37:16 +00:00
Timo Kreuzer
0f8766d749 [WIN32K]
- Make brush structure definition C++ compatible
- Add delete callback for GDI objects and use if for brushes.
- Make IntGdiSetSolidBrushColor NTAPI instead of FASTCALL

svn path=/trunk/; revision=66891
2015-03-25 22:32:48 +00:00
Timo Kreuzer
20d7540340 [WIN32K]
- Add InterlockedIn/DecrementUL
- Define NULL to nullptr for C++ code
- Reorder includes a bit. First GDI then USER. Don't include most USER headers for C++ for now.

svn path=/trunk/; revision=66890
2015-03-25 22:32:35 +00:00
Timo Kreuzer
8123f0d8b5 [WIN32K]
Make internal GDI headers C++ compatible, get rid of USER dependencies

svn path=/trunk/; revision=66889
2015-03-25 22:32:22 +00:00
Timo Kreuzer
12e465be82 [WIN32SS/INCLUDE]
- Add ntwin32.h, move declaration of PTHREADINFO, PPROCESSINFO and W32CLIENTINFO there
- Avoid language extensions that are not C++ compatible
- Avoid dependenence to PTHREADINFO/PPROCESSINFO in ntuser.h and use incomplete types instead
- Move duplicate definition of PATRECT from ntusrtyp.h to user32.h private header

svn path=/trunk/; revision=66888
2015-03-25 22:32:06 +00:00
Timo Kreuzer
40e758b16f [WIN32K/INCLUDE]
Add ntwin32.h

svn path=/trunk/; revision=66887
2015-03-25 22:30:28 +00:00
Timo Kreuzer
d6e49e3561 [INCLUDE]
- intsafe.h: Fix some constants to be C++ compatible
- sal.h: Implement _Analysis_mode_, __prefast_operator_new_null and __prefast_operator_new_throws annotations
- Make probe.h (mostly) C++ compatible

svn path=/trunk/; revision=66886
2015-03-25 22:27:44 +00:00
Timo Kreuzer
5528fd245a [WIN32K]
Implement GreCreateDIBitmapFromPackedDIB

svn path=/trunk/; revision=66885
2015-03-25 22:27:16 +00:00
Timo Kreuzer
1ddbcff3ca [WIN32K]
Add definition for DIB_PAL_INDICES and fix typo in the related brush flag (BR_IS_DIBPALINDICES). See http://support.microsoft.com/kb/kbview/108497

svn path=/trunk/; revision=66884
2015-03-25 22:27:05 +00:00
Timo Kreuzer
e431dd155c [WIN32K]
- Handle allocation failures in FixupDIBBrushPalette
- In IntCreateDIBitmap make sure to the absolute height to GreCreateBitmap

svn path=/trunk/; revision=66883
2015-03-25 22:26:52 +00:00
Amine Khaldi
dcc59fc583 [MCIQTZ32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66882
2015-03-25 16:00:49 +00:00
Amine Khaldi
c9a0232604 [MAPI32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66881
2015-03-25 16:00:04 +00:00
Amine Khaldi
dee70c51c0 [MCIAVI32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66880
2015-03-25 15:59:32 +00:00
Amine Khaldi
39dde93a8c [LOCALSPL] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66879
2015-03-25 15:58:54 +00:00
Amine Khaldi
27db0e5449 [JSCRIPT_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66878
2015-03-25 15:58:33 +00:00
Amine Khaldi
ff44482672 [JSCRIPT] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66877
2015-03-25 15:58:08 +00:00
Amine Khaldi
65d7d6a954 [PSDK] Update mlang.idl. CORE-9246
svn path=/trunk/; revision=66876
2015-03-25 11:59:44 +00:00
Amine Khaldi
0db8db7878 [ITSS_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66875
2015-03-25 11:58:28 +00:00
Amine Khaldi
86cc1d9ca6 [IMAGEHLP_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66874
2015-03-25 11:57:51 +00:00
Amine Khaldi
df6c97a806 [IMAGEHLP] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66873
2015-03-25 11:57:17 +00:00
Amine Khaldi
a807e7dd38 [IEFRAME] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66872
2015-03-25 11:56:14 +00:00
Amine Khaldi
72f999efd7 [ICCVID] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66871
2015-03-25 11:54:53 +00:00
Amine Khaldi
9d1ae195ab [HNETCFG] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66870
2015-03-25 11:54:05 +00:00
Amine Khaldi
b3f9d34e0f [GDIPLUS_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66869
2015-03-25 11:51:58 +00:00
Hermès Bélusca-Maïto
14f8c43fb1 Fix build.
svn path=/trunk/; revision=66868
2015-03-25 00:09:09 +00:00
Hermès Bélusca-Maïto
dcf029ad84 [CONSRV]
- Introduce a "console configuration" library that is used by both CONSRV and the console properties applet so that they can share common code concerning getting/setting console registry properties.
- Make use of the Windows-compatible (and undocumented) CONSOLE_STATE_INFO structure for that purpose (as well as the WM_SETCONSOLEINFO): see commits r63819 and r58415 and links within for more details. Note: this structure needs to be 4-byte packed (contrary to what it is said in almost all the links from above. The difference is only visible at the level of the last member that is the ConsoleTitle string array. This was tested on windows).
- Simplify some parts of console settings initialization.
- Some work is still needed concerning how to correctly retrieve the default console settings (without touching the ConsoleTitle member of CONSOLE_STATE_INFO, contrary to what we do currently).

[CONSOLE.DLL]
- Make the console properties applet windows-compatible, in the sense that you can now run it on win2k3 and use it instead of the windows one. This implies having the same strange hacks as windows' one, namely, that the window handle parameter of the CPlApplet entry point is either used as the caller (parent) window handle, OR, as a shared section handle to shared data with CONSRV.

[KERNEL32]
- Rework the console applet initialization accordingly. Also we reload each time the console.dll when opening the console applet, and then unload it: this "allows" to reset all the global variables that console.dll may (and does) have.

svn path=/trunk/; revision=66867
2015-03-24 23:58:44 +00:00
Hermès Bélusca-Maïto
79243bfdce [NTOS]: Don't hardcode the size of the ShutDownWaitEntry and use the correct pool tags when freeing the entry.
svn path=/trunk/; revision=66866
2015-03-24 00:19:43 +00:00
Eric Kohl
4f573a59dc [NETAPI32]
Implement NetWkstaTransportAdd, NetWkstaTransportDel and NetWkstaTransportEnum.

svn path=/trunk/; revision=66865
2015-03-23 21:47:50 +00:00
Kamil Hornicek
61e77276a2 [GDI32]
- export GdiGetBitmapBitsSize

svn path=/trunk/; revision=66864
2015-03-23 13:25:16 +00:00
Giannis Adamopoulos
6f9088f10e [WINLOGON]
- Create the window station handle and the desktops with MAXIMUM_ALLOWED access rights.
- Call AddAceToWindowStation before calling SetWindowStationUser.

svn path=/trunk/; revision=66863
2015-03-23 07:46:17 +00:00
Eric Kohl
218064f15d [SCHEDSVC]
Start work on the seceduler service.

[NETAPI32]
Implement the scheduler service client functions.

svn path=/trunk/; revision=66862
2015-03-22 21:57:55 +00:00
Giannis Adamopoulos
e4f7b62262 - Fix build
svn path=/trunk/; revision=66861
2015-03-22 21:37:02 +00:00
Giannis Adamopoulos
b69a61ee7c [SHELL32]
- Call SetTaskmanWindow right before RegisterShellHookWindow like the old explorer did.

svn path=/trunk/; revision=66860
2015-03-22 21:34:08 +00:00
Sylvain Petreolle
efbc9e3dc9 [IPHLPAPI]
Add checks for the family.

svn path=/trunk/; revision=66859
2015-03-22 20:35:21 +00:00
Amine Khaldi
9a95a99726 [FUSION_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66858
2015-03-22 18:34:09 +00:00
Amine Khaldi
5478176ded [GDIPLUS] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66857
2015-03-22 18:33:30 +00:00
Amine Khaldi
89656789aa [MPLAY32] Give a valid pointer to a MCI_SEEK_PARMS structure when using MCI_SEEK_TO_START flag. By Ricardo Hanke. CORE-9408
svn path=/trunk/; revision=66856
2015-03-22 18:07:59 +00:00
Colin Finck
40da1525c9 [ROSAUTOTEST]
Make outputting a string as easy as it should be. Now that our StringOut internally uses OutputDebugStringA instead of DbgPrint, we don't need to output in 512 byte chunks anymore.
Additionally, do an explicit flush when using std::cout to not lose debug output.

ROSTESTS-158 #resolve #comment Committed in r66855

svn path=/trunk/; revision=66855
2015-03-22 12:35:08 +00:00
Kamil Hornicek
d2bc21c312 [WIN32K]
- set the devmode size for ENUM_REGISTRY_SETTINGS case in NtUserEnumDisplaySettings so it gets copied back to caller later

svn path=/trunk/; revision=66854
2015-03-22 12:08:09 +00:00
Johannes Anderwald
a60fb0c766 [SYSAUDIO][KMIXER]
- convert to pnp software device

svn path=/trunk/; revision=66853
2015-03-22 11:27:52 +00:00
Johannes Anderwald
750c4f7d1d [KS]
- fix a few bugs

svn path=/trunk/; revision=66852
2015-03-22 10:27:44 +00:00
Christoph von Wittich
4a5a775bf6 [WIN32K]
Gracefully handle failure in DrvEnableSurface.
patch by Timo Kreuzer

svn path=/trunk/; revision=66851
2015-03-21 16:29:40 +00:00
Sylvain Petreolle
7bab2c0560 [LDR]
Addendum to r66735:
Copy it, but copy it good.

svn path=/trunk/; revision=66850
2015-03-21 15:26:50 +00:00
Amine Khaldi
d407d661cb [NTDLL_WINETEST] Bring-in Mark Jansen's ipv4/6 test additions.
svn path=/trunk/; revision=66849
2015-03-21 13:07:55 +00:00
Amine Khaldi
9e40fb7db8 [FUSION] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66848
2015-03-21 12:21:40 +00:00
Amine Khaldi
5930d62892 [KS] Tabs => Spaces. NFC.
svn path=/trunk/; revision=66847
2015-03-21 09:36:40 +00:00
Johannes Anderwald
79c5918656 [KS]
- try fix sound #1

svn path=/trunk/; revision=66846
2015-03-21 09:33:34 +00:00
Thomas Faber
74450c6b81 [NTOS:WMI]
- Fill out WmipGenericMapping according to kmtest:ObTypes

svn path=/trunk/; revision=66845
2015-03-21 08:39:54 +00:00
Thomas Faber
9e600f0e65 [NTOS:CM]
- Always fill out KEY_NAME_INFORMATION::NameLength in CmpQueryNameInformation if enough space is available. Fixes ntdll:reg test failures.
CORE-9403 #resolve

svn path=/trunk/; revision=66844
2015-03-21 08:25:59 +00:00
Amine Khaldi
05cb3136be [DWMAPI] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66842
2015-03-20 18:30:09 +00:00
Amine Khaldi
2fa249cd06 [DBGHELP] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66841
2015-03-20 18:27:31 +00:00
Amine Khaldi
662477c556 [PSDK] Add some missing mmsystem.h structures.
svn path=/trunk/; revision=66840
2015-03-20 18:26:11 +00:00
Amine Khaldi
c5f5d970f2 [WINMM_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66839
2015-03-20 18:22:14 +00:00
Christoph von Wittich
0e83d43b36 [WLANAPI]
stub WlanRegisterNotification

svn path=/trunk/; revision=66838
2015-03-20 13:13:27 +00:00
Amine Khaldi
defc192481 [WINMM] Apply Wine commit 6501113 by Jörg Höhle: MCI_ALL_DEVICE_ID(MCIDEVICEID) is not a 16bit entity in MCI32. CORE-9246
svn path=/trunk/; revision=66837
2015-03-20 11:16:05 +00:00
Kamil Hornicek
9428e523d2 [RAPPS]
- check the HTTP status when downloading a package (trying to run XML files in NTVDM is NOT funny)
- cleanup

svn path=/trunk/; revision=66836
2015-03-20 11:12:00 +00:00
Amine Khaldi
9bf84c49e8 [IEFRAME][IEXPLORE] Consistently set IE version. Brought to you by Jared. CORE-9395
svn path=/trunk/; revision=66835
2015-03-20 11:01:39 +00:00
Amine Khaldi
c8a8ae2c87 [LOGON][MPLAY32][WRITE] Add missing winuser.h inclusions to some resource files. Spotted initially by Ricardo Hanke in mplay32. CORE-9387
svn path=/trunk/; revision=66834
2015-03-20 10:54:01 +00:00
Amine Khaldi
10ae1b40b3 [MPLAY32] Add entries for found mci devices in the "Device" menu. By Ricardo Hanke. CORE-9385
svn path=/trunk/; revision=66833
2015-03-20 10:44:36 +00:00
Amine Khaldi
dfeca474ec [SETUPAPI] Partially sync parser.c with Wine Staging 1.7.37. Started off by Victor's work in CORE-9397 and completed by me. CORE-9246
svn path=/trunk/; revision=66832
2015-03-20 10:37:55 +00:00
Amine Khaldi
5fadd826c9 [MPLAY32] Display the current media position. By Ricardo Hanke. CORE-9396
svn path=/trunk/; revision=66831
2015-03-20 10:13:11 +00:00
Christoph von Wittich
7f0aa3f626 [I8042PRT]
apply the hack for Hyper-V as well

svn path=/trunk/; revision=66830
2015-03-20 08:18:38 +00:00
Hermès Bélusca-Maïto
114302b955 [NTVDM]
- Fix bugs in MemExceptionHandler, VDDInstallMemoryHook and VDDDeInstallMemoryHook where we must translate physical addresses to real ones and vice-versa.
- Give a first implementation of VDDAllocMem and VDDFreeMem.

svn path=/trunk/; revision=66829
2015-03-20 00:32:31 +00:00
Hermès Bélusca-Maïto
d4b941d2c8 [MVDM]: Add a testbench VDD. Tested by hyoenmadan on NT4 MIPS NTVDM and by myself on 2k3 NTVDM.
svn path=/trunk/; revision=66828
2015-03-20 00:14:11 +00:00
Timo Kreuzer
a382aad708 [I8042PRT]
Try to fix Dell Latitude notebooks.

svn path=/trunk/; revision=66826
2015-03-19 23:02:46 +00:00
Timo Kreuzer
0d4dc5534b [I8042PRT]
Fix an off-by-one error in the SMTABLE string parsing code. Enable SYS_VERSION string for VirtualPc detection. Should hopefully fix VirtualPc mouse.

svn path=/trunk/; revision=66825
2015-03-19 22:37:43 +00:00
Timo Kreuzer
7a75fa9daf [I8042PRT]
Commit missing file

svn path=/trunk/; revision=66824
2015-03-19 21:52:55 +00:00
Timo Kreuzer
77ef72e473 [I8042PRT]
Implement parsing of SMBIOS tables to be able to apply hardware specific hacks. First hack fix attempt is on Microsoft VirtualMachine.

svn path=/trunk/; revision=66823
2015-03-19 21:50:53 +00:00
Timo Kreuzer
0ca08e8f25 [NTOSKRNL]
Hackplement IoWMIOpenBlock and IoWMIQueryAllData. Just enough to query the SMBIOS tables.

svn path=/trunk/; revision=66822
2015-03-19 21:31:20 +00:00
Hermès Bélusca-Maïto
02b663f961 [DDK]: Fix english
[NTVDM]: Make export library. Define the Vdm(Un)MapFlat functions if needed.

svn path=/trunk/; revision=66821
2015-03-19 21:03:58 +00:00
Hermès Bélusca-Maïto
0c66b36a42 [DDK]: Update VDD headers.
svn path=/trunk/; revision=66820
2015-03-19 21:00:25 +00:00
Kamil Hornicek
6f1802eece [RAPPS]
- disable redrawing while the application list is being updated (suggested by Christoph)

svn path=/trunk/; revision=66819
2015-03-19 20:19:27 +00:00
Hermès Bélusca-Maïto
9d069a334c [RAPPS]: Fix french translation.
svn path=/trunk/; revision=66818
2015-03-19 20:07:33 +00:00
Amine Khaldi
9f9195a622 [RAPPS] Fix build.
svn path=/trunk/; revision=66816
2015-03-19 19:43:57 +00:00
Kamil Hornicek
d0f22842dc fix build?
svn path=/trunk/; revision=66815
2015-03-19 19:41:25 +00:00
Kamil Hornicek
c7046c39bc [RAPPS]
- remove the custom parser, add caching, accelerators and lazy loading support and more (patch by Ismael Ferreras Morezuelas)
- modifications by me: 
- don't rely on an undocumented behavior when calling GetPrivateProfileStringW and check the return value instead (should get fixed in kernel32 too)
- modify the packaging scripts so the resulting CAB file contains UTF16 encoded files and remove the re-encoding hack from the patch (this is backwards compatible as the previous parser implementation was UTF16 aware)
CORE-9060

svn path=/trunk/; revision=66814
2015-03-19 19:26:14 +00:00
Timo Kreuzer
631b0ae9a1 [PSDK/DDK/XDK]
- Add mising wmiguid.h
- Fix parameter of IoWMIOpenBlock based on latest WDK
- Add a few missing constants to wmistr.h

svn path=/trunk/; revision=66813
2015-03-19 16:30:45 +00:00
Kamil Hornicek
c1212df781 [RAPPS]
- use compression for the app DB archive
- update spanish resources
- patch by Ismael Ferreras Morezuelas
CORE-9060

svn path=/trunk/; revision=66812
2015-03-19 14:17:49 +00:00
Kamil Hornicek
caaea6ad22 [SHELL32]
- add icons 165, 166 (by Robert Naumann) and 167 (adapted regedit icon by me) and add these to the Drive's properties Tools tab (patch by Robert Naumann)
- use the dialog resource id directly in SH_CreatePropertySheetPage (makes the icons actually draw)
CORE-9382

svn path=/trunk/; revision=66810
2015-03-19 13:48:10 +00:00
Amine Khaldi
ae7a35a7bd [CRYPTNET] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66808
2015-03-19 13:19:05 +00:00
Amine Khaldi
4c7d4aa79e [IEFRAME] Simplify loading inetcpl when clicking on Properties.
svn path=/trunk/; revision=66807
2015-03-19 13:15:49 +00:00
Amine Khaldi
31c9d59bc1 [CRYPT32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66806
2015-03-19 12:37:21 +00:00
Amine Khaldi
fd10f42deb [CRYPT32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66805
2015-03-19 12:37:00 +00:00
Amine Khaldi
846061565a [COMDLG32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66804
2015-03-19 12:24:17 +00:00
Amine Khaldi
f9e6b0df11 [COMDLG32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66803
2015-03-19 12:24:05 +00:00
Amine Khaldi
38305d6d20 * Addendum to r66800.
svn path=/trunk/; revision=66802
2015-03-19 12:08:58 +00:00
Amine Khaldi
2923acd08c [COMCTL32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66801
2015-03-19 12:07:45 +00:00
Amine Khaldi
aa6974689d [COMCTL32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66800
2015-03-19 12:07:32 +00:00
Timo Kreuzer
42280af1d7 [NTOSKRNL]
Fix shutdown.

svn path=/trunk/; revision=66799
2015-03-19 11:58:00 +00:00
Amine Khaldi
9ae780aad6 [PSDK] Add missing _LI_METRIC enum.
svn path=/trunk/; revision=66798
2015-03-19 11:51:24 +00:00
Timo Kreuzer
34c63e36da Merge the following revisions from kernel-fun branch:
r62291
[NTOSKRNL]
Start implementing the built-in WMI driver

r62294
[NTOSKRNL]
Add basic code for the WMI GUID object

r62301
[NTOSKRNK]
Halfplement WmipSecurityMethod, implement WmipGUIDFromString as a wrapper around RtlGUIDFromString due to different format requirements, fix usage of RtlPrefixUnicodeString.

r62302
[NTOSKRNL]
Implement WmipFastIoDeviceControl, start implementing WmipIoControl

r62321
[NTOSKRNL]
Stubplement IOCTL_WMI_UNREGISTER_GUIDS and IOCTL_WMI_RECEIVE_NOTIFICATIONS, just enough that the callers don't error out.

r62322
[NTOSKRNL]
Zero out the guid object, remove debug breakpoints in WmipDeleteMethod and WmipCloseMethod (for now there's nothing to do), factor out the code to capture the guid object attributes into WmipCaptureGuidObjectAttributes, ignore ioctl 0x228168 for now and stubplement IOCTL_WMI_OPEN_GUID_FOR_EVENTS

svn path=/trunk/; revision=66797
2015-03-19 10:47:36 +00:00
Amine Khaldi
7b4744416c [IEFRAME] Add some icons to dialogs. Load inetcpl when clicking on Properties. Brought to you by Jared with slight changes by me. CORE-9372
svn path=/trunk/; revision=66795
2015-03-19 10:28:41 +00:00
Hermès Bélusca-Maïto
e6ce05a90f [NTOS]: Heh Arch, use the Process parameter of the function, instead of PsGetCurrentProcess()!! (bug found by Thomas, because I quickly copied the code from ke/i386/v86vdm.c function Ke386CallBios lines 693 and below without adapting it to the present case ^^).
svn path=/trunk/; revision=66794
2015-03-19 00:06:54 +00:00
Hermès Bélusca-Maïto
52c5d11cda [NTOS]
- Let us know if we need to handle FPU emulation.
- The PspDeleteLdt and PspDeleteVdmObjects do not need to return anything, they just clean possible existing structures only.
- Use ExFreePoolWithTag when freeing Process->VdmObjects (help in detecting possible memory corruption).
- Since we sometimes toy with Process->VdmObjects, give a basic implementation of PspDeleteVdmObjects that just frees VdmObjects for now. Also, add an assert in PspDeleteLdt because the LdtInformation process member should remain NULL for now (since we don't use it).

svn path=/trunk/; revision=66793
2015-03-18 20:43:22 +00:00
Amine Khaldi
7d4aad0981 [CABINET_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66791
2015-03-18 16:02:57 +00:00
Amine Khaldi
cb274efdc6 [CABINET] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66790
2015-03-18 16:02:37 +00:00
Amine Khaldi
89ef898458 [BCRYPT] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66789
2015-03-18 15:53:18 +00:00
Amine Khaldi
957b8f0cbb [PSDK] Add missing BCRYPT_HANDLE.
svn path=/trunk/; revision=66788
2015-03-18 15:42:53 +00:00
Amine Khaldi
c15779228c [AVIFIL32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66787
2015-03-18 15:39:32 +00:00
Amine Khaldi
73cc7d24ae [ATL100_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66786
2015-03-18 15:32:41 +00:00
Amine Khaldi
ee8633b1ce [ATL][ATL80][ATL100] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66785
2015-03-18 15:30:17 +00:00
Pierre Schweitzer
88e3a5126f [NTOSKRNL]
Also partly revert r66781.
By Stefan G.

svn path=/trunk/; revision=66784
2015-03-18 15:26:46 +00:00
Pierre Schweitzer
0b60c945c8 [RTL]
Revert r66782.
"[15:38:45] <Steffmeistro> RtlNtStatusToDosError already sets it"

svn path=/trunk/; revision=66783
2015-03-18 14:41:34 +00:00
Pierre Schweitzer
da611ab479 [RTL]
Also set status in RtlSetLastWin32ErrorAndNtStatusFromNtStatus() (to match both name & documentation ;-)).

Patch by Stefan Ginsberg.

Should be sent upstream?

svn path=/trunk/; revision=66782
2015-03-18 14:34:19 +00:00
Pierre Schweitzer
7757ad1b00 [NTOSKRNL]
- Don't include user-mode header in kernel
- Don't set Win32 error in PsConvertToGuiThread(), it will be done in KiSystemServiceHandler()
- Fix setting Win32 error in KiSystemServiceHandler()

Patch by Stefan Ginsberg

svn path=/trunk/; revision=66781
2015-03-18 14:23:38 +00:00
Cameron Gutman
271f823d50 [NDIS]
- Don't allow a miniport to register more than once for shutdown callbacks
- Fixes hang on shutdown with the BCM57XX driver

svn path=/trunk/; revision=66779
2015-03-18 05:34:44 +00:00
Cameron Gutman
930db86cda [WLANCONF]
- Fix network scanning when many base stations are in range
- Fix input buffer size for OID_802_11_DISASSOCIATE and OID_802_11_BSSID_LIST_SCAN
[NDISUIO]
- Return STATUS_BUFFER_TOO_SMALL when the OID buffer length is too small

svn path=/trunk/; revision=66778
2015-03-18 04:49:56 +00:00
Cameron Gutman
b8e34eb9ae [TCPIP]
- Read the link state from the LAN_ADAPTER context to avoid having to block at DPC level in the send path

svn path=/trunk/; revision=66777
2015-03-18 02:29:28 +00:00
Cameron Gutman
3c9ba55a49 [REACTOS.CAB]
- Add optional file entries for the D531's WLAN driver

svn path=/trunk/; revision=66776
2015-03-18 01:51:25 +00:00
Daniel Reimer
2c3b119803 [RAPPS]
Add the most recent VC2005, 2008 and 2010 runtimes to rapps.
Add the new VC2012 and 2013 variants, too. LibreOffice will love you for that.

svn path=/trunk/; revision=66773
2015-03-18 00:17:29 +00:00
Hermès Bélusca-Maïto
0e323faa79 [BOOTDATA]: Gather together all the wallpaper values. Add WallpaperStyle that is by default '0' (centered).
svn path=/trunk/; revision=66770
2015-03-17 23:48:03 +00:00
Daniel Reimer
dc07d1296c [RAPPS]
Database update

svn path=/trunk/; revision=66766
2015-03-17 22:37:36 +00:00
Giannis Adamopoulos
6453a718f6 [EXPLORER]
- Hackfix Win+E hotkey. This works in Windows but our ShellExecuteEx isn't that good.

svn path=/trunk/; revision=66765
2015-03-17 21:29:17 +00:00
Timo Kreuzer
1d21ec19a9 [I8042PRT]
- Revert hack from r63126 to make some notebook controllers work, and which also broke the mouse wheel on other systems, and replace it with an #ifdef.
See CORE-6901, CORE-4048, CORE-8572 

svn path=/trunk/; revision=66762
2015-03-17 19:58:14 +00:00
Kamil Hornicek
a8b91177ab [MSGINA]
- add the TABSTOP style to the shutdown and change password dialog combo boxes

svn path=/trunk/; revision=66760
2015-03-17 18:55:44 +00:00
Christoph von Wittich
20a16ad64e [SHELL23]
fix IDD_NOOPEN dialog size (german locale only)

svn path=/trunk/; revision=66757
2015-03-17 17:14:44 +00:00
Kamil Hornicek
43c38210ce [SHELL32]
- properly calculate the size of the open with icon control
CORE-3904

svn path=/trunk/; revision=66756
2015-03-17 15:33:38 +00:00
Christoph von Wittich
0b7e5d37e3 [SHELL32]
use 16x16 icons instead of scaled down 32x32 icons in openwithmenu
CORE-9379

svn path=/trunk/; revision=66755
2015-03-17 15:14:13 +00:00
Christoph von Wittich
b9df25fdc3 [SHELL32]
don't use 16 color icons in OpenWithDialog
CORE-9379

svn path=/trunk/; revision=66754
2015-03-17 09:59:53 +00:00
Hermès Bélusca-Maïto
f04c5e01f1 [NTOS]: Addendum to r66735: move the code that prints our revision number in the SOS banner to a different place, in order to remain NT-compatible (that is, the CSDVersion string should only contain "Service Pack ###" or "Service Pack ###, v.###" according to the value of the CSDReleaseType registry value).
svn path=/trunk/; revision=66753
2015-03-17 03:04:20 +00:00
Hermès Bélusca-Maïto
bc181f2e5b [RSHELL]: Sync back with r66271.
svn path=/trunk/; revision=66752
2015-03-17 01:53:16 +00:00
Hermès Bélusca-Maïto
451fc5b69a [WIN32K]: Since I don't have time to properly fix the desktop version painting for the CLT 2015 release, I hackfix that by printing a hardcoded version string built up from our static build numbers.
svn path=/trunk/; revision=66750
2015-03-17 01:17:26 +00:00
Hermès Bélusca-Maïto
8e0f23552f [SHELL32]: We need to also use the fonts string for the szValueName of the reg value (otherwise the default reg value gets the fonts dir path). Addendum to r66748. CORE-9362
svn path=/trunk/; revision=66749
2015-03-16 23:48:31 +00:00
Hermès Bélusca-Maïto
640a5fac01 [SHELL32]: Fonts folder should point to C:\ReactOS\Fonts instead of C:\ReactOS :-) (and it is not internationalized).
svn path=/trunk/; revision=66748
2015-03-16 22:48:58 +00:00
Hermès Bélusca-Maïto
07d66bcb42 Fix some printf specifiers...
svn path=/trunk/; revision=66747
2015-03-16 22:10:59 +00:00
Hermès Bélusca-Maïto
1cd9362c3a [MPLAY32]:
- Improve the app's title by printing the filename and the current state of the player. By Ricardo Hanke.
- Fix pause state retrieval.

svn path=/trunk/; revision=66746
2015-03-16 21:16:07 +00:00
David Quintana
be7e5a84eb [NTOBJSHEX]
* Fix leak of the PIDL and PIDL Manager from the shell folder destructors.
* Switch PIDL Manager to a lazy enumeration so it won't lookup the folder contents unless/until they are needed.

svn path=/trunk/; revision=66745
2015-03-16 20:47:05 +00:00
Hermès Bélusca-Maïto
287b968fc1 [MPLAY32]: Some improvements to TogglePlaybackState(). By Ricardo Hanke.
CORE-9378 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=66744
2015-03-16 20:37:53 +00:00
Eric Kohl
83b0fdb098 [NETAPI32]
Implement NetUseAdd, NetUseDel, NetUseEnum and NetUseGetInfo.

svn path=/trunk/; revision=66743
2015-03-16 20:03:54 +00:00
Kamil Hornicek
d754c64cfd [KERNEL32]
- don't garble the output with invalid data in WideCharToUtf7
- fixes whopping 65536 failed tests and as a result Testman shouldn't choke on kernel32:codepage anymore

svn path=/trunk/; revision=66742
2015-03-16 19:00:57 +00:00
David Quintana
c05c34ec78 [SHELL32]
* Disable the hardcoded part of the File menu. It provided no useful function and couldn't be localized. It can be reintroduced later when it is done properly.

svn path=/trunk/; revision=66741
2015-03-16 18:58:37 +00:00
Aleksey Bragin
1de8ba622f [WIN32K]
- Delete macros referring to non-existing GDIOBJ_FreeObj and GDIOBJ_FreeObjByHandle.

svn path=/trunk/; revision=66738
2015-03-16 17:05:56 +00:00
Giannis Adamopoulos
cad16a9700 [RSHELL]
- Implement sorting shell menu items
- Patch by David Quintana

svn path=/trunk/; revision=66737
2015-03-16 16:30:24 +00:00
Kamil Hornicek
fde547dc16 [RAPPS]
- adjust the settings dialog layout (by Stefan Fulea) CORE-9377
- disable the proxy settings input boxes if default/no proxy is selected
- update the czech translation

svn path=/trunk/; revision=66736
2015-03-16 15:34:00 +00:00
Hermès Bélusca-Maïto
c32ac4bd68 [BOOTDATA]
- Remove hardcoded registry values: CurrentVersion, CSDVersion and CurrentBuildNumber from HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion. They are computed and stored there by the kernel.
- All the versioning is controlled by the two values: CSDReleaseType and CSDVersion in HKLM\SYSTEM\CurrentControlSet\Control\Windows. Currently we target SP1.

[NTDLL]
The lpVersionInformation->szCSDVersion string should not be built by RtlGetVersion, but instead retrieved from the Peb->CSDVersion string that in turn is initialized by the NTDLL PE Loader. Normally this is a App-Compatibility-dependent string, but for now we somewhat hardcode it (it is built using the actual Peb->OSCSDVersion number).

[RTL]: Rename some variables "à la NT" and use adequate types (but no code changes otherwise).

[NTOS]
- Fix PsGetVersion that should use the CmCSDVersionString variable. This API also returns TRUE if we are in checked build mode (the high byte of NtBuildNumber is flagged).
- The kernel should initialize the CurrentVersion, CSDVersion and CurrentBuildNumber registry values (and few other ones) from the two main CSDReleaseType and CSDVersion values.
- Fix the ReactOS-specific version+revision display in SOS mode.

CORE-6611 CORE-7889 CORE-8877

svn path=/trunk/; revision=66735
2015-03-16 03:14:16 +00:00
Cameron Gutman
7dbea55bd3 [IP]
- Don't select disconnected interfaces as default
- Only count prefix matches of non-zero length
- Fixes connectivity with multiple NICs when one or more is disconnected

svn path=/trunk/; revision=66734
2015-03-16 00:52:02 +00:00
Hermès Bélusca-Maïto
4d9ed8332c [NTOS]: "system32" --> "System32"
svn path=/trunk/; revision=66733
2015-03-16 00:25:32 +00:00
David Quintana
1185ffa6b7 [NTOBJSHEX]
* Implement support for column sorting in CompareIDs, for Name, Type, and Creation Date columns. The link target, and registry key contents are not sortable yet.

svn path=/trunk/; revision=66732
2015-03-15 18:17:27 +00:00
David Quintana
975b75f825 [NTOBJSHEX]
* Fix CompareID sorting to prefer "folders" first, and sort by name otherwise.

svn path=/trunk/; revision=66729
2015-03-15 17:33:55 +00:00
Giannis Adamopoulos
ecc5539849 [HEADERS]
- Remove winlogon.h and move its contents in undocuser.h

svn path=/trunk/; revision=66728
2015-03-15 16:50:55 +00:00
Hermès Bélusca-Maïto
5286be0747 Adjust CMakeLists entry in consequence of r66725.
svn path=/trunk/; revision=66726
2015-03-15 16:07:33 +00:00
Hermès Bélusca-Maïto
8a3d7e3c7f Rename 'wallpaper' repo to 'wallpapers' (since it doesn't contain only 1 wallpaper :p )
svn path=/trunk/; revision=66725
2015-03-15 16:06:50 +00:00
Hermès Bélusca-Maïto
471f5b643b [REACTOS][WALLPAPERS]
- Add a whole bunch of new wallpapers (easier to grab them from the repo instead of going through Forum + Jira to search for them). Now that we support JPG/PNG/... wallpapers (in addition to bitmap ones) since r66394, we can have many jpg wallpapers for the price (read: same size) of 1 bitmap one.
- Move a file to a better appropriate place.

svn path=/trunk/; revision=66724
2015-03-15 16:04:48 +00:00
Giannis Adamopoulos
c179b87a32 [UXTHEME]
- Call DrawCaption in user32 when we get WM_NCUAHDRAWCAPTION and there is no active theme.
- Should finally fix CORE-9016.

svn path=/trunk/; revision=66723
2015-03-15 13:39:15 +00:00
Giannis Adamopoulos
387fa04f75 [USER32]
- Implement RealUserDrawCaption and pass it to uxtheme in order to paint the classic caption when needed. 
CORE-9016

svn path=/trunk/; revision=66722
2015-03-15 13:37:13 +00:00
Timo Kreuzer
67fb6732b2 [PSDK]
Add winternl.h, which is compatible with the native one. Do not use this header. USE NDK! (Thanks Hermes!) It's only there for SDK compatibility and to make sure nobody will think it's missing and add it to make use of it.
And to make sure, nobody will use this header, it will #error if you include it from a reactos module.

svn path=/trunk/; revision=66721
2015-03-15 00:10:26 +00:00
Timo Kreuzer
2f63c537d6 [DDK/PSDK/NDK/XDK]
- Improve annotations for some functions
- Sync winnt.h with XDK

svn path=/trunk/; revision=66720
2015-03-15 00:05:50 +00:00
David Quintana
477fb78355 [NTOBJSHEX]
* Implement loading the hardcoded list of root keys.
* Add support for root keys to the registry PIDL structure.
* Add support for root-key PIDLs in the registry folder.
* Implement loading root keys when no path is specified.
* Expose the registry folder as a namespace extension to My Computer.
* Make the namespace extension folder names load from resources.
* Add icons for registry keys and values.
CORE-9244 #resolve #comment Basic registry browsing should now be functional. Any other issues (including editing capability), would go in followup issues.

svn path=/trunk/; revision=66719
2015-03-15 00:00:13 +00:00
Timo Kreuzer
42d0a9c883 [QUARTZ_WINETEST]
Add missing dxsdk dependency

svn path=/trunk/; revision=66718
2015-03-14 23:58:45 +00:00
Timo Kreuzer
26b0009be6 [GDI32]
Make sure winternl.h is included from the wine folder

svn path=/trunk/; revision=66717
2015-03-14 23:35:27 +00:00
Timo Kreuzer
87d23adf45 [DLLS]
Make sure include/reactos/wine is included BEFORE PSDK headers. (I didn't tackle all DLLs, only those that (will) need it)

svn path=/trunk/; revision=66716
2015-03-14 23:34:31 +00:00
Timo Kreuzer
37e0c5bcb5 [WINETESTS]
Make sure include/reactos/wine is included BEFORE PSDK headers.

svn path=/trunk/; revision=66715
2015-03-14 23:33:29 +00:00
Timo Kreuzer
019895b42e [ROSAPPS]
Fix GCC warnings

svn path=/trunk/; revision=66714
2015-03-14 23:32:00 +00:00
Timo Kreuzer
f6ca509b09 [PSDK]
winnt.h: Improve Rtl*Memory defines, add missing RtlEqualMemory

svn path=/trunk/; revision=66713
2015-03-14 22:11:20 +00:00
Hermès Bélusca-Maïto
98f1285e6b [NOTEPAD]
- Remove unneeded ChangeLog file (we have SVN)
- Partial wine resync of notepad (part 1/x): it's just to bring back some of their fixes and improvements. CORE-9371

svn path=/trunk/; revision=66712
2015-03-14 20:00:39 +00:00
Timo Kreuzer
95776e2e8e [PSDK]
Add missing _Enum_is_bitflag_ and _Strict_type_match_ annotations. remove a wrong annotation

svn path=/trunk/; revision=66711
2015-03-14 18:12:50 +00:00
Johannes Anderwald
5b7132ef6a - fix build
svn path=/trunk/; revision=66710
2015-03-14 17:53:52 +00:00
Johannes Anderwald
c7133edff8 [WDMAUD]
- convert wdmaud to a software pnp device
- register device interface
[WDMAUD.DRV]
- open wdmaud via device interface

svn path=/trunk/; revision=66709
2015-03-14 17:50:30 +00:00
Hermès Bélusca-Maïto
249fea034e [NTOS]: Do not assert if we haven't shut down ReactOS yet, in 99.99% cases it's because you asked it to go into a non-yet implemented power state.
CORE-8537 #resolve #comment Replaced the ASSERT by an informative message when the power action is not implemented. r66708.

svn path=/trunk/; revision=66708
2015-03-14 16:40:26 +00:00
Amine Khaldi
400db38479 [CMAKE/GCC] Prevent GCC from searching any of the default directories, except when we're dealing with set_cpp. Now GCC build is on par with the MSVC build in terms of header inclusions.
svn path=/trunk/; revision=66707
2015-03-14 15:47:04 +00:00
Amine Khaldi
4583a9f8ee [WS2_32_WINETEST] Fix MSVC build.
svn path=/trunk/; revision=66706
2015-03-14 15:45:07 +00:00
Hermès Bélusca-Maïto
9756db83c9 [FMIFS]: Reorganize a bit the inclusions, and always compile the DLL in UNICODE.
svn path=/trunk/; revision=66705
2015-03-14 15:37:00 +00:00
Timo Kreuzer
f2c994e17e [PSDK]
Avoid redefinition of FILE_DEVICE_SMARTCARD in winsmcrd.h, when combined with wine/winioctl.h. A similar #ifdef exists in the MS header.

svn path=/trunk/; revision=66704
2015-03-14 15:34:48 +00:00
Amine Khaldi
b6882286d4 [WINETESTS] Addendum to r66701. Fixes MSVC build.
svn path=/trunk/; revision=66703
2015-03-14 15:22:32 +00:00
Hermès Bélusca-Maïto
0b1cd10648 [TASKMGR]: Use correct headers aka. NDK instead of wine/winternl.h . Also remove an unneeded header. Spotted by Sylvain.
svn path=/trunk/; revision=66702
2015-03-14 15:19:07 +00:00
Amine Khaldi
62ceafc675 [KERNEL32_WINETEST] Really fix winternl.h inclusions. Our GCC build missed these.
svn path=/trunk/; revision=66701
2015-03-14 15:14:41 +00:00
Amine Khaldi
470a162a83 [CMAKE] Disable PCH when the host system is Apple OS X.
svn path=/trunk/; revision=66700
2015-03-14 14:55:41 +00:00
Timo Kreuzer
5d175f22e0 [ROSAPPS]
Fix 2 warnings

svn path=/trunk/; revision=66699
2015-03-14 14:45:51 +00:00
Christoph von Wittich
7ca2e76aa8 [PSAPI_WINETEST]
fix build

svn path=/trunk/; revision=66698
2015-03-14 14:04:46 +00:00
Christoph von Wittich
fff0346a1f [WINETESTS]
fix kernel32 and ntdll winetest build

svn path=/trunk/; revision=66697
2015-03-14 14:02:06 +00:00
Timo Kreuzer
e209e6b5ac [WS2_32_APITEST]
Addendum to r66695: use winternl.h from wine folder

svn path=/trunk/; revision=66696
2015-03-14 13:41:50 +00:00
Timo Kreuzer
00aac1ad3b [PSDK]
Move winternl.h to include/reactos/wine.

svn path=/trunk/; revision=66695
2015-03-14 13:40:36 +00:00
Timo Kreuzer
ceb8bad33a [FONTVIEW]
In WinMain, higher the scope of szFileName to ensure that it and all variables that point to it are valid
throughout the program.
Should fix CID 731447.
Patch by Ricardo Hanke
CORE-9360 #resolve

svn path=/trunk/; revision=66694
2015-03-14 12:45:21 +00:00
Daniel Reimer
7df0a113d2 [RAPPS]
Update russian description for Tuxpaint in rapps by Petr Akhlamov
CORE-9153 #resolve #comment Added. Thx.

svn path=/trunk/; revision=66693
2015-03-14 12:39:55 +00:00
Timo Kreuzer
84aa5336fb [PSDK]
Sync winternl.h with wine

svn path=/trunk/; revision=66692
2015-03-14 12:32:08 +00:00
Daniel Reimer
48c063ad71 [RAPPS]
Add File search 6.8.1 to Database. Updates and German translation by me.
CORE-9338 #resolve #comment Added, thx for reporting.

svn path=/trunk/; revision=66691
2015-03-14 12:28:12 +00:00
Daniel Reimer
401b8cd1d1 [RAPPS]
lack of a proxy configuration by Peter Hater. German translation updated by me.
CORE-4852 #resolve #comment Committed, thx for help.

svn path=/trunk/; revision=66690
2015-03-14 12:20:45 +00:00
Amine Khaldi
f759acbfe3 [SHELL32] Show/Hide hidden files/folders through registry. By Lee Schroeder. CORE-9207
svn path=/trunk/; revision=66689
2015-03-14 12:18:33 +00:00
Amine Khaldi
ff09513565 [DESK] Implement and export InstallScreenSaver{A,W}. By Peter Hater. CORE-6812
svn path=/trunk/; revision=66688
2015-03-14 12:10:33 +00:00
Amine Khaldi
6b8bf7348d [MPLAY32] Remove szPrevFile and related code without removing the part that invokes the file open dialog if playback is started when no media file is opened. By Ricardo Hanke. CORE-8477
svn path=/trunk/; revision=66687
2015-03-14 12:05:49 +00:00
Amine Khaldi
5828eec88b [INETCPL] Add a certificate picture to the Content Tab. Brought to you by Jared. CORE-9263
svn path=/trunk/; revision=66686
2015-03-14 12:00:24 +00:00
Timo Kreuzer
e4ce29c7c6 [WIN32K]
Initialize list entry after removing a message from DispatchingMessagesHead. Fixes list corruption.
CORE-9357 #resolve

svn path=/trunk/; revision=66685
2015-03-14 11:22:31 +00:00
Johannes Anderwald
11164521c3 [MMSYS]
- hardware ids must be terminated by 2 zero bytes
[KS]
- more fixes to software bus pnp enumerator
[MMIXER]
- dont assert on buggy topology lines
[NTOS]
- keys must be REG_OPTION_VOLATILE
- allocate file object with correct tag
[INF]
- register wdmaudio as pnp software device (not yet ready)

svn path=/trunk/; revision=66684
2015-03-14 11:12:32 +00:00
Amine Khaldi
7236b07eec [KERNEL32] Silence a DPRINT.
svn path=/trunk/; revision=66683
2015-03-14 10:59:40 +00:00
Amine Khaldi
d534d99907 [DDK] Bring nt_vdd.h up to DDK formatting standards and use annotations. NFC.
svn path=/trunk/; revision=66682
2015-03-14 10:50:52 +00:00
Amine Khaldi
959962a683 [DESK] Set the default value for the placement combobox and load the monitor bitmap before the registry is accessed. Lower the requested access rights for RegOpenKeyEx to HKEY_QUERY_VALUE. In case RegOpenKeyEx fails, simply return to the calling function. Remove result and varType variables. By Ricardo Hanke. CORE-9365
svn path=/trunk/; revision=66681
2015-03-14 10:28:22 +00:00
Amine Khaldi
4ec3e6e63e [SYSDM] Add new icons to the Hardware tab of sysdm. Brought to you by Jared. CORE-9317
svn path=/trunk/; revision=66680
2015-03-14 10:15:13 +00:00
Amine Khaldi
0524088717 [DESK] Fix a freeze caused by changing screensaver settings. By Peter Hater. CORE-5718
svn path=/trunk/; revision=66679
2015-03-14 10:10:06 +00:00
Amine Khaldi
a7516a6c98 [PSDK] Add missing ulFileCount field in the ACTIVATION_CONTEXT_ASSEMBLY_DETAILED_INFORMATION structure. Fixes a kernel32:actctx test failure.
svn path=/trunk/; revision=66678
2015-03-14 10:06:04 +00:00
Amine Khaldi
99300d7111 [NTDLL_WINETEST] Fix test failures on systems with broken RtlDecompressBuffer(). By Sebastian Lackner.
svn path=/trunk/; revision=66677
2015-03-14 10:03:10 +00:00
David Quintana
a5f9430988 [NTOBJSHEX]
* Fix content type column to represent the correct type, or "Key". This column would contain the custom class name if it was ever assigned (I have not seen such a case).
* Implement reading registry values when enumerating details.
Now the registry browsing is semi-useful, albeit read-only.

svn path=/trunk/; revision=66676
2015-03-14 04:04:27 +00:00
Hermès Bélusca-Maïto
9606bcd3f2 [NTVDM]: Move EMS support as a BIOS module (and initialize it after the BIOS has finished its initialization, including resetting the INT handlers).
svn path=/trunk/; revision=66675
2015-03-14 03:37:54 +00:00
David Quintana
6928fadeff [NTOBJSHEX]
* Replace the custom context menu classes with the default implementation from shell32. As a side-effect, navigation now works in ReactOS.
* Make use of the default implementations of IDataObject and IQueryAssociations from shell32 (required by the IContextMenu implementation of Win2003).
* Fix initialization of the NT Object Folder's pidl.
* Make CompareIDs recursive.
* Fix the recursivity in GetDisplayNameOf, when called with FORPARSING.
NOTE: There is still some issue with GetDisplayNameOf, where the address shown in the addressbar seems to skip path components.

svn path=/trunk/; revision=66674
2015-03-14 03:15:36 +00:00
Aleksandar Andrejevic
d2d2431614 [NTVDM]
Implement the EMS memory handlers.
Make memory hooks expandable.


svn path=/trunk/; revision=66673
2015-03-14 01:54:35 +00:00
Hermès Bélusca-Maïto
a0ee24eb0b You haven't seen those changes. Never.
svn path=/trunk/; revision=66672
2015-03-14 01:50:05 +00:00
Hermès Bélusca-Maïto
c80f97eea6 [NTVDM]
- cpu.c: Convert the faulting address to "real" (VM) address before calling the exception handler.
- ems.c: Simplify code by using ARRAY_INDEX; some poiters should point to physical memory.
- ems.c: Memory hook addresses should be "real".
- memory.c: Remove an extra MemFastMoveMemory call; really use IsListEmpty (was commented by error in my previous commit).

svn path=/trunk/; revision=66671
2015-03-14 01:45:50 +00:00
Hermès Bélusca-Maïto
c73bb5a49f [NTVDM]
- Export VDDInstallMemoryHook and VDDDeInstallMemoryHook.
- Stubplement and export VDDAllocMem, VDDFreeMem, VDDIncludeMem and VDDExcludeMem (undocumented).

svn path=/trunk/; revision=66670
2015-03-13 23:26:33 +00:00
Hermès Bélusca-Maïto
682debaaf6 [NTVDM]
- Move the VDD memory handler API prototypes to the corresponding DDK header.
- Fix few function arguments types and add few more comments :)
- Move all NTVDM-memory related functions to memory.c
- Prefer checking for !IsListEmpty(&list) instead of doing list.Flink != &list (ehh! NTVDM is not win32k!!)

svn path=/trunk/; revision=66669
2015-03-13 22:38:44 +00:00
Christoph von Wittich
6ea4a782ee [WLANSVC]
fix a typo
spotted by Eric

svn path=/trunk/; revision=66668
2015-03-13 19:09:32 +00:00
Aleksandar Andrejevic
f0154e5af4 [NTVDM]
Fix copypasta in the file headers.


svn path=/trunk/; revision=66667
2015-03-13 18:28:45 +00:00
Aleksandar Andrejevic
888e1c450b [NTVDM][FAST486]
- Implement VDDInstallMemoryHook and VDDDeInstallMemoryHook using page guards.
- Implement another API for memory hooks that should be faster than page guards
(for NTVDM only).
- Adjust the VGA and EMS memory handlers to use this method.
- In Fast486, implement a method that will allow us to "rewind" the current instruction,
in case it was interrupted by a memory hook page fault.
- Use a memory hook to protect the BIOS ROM from being written to.


svn path=/trunk/; revision=66666
2015-03-13 17:57:51 +00:00
Timo Kreuzer
027720cd57 [INCLUDE/WINE]
Delete mmreg.h from wine folder, we have an almost identical and more complete version in psdk

svn path=/trunk/; revision=66665
2015-03-11 18:02:11 +00:00
Thomas Faber
07aa0d698c [DDK][NDK][XDK]
- Update some definitions to match WDK8.1. Fixes a few compatibility issues between NDK and WDK.
CORE-9356 #resolve

svn path=/trunk/; revision=66663
2015-03-11 09:21:10 +00:00
Hermès Bélusca-Maïto
444d33d50b [WIN32K]
- Implement NtUserResolveDesktop, which opens a desktop and a window station based on a desktop path string (format: "WinSta\Desktop").
- Move NtUserConsoleControl to a more suitable file, and implement the control code that allows CSRSS to assign console input threads to given desktops.
- Simplify a bit the code in NtUserSetInformationThread.

[CONSRV]
Turn the console input thread to a real one. There should be one such thread per desktop. When a console process is started, we open the desktop on which the process is going to start, we create a new input thread (attach it to the desktop) if needed, or reuse the existing one, and then we open the terminal on the correct desktop.

CORE-9346 #resolve #comment Fixed in revision 66662.

svn path=/trunk/; revision=66662
2015-03-11 01:21:29 +00:00
Timo Kreuzer
3ea483bc85 [WIN32K]
Don't set Message->DispatchingListEntry.Flink to NULL / compare against NULL, but use InitializeListHead and IsListEmpty. Make sure the list entry is properly initialize, when the item is removed Fixes list corruption.

svn path=/trunk/; revision=66661
2015-03-10 10:27:00 +00:00
Amine Khaldi
e5c8124164 [ADVAPI32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66660
2015-03-10 10:10:54 +00:00
Amine Khaldi
8d12ad730d [MSVCRT_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66659
2015-03-10 10:10:35 +00:00
Amine Khaldi
26326ca7d5 [NTDLL_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66658
2015-03-10 10:10:04 +00:00
Amine Khaldi
6bd29991d4 [PSDK] Add missing KEY_NAME_INFORMATION structure. CORE-9246
svn path=/trunk/; revision=66657
2015-03-10 10:09:14 +00:00
Timo Kreuzer
5f980c38ce [WIN32K]
Fix a typo introduced in r66644. Fixes icon corruption / testbot regression.
CORE-9351 #resolve

svn path=/trunk/; revision=66656
2015-03-10 10:01:44 +00:00
Timo Kreuzer
649462e5ff [NDK]
Update no_sal2.h

svn path=/trunk/; revision=66655
2015-03-10 09:10:14 +00:00
Timo Kreuzer
bb60692b92 [SAL]
- kernelspecs.h: Add IRQL level defines, remove a duplicate annotation and make some definitions more consistent
- concurrencysal.h: Add missing annotations (only dummies so far)
- driverspecs.h: Add some missing annotations
- sal_old.h: remove __inner_callback, which is in sal.h

svn path=/trunk/; revision=66654
2015-03-10 09:10:00 +00:00
Timo Kreuzer
ba96aa436b [INCLUDE/CRT]
Fix annotations for _dupenv_s and _wdupenv_s (They are broken in MS headers, looks like nobody uses attributes for SAL...)

svn path=/trunk/; revision=66653
2015-03-10 09:09:48 +00:00
Timo Kreuzer
54b2c750ce [SAL]
Implement _Deref_post_bytecount_, _Outptr_result_maybenull_z_, _Pre_unknown_ and _Maybe_raises_SEH_exception_ annotations

svn path=/trunk/; revision=66652
2015-03-10 09:09:31 +00:00
Timo Kreuzer
05322e37a2 [XDK]
Fix typos, spotted by Thomas.

svn path=/trunk/; revision=66651
2015-03-10 09:05:08 +00:00
Timo Kreuzer
475a0d5255 [WIN32K]
Annotate eng/mapping.c

svn path=/trunk/; revision=66650
2015-03-10 00:13:43 +00:00
Timo Kreuzer
eebc6ac87d [WIN32K]
Annotate mouse.c, move some prototypes to the proper location.
Fix bugs in EngSetPointerShape and IntEngSetPointerShape, where the passed in XLATEOBJ could be NULL. Found by MSVC static analyzer.

svn path=/trunk/; revision=66649
2015-03-10 00:13:29 +00:00
Timo Kreuzer
af94181e04 [WIN32K]
Annotate rect.c

svn path=/trunk/; revision=66648
2015-03-10 00:13:17 +00:00
Timo Kreuzer
b673073aa1 [WIN32K]
- Annotate eng/device.c and semaphor.c.
- Get rid of IntGdiAcquire/ReleaseSemaphore
- Move some prototypes where they belong

svn path=/trunk/; revision=66647
2015-03-10 00:13:04 +00:00
Timo Kreuzer
d33bc192ba [WIN32K]
Fix all MSVC static analyzer warnings. (a few are suppressed after checking that it's ok)
Fixes a number of missing or wrong function return checks, wrong printf format specifiers and a few other things,

svn path=/trunk/; revision=66646
2015-03-10 00:12:41 +00:00
Timo Kreuzer
42587dd1d3 [WIN32K]
Apply proper formatting to polyfill.c

svn path=/trunk/; revision=66645
2015-03-10 00:11:43 +00:00
Timo Kreuzer
fe4dc5d9d5 [WIN32K]
Annotate a number of GDI functions to match public header declarations.

svn path=/trunk/; revision=66644
2015-03-10 00:11:29 +00:00
Timo Kreuzer
6a2c72929e [PSDK]
Move __analysis_assume to sal.h (like in newer Windows SDKs) and define it (together with _Analysis_assume_) to "((void)0)" instead of to nothing, to allow it to be used with a comma.

svn path=/trunk/; revision=66643
2015-03-10 00:10:57 +00:00
Timo Kreuzer
83779b37e6 [PSDK/DDK/XDK]
- Make NT_ASSERT() give the MSVC static analyzer a hint that the condition can now be excpected to be true. This adds __analysis_unreachable(), which uses __assume(0) on _PREFAST_ builds. This is neccessary, since it seems impossible to make MSVC respect __analysis_noreturn / __declspec(noreturn) on an intrinsic prototype like __int2c().

svn path=/trunk/; revision=66642
2015-03-10 00:10:46 +00:00
Timo Kreuzer
a3df492617 [PSDK]
Update ntgdi.h:
- Change some return types from VOID to NTSTATUS. This was done recently on Windows, but there shouldn't be a compatibility issue with returning an NTSTATUS value instead of the random contents of the eax register.
- Change 2 parameters from VOID* to DRIVER_INFO_2W* and 2 parameters from VOID* to POINTL*
- Add annotations

svn path=/trunk/; revision=66641
2015-03-10 00:10:33 +00:00
Timo Kreuzer
6ff50b28b0 [PSDK]
struct _DRVENABLEDATA -> struct tagDRVENABLEDATA

svn path=/trunk/; revision=66640
2015-03-10 00:10:09 +00:00
Timo Kreuzer
4aa79e133e [CMAKE]
Make warning C4716 (function must return a value) an error on MSVC

svn path=/trunk/; revision=66639
2015-03-10 00:09:58 +00:00
Timo Kreuzer
e04361b3a8 [WIN32K]
Fix bug in EngMapEvent

svn path=/trunk/; revision=66638
2015-03-10 00:09:41 +00:00
Timo Kreuzer
1e9299af24 [PSDK]
Fix NULL-termination bugs in ntstrunsafe.h

svn path=/trunk/; revision=66637
2015-03-10 00:09:30 +00:00
Timo Kreuzer
4beaf120e7 [DDK/XDK]
- Fix some prototypes in wdm.h (PMDLX -> PMDL)
- Fix annotations for ExFreePool(WithTag)

svn path=/trunk/; revision=66636
2015-03-10 00:09:20 +00:00
Timo Kreuzer
7aa570c1fd [WIN32K]
Fix some annotations

svn path=/trunk/; revision=66635
2015-03-10 00:08:54 +00:00
Amine Khaldi
6e781e624c [VMWINST] Use StringCb{Copy,Cat} instead of wcs{cpy,cat} to ensure that no buffer overflows occur. CID 514272s and 515210. By Ricardo Hanke. CORE-9347
svn path=/trunk/; revision=66634
2015-03-09 20:50:42 +00:00
Amine Khaldi
8ffd0f2576 [MSI_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66633
2015-03-09 20:28:54 +00:00
Amine Khaldi
102b741c7e [MSI] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66632
2015-03-09 20:28:19 +00:00
Amine Khaldi
3bce081d61 [PSDK] Add missing MsiProvidedComponent{A,W} declarations. CORE-9246
svn path=/trunk/; revision=66631
2015-03-09 20:26:03 +00:00
Amine Khaldi
c6589cc426 [MSIEXEC] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66630
2015-03-09 20:02:20 +00:00
Amine Khaldi
ca2dfb03a3 [OLE32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66629
2015-03-09 19:58:31 +00:00
Amine Khaldi
ec27d5b880 [OLE32] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66628
2015-03-09 19:57:38 +00:00
Amine Khaldi
a5ef97a5f5 [ADVPACK_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66627
2015-03-09 19:20:13 +00:00
Amine Khaldi
c46d40ad2f [ADVPACK] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66626
2015-03-09 19:19:38 +00:00
Amine Khaldi
e0770c3e3a * Silence a debug print. Spotted by Aleksey.
svn path=/trunk/; revision=66625
2015-03-09 19:08:16 +00:00
Christoph von Wittich
9ee7073a81 [GDI32]
fix gdi32 clipping winetest

svn path=/trunk/; revision=66624
2015-03-09 19:05:58 +00:00
Amine Khaldi
9a8d806a2e [RTL] Partly sync actctx.c with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66623
2015-03-09 18:08:15 +00:00
Amine Khaldi
66123cf941 [KERNEL32] Sync GetStringTypeW() with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66622
2015-03-09 17:53:20 +00:00
Amine Khaldi
220e1cfae1 [TASKMGR] Do not show negative CPU usage. By Peter Hater. CORE-9050
svn path=/trunk/; revision=66621
2015-03-09 17:38:31 +00:00
Amine Khaldi
780865a796 [KERNEL32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66620
2015-03-09 17:15:16 +00:00
Timo Kreuzer
4e51a10654 [WIN32K]
Fix another typo in the same line... Spotted by Jerome.

svn path=/trunk/; revision=66619
2015-03-09 01:11:06 +00:00
Timo Kreuzer
ada7f6e85d [WIN32K]
Replace ROUND_UP with ALIGN_UP_BY

svn path=/trunk/; revision=66618
2015-03-08 23:37:06 +00:00
Timo Kreuzer
16c191f8a8 [WIN32K]
Improve the situation with ROP handling, trying to make things clearer.

svn path=/trunk/; revision=66617
2015-03-08 23:36:49 +00:00
Timo Kreuzer
ebd0c06809 [WIN32K]
- Pass size in bytes to UnsafeSetBitmapBits from NtGdiCreateBitmap
- In NtGdiSetBitmapBits check for stock bitmap and non-API bitmap.

svn path=/trunk/; revision=66616
2015-03-08 23:36:36 +00:00
Timo Kreuzer
d52f661e5f [WIN32K]
- Remove wrong flags when initializing a DC
- Set DC::prgnattr before potentially passing it to the cleanup function after failure to create a handle. Add a comment that this is not actually enough. Will be fixed, once we use C++
- Increase GDI object stack levels to 20

svn path=/trunk/; revision=66615
2015-03-08 23:36:25 +00:00
Timo Kreuzer
6dcd051d62 [WIN32K]
Make sure a region is reasonably initialized, before potentially passing it to the cleanup function, when failing to create a handle.

svn path=/trunk/; revision=66614
2015-03-08 23:36:14 +00:00
Timo Kreuzer
d09753a207 [WIN32K]
Fix a typo

svn path=/trunk/; revision=66613
2015-03-08 23:36:04 +00:00
Timo Kreuzer
cdc2efb241 [WIN32K]
NtGdiSetDIBitsToDeviceInternal: Check for ScanLines == 0 and clean up exit pathes. Fixes assertion failure in gdi32_winetest:bitmap

svn path=/trunk/; revision=66612
2015-03-08 22:44:36 +00:00
Timo Kreuzer
ff14566384 [WIN32K]
- Pass bitmap buffer size to SURFACE_AllocSurface and validate it
- Fix arithmetic overflow checks by using RtlULongMult
- GreExtTextOutW: do not allocate / blit zero sized bitmaps
- NtGdiStretchDIBitsInternal: do not pass negative y size to GreCreateBitmapEx
- DIB_CreateDIBSection: use calculated bitmap size, instead of biSizeImage when calculating the section view size and as size parameter to GreCreateBitmapEx
CORE-9245 #resolve

svn path=/trunk/; revision=66611
2015-03-08 17:25:44 +00:00
Hermès Bélusca-Maïto
15f19bca32 [CONSRV]: Hackfix the icons retrieval in the same way as what was done in r65683, because we have a bug in PrivateExtractIconExW.
svn path=/trunk/; revision=66610
2015-03-08 14:28:19 +00:00
Hermès Bélusca-Maïto
c8eb15561c [CONSRV]: Fix the console TUI frontend compilation.
svn path=/trunk/; revision=66609
2015-03-08 13:52:06 +00:00
Timo Kreuzer
e7aacb5163 [WIN32K]
- revert an "improvement" in NtUserFindExistingCursorIcon
- Remove boken asserts
- Implement GreSetBitmapOwner and use it to set bitmap owner in IntSetCursorData
- Fix cleanup after failure in setting bitmap owner
- Fix string cleanup (don't free INTRESOURCE)
- Validate frame indices to be within range
- Make sure frame indices and JIR reates are copied
- A few other fixes/improvements

svn path=/trunk/; revision=66608
2015-03-08 13:44:24 +00:00
Amine Khaldi
e53889cf98 [NOTEPAD] Prevent some NULL pointer dereferences. CID 502217. By Ricardo Hanke. CORE-9337
svn path=/trunk/; revision=66607
2015-03-08 13:16:46 +00:00
Johannes Anderwald
63439e78ff [MMSYS]
- fix build

svn path=/trunk/; revision=66606
2015-03-08 09:37:06 +00:00
Johannes Anderwald
d2e31d5fde [MMSYS]
- install software bus pnp enumerator only once

svn path=/trunk/; revision=66605
2015-03-08 08:28:12 +00:00
Hermès Bélusca-Maïto
97bb83fcd9 [USETUP]: Fix some problems with extra-backslashes in paths, and fix the support for the setup directory "\" which means "the install directory" (i.e. C:\ReactOS usually).
[BOOTDATA/VGAFONTS]: Install the vga fonts needed for the Blue driver. Better fix for r57755 and r59547.

svn path=/trunk/; revision=66604
2015-03-08 04:09:23 +00:00
David Quintana
9c9b3171f8 [NTOBJSHEX]
* Make the shell view default to details mode.
* Some cleanups.

svn path=/trunk/; revision=66603
2015-03-08 02:05:24 +00:00
Aleksandar Andrejevic
b0c6956a17 [NTVDM]
Implement EMS function AH = 57h.


svn path=/trunk/; revision=66602
2015-03-08 00:36:46 +00:00
Timo Kreuzer
e0a175fa25 [INTRIN]
Fix x64 build.

svn path=/trunk/; revision=66601
2015-03-07 22:35:52 +00:00
Johannes Anderwald
20b24dadb9 [KS]
- fix multiple bugs in software bus pnp enumerator 
[INF]
- add wdmaud.sys as a client of the software bus pnp enumerator

svn path=/trunk/; revision=66600
2015-03-07 18:01:03 +00:00
Johannes Anderwald
4f6af40fc9 [MMSYS]
- install software bus pnp enumerator when an audio device is installed

svn path=/trunk/; revision=66599
2015-03-07 17:33:13 +00:00
Timo Kreuzer
3eba2a1fe4 [INTRIN]
Add some missing intrinsics for GCC (_InterlockedExchangeAdd8, __incgsqword, _BitScanForward64, _BitScanReverse64, _bittest64, _bittestandset64, _bittestandreset64, _bittestandcomplement64, _rotr64, _lrotl, _lrotr, __lzcnt, __lzcnt16, __popcnt, __popcnt16, __lzcnt64, __popcnt64, __cpuidex, __ud2, __writecr8/__readcr8 (x86))
Remove useless top level const modifiers from parameters (they do only tell the compiler that the variable cannot be modified, they do not tell the compiler whether the parameter is a compiler constant!)

svn path=/trunk/; revision=66598
2015-03-07 13:22:42 +00:00
Hermès Bélusca-Maïto
6fa9017029 [NTVDM]: Add configuration files (will be needed in the future). By Lee Schroeder.
CORE-7736 CORE-7832

svn path=/trunk/; revision=66597
2015-03-07 01:42:16 +00:00
Aleksandar Andrejevic
3b4c8c96b6 [NTVDM]
Begin implementing Expanded Memory Space (EMS) support.


svn path=/trunk/; revision=66596
2015-03-07 00:43:17 +00:00
Hermès Bélusca-Maïto
005645416e [SHORTCUTS]: Add RApps shortcut to the desktop.
CORE-9190

svn path=/trunk/; revision=66595
2015-03-07 00:21:24 +00:00
Daniel Reimer
63ac32d5c9 [MSTSC]
German update. No user cares about the number of colors at all. It always was called High/True Color and thus we do so too.

svn path=/trunk/; revision=66594
2015-03-07 00:06:06 +00:00
Hermès Bélusca-Maïto
551a042b6f [MPLAY32]
- Additional improvements by Ricardo Hanke, see CORE-8477 for all the details!
- Add support for play/pause button: now we change its icon and tooltip.
- Do not block when repeatedly change play/pause state.

svn path=/trunk/; revision=66593
2015-03-06 23:49:49 +00:00
Hermès Bélusca-Maïto
529183cda7 [SHIMGVW]
- Few whitespace fixes.
- Fix a regression where an exception was thrown when opening a file from cdrom.
Patch by Ricardo Hanke.
CORE-9250 #resolve #comment Patch v2 committed! Thanks!

svn path=/trunk/; revision=66592
2015-03-06 20:32:38 +00:00
Amine Khaldi
a565167c59 [RAPPS] Fix maximizing. By Ismael Ferreras Morezuelas. CORE-9060
svn path=/trunk/; revision=66591
2015-03-06 20:23:45 +00:00
Amine Khaldi
4f727bf356 [RAPPS] Change APPLICATION_DATEBASE_URL to APPLICATION_DATABASE_URL and add a FIXME about switching to HTTPS once is supported. By Ismael Ferreras Morezuelas. CORE-9060
svn path=/trunk/; revision=66590
2015-03-06 20:20:25 +00:00
Hermès Bélusca-Maïto
8c59114082 [DESK]: Include files from the wallpaper directory in the list of available desktop backgrounds.
Patch by Ricardo Hanke.
CORE-9288 #resolve #comment Patch v3 committed, thanks!

svn path=/trunk/; revision=66589
2015-03-06 20:13:21 +00:00
Hermès Bélusca-Maïto
42c3492b5c Revert tree-restructure attempt: r66583, r66582, r66581, r66578, sauf ntdll changes, r66576 and r66575 sauf mvdm changes (ok with Aleksander).
svn path=/trunk/; revision=66588
2015-03-06 14:33:02 +00:00
Hermès Bélusca-Maïto
2fd746a504 Revert r66580 and r66579.
svn path=/trunk/; revision=66587
2015-03-06 14:31:32 +00:00
Christoph von Wittich
55ac845a5e revert r66585
svn path=/trunk/; revision=66586
2015-03-06 11:49:28 +00:00
Christoph von Wittich
c982804893 [NTOSKRNL]
disable sysenter on Pentium Pro
http://lkml.iu.edu/hypermail/linux/kernel/0308.2/1534.html
CORE-6582

svn path=/trunk/; revision=66585
2015-03-06 09:29:50 +00:00
Hermès Bélusca-Maïto
a2a0e1c9a1 [MSTSC]: Add support for 32-bit colour. Patch by 'hater'.
CORE-9322 #resolve #comment Committed in r66584, thanks!

svn path=/trunk/; revision=66584
2015-03-06 02:16:00 +00:00
Hermès Bélusca-Maïto
b8571b27e9 [SHELL]: shimgvw is a shell extension.
svn path=/trunk/; revision=66583
2015-03-06 02:01:31 +00:00
Hermès Bélusca-Maïto
829e58590e [SHELL]: Move shell dlls to where they should belong.
CORE-9111

svn path=/trunk/; revision=66582
2015-03-06 01:26:58 +00:00
Hermès Bélusca-Maïto
22cd6ee5a3 Revert an unwanted change from r66575.
svn path=/trunk/; revision=66581
2015-03-06 00:43:46 +00:00
Hermès Bélusca-Maïto
5d3273e56a I hope this is the last one.
svn path=/trunk/; revision=66580
2015-03-06 00:37:49 +00:00
Hermès Bélusca-Maïto
dc5cf71fa4 ... and that.
svn path=/trunk/; revision=66579
2015-03-06 00:34:20 +00:00
Hermès Bélusca-Maïto
3d596d154a Really fix build this time (otherwise that means my full clean builds are broken). Also remove that strange win32k dependency from ntdll (that appeared only via the headers inclusion, and nothing else).
svn path=/trunk/; revision=66578
2015-03-06 00:31:01 +00:00
Hermès Bélusca-Maïto
c1d94ddee2 [NTDLL]: Remove unneeded includes (fix build).
svn path=/trunk/; revision=66577
2015-03-06 00:03:52 +00:00
Hermès Bélusca-Maïto
76edda527f Fix build (forgot these 3 files).
svn path=/trunk/; revision=66576
2015-03-05 23:20:06 +00:00
Hermès Bélusca-Maïto
ddb90f1e10 Start source tree (final, I hope!) restructuration. Part 1/X
Win32, Shell, Services, MVDM

svn path=/trunk/; revision=66575
2015-03-05 23:03:33 +00:00
Timo Kreuzer
9a340ee253 [INTRIN]
Fix MSVC / x64 build

svn path=/trunk/; revision=66574
2015-03-05 23:00:18 +00:00
Timo Kreuzer
da855e568d [INCLUDE/CRT]
- Move all intrinsic prototypes to intrin.h and remove duplicated declatations from msc/intrin.h and mingw/intrin_x86.h
- Fix some intrinsic prototypes for GCC
- Fix some SAL annotations for intrinsics

svn path=/trunk/; revision=66573
2015-03-05 21:09:36 +00:00
Timo Kreuzer
5269230c55 [CRT]
Remove definition of __JUMP_BUFFER and include setjmp.h instead, where it is defined.

svn path=/trunk/; revision=66572
2015-03-05 21:09:12 +00:00
Timo Kreuzer
bd5b0e3bd3 [INCLUDE]
#undef some constants in arc.h to avoid conflicts with errno.h

svn path=/trunk/; revision=66571
2015-03-05 21:08:58 +00:00
Hermès Bélusca-Maïto
b086a99725 Small source tree cleanup:
- Remove leftovers from rbuild era.
- Remove .hgeol that was introduced in r53995 in an attempt to have Mercury "get[ing] native line endings":
<@hbelusca> tkreuzer - hi tkreuzer! do you know whether you still need this .hgeol file at the root of our source tree?
<@tkreuzer> hbelusca: no, feel free to delete it
- rgenstat/llmosrt.c --> llmsort.c (take it from cdmake); this is however an unused tool in our build toolchain.

svn path=/trunk/; revision=66570
2015-03-05 20:43:25 +00:00
Sylvain Petreolle
bf41d9fe8e [EXT2FS]
No drive in media is not an error condition.
The hardware reporting no 'ghost' floppy drives like vmware don't show this trace.

svn path=/trunk/; revision=66569
2015-03-05 16:13:44 +00:00
Hermès Bélusca-Maïto
57d181cd3f [KEYBOARDLAYOUTS]: Improve on r61053 and r64791 by moving the keyboard layout LD script to its correct directory.
svn path=/trunk/; revision=66568
2015-03-05 15:04:25 +00:00
Hermès Bélusca-Maïto
974e7aafa1 [WELCOME]: Port all the extra features that we usually need for our custom releases for FOSDEM, CLT, etc... See r62439, r66116 and r66121 (in particular keep the <msg> feature, it can be useful for some cases. It's not because you remove it that you'll gain 100 MB in the CD-ROM!).
svn path=/trunk/; revision=66567
2015-03-04 22:37:51 +00:00
Hermès Bélusca-Maïto
96bb81fb65 Errm... fix build.
svn path=/trunk/; revision=66566
2015-03-04 22:13:31 +00:00
Hermès Bélusca-Maïto
9fe5dd6bb4 [WELCOME]: Code style changes only.
svn path=/trunk/; revision=66565
2015-03-04 22:10:49 +00:00
Hermès Bélusca-Maïto
66e25b43b8 [WELCOME!]: Fix CID 515150 (and warn if the app that we start cannot be started). By Ricardo Hanke.
CORE-9325 #resolve #comment Fixed, thanks!

svn path=/trunk/; revision=66564
2015-03-04 21:42:09 +00:00
Hermès Bélusca-Maïto
6e0183f1c0 Whitespace fixes only.
svn path=/trunk/; revision=66563
2015-03-04 21:37:35 +00:00
Hermès Bélusca-Maïto
327531bfd4 [MPLAY32]: Fix CID 515203 and CID 515204: replace remaining _tcscpy and _stprintf with strsafe functions.
By Ricardo Hanke.
CORE-9306 CORE-9308 #resolve #comment Fixed, thanks!

svn path=/trunk/; revision=66562
2015-03-03 21:35:07 +00:00
Hermès Bélusca-Maïto
f7730a4c06 Fix comment >_>
svn path=/trunk/; revision=66561
2015-03-03 21:24:04 +00:00
Hermès Bélusca-Maïto
2aeddacd34 [MAGNIFIER]: Code formatting.
svn path=/trunk/; revision=66560
2015-03-03 21:20:49 +00:00
Johannes Anderwald
55a3ce0d00 [KS]
- fix multiple bugs in the software bus enumerator

svn path=/trunk/; revision=66559
2015-03-03 21:07:48 +00:00
Hermès Bélusca-Maïto
4fa5f10a81 [MAGNIFY]: Fix CID 512972 and CID 512973.
[EVENTLOG]: Fix CID 515148, CID 515149 and CID 512988.
By Ricardo Hanke.
CORE-9314 CORE-9316 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=66558
2015-03-03 21:03:21 +00:00
Christoph von Wittich
0117e3b8cb [WLANAPI]
partially implement RpcOpenHandle and RpcCloseHandle

svn path=/trunk/; revision=66557
2015-03-03 20:57:33 +00:00
Hermès Bélusca-Maïto
edb65177d2 [CMD]: Improve German translation, by Robert Naumann.
CORE-9311 #resolve #comment Committed, thanks! (with Codeseite --> Codepage change).

svn path=/trunk/; revision=66556
2015-03-03 20:53:33 +00:00
Hermès Bélusca-Maïto
eedc82f7ce [TRANSLATION]: Global Romanian translation update, by Stefan Fulea. See CORE-9313 for all the details!
CORE-9313 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=66555
2015-03-03 20:49:07 +00:00
Johannes Anderwald
6c19ea5c6a [NTOS]
- fix bug

svn path=/trunk/; revision=66554
2015-03-03 16:39:31 +00:00
Christoph von Wittich
394264825f [WLANAPI]
add stubs for WlanReasonCodeToString, WlanIhvControl, WlanSetSecuritySettings and WlanGetAvailableNetworkList

svn path=/trunk/; revision=66553
2015-03-03 11:43:24 +00:00
Daniel Reimer
e1f523b79c [LAUTUS]
Patch: Make it translatable and add German translation by Robert Naumann + fixed one typo by me.
CORE-9310 #resolve #comment Committed with one lil typo fixed, thx.

svn path=/trunk/; revision=66552
2015-03-03 01:35:12 +00:00
Amine Khaldi
e9069a6bb3 [PSDK] Fix winternl.h version of SECTION_IMAGE_INFORMATION and add missing MEM_EXECUTE_OPTION_DISABLE_THUNK_EMULATION definition.
svn path=/trunk/; revision=66551
2015-03-02 23:38:49 +00:00
Amine Khaldi
2634b3a6aa [PSDK] Add missing PF_NX_ENABLED, PROCESS_DEP_ENABLE and PROCESS_DEP_DISABLE_ATL_THUNK_EMULATION definitions.
svn path=/trunk/; revision=66550
2015-03-02 23:37:00 +00:00
Kamil Hornicek
e9590ca78f [MESA]
- remove a stray debug break
CORE-8781

svn path=/trunk/; revision=66549
2015-03-02 20:26:25 +00:00
Christoph von Wittich
adf2d63295 [WLANAPI_WINETEST]
add more tests

svn path=/trunk/; revision=66548
2015-03-02 19:28:15 +00:00
Christoph von Wittich
213dbef1b4 [WLANAPI]
add stubs for WlanQueryInterface and WlanGetInterfaceCapability

svn path=/trunk/; revision=66547
2015-03-02 19:27:45 +00:00
Johannes Anderwald
ed9dfffa61 [HIDCLASS]
- remove no longer required pnp hack

svn path=/trunk/; revision=66546
2015-03-02 19:16:45 +00:00
Johannes Anderwald
87b47bb64d [NTOS]
- use IopGetDeviceObjectFromDeviceInstance to retrieve PDO

svn path=/trunk/; revision=66545
2015-03-02 19:14:16 +00:00
Christoph von Wittich
aa78e3fd93 [WLANAPI_WINETEST]
add some more tests

svn path=/trunk/; revision=66544
2015-03-02 17:24:30 +00:00
Christoph von Wittich
d95aa9978c [WLANAPI]
add checks for invalid parameters

svn path=/trunk/; revision=66543
2015-03-02 17:23:38 +00:00
Christoph von Wittich
314db647da [WLANAPI_WINETEST]
add some tests for WlanConnect, WlanDisconnect and WlanScan

svn path=/trunk/; revision=66542
2015-03-02 16:10:33 +00:00
Christoph von Wittich
2102bfa1f0 [WLANAPI]
stub some WlanProfile functions
fix some declarations

svn path=/trunk/; revision=66541
2015-03-02 14:33:50 +00:00
James Tabor
fcdfd8831e [NtUser]
- Fix test for child windows. This is for painting changes. See CORE-7447.

svn path=/trunk/; revision=66540
2015-03-02 06:45:19 +00:00
Hermès Bélusca-Maïto
e83e0a084f [SHLWAPI]: Update the ros-diff.
svn path=/trunk/; revision=66539
2015-03-02 01:23:55 +00:00
Hermès Bélusca-Maïto
811fcc6a66 [SHLWAPI]: Remove some Wine madness. CORE-8936.
svn path=/trunk/; revision=66538
2015-03-02 01:15:00 +00:00
Hermès Bélusca-Maïto
1597cd2a51 Fix build.
svn path=/trunk/; revision=66537
2015-03-02 01:02:18 +00:00
Hermès Bélusca-Maïto
993853e877 [SHELL32]: Fix some imports.
CORE-8936 CORE-8174

svn path=/trunk/; revision=66536
2015-03-02 00:59:14 +00:00
Amine Khaldi
ebe1d82979 [README.WINE] Mark some DirectX modules as synced with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66535
2015-03-01 22:51:48 +00:00
Amine Khaldi
440b3fe282 [QUARTZ] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66534
2015-03-01 22:48:56 +00:00
Amine Khaldi
338231b612 [QEDIT] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66533
2015-03-01 22:47:11 +00:00
Amine Khaldi
094e0aaace [MSDMO] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66532
2015-03-01 22:39:22 +00:00
Amine Khaldi
9667e8c3ef [DXGI] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66531
2015-03-01 22:38:27 +00:00
Amine Khaldi
db128b9633 [PSDK] Add missing E_NOT_SUFFICIENT_BUFFER definition.
svn path=/trunk/; revision=66530
2015-03-01 22:36:59 +00:00
Amine Khaldi
2e3c340382 [NOTEPAD] Fix CIDs 510916 and 716307. By Ricardo Hanke. CORE-9300
svn path=/trunk/; revision=66529
2015-03-01 22:35:47 +00:00
Timo Kreuzer
ebdb755ed6 [WIN32K]
Rewrite NtUserSetCursorIconData
Fixes:
- Memory leaks
- Cursors left in an unpredictable / unhealthy state, including pointers to freed memory, when an operation failed
- Decision whether a cursor uses an ACON or CURSOR as the underlying structure based on user provided flags, instead of cursor flags, which were not even set in the first place.
- Allowing a usermode caller to corrupt the cusor structure, by converting an ACON with a smaller allocation size into a CURSOR
CORE-9301 #resolve

svn path=/trunk/; revision=66528
2015-03-01 22:00:24 +00:00
Timo Kreuzer
b288b023a8 [WIN32K]
Formatting only. Add a space after if/for/while.

svn path=/trunk/; revision=66527
2015-03-01 17:59:51 +00:00
Timo Kreuzer
5e781d44e0 [WIN32K]
Get rid of our old cursoricon implementation. Rename cursoricon_new.c to cursoricon.c and remove all traces of NEW_CURSORICON

svn path=/trunk/; revision=66526
2015-03-01 17:36:12 +00:00
Timo Kreuzer
400b4d9289 [NTOSKRNL]
Add some _SEH2_VOLATILE and a comment about memory barriers

svn path=/trunk/; revision=66525
2015-03-01 16:33:43 +00:00
Timo Kreuzer
b95eb87486 [NTOSKRNL]
Remove broken DbgBreakPoints

svn path=/trunk/; revision=66524
2015-03-01 16:30:58 +00:00
Eric Kohl
dc2aa925db [NETAPI32]
Implement the Directory Service Setup (dssetup) client interface.

svn path=/trunk/; revision=66523
2015-03-01 15:41:11 +00:00
Thomas Faber
bbe66391dc [NTDLL:LDR]
- Implement LdrSetDllManifestProber
CORE-6354 CORE-9298

svn path=/trunk/; revision=66522
2015-03-01 15:34:06 +00:00
Johannes Anderwald
bf6e7cd971 [STREAMCI]
- install driver's inf

svn path=/trunk/; revision=66521
2015-03-01 15:26:49 +00:00
Eric Kohl
a4ed9e2e4e [LSASRV]
Implement the Directory Service Setup (dssetup) server.

svn path=/trunk/; revision=66520
2015-03-01 15:21:23 +00:00
Johannes Anderwald
55af6547e4 [NTOS]
- plug leak in error case

svn path=/trunk/; revision=66519
2015-03-01 13:53:16 +00:00
Hermès Bélusca-Maïto
01dccc57d3 [CMD]
- Do not hardcode the length of the string arrays in the LoadString calls (use ARRAYSIZE instead)
- Localize the command prompt info line. CORE-9293 #resolve #comment I placed the string in the resource files so that you can now localize it!

svn path=/trunk/; revision=66518
2015-03-01 12:28:38 +00:00
Amine Khaldi
dbf228f1ed [OLE32] Export stubs for CoCancelCall, CoDisableCallCancellation and CoEnableCallCancellation. Brought to you by Radek Liška. CORE-9298
svn path=/trunk/; revision=66517
2015-03-01 11:55:56 +00:00
Colin Finck
65b4da13f4 [ROSAUTOTEST]
- Finish a test run in the database when all tests have successfully been run. This got lost during the C++ rewrite of rosautotest in r40147.
- Don't spam the logs with useless OK messages. Only report the web service response if an error occurred.

svn path=/trunk/; revision=66516
2015-03-01 11:19:30 +00:00
Amine Khaldi
f268fadf4a [WS2_32] Improve exports and make them match native. CORE-8174
svn path=/trunk/; revision=66515
2015-03-01 11:04:03 +00:00
Cameron Gutman
e7607f493e [NDIS]
- Fix a bugcheck caused when drivers pend requests NDIS-internal requests issued during initialization
- Fixes Dell 1390 WLAN card (currently scanning via wlanconf isn't working, but connecting via SSID works)

svn path=/trunk/; revision=66514
2015-03-01 10:43:12 +00:00
Christoph von Wittich
d607b14920 [NDIS]
support REG_DWORD in NdisReadConfiguration
CORE-8046
  

svn path=/trunk/; revision=66513
2015-03-01 10:15:50 +00:00
Cameron Gutman
23eb1ea1e7 [NDIS]
- Always call MiniportISR if the interrupt is shared
- Call MiniportHandleInterrupt even if MiniportInitialize is running
- This commit and r66511 fix the Broadcom 57XX NIC (CORE-9295)

svn path=/trunk/; revision=66512
2015-03-01 08:11:53 +00:00
Cameron Gutman
44ccc12ac6 [PCI]
- Handle 64-bit PCI base address registers (BARs)
- Fix maximum address in resource requirements for 20-bit resources
- Fix flags on memory and I/O port resources
[NTOS]
- Fix handling of 64-bit resources

svn path=/trunk/; revision=66511
2015-03-01 07:52:32 +00:00
Thomas Faber
dd703eff88 [NETSHELL]
- Use WINE_REGISTRY resource type for resource registered with __wine_register_resources
CORE-9291 #resolve

svn path=/trunk/; revision=66510
2015-03-01 05:57:09 +00:00
Hermès Bélusca-Maïto
b8d2976462 [WS2_32]: Export GetAddrInfoW (which is still a stub) and FreeAddrInfoW. Should make Lync happier (but since GetAddrInfo is a stub, maybe not so happy ^^).
CORE-9287 #resolve

svn path=/trunk/; revision=66509
2015-03-01 00:58:31 +00:00
Hermès Bélusca-Maïto
5f9629166d [KBSWITCH]
Add keyboard switcher to startup, per-user. Since we currently do not support expandable string values for shell run startup, just use a normal string. Also there's currently a bug in our explorer that makes the icon of kbswitch not appearing when it is launched at startup.
See CORE-6787 for more information.

svn path=/trunk/; revision=66508
2015-03-01 00:28:17 +00:00
Hermès Bélusca-Maïto
0107779ca0 [HELP]: Fix console output for languages using non-latin characters. Patch by Vort.
CORE-7409 #resolve #comment Fixed, thanks!

svn path=/trunk/; revision=66507
2015-02-28 23:50:01 +00:00
Thomas Faber
99126ff14b [ROSAUTOTEST]
- Disable error dialogs unless running in interactive mode
ONLINE-441

svn path=/trunk/; revision=66506
2015-02-28 21:29:44 +00:00
Sylvain Petreolle
1d174e03c2 [NTDLL/LDR]
LdrpInitializeProcess:
Don't use NtLdrEntry to initialize LdrpImageEntry.
It is overwritten afterwards to initialize the real NtLdrEntry.


svn path=/trunk/; revision=66505
2015-02-28 21:23:07 +00:00
Thomas Faber
b3777ffecc [ROSAUTOTEST]
- Continue the testing process in case a test fails to execute
ONLINE-441

svn path=/trunk/; revision=66504
2015-02-28 21:12:25 +00:00
Thomas Faber
5dfd2fc11e [CPPRT]
- Implement __CxxFrameHandler3 as a wrapper around __CxxFrameHandler that translates VC8-style function exception descriptions to VC7-style. This is necessary to make C++ exceptions work on Windows Server 2003, because msvcrt!__CxxFrameHandler does not support VC8 descriptors there.
CORE-9290 #resolve

svn path=/trunk/; revision=66503
2015-02-28 21:03:04 +00:00
Hermès Bélusca-Maïto
38ecef1f2b [MSTSC]
Update MSTSC with latest (1.8.3) rdesktop version.
Patch by 'hater', for more details see CORE-9013 #resolve #comment Committed, thanks!

svn path=/trunk/; revision=66502
2015-02-28 20:28:09 +00:00
Amine Khaldi
014d37e58e [XDK] Addendum to r66499.
svn path=/trunk/; revision=66501
2015-02-28 16:00:09 +00:00
Amine Khaldi
8257e43a23 [KERNEL32_VISTA] Add and export InitOnceExecuteOnce(). CORE-9246
svn path=/trunk/; revision=66500
2015-02-28 15:46:43 +00:00
Amine Khaldi
bf1e0d3a4a [PSDK] Add missing RTL_RUN_ONCE_INIT, RTL_RUN_ONCE_INIT_FN, PRTL_RUN_ONCE_INIT_FN and RtlRunOnceComplete() definitions.
svn path=/trunk/; revision=66499
2015-02-28 15:41:27 +00:00
Hermès Bélusca-Maïto
a492e11380 [SVCHOST]: Delay-load netapi32 and ole32 (they will be loaded only if needed).
[WIN32K]: Fix cursor check (in few corner cases SYSTEMCUR(ARROW) happens to be NULL, when some programs -- ole32 -- wants to create windows while there is no graphics initialized yet). James, can you investigate?

svn path=/trunk/; revision=66498
2015-02-28 15:33:26 +00:00
Amine Khaldi
eef5ed99c0 [PSDK] Add missing INIT_ONCE_STATIC_INIT and InitOnceExecuteOnce() definitions.
svn path=/trunk/; revision=66497
2015-02-28 14:34:18 +00:00
Amine Khaldi
383d18186d [PSDK] Update COWAIT_FLAGS.
svn path=/trunk/; revision=66496
2015-02-28 14:06:40 +00:00
Amine Khaldi
fb0428980a [DPLAYX_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66495
2015-02-28 11:57:37 +00:00
Amine Khaldi
572558396d [DPLAYX] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66494
2015-02-28 11:57:17 +00:00
Amine Khaldi
cf10f6f049 [BOOTDATA/HIVESFT] Add DirectPlay service providers registry entries. CORE-9285
svn path=/trunk/; revision=66493
2015-02-28 11:56:36 +00:00
Johannes Anderwald
02e6218232 [STREAMCI]
- minor changes

svn path=/trunk/; revision=66492
2015-02-28 11:28:06 +00:00
Amine Khaldi
dd6ea04003 [DMUSIC] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66491
2015-02-28 11:21:27 +00:00
Amine Khaldi
5b09d5a99c [D3DX9_*] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66490
2015-02-28 11:17:10 +00:00
Amine Khaldi
b77d71098d [INCLUDE/WINE] Attempt to please the...
svn path=/trunk/; revision=66489
2015-02-28 10:35:08 +00:00
Amine Khaldi
3bec612279 [D3D8][D3D9][DDRAW][WINED3D] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66488
2015-02-28 10:18:41 +00:00
Amine Khaldi
c7a1e940d7 [DXGI] Add missing config.h include.
svn path=/trunk/; revision=66487
2015-02-28 10:17:21 +00:00
Amine Khaldi
d80ef97368 [INCLUDE/WINE] Update rbtree.h. CORE-9246
svn path=/trunk/; revision=66486
2015-02-28 10:15:41 +00:00
Amine Khaldi
7eb3fcf1d5 [NETSHELL] Simplify registration by using an rgs file. Brought to you by Giannis Adamopoulos. CORE-9276
svn path=/trunk/; revision=66485
2015-02-28 10:11:51 +00:00
Amine Khaldi
1a045cb4b3 [CMAKE] Just check for ReactOS in CMake version for PCH, not a specific version.
svn path=/trunk/; revision=66484
2015-02-28 09:59:39 +00:00
Johannes Anderwald
1b229a4827 [USBCCGP]
- reset interface count before loop
- add extra checks

svn path=/trunk/; revision=66483
2015-02-28 09:48:16 +00:00
Thomas Faber
7a357f830c [ROSAUTOTEST]
- Avoid double-close of pipe handles

svn path=/trunk/; revision=66482
2015-02-28 06:56:56 +00:00
Colin Finck
8d14ace200 [ROSAUTOTEST]
- Check the environment variable ROSAUTOTEST_DIR for an alternative path to the test executables. Otherwise use the default %windir%\bin
- Update the URL of the web service

svn path=/trunk/; revision=66481
2015-02-28 02:39:14 +00:00
Colin Finck
d3ee77adf9 [CMAKE]
Use the STRING(timestamp ...) command introduced in CMake 2.8.11 to get rid of our today macro and in particular the wmic dependency.
wmic requires administrator privileges on NT 5.x

svn path=/trunk/; revision=66480
2015-02-28 00:36:49 +00:00
Thomas Faber
49bb368ddc [KMTESTS]
- Add a test showing RtlUpcaseUnicodeString behavior with zero-length strings
- Run all test cases against FsRtlIsNameInExpressionTest on checked builds, only the Dbcs version asserts
CORE-9254

svn path=/trunk/; revision=66479
2015-02-27 22:42:35 +00:00
Thomas Faber
b9809e6704 [CDFS]
- Handle errors from CcInitializeCacheMap and CcCopyRead
CORE-6501

svn path=/trunk/; revision=66478
2015-02-27 21:30:09 +00:00
Thomas Faber
33d9e81156 [CDFS]
- Do not touch Irp after handing it off to FsRtlNotifyFullChangeDirectory
CORE-8776 CORE-9274 #resolve

svn path=/trunk/; revision=66477
2015-02-27 12:39:27 +00:00
Hermès Bélusca-Maïto
840282e4d3 [BUGCODES]: Add bugcheck 0xF7 DRIVER_OVERRAN_STACK_BUFFER (that encountered while debugging Windows), with description coming from what windbg gave to me.
svn path=/trunk/; revision=66476
2015-02-27 01:59:17 +00:00
Hermès Bélusca-Maïto
2fe77c41bd [NTOS]
- Check for command line validity in some places.
- Correctly set the number of bitmap resources. Spotted by Thomas. CORE-6781

svn path=/trunk/; revision=66475
2015-02-27 01:39:49 +00:00
Thomas Faber
74900e380b [TASKMGR]
- Add missing break that causes stack corruption

svn path=/trunk/; revision=66474
2015-02-27 00:08:26 +00:00
Giannis Adamopoulos
714369041b [BROWSEUI]
- Moce CAutoComplete from shell32 to browseui where it belongs

svn path=/trunk/; revision=66473
2015-02-26 18:44:34 +00:00
Christoph von Wittich
dc9f351bfc [TASKMGR]
fix keyboard navigation for the tabcontrol
See issue 4245 for more details.

svn path=/trunk/; revision=66472
2015-02-26 16:16:36 +00:00
Christoph von Wittich
329f3e0d7f [PSDK]
Update NETINFOSTRUCT, PERF_COUNTER_DEFINITION and PERF_OBJECT_TYPE structures
remove packing from winwlx.h

svn path=/trunk/; revision=66471
2015-02-26 15:45:01 +00:00
Christoph von Wittich
3c1dc3355c [PSDK]
fix some AMD64 specific issues (structure alignment, 32 Bit pointer)

svn path=/trunk/; revision=66470
2015-02-26 14:43:22 +00:00
Christoph von Wittich
b00d7d80c5 [PSDK]
Fix IMAGEHLP_DEFERRED_SYMBOL_LOAD structure in imagehlp.h to match definition in dbghelp.h

svn path=/trunk/; revision=66469
2015-02-26 13:03:33 +00:00
Christoph von Wittich
a9221aa730 [PSDK]
Update SECURITY_LOGON_SESSION_DATA structure
add LSA_LAST_INTER_LOGON_INFO structure

svn path=/trunk/; revision=66468
2015-02-26 09:42:45 +00:00
Amine Khaldi
591e1443a1 [PSDK] Update SERVER_INFO_598 structure.
svn path=/trunk/; revision=66467
2015-02-26 09:29:26 +00:00
Thomas Faber
04bcefa076 [USER32_WINETEST]
- Apply a different hack to make Jim happy.
- If you revert any of this and your changes break tests on Windows, I will revert your revert.

svn path=/trunk/; revision=66466
2015-02-26 09:25:58 +00:00
Amine Khaldi
f63b100488 [USER32_WINETEST] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66465
2015-02-26 09:05:15 +00:00
James Tabor
07f05e1c23 [User32_WINETEST]
- Move test_SetFocus first as it is done originally. Refer to read past wine CVS logs for the reason.

svn path=/trunk/; revision=66464
2015-02-26 08:38:00 +00:00
Thomas Faber
888df95a50 [NTOS:CM]
- Addendum to r66462: don't forget to check buffer length
CORE-9267

svn path=/trunk/; revision=66463
2015-02-26 08:04:03 +00:00
Thomas Faber
2e9b11e0ea [NTOS:CM]
- Ignore multiple consecutive backslashes in CmpGetNextName
CORE-9267 #resolve

svn path=/trunk/; revision=66462
2015-02-26 03:17:17 +00:00
Hermès Bélusca-Maïto
a2803cecfc [NTOS]
- Use a more standard name for the cursor position headless command structure.
- Remove the useless SysThreadCreated variable.

- Implement the remaining headless support in inbv functions, dealing with text colour (on windows, always set white text on black background). I added an extra feature (disabled by default) in case you want to get colourful headless support.
- Disable all code related to displaying different logos for different SKUs since up to now ReactOS doesn't have Storage or Cluster flavours, but keep it for reference in case somebody needs it. The resource IDs are still there.
- Disable all code related to rotating progress bar (à la XP) since it is not really implemented in ReactOS at the moment.
CORE-6781

svn path=/trunk/; revision=66461
2015-02-26 01:59:05 +00:00
Hermès Bélusca-Maïto
b0c1753de2 [NTOS]
Implement headless terminal commands:
* HeadlessCmdClearToEndOfDisplay
* HeadlessCmdClearToEndOfLine
* HeadlessCmdDisplayAttributesOff
* HeadlessCmdDisplayInverseVideo
* HeadlessCmdSetColor
* HeadlessCmdPositionCursor

svn path=/trunk/; revision=66460
2015-02-26 00:40:25 +00:00
Eric Kohl
af0a104d59 [INCLUDE]
wkssvc.idl: Add NetrWkstaUserGetInfo and NetrWkstaUserSetInfo definitions based on the Samba wkssvc.idl and MSDN.

[NETAPI32]
- Implement NetWkstaUserGetInfo and NetWkstaUserSetInfo.
- Add some debug output.

[WKSSVC]
Add NetrWkstaUserGetInfo and NetrWkstaUserSetInfo stubs.
CORE-9248

svn path=/trunk/; revision=66459
2015-02-25 22:11:41 +00:00
Giannis Adamopoulos
e52e391e68 fix build. I forgot this file
svn path=/trunk/; revision=66458
2015-02-25 20:04:53 +00:00
Giannis Adamopoulos
420ed9cda0 [USER32]
- button.c: Use NtUserAlterWindowStyle where wine uses WIN_SetStyle (usage and parameters were confirmed with windbg)

[NTUSER]
- Implement NtUserAlterWindowStyle.

Fixes remaining failures in user32:msg_controls test.

svn path=/trunk/; revision=66457
2015-02-25 20:02:10 +00:00
Thomas Faber
4ad9239209 [USER32_WINETEST]
- Apply hacks to make the tests succeed on Windows

svn path=/trunk/; revision=66456
2015-02-25 17:31:53 +00:00
Thomas Faber
8e610dc42c [COM_APITEST]
- Add some more interfaces

svn path=/trunk/; revision=66455
2015-02-25 16:22:26 +00:00
Giannis Adamopoulos
e657208f02 [USER32_WINETEST]
- Split user32:msg test to 14 separate tests
- The original test consisted of more than 14k lines of code

svn path=/trunk/; revision=66454
2015-02-25 15:55:57 +00:00
Thomas Faber
4c25d9683c [COM_APITEST]
- Add some more interfaces
- Add CLSID_CDBurn

svn path=/trunk/; revision=66453
2015-02-25 15:00:24 +00:00
James Tabor
4a69037878 [NtUser]
- Fix API GetDCEx tests! Dedicated to the great work by Timo Kreuzer.
- This uncovered a loop flaw, witch passed on any DCE last accessed.

svn path=/trunk/; revision=66452
2015-02-25 13:25:57 +00:00
Thomas Faber
d733548fb4 [DESK.CPL]
- Don't convert the selected wallpaper if it is already a bitmap. Patch by Ricardo Hanke.
CORE-8802 #resolve

svn path=/trunk/; revision=66451
2015-02-25 13:24:13 +00:00
Hermès Bélusca-Maïto
2aae46eafa [CPLS]: Add the console CPL to the control panel.
svn path=/trunk/; revision=66450
2015-02-25 13:07:44 +00:00
Thomas Faber
6160cfa603 [USER32]
- In MsgiUnicodeToAnsiMessage, use a single contiguous buffer for CREATESTRUCTA and its strings. This allows applications to modify the structure without ill effects
- Don't return the address of a stack structure in MsgiAnsiToUnicodeMessage
CORE-8777 #resolve

svn path=/trunk/; revision=66449
2015-02-25 12:24:38 +00:00
Thomas Faber
ee88b1c9f3 [WIN32K:NTUSER]
- Store string system parameter settings null-terminated
CORE-8653 #resolve

svn path=/trunk/; revision=66448
2015-02-25 09:12:56 +00:00
James Tabor
72c5a3a810 [NtUser]
- Fix wine Msg test_SetActiveWindow with six remaining.

svn path=/trunk/; revision=66447
2015-02-25 04:37:56 +00:00
Giannis Adamopoulos
3b79ee9cb8 [IEXPLORE]
- Set http://www.reactos.org as the default homepage.

[BOOTDATA]
- Remove settings that are now set by iexplore.inf

svn path=/trunk/; revision=66446
2015-02-25 01:20:06 +00:00
Giannis Adamopoulos
2c1f1d8d60 [IEXPLORE]
- Contrary to wine we store our version info with utf16 (like windows do). Fix checking for native internet explorer.
- Now our iexplore.inf is installed.

svn path=/trunk/; revision=66445
2015-02-25 01:02:03 +00:00
Timo Kreuzer
42017a3c83 [USER32_APITEST]
Add some test for GetDCEx that highlight the ridiculous implementation of owned and class DCs.

svn path=/trunk/; revision=66444
2015-02-24 23:15:08 +00:00
Eric Kohl
10f7d12a0b [NETAPI32]
Fix indentation. No code changes!

svn path=/trunk/; revision=66443
2015-02-24 22:58:01 +00:00
Eric Kohl
3bac08f755 [NETAPI32]
DsRoleGetPrimaryDomainInformation: Implement stubs for the DsRoleUpgradeStatus and DsRoleOperationState cases.

svn path=/trunk/; revision=66442
2015-02-24 22:50:55 +00:00
Eric Kohl
5d32abc29b [NETAPI32]
Implement the client side of NetWkstaSetInfo and NetWkstaUserEnum.

svn path=/trunk/; revision=66441
2015-02-24 22:15:58 +00:00
Thomas Faber
e6003a5b4e [COM_APITEST]
- Add IID_ITranslateShellChangeNotify, the answer to CORE-8844 - found by David
- Fix some non-constant offsets
- Re-alphabetize the lists

svn path=/trunk/; revision=66440
2015-02-24 12:52:18 +00:00
Christoph von Wittich
3d2fd7db25 [PSDK]
add missing members to DISK_PERFORMANCE struct

svn path=/trunk/; revision=66439
2015-02-24 11:04:02 +00:00
Christoph von Wittich
9f260fcfef [PSDK]
fix NOTIFYICONDATA definition

svn path=/trunk/; revision=66438
2015-02-24 10:21:10 +00:00
Daniel Reimer
e596272631 [NEWDEV]
German update by GonzoMD
Some tidy up in the *seemslikebuttonsthrownintoaguieditor* coordinates

svn path=/trunk/; revision=66437
2015-02-23 23:14:51 +00:00
Eric Kohl
e71c25046e [NETAPI32]
CORE-9248
Comment out NetGetJoinInformation and NetWkstaGetInfo in wksta.c and reimplement them as RPC client  functions to the workstation service in wksta_new.c.

svn path=/trunk/; revision=66436
2015-02-23 22:55:43 +00:00
Amine Khaldi
075ebb4c7b [DINPUT] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66435
2015-02-23 20:20:45 +00:00
Amine Khaldi
23bc579d1a [D3DXOF] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66434
2015-02-23 19:47:46 +00:00
Thomas Faber
c385450c93 [NTDLL:LDR]
- Apply OffsetModuleName to the first import entry, not the current one in LdrpUpdateLoadCount3. Fixes missing reference updates on dependency-loaded DLLs.
CORE-5125 CORE-7127 #resolve

svn path=/trunk/; revision=66433
2015-02-23 19:03:08 +00:00
Amine Khaldi
558bb053a2 [D3DX9_30] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66432
2015-02-23 19:01:22 +00:00
Amine Khaldi
d207a7e9cb [PSDK] Apply our header formatting style on windns.h. NFC.
svn path=/trunk/; revision=66431
2015-02-23 18:54:14 +00:00
Amine Khaldi
e9c44033b2 [PSDK] Use proper packing for some structures.
svn path=/trunk/; revision=66430
2015-02-23 18:31:46 +00:00
David Quintana
8a7bac06a7 [NTOBJSHEX]
* Missed these sizeof().
* A tiny typo in the comments.
CORE-9244

svn path=/trunk/; revision=66429
2015-02-23 18:14:39 +00:00
Amine Khaldi
f0667d8ccd [PSDK] Update DNS_HEADER structure.
svn path=/trunk/; revision=66428
2015-02-23 18:13:29 +00:00
Christoph von Wittich
3b264430a4 [PSDK]
add missing member bFullscreenSupported to _CONSOLE_SCREEN_BUFFER_INFOEX

svn path=/trunk/; revision=66427
2015-02-23 17:31:27 +00:00
David Quintana
a2605cb0d4 [NTOBJSHEX]
* Fix all the size calculations broken by r66425.
* Fix subfolder navigation (in windows).
* Fix enumeration skipping the last item.
* Add the beginning of a registry folder implementation. It doesn't display all data types yet, and it doesn't support editing or searching.
CORE-9244

svn path=/trunk/; revision=66426
2015-02-23 17:13:32 +00:00
Hermès Bélusca-Maïto
b7138a87f6 [NTOBJSHEX]
- Fix headers.
- Fix MSVC warning C4200: nonstandard extension used : zero-sized array in struct/union.

[PSDK]
Fix MSVC warning C4200: nonstandard extension used : zero-sized array in struct/union. Note to Wine synchronizers and PSDK maintainers: those MIB* structures should go into a tcpmib.h header instead.

svn path=/trunk/; revision=66425
2015-02-23 16:28:13 +00:00
Thomas Faber
9a5316a185 [IDL]
- Fix duplicate attribute warning

svn path=/trunk/; revision=66424
2015-02-23 15:58:49 +00:00
Thomas Faber
c1a4ad1da6 [WBEMPROX]
- Implement Win32_ComputerSystem.UserName
- Fix buffer size in get_computername
CORE-8678 #resolve

svn path=/trunk/; revision=66423
2015-02-23 15:25:29 +00:00
Giannis Adamopoulos
d084f43c43 [COM_APITEST]
- Test the interfaces of CLSID_SharedTaskScheduler and CLSID_BackgroundTaskScheduler

svn path=/trunk/; revision=66422
2015-02-23 13:49:43 +00:00
Giannis Adamopoulos
1e63581c43 [HEADERS]
- Define CLSID_BackgroundTaskScheduler and CLSID_SharedTaskScheduler
- Properly define IShellTaskScheduler and IID_IShellTaskScheduler

svn path=/trunk/; revision=66421
2015-02-23 13:43:51 +00:00
Amine Khaldi
b3871ae66b [D3DRM] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66420
2015-02-23 11:03:25 +00:00
Hermès Bélusca-Maïto
765910a9dd [NTOS]: Recenter the logos on screen and improve few of them.
svn path=/trunk/; revision=66419
2015-02-23 02:42:58 +00:00
Giannis Adamopoulos
8370f15813 [COMCTL32]
- Implement ILS_SATURATE in our image list implementation
- Use ILS_SATURATE when showing icons of disabled buttons in the toolbar

Patch Ismael Ferreras Morezuelas aka swyter
CORE-8916

svn path=/trunk/; revision=66418
2015-02-22 20:59:08 +00:00
David Quintana
1990bd1af2 [NTOBJSHEX]
* Fix some issues spotted by Thomas Faber.

svn path=/trunk/; revision=66417
2015-02-22 20:18:48 +00:00
Giannis Adamopoulos
c32b26e981 [COMCTL32]
- Rebar: Fix drawing dividers between bands broken in r66402

svn path=/trunk/; revision=66416
2015-02-22 19:44:34 +00:00
Amine Khaldi
718e01f661 [D3DCOMPILER_43] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66415
2015-02-22 18:53:39 +00:00
David Quintana
cdd19990f6 [RSHELL]
[NBTSHELL]
[NTOBJSHEX]
* Fix prototypes of GetAttributesOf and GetUIObjectOf to conform with the specialized IDLIST subtypes.

[PSDK]
* Fix the declaration of PCITEMID_CHILD to make the "const" attribute affect the contents, and not the pointers themselves.

In preparation for whenever CORE-8441 happens.

svn path=/trunk/; revision=66414
2015-02-22 18:26:58 +00:00
Johannes Anderwald
a91859ea46 [NEWDEV]
- fix hardcoded leftover spotted by ThFabba

svn path=/trunk/; revision=66413
2015-02-22 17:55:23 +00:00
Johannes Anderwald
1726257036 [NEWDEV]
- fix 'first hardware page' not shown bug

svn path=/trunk/; revision=66412
2015-02-22 17:53:17 +00:00
Timo Kreuzer
264915f48d [NTVDM]
- Fix BINARY_TO_BCD and BCD_TO_BINARY
- Fix MSVC warnings

svn path=/trunk/; revision=66411
2015-02-22 16:31:58 +00:00
Sylvain Petreolle
c70e11ab21 [BROWSEUI]
update Russian Translation by Akhlamov Petr
CORE-7981 #resolve #comment Committed.

svn path=/trunk/; revision=66410
2015-02-22 16:25:23 +00:00
Thomas Faber
789b0f121b [SPOOLSV]
- The Spooler service is not pausable. Fixes some wbemprox:query tests

svn path=/trunk/; revision=66409
2015-02-22 16:25:20 +00:00
Timo Kreuzer
852b44c786 [PSDK]
Improve / fix range constants in limits.h and intsafe.h, get rid of stuff that shouldn't be there.

svn path=/trunk/; revision=66408
2015-02-22 16:05:51 +00:00
Amine Khaldi
a83b35cc4e [WBEMPROX] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66407
2015-02-22 15:46:17 +00:00
Amine Khaldi
b93f8ae429 [WS2_32] Stub and export GetNameInfoW. CORE-9249
svn path=/trunk/; revision=66406
2015-02-22 15:37:44 +00:00
Eric Kohl
993dffa548 [WKSSVC]
Add the Workstation service.
CORE-9248

svn path=/trunk/; revision=66405
2015-02-22 15:27:35 +00:00
Amine Khaldi
1e0744ebaf [UNICODE] Sync with Wine Staging 1.7.37. CORE-9246
svn path=/trunk/; revision=66404
2015-02-22 15:05:52 +00:00
Eric Kohl
7a09cd28b8 [INCLUDE]
CORE-9248
Add the RPC interface difinition for the Workstation service.

svn path=/trunk/; revision=66403
2015-02-22 14:36:29 +00:00
Giannis Adamopoulos
618837996d [COMCTL32]
- Rebar: paint the area that is not covered by the bands. This is a v6 feature and fixes the ugly non-painted rectangle in the taskbar.

svn path=/trunk/; revision=66402
2015-02-22 13:18:41 +00:00
Johannes Anderwald
68f04beae4 [KS]
- dont access pin descriptor beyond size
- found with special pool

svn path=/trunk/; revision=66401
2015-02-22 10:16:46 +00:00
David Quintana
167a0c4414 Addendum to r66396: Register the shell extension during installation.
svn path=/trunk/; revision=66400
2015-02-22 01:20:54 +00:00
Daniel Reimer
8956c41015 [SHELL32]
German translation update

svn path=/trunk/; revision=66399
2015-02-21 23:39:00 +00:00
Hermès Bélusca-Maïto
acf5c98c36 [VERSION]
- Revision string without the dash. That allows to possibly use a different separator.
- Just use the ROS revision number in the kernel SOS banner, instead of using a convoluted computation that overflows when the revision number is >= 65536. CORE-8877 #resolve #comment Fixed in r66398, thanks!

svn path=/trunk/; revision=66398
2015-02-21 22:38:22 +00:00
David Quintana
391daff8d0 Revert a change that never happened, and apply it to the right file. ;P
svn path=/trunk/; revision=66397
2015-02-21 21:26:18 +00:00
David Quintana
ea2b914576 [NTOBJSHEX]
* Introduce a shell extension that allows the user to browse the NT Object namespace from within the shell.
CORE-9243 #resolve

svn path=/trunk/; revision=66396
2015-02-21 21:21:02 +00:00
Johannes Anderwald
988950d2f3 [INF]
- add swenum to critical device database

svn path=/trunk/; revision=66395
2015-02-21 17:54:42 +00:00
Thomas Faber
9c057aef6e [DESK.CPL]
- Load wallpapers using GDI+ and convert them to bitmap format as needed. We now support PNG and JPEG (and more) wallpapers! Patch by Ricardo Hanke, small modifications by me.
CORE-8802 #resolve

svn path=/trunk/; revision=66394
2015-02-21 17:47:57 +00:00
Timo Kreuzer
e299c2dfe9 [WIN32K]
Fix release build

svn path=/trunk/; revision=66393
2015-02-21 17:28:37 +00:00
Amine Khaldi
b2df4c6fc5 [SHELL32] Addendum to r66383. CORE-4476
svn path=/trunk/; revision=66392
2015-02-21 17:27:41 +00:00
Thomas Faber
69c3ed5de6 [LIBJPEG]
- Restore the ros-diff lost in a sync. Fixes libjpeg.dll exports on MSVC builds.
CORE-9242 #resolve

svn path=/trunk/; revision=66391
2015-02-21 17:18:38 +00:00
Thomas Faber
50468701cf [STREAMCI]
- Revert r66381 since the build failure was the builder's fault, not the code's

svn path=/trunk/; revision=66390
2015-02-21 15:07:28 +00:00
Amine Khaldi
34c7987e0d [CMAKE] Move ccache related handling to the gcc set.
svn path=/trunk/; revision=66389
2015-02-21 14:40:14 +00:00
Giannis Adamopoulos
b5ea02031c [SHELL32]
- Fix crash during shell32:shlfileop test.
CORE-4476

svn path=/trunk/; revision=66388
2015-02-21 14:36:22 +00:00
Amine Khaldi
8c7c00cbc2 * Addendum to r66386.
svn path=/trunk/; revision=66387
2015-02-21 14:34:42 +00:00
Sylvain Petreolle
661bad6b05 Disable PCH use in ccache builds.
svn path=/trunk/; revision=66386
2015-02-21 14:24:19 +00:00
Eric Kohl
1a1b7a15c4 [NTOSKRNL]
NtQueryInformationFile: Implement the FileAllInformation case according to 'File System Internals' page 485.

svn path=/trunk/; revision=66385
2015-02-21 14:19:16 +00:00
Giannis Adamopoulos
6b6f74ec68 [SHELL32]
- Fix build. Also note that the previous patch was from Huw Campbell.

svn path=/trunk/; revision=66384
2015-02-21 12:59:42 +00:00
Giannis Adamopoulos
194015ecae [SHELL32]
- Implement progress dialogs for SHFileOperation
- Patch by Hwu Davies
CORE-4476

svn path=/trunk/; revision=66383
2015-02-21 12:52:58 +00:00
Thomas Faber
af1e5ea7ad [KERNEL32]
- BasepGetModuleHandleExW returns BOOLEAN, not NTSTATUS. Treat it as such.
- Always set last error code on failure in BasepGetModuleHandleExW.
CORE-9241 #resolve

svn path=/trunk/; revision=66382
2015-02-21 12:24:19 +00:00
Johannes Anderwald
fc3d9599a4 [STREAMCI]
- hackfix build #2

svn path=/trunk/; revision=66381
2015-02-21 10:34:13 +00:00
Johannes Anderwald
d50415a948 [PSDK]
- fix build

svn path=/trunk/; revision=66380
2015-02-21 10:14:00 +00:00
Johannes Anderwald
ac5ea38615 [STREAMCI]
- start implement streaming device class installer

svn path=/trunk/; revision=66379
2015-02-21 10:09:36 +00:00
Hermès Bélusca-Maïto
695876f5d8 [NTOS]
- Mispelling + whitespace fixes.
- Move the finalization of the boot logo display *before* we enable strings to be displayed (as on Windows), but *after* having increased the progress bar to 100% (contrary to Windows), so that we can display the progress bar at 100% without any problem and then do the correct transition:
  * either GUI splash-screen --> text-mode emulation console with product name in console header + footer (aka. SOS mode)
  * or SOS mode --> text-mode emulation without any graphics.
  Since it is done before starting SMSS, we can correctly display the strings it may output (or start other native apps) without fearing that after 5 seconds, the screen clears up in front of you.
CORE-9112 #resolve #comment Fixed in r66378, thanks for reporting!

svn path=/trunk/; revision=66378
2015-02-21 01:25:47 +00:00
Hermès Bélusca-Maïto
b52759fd26 Fix MessageBox parameter value (handles ~= pointers --> NULL)
svn path=/trunk/; revision=66377
2015-02-20 23:52:48 +00:00
Hermès Bélusca-Maïto
83343dbae2 [MC files]
CORE-3655 #comment Hackfix the fact that when being compiled with GCC on Linux, compiled messages have their endlines encoded with LF instead of with CR-LF as required by Windows compatibility. This should be normally fixed in windmc (the GCC/binutils message compiler); I've enough complained about that, but not directly to GCC/binutils team. Until they fix their tool, I ask SVN to always store the .mc files with CR-LF endlines. This should "fix" the problem. Suggestion by Thomas Faber.

svn path=/trunk/; revision=66376
2015-02-20 23:36:23 +00:00
Hermès Bélusca-Maïto
5622302062 [SMSS]: Improve some dprints (that prints strings; sometimes they happen to print empty strings for unknown reasons so I need to really check whether they are empty or not); remove extra whitespace at the end of dprints. Initialize a variable.
svn path=/trunk/; revision=66375
2015-02-20 22:03:23 +00:00
Timo Kreuzer
ac84f94b5d [WIN32K]
Add back support for allocator stack backtraces for GDI objects and dump a list of BTs, when the GDI object table is exhausted. Disabled by default.

svn path=/trunk/; revision=66374
2015-02-20 21:25:10 +00:00
Hermès Bélusca-Maïto
e154160e2f [EXPLORER]: Activate Logoff command. Patch by Lee Schroeder plus extra modifs.
CORE-9104 #resolve

svn path=/trunk/; revision=66373
2015-02-20 20:08:52 +00:00
Hermès Bélusca-Maïto
f9b5ca3c79 Move explorer_old to the rosapps.
CORE-9198 #resolve

svn path=/trunk/; revision=66372
2015-02-20 14:54:05 +00:00
Giannis Adamopoulos
7910f9f2f0 [WIN32K][CONSRV]
- Silence a few more debug prints

svn path=/trunk/; revision=66371
2015-02-20 14:19:30 +00:00
Giannis Adamopoulos
0baafb6d87 [WIN32K]
- Silence several debug prints that spam the debug log for no reason

svn path=/trunk/; revision=66370
2015-02-20 13:42:22 +00:00
Thomas Faber
61021517a7 [NTOS:PS]
- In PspExitThread, correctly set the ZeroInit field of the message before calling LpcRequestPort (which would otherwise complain with STATUS_INVALID_PARAMETER and fail to send the message)
- In NtRegisterThreadTerminatePort, dereference the port object in case of failure, not a null pointer
CORE-9234 #resolve

svn path=/trunk/; revision=66369
2015-02-20 12:04:57 +00:00
Thomas Faber
bd97b31dbc [KERNEL32_APITEST]
- Use correct format specifier aka fix GCC build

svn path=/trunk/; revision=66368
2015-02-20 10:34:18 +00:00
Thomas Faber
93c0d33c18 [KERNEL32_APITEST]
- Add a test for process termination behavior. This shows that CreateProcess with CREATE_SUSPENDED followed by TerminateProcess causes a handle leak.
CORE-9234

svn path=/trunk/; revision=66367
2015-02-20 10:29:47 +00:00
Johannes Anderwald
963293b249 [PSDK]
- add dif function codes

svn path=/trunk/; revision=66366
2015-02-20 09:24:47 +00:00
Thomas Faber
5f07c07d64 [KERNEL32]
- Make BaseSetLastNTError return the converted Win32 error code. This will determine the upper 24 bits of EAX in functions that return BOOLEAN FALSE right after calling BaseSetLastNTError, e.g. Wow64EnableWow64FsRedirection. Fixes installers using WiX Toolset (e.g. VS2012 redist) on MSVC builds.
See http://wixtoolset.org/issues/4681/ for the WiX bug that causes this.
CORE-8010

svn path=/trunk/; revision=66365
2015-02-20 07:03:00 +00:00
James Tabor
25b96c6299 [Win32ss]
- Cleanup and remove unused code.

svn path=/trunk/; revision=66364
2015-02-20 06:24:04 +00:00
Hermès Bélusca-Maïto
b1c86da173 [SHORTCUTS]: Shortcut to regedit is to regedit, not to the NT 3.x compatibility stub!!
svn path=/trunk/; revision=66363
2015-02-20 02:09:28 +00:00
Hermès Bélusca-Maïto
10483c52fc Forgot this file ;)
svn path=/trunk/; revision=66362
2015-02-20 02:07:23 +00:00
Hermès Bélusca-Maïto
6d4a7022f5 [SHELL32]: Partial sync:
SHA-1: a08160680be1a3164e882fcc41504f115ba62f12
* shell32: Automatically expand CPL applet path string.
(Hermès Bélusca-Maïto)

svn path=/trunk/; revision=66361
2015-02-20 02:05:46 +00:00
Hermès Bélusca-Maïto
e1ba90be5b [FREELDR]: Code formatting; support drive numbers that can be also specified in particular in hexadecimal: 0x??? or in octal: 0??? (first character starts with '0' so it's OK).
svn path=/trunk/; revision=66360
2015-02-19 21:06:38 +00:00
Hermès Bélusca-Maïto
da54da3feb [WINSRV]: Initialize Context.QueryResult to a meaningful value by default. Spotted by Thomas.
CORE-9229 #resolve

svn path=/trunk/; revision=66359
2015-02-19 20:38:03 +00:00
Pierre Schweitzer
a4da8ab741 [KERNEL32]
OK, Thomas had to convince me that MAX_USHORT + MAX_USHORT + 0x400 + 0x6 cannot overflow an ULONG.
So remove useless check.
By Thomas :-)

svn path=/trunk/; revision=66358
2015-02-19 19:15:46 +00:00
Pierre Schweitzer
d0b90bd6bf [KERNEL32]
Remove trailing spaces.
Patch by Thomas

svn path=/trunk/; revision=66357
2015-02-19 19:10:07 +00:00
Pierre Schweitzer
becaec4f27 [KERNEL32]
Fix heap buffer overflow in case PendingFileRenameOperations already exists.
Spotted by Thomas

svn path=/trunk/; revision=66356
2015-02-19 19:05:56 +00:00
Pierre Schweitzer
5fa459dac2 [KERNEL32]
Fixx 64bits build.
Spotted by Thomas

svn path=/trunk/; revision=66355
2015-02-19 18:42:37 +00:00
Pierre Schweitzer
b8620eab1b [KERNEL32]
Don't pretend that ExceptionRecord.ExceptionInformation[2] is a pointer to a string in case of Delphi exception. This can lead to invalid pointer dereference in DbgPrint then.

For instance:
(../../dll/win32/kernel32/client/except.c:371) Delphi Exception at address: 50075885
(../../dll/win32/kernel32/client/except.c:372) Exception-Object: 00E885A8
(../../dll/win32/kernel32/client/except.c:373) Exception text: 2

svn path=/trunk/; revision=66354
2015-02-19 18:36:32 +00:00
Thomas Faber
b45c1ca3a8 [EXPLORER]
- Fix uninitialized variable use in CTaskSwitchWnd::OnContextMenu

svn path=/trunk/; revision=66353
2015-02-19 16:30:37 +00:00
Thomas Faber
888d828ea7 [PSDK]
- Fix packing for system restore point API types (STATEMGRSTATUS in particular). Fixes VC++ 2012 redist installer.
CORE-8010 #resolve

svn path=/trunk/; revision=66352
2015-02-19 15:42:33 +00:00
Thomas Faber
c845f97fbf [KMTESTS:RTL]
- Add some simple tests for RtlRaiseStatus to the RtlException test
- Add missing volatile in (disabled) stack overflow test that caused an infinite loop on GCC builds
CORE-8773

svn path=/trunk/; revision=66351
2015-02-19 12:55:57 +00:00
James Tabor
d6caab357b [NtUser]
- Fix wine msg test_SetParent tests. See CORE-7447. Show owned pop up code was added for later testing.

svn path=/trunk/; revision=66350
2015-02-19 02:03:53 +00:00
Jérôme Gardou
3bb981743c [CRYPT32]
- Addenratum to r64026: Merge the certificate stores for real.
CORE-5675 #resolve

svn path=/trunk/; revision=66349
2015-02-18 21:27:40 +00:00
Pierre Schweitzer
e8c27f3109 [ROSAUTOTESTS]
Remove redundant GetTickCount() call

svn path=/trunk/; revision=66348
2015-02-18 19:52:04 +00:00
Thomas Faber
e6c4261148 [GDI32_APITEST]
- Refactor EnumFontFamilies test to be more generic, and check for some common expected system fonts. This shows that EnumFontFamilies behaves correctly, but that we're missing the System font in the enumeration.
CORE-9222

svn path=/trunk/; revision=66347
2015-02-18 13:18:30 +00:00
Thomas Faber
4b1e3b1eba [MSXML3_WINETEST]
- Re-enable test_save
CORE-6738 ROSTESTS-82

svn path=/trunk/; revision=66346
2015-02-18 11:44:01 +00:00
Thomas Faber
8c6ef59bc5 [GDIPLUS_WINETESTS]
- Re-enable test_font_metrics, test_logfont and test_fontfamily.
CORE-6660
ROSTESTS-79 CORE-6643 #resolve
- Skip test_font_substitution instead.
ROSTESTS-154

svn path=/trunk/; revision=66345
2015-02-18 11:20:37 +00:00
Thomas Faber
39cc028410 [GDIPLUS_WINETEST]
- Re-enable test_string_functions
CORE-6659 ROSTESTS-78 #resolve

svn path=/trunk/; revision=66344
2015-02-18 10:50:00 +00:00
Thomas Faber
53651189db [WININET_WINETEST]
- Re-enable test_cert_struct in test_secure_connection
ROSTESTS-121 #resolve

svn path=/trunk/; revision=66343
2015-02-18 10:06:46 +00:00
Jérôme Gardou
fddcf61917 [WIN32SS/NTGDI]
- Reject bits data early in SetBitmapBits when it's clear that they can't fit in the destination bitmap.
Fixes ugly Office 2007 rulers showing garbage.

svn path=/trunk/; revision=66342
2015-02-17 20:41:51 +00:00
Jérôme Gardou
d40314e7dd [NTOS/SE]
- Properly dereference thread object in NtOpenThreadTokenEx

svn path=/trunk/; revision=66341
2015-02-17 20:41:47 +00:00
Jérôme Gardou
8b177cb83f [NTOS]
- Properly close handle thread when failing to start it.

svn path=/trunk/; revision=66340
2015-02-17 20:41:40 +00:00
Thomas Faber
b74ab8276c [PSDK]
- Move OFN_DONTADDTORECENT and OFN_ENABLEINCLUDENOTIFY to commdlg.h where they belong

svn path=/trunk/; revision=66339
2015-02-17 18:37:24 +00:00
Thomas Faber
db58f63ba6 [WMIUTILS]
- The dll belongs in system32\wbem; make it so. Spotted by Robert Naumann.
CORE-9212

svn path=/trunk/; revision=66338
2015-02-17 18:23:06 +00:00
Jérôme Gardou
c78bc820f6 [WS2_32]
- Do not free resources at process termination.
 - Free the provider catalog after the handle table, since the latter references the former.

svn path=/trunk/; revision=66337
2015-02-17 15:08:54 +00:00
Jérôme Gardou
52a5043b98 [RTL/DPH]
- Do not merge memory blocks if they don't belong to the same VM "region" (ie not allocated from the same NtAllocateVirtualMemory call)
Fixes failures of ZwProtectVirtualMemory calls.
Bugs see DPH rollin', they hatin'

svn path=/trunk/; revision=66336
2015-02-17 15:08:47 +00:00
Thomas Faber
ddaa717558 [WMIUTILS]
- Import from Wine 1.7.27 (or your choice of any later version)
CORE-9212 #resolve

svn path=/trunk/; revision=66335
2015-02-17 15:07:56 +00:00
Jérôme Gardou
51fd410d89 [NTOSKRNL/MM]
- MiIsEntireRangeCommitted: Ensure the PTE we are checking is really faulted in.
 - Prefer MiPteToPde and MiPdeToPte (which should really be called MiFirstPteInPde) instead of MiAddressToPte and MiPteToAddress
Fixes weird failed ASSERT in page fault handler when using DPH.

svn path=/trunk/; revision=66334
2015-02-17 14:19:05 +00:00
Thomas Faber
873109862d [EXPLORER]
- Load default application icon and display it in the taskbar for windows that have no icon. Fixes "GetIconInfo failed" debug prints all over the place (and looks prettier).
CORE-9211 #resolve

svn path=/trunk/; revision=66333
2015-02-17 12:59:22 +00:00
James Tabor
ec53fab6c4 [NtUser]
- Fix wine msg test_SetFocus tests. Use send message for WM_WINDOWPOSCHANGING. If nothing has been drawn and the no position changed bits set, set no Z order and no redraw. See CORE-7447.

svn path=/trunk/; revision=66332
2015-02-17 08:25:43 +00:00
Thomas Faber
9424c41250 [WIN32K:NTUSER]
- Remove unneeded casts, fix format specifiers, and clarify some logic in co_MsqSendMessage

svn path=/trunk/; revision=66331
2015-02-17 08:08:04 +00:00
James Tabor
d85dd86c4d [User32]
- Add missing wParam for hooks. See CORE-7447.

svn path=/trunk/; revision=66330
2015-02-17 06:42:27 +00:00
Jérôme Gardou
296b072782 [RSHELL]
- Fix use after free (and spanish style issues ;-) )

svn path=/trunk/; revision=66329
2015-02-16 22:40:15 +00:00
Jérôme Gardou
12ac60c6f7 [EXPLORER]
- Prperly initialize members in CStartMenu constructor.

svn path=/trunk/; revision=66328
2015-02-16 22:33:15 +00:00
Jérôme Gardou
b53f6e070e [RSHELL]
- Do not free invalid data.
See MSDN SHBindToParent documentation for details.

svn path=/trunk/; revision=66327
2015-02-16 22:33:08 +00:00
Jérôme Gardou
91ab921a3d [NTDLL_APITEST]
- Add tests showing windows behaviour in case of stack overflow.

svn path=/trunk/; revision=66326
2015-02-16 21:15:55 +00:00
Jérôme Gardou
03d126b2fa [NTDLL_APITEST]
- Add tests showing how NtAllocateVirtualMemory and NtQueryVirtualMemory work together

svn path=/trunk/; revision=66325
2015-02-16 21:15:27 +00:00
Jérôme Gardou
b9ea54f29a [KERNEL32]
- Fix mixed arguments.
CORE-9201 #resolve
CORE-9124 #comment Please retest

svn path=/trunk/; revision=66324
2015-02-16 21:13:36 +00:00
Jérôme Gardou
660ebacbe6 [KERNEL32]
Revert r64525 - Always allocate a guard page at the bottom of the stack.

svn path=/trunk/; revision=66323
2015-02-16 21:12:51 +00:00
Daniel Reimer
14cf90ba59 ... ANSI vs UTF-8... sorry
svn path=/trunk/; revision=66322
2015-02-16 20:44:12 +00:00
Daniel Reimer
06b792b5bf [SERVICES]
German translation & Small fix I think which should be right for English ^^

svn path=/trunk/; revision=66321
2015-02-16 20:27:29 +00:00
Thomas Faber
cc97feb5e1 [BOOTCDREGTEST]
- Add /n switch to rosautotest invocation to see how much of a difference it makes on testbot

svn path=/trunk/; revision=66320
2015-02-16 16:17:22 +00:00
Eric Kohl
723079bd61 [NTOSKRNL]
NtQueryInformationFile: Implement the FileModeInformation case according to 'File System Internals' page 485.

svn path=/trunk/; revision=66319
2015-02-16 15:33:34 +00:00
Thomas Faber
8e230698ba [ROSAUTOTEST]
- Add /n option to suppress console output. May or may not help to speed up testbot runs, but can't hurt to have in here.

svn path=/trunk/; revision=66318
2015-02-16 14:55:39 +00:00
Pierre Schweitzer
d78a21fe33 [WMISVC]
Silence a DPRINT

svn path=/trunk/; revision=66317
2015-02-16 13:40:13 +00:00
Thomas Faber
1ea34407b8 [ROSAUTOTEST]
- Abstract unidirectional anonymous pipes into a CPipe class
- Abstract a process with redirected output into a CPipedProcess class
- Use these abstractions to avoid polling for output from test processes. Instead, use blocking read operations to yield the CPU while waiting for data.
ROSTESTS-144 #resolve

svn path=/trunk/; revision=66316
2015-02-16 13:17:04 +00:00
Eric Kohl
52106a09f2 [SERVICES]
Remove unused prototype.

svn path=/trunk/; revision=66315
2015-02-16 11:52:43 +00:00
Eric Kohl
b34d3ab3cd [SERVICES]
Replace hard-coded strings by string resources.

svn path=/trunk/; revision=66314
2015-02-16 11:47:40 +00:00
Thomas Faber
5329a4681c [PSDK]
- Add missing OUT_SCREEN_OUTLINE_PRECIS, OUT_PS_ONLY_PRECIS & CLIP_DFA_DISABLE definitions aka fix build

svn path=/trunk/; revision=66313
2015-02-16 09:11:13 +00:00
Thomas Faber
fee9806390 [GDI32_WINETEST]
- Sync to Wine 1.7.36
- Properly disable test_dib_formats. ROSTESTS-152, CORE-5922
- Fix skip message in test_mono_bitmap not to point to a resolved bug. ROSTESTS-153, CORE-5922
- Re-enable font tests that were left skipped even though the associated bug is correctly marked as resolved. ROSTESTS-8

svn path=/trunk/; revision=66312
2015-02-16 09:06:45 +00:00
Thomas Faber
b7f3b58ad0 [USER32_WINETEST]
- Re-enable test_shell_window
ROSTESTS-23

svn path=/trunk/; revision=66311
2015-02-16 07:37:19 +00:00
James Tabor
0a97b2b39d [Win32ss]
- Fix wine msg:test_winevents.
- Fix global hooks while sending to same process different thread. Yes, interesting.
- Fix event hooks, use posting (faster) instead of sending. This fixed a problem while sending to the same thread.

svn path=/trunk/; revision=66310
2015-02-16 03:32:46 +00:00
James Tabor
2ff860c8f1 [NtUser]
- This fixes use after free linking in the message system. See CORE-9173. Dedicated to Thomas Faber.

svn path=/trunk/; revision=66309
2015-02-16 03:16:01 +00:00
Hermès Bélusca-Maïto
b4899bb982 [KERNEL32][NTUSER]: Shut up some dprints.
CORE-9186

svn path=/trunk/; revision=66308
2015-02-15 23:55:52 +00:00
Eric Kohl
6a71e26135 [NTOSKRNL]
NtQueryInformationFile: Implement FileAccessInformation and FileAlignmentInformation cases according to 'File System Internals' page 485.

svn path=/trunk/; revision=66307
2015-02-15 23:06:30 +00:00
Hermès Bélusca-Maïto
9d4dbeb5c9 [WINSRV]
- Part 2/2 of SrvLogon (see r66303): load the per-user shutdown timeouts.
- Retrieve those per-user shutdown timeouts from the registry when the user logs on, adapted from Alex' shutdown patch plus existing code.
- Commit the main part of shutdown code (finally!), still unfinished yet:
  * Need to switch to the desktop where the hanging GUI app's window is present,
  * Need to deal with apps from other users
  * What about SYSTEM processes?
  * What about console processes?
- Reuse the old timeout code.
- Fix the sending of WM_QUERYENDSESSION and WM_ENDSESSION messages (this is done by win32k directly; for that winsrv needs just to send one WM_CLIENTSHUTDOWN message with the correct wParam parameter).

Part 13/X
CORE-8322 #comment Big commit in revision 66306!

svn path=/trunk/; revision=66306
2015-02-15 22:57:40 +00:00
Hermès Bélusca-Maïto
c7457ca21e [NTOS]: Less "magic" indices.
svn path=/trunk/; revision=66305
2015-02-15 22:29:50 +00:00
Thomas Faber
05b349a93c [NTOS]
- In ExpReleaseOrWaitForKeyedEvent, always restore previous values for ETHREAD::KeyedWaitValue and ETHREAD::KeyedWaitChain, as these fields have alternative meanings outside of keyed events
- Add missing list walk in ExpReleaseOrWaitForKeyedEvent
- In Nt(WaitFor|Release)KeyedEvent, refuse keys that are not two-byte aligned as shown by Wine tests
- Don't forget to set KTHREAD::Process on thread creation
Fixes hang when running ntdll_winetest:om as well as failing tests.
ROSTESTS-118 #resolve

svn path=/trunk/; revision=66304
2015-02-15 22:20:34 +00:00
Hermès Bélusca-Maïto
3ce6fcf3b2 [USER32]
Implement SrvLogon (client-side), called by the SetWindowStationUser API (called by winlogon) when a user logs-on (or off).
See also http://www.openrce.org/reference_library/win32_call_chains/2003SP1/USER32/SetWindowStationUser and http://www.openrce.org/reference_library/win32_call_chains/2003SP1/USER32/Logon for details.
Part 1/2

svn path=/trunk/; revision=66303
2015-02-15 21:56:03 +00:00
Thomas Faber
c5dcd5d90a [ADVAPI32_WINETEST]
- Skip over service timeout tests because they take too long. This is not a bug, the tests are completing successfully -- however they are designed to cause service manager timeouts and take two minutes in doing so. Testbot time is too valuable to do this on every commit.
ROSTESTS-151

svn path=/trunk/; revision=66302
2015-02-15 18:20:59 +00:00
David Quintana
384d4f06d5 [SHELL32]
* Include enumeration of hidden files in the default shell view, until we have a proper way of toggling it.
CORE-9192

svn path=/trunk/; revision=66301
2015-02-15 18:05:34 +00:00
Thomas Faber
b3038d2a51 [TDILIB][IPHLPAPI][WSHTCPIP]
- Request only the access rights that are actually required in openTcpFile. Fixes many should-be access denied errors originating from netshell. While this doesn't fix the root cause of CORE-9172, it is a required step if we ever want netshell to work for non-Admin users.
CORE-9172

svn path=/trunk/; revision=66300
2015-02-15 17:57:34 +00:00
Thomas Faber
4db087dde9 [OLEAUT32_WINETEST]
- Re-enable test_apm and test_enhmetafile.
ROSTESTS-2

svn path=/trunk/; revision=66299
2015-02-15 17:54:41 +00:00
Thomas Faber
e31687b11f [URLMON_WINETEST]
- Re-enable protocol test.
ROSTESTS-38

svn path=/trunk/; revision=66298
2015-02-15 17:50:18 +00:00
Hermès Bélusca-Maïto
ee1471efd0 [MSISERVER]: Fix few things after commits 66278 and 66279.
[WMISVC]: Add RPCSS dependency (ok it's not really used now since wmisvc is a stub, but it's for the future).

svn path=/trunk/; revision=66297
2015-02-15 17:28:41 +00:00
Pierre Schweitzer
848766e7d3 [BOOTDATA]
Add missing quote.
Spotted by Hermès

svn path=/trunk/; revision=66296
2015-02-15 17:22:13 +00:00
Pierre Schweitzer
0db7698abb [WMISVC]
Add a stub for the "Windows Management Infrastructure" service.
This helps the Intel PRO eth card installer to go a bit farther 

svn path=/trunk/; revision=66295
2015-02-15 17:19:57 +00:00
Sylvain Petreolle
c7f86181e1 Remove duplicated flag KLF_SETFORPROCESS.
Patch by Kudratov Olimjon.
CORE-8545

svn path=/trunk/; revision=66294
2015-02-15 16:41:08 +00:00
Timo Kreuzer
1492f3e41a [FRAMEDYN]
Fix copypasta in the spec file

svn path=/trunk/; revision=66293
2015-02-15 16:18:18 +00:00
Hermès Bélusca-Maïto
83b14404e5 Forgot those files too.
svn path=/trunk/; revision=66292
2015-02-15 16:11:08 +00:00
Hermès Bélusca-Maïto
2ee57cd570 [WINSRV]: Remove the now-unneeded switch-app dialog that was moved to user32 since revision 51459.
svn path=/trunk/; revision=66291
2015-02-15 16:08:36 +00:00
Sylvain Petreolle
b9d092f271 Fix sysfile association.
Patch by Kudratov Olimjon.
CORE-8545

svn path=/trunk/; revision=66290
2015-02-15 15:49:33 +00:00
Thomas Faber
ea641395a6 [INF]
- Save inf files as UTF-8 in SVN, convert them to UTF-16 at build time as needed.
CORE-8221

svn path=/trunk/; revision=66289
2015-02-15 15:42:00 +00:00
Thomas Faber
88db04e8d6 [SHELL32]
- Rename "Insert" to "Paste" in CDefaultContextMenu

svn path=/trunk/; revision=66288
2015-02-15 15:21:52 +00:00
Timo Kreuzer
18ee2fa09b [FRAMEDYN]
Fix compilation on x64

svn path=/trunk/; revision=66287
2015-02-15 14:39:02 +00:00
Timo Kreuzer
ee423a157c [LIBS]
Fix some MSVC warnings (and potential bugs) regarding signed/unsigned comparison.

svn path=/trunk/; revision=66286
2015-02-15 11:24:52 +00:00
Timo Kreuzer
5bc307769c [PSDK]
Add _SH_ to processor definitions, fix some processor #ifdefs
Patch by Yuntian Zhang
CORE-7946 #resolve

svn path=/trunk/; revision=66285
2015-02-15 11:22:29 +00:00
Timo Kreuzer
2cb0d0e242 [SHELL32]
Fix prototype of COpenWithDialog::NoOpenDlgProc. DLGPROCs return INT_PTR, not BOOL. Fixes amd64 build.

svn path=/trunk/; revision=66284
2015-02-15 11:21:31 +00:00
Timo Kreuzer
526eda105e [KDVBOX]
Fix amd64 build

svn path=/trunk/; revision=66283
2015-02-15 11:13:30 +00:00
Timo Kreuzer
3a6df0d8b5 [FREELDR]
Fix non-x86 build

svn path=/trunk/; revision=66282
2015-02-15 11:10:09 +00:00
Thomas Faber
e6c56afe8c [KMTESTS]
- Add KmtGetSystemRoutineAddress and use it to avoid importing functions that are not available in some versions of Windows. This allows running kmtests on Windows XP SP3 (and probably Server 2003 SP0/SP2). Note that failures on XP are still not valid bugs, this is purely for convenience!  Dedicated to Jérôme.
ROSTESTS-150

svn path=/trunk/; revision=66281
2015-02-15 10:23:21 +00:00
James Tabor
af36a2a4df [User32]
- Move notify window event to a better location for passing wine msg:test_winevents. See CORE-7447.

svn path=/trunk/; revision=66280
2015-02-15 10:14:18 +00:00
Pierre Schweitzer
c1e830e073 [BOOTDATA]
Errm...
Spotted by Giannis

svn path=/trunk/; revision=66279
2015-02-15 10:02:57 +00:00
Pierre Schweitzer
8ea7e85637 [BOOTDATA]
msiexec can be used as a service (and might be required by some MSIs)

svn path=/trunk/; revision=66278
2015-02-15 09:59:29 +00:00
Thomas Faber
bc8701e5b7 [KMTESTS:KE]
- Enable KeSpinLock test that apparently never made it into testlist.c for some reason?

svn path=/trunk/; revision=66277
2015-02-15 09:29:32 +00:00
Johannes Anderwald
5ff3a2b55c [INF]
- add wdmaudio.inf 

svn path=/trunk/; revision=66276
2015-02-15 09:03:08 +00:00
Hermès Bélusca-Maïto
4c28eeae21 [WINLOGON][USER32]
Fix the explanations of how Windows/ReactOS should shut down (it's winlogon itself that calls NtShutdownSystem, not something else; that story about "SMSS API #1" concerns the SMSS API SmpSessionCompleteApi called by the helper function SmSessionComplete which is in turn called by CSRSS function CsrDereferenceNtSession, when all win32 processes are gone, as it should).
The webpage http://www.reactos.org/wiki/ShutdownProcess should be corrected for.

[USER32]
Whitespace fixes for winstation code.

svn path=/trunk/; revision=66275
2015-02-15 02:07:23 +00:00
Timo Kreuzer
61ec2f8e01 [NTOSKRNL]
Demote the "HACK: RemainingAccess = 0x%08lx  DesiredAccess = 0x%08lx\n" from DPRINT1 to DPRINT, since it's massively spamming the log.
See CORE-9184

svn path=/trunk/; revision=66274
2015-02-15 00:26:41 +00:00
Timo Kreuzer
e07232f673 [WIN32K]
In NtGdiGetDIBitsInternal limit the size of what is being copied back to to usermode to the cjMaxInfo parameter. Fixes crash of Firefox when downloading files.
CORE-8895 #resolve

svn path=/trunk/; revision=66273
2015-02-15 00:05:50 +00:00
Pierre Schweitzer
5b0af50bdc [NTFS]
Query the value of NtfsMftZoneReservation on mount.
Not used yet.
CORE-8725

svn path=/trunk/; revision=66272
2015-02-14 20:55:47 +00:00
Hermès Bélusca-Maïto
4f6f4969d9 [SHELL32]
- magic_value--;
- Don't assign a desktop background colour by default. So that we can get the safe-mode background working (in safe mode), while having the default desktop background colours in normal situations.
Patch by Giannis.

svn path=/trunk/; revision=66271
2015-02-14 19:56:04 +00:00
Thomas Faber
a3e8496b8d [RTL]
- Implement RtlIpv4StringToAddressExW. Patch by Mark Jansen.
CORE-6490

svn path=/trunk/; revision=66270
2015-02-14 19:14:32 +00:00
Timo Kreuzer
279e2f65b3 [DRIVERS]
Fix a few MSVC warnings

svn path=/trunk/; revision=66269
2015-02-14 19:07:36 +00:00
Timo Kreuzer
2566611f13 [CMAKE]
Disable MSVC linker warning LNK4078 (multiple sections found with different attributes) for INIT sections.

svn path=/trunk/; revision=66268
2015-02-14 18:58:52 +00:00
Timo Kreuzer
d932c7c5bf [PSDK]
Add #ifdef include guards to winnt.h. RC doesn't seem to support #pragma once and emits a redefinition warning, since with RC we first include winnt.h without STRICT defined, then again from windef.h with STRICT defined.

svn path=/trunk/; revision=66267
2015-02-14 17:04:42 +00:00
Timo Kreuzer
1605785f0b [CMAKE]
- Disable warning C4800: forcing value to bool 'true' or 'false' (performance warning). This  is emitted when assigning an integer value to a C++ bool, which is always true (1) or false (0), so assigning an integer to it, will result in an implicit comparison against 0. But "fixing" this warning by adding an explicit comparison ("bool f = (i != 0);") will actually result in LESS efficient code (for whatever reasons). So this warning can be considered entirely useless and counter productive.
- Remove C4018 (signed/unsigned mismatch) from the TODO in the disable list. A comparison between an unsigned and a signed value will very likely result in wrong behavior and can easily cause hard to spot security bugs (e.g. when doing overflow checks). It is also often easy to fix.

svn path=/trunk/; revision=66266
2015-02-14 15:44:44 +00:00
Pierre Schweitzer
4490614032 [NTFS]
NtfsMoonWalkID():
- Do not allow opening a file by ID if it's not in use any longer
- Do not attempt to create the full path, if an error occured during walk

svn path=/trunk/; revision=66265
2015-02-14 15:41:44 +00:00
Pierre Schweitzer
483c6f32a5 [NTFS]
Simplify the implementation of the "Open by ID" feature of our driver.
Instead of creating singleton FCB not linked to the rest of FS tree, just walk the whole path down, to recreate it.

This doesn't make nfi work properly though. Will investigate more.

CORE-8725

svn path=/trunk/; revision=66264
2015-02-14 15:35:35 +00:00
Timo Kreuzer
e713b40c77 [SPEC2DEF]
Silence warning about ignored C++ redirections

svn path=/trunk/; revision=66263
2015-02-14 14:28:02 +00:00
Timo Kreuzer
0be5288cdb [GDI32_APITEST]
Add additional tests for CreateBitmap and fix a test.
Patch by Victor Martinez
ROSTESTS-56 #resolve

svn path=/trunk/; revision=66262
2015-02-14 14:07:50 +00:00
David Quintana
a15598b25c [BROWSEUI]
* Convert some leftover DbgPrints to TRACEs and ERRs.

svn path=/trunk/; revision=66261
2015-02-14 14:00:24 +00:00
Timo Kreuzer
35862dad78 [GDI32_APITEST]
Fix GCC build

svn path=/trunk/; revision=66260
2015-02-14 13:24:54 +00:00
Timo Kreuzer
dd25b0e4c0 [GDI32_APITEST]
Add tests for OffsetRgn, PaintRgn and FrameRgn, fix 1BPP DIB creation in InitStuff()

svn path=/trunk/; revision=66259
2015-02-14 13:19:02 +00:00
Thomas Faber
46e350e52c [COM_APITEST]
- Add classes found in Wine's shell32_classes.idl and browseui_classes.idl

svn path=/trunk/; revision=66258
2015-02-14 12:59:16 +00:00
Thomas Faber
094a54bd50 [PACKAGES]
- Copy libwinpthread-1.dll if present instead of forcing the use of a specific set of GnuTLS binaries. Partially reverts r66110. Should fix testbot problems (mshtml_winetest:events in particular).
CORE-9167

svn path=/trunk/; revision=66257
2015-02-14 12:03:58 +00:00
Timo Kreuzer
529aae440b [GDI32_APITEST]
Fix InitStuff(), declare the 32 bpp DIB array 2 dimensional and make it 8x8 in size.

svn path=/trunk/; revision=66256
2015-02-14 11:25:02 +00:00
Timo Kreuzer
151e583938 [CMAKE]
Fix the fix. (tm)

svn path=/trunk/; revision=66255
2015-02-14 11:09:31 +00:00
Timo Kreuzer
ec1c6cbde1 [CMAKE]
Fix bugs in start/end_module_group, found by Jérôme.

svn path=/trunk/; revision=66254
2015-02-14 11:01:58 +00:00
Pierre Schweitzer
4a5d15129b [IPHLPAPI]
Add the missing loop iterator in GetAdaptersAddresses().
This fixes infinite loop, and fixes Firefox 3.6 boot.

CORE-9051 #resolve #comment Fixed in r66253


svn path=/trunk/; revision=66253
2015-02-14 08:02:08 +00:00
Hermès Bélusca-Maïto
d3b9c68d22 [WINLOGON]
- Reshuffle a bit some code.
- Never fail if the kill-COM-processes thread fails to be created.
- WlxLogoff GINA callback *must* be called *after* our logoff handling (with HandleLogoff). This is what happens on Windows (just add breakpoints on ExitWindowsEx and on WlxIsLogoffOk and WlxLogoff, and enable winlogon tracing).

[WIN32K]
Rename a flag to something more meaningful, and fix a flag filtering bug: lParams = wParam & something; ---> lParams = lParam & something; (the wParam is used for something else).

Part 12/X
CORE-8322

svn path=/trunk/; revision=66252
2015-02-14 05:27:55 +00:00
Timo Kreuzer
31e18a472f [ROSTESTS]
Create rostests module group. You can now compile rostests with "ninja rostests". Dedicated to Colin.

svn path=/trunk/; revision=66251
2015-02-13 20:20:52 +00:00
Timo Kreuzer
acc5a32efa [CMAKE]
Add support for "module groups". These are meta targets that automatically include all targets using set_module_type() that are included between start_module_group(name) and end_module_group().

svn path=/trunk/; revision=66250
2015-02-13 20:19:51 +00:00
Hermès Bélusca-Maïto
b8a680b61e [CONSRV]: Remove unused commented DtbgIsDesktopVisible.
svn path=/trunk/; revision=66249
2015-02-13 16:19:14 +00:00
Hermès Bélusca-Maïto
71b4e606fd [BASESRV]: Only SHUTDOWN_NORETRY can be set via Get/SetProcessShutdownParameters APIs.
svn path=/trunk/; revision=66248
2015-02-13 16:16:28 +00:00
Johannes Anderwald
c75d1415e8 [IPHLPAPI]
- hackplement GetExtendedTcpTable class TCP_TABLE_OWNER_PID_ALL
- fixes XAMPP control panel startup

svn path=/trunk/; revision=66247
2015-02-13 15:03:45 +00:00
Johannes Anderwald
0cffc5a67c [PSDK]
- add MIB_TCPROW_OWNER_PID, MIB_TCPTABLE_OWNER_PID types

svn path=/trunk/; revision=66246
2015-02-13 14:58:05 +00:00
James Tabor
fee28b842e [NtUser]
- Fix wine msg:test_SendMessageTimeout. Do not allow the message to pass on after a timeout.

svn path=/trunk/; revision=66245
2015-02-13 13:45:11 +00:00
James Tabor
89e2d8aeb8 [NtUser]
- Use a real timer for caret. This should cleanup message testing from those random system timer messages. See CORE-7447.

svn path=/trunk/; revision=66244
2015-02-13 13:39:57 +00:00
Thomas Faber
f0c36353f3 [WIN32K:NTUSER]
- Assert sanity of object reference counts in UserReferenceObject, UserDereferenceObject and UserDeleteObject. If you hit a cLockObj < 0x10000 assertion failure, you found yourself a use after free (RtlFreeHeap will put a LIST_ENTRY in this location, so a freed item has a kernel pointer there).
See CORE-8703 for an example.

svn path=/trunk/; revision=66243
2015-02-13 10:11:50 +00:00
Thomas Faber
c4f27cbca8 [GDI32_APITEST]
- Fix stack buffer overflow in InitPerBitDepth
ROSTESTS-147 #resolve

svn path=/trunk/; revision=66242
2015-02-13 09:06:00 +00:00
James Tabor
cc64141e3f [NtUser]
- This should fix dialog breakage due to r66237.

svn path=/trunk/; revision=66241
2015-02-13 01:03:38 +00:00
Hermès Bélusca-Maïto
fc6cd9e51d [WINLOGON]
- Implement KillComProcesses that just kills with force and without any notification back to winlogon, any remaining app that is still alive even if we asked before to kill apps (it's just the aim of this function, not more).
- Fix internal flags according to WinDbg sessions with Win2k3 + tracing checked build winlogon (testing logoff/shutdown/reboot from winlogon itself and when using the "shutdown" command).
- FIXME: Manage EWX_FORCE flag in winlogon...

[WINSRV]
Fix a DPRINT.

[WIN32K]
- Introduce a NotifyLogon function to manage winlogon notifications (when we shutdown and "end" shutdown steps, or cancel it).
- Fix some flags settings.

Part 11/X
CORE-8322

-------
This is a test:
!error !rot13 !reebe !ebg13 !error !rot13 !reebe !ebg13

svn path=/trunk/; revision=66240
2015-02-12 23:35:58 +00:00
James Tabor
adf709aee1 [NtUser]
- Fix dialog breakage due to r66237.

svn path=/trunk/; revision=66239
2015-02-12 23:10:10 +00:00
James Tabor
56ed054411 [NtUser]
- Fix wine msg.c:test_quit_message tests.

svn path=/trunk/; revision=66238
2015-02-12 21:33:43 +00:00
James Tabor
b390d903ad [NtUser]
- Reorder Destroy and Free window, getting close to how wine does it. Still more work is needed.

svn path=/trunk/; revision=66237
2015-02-12 21:28:39 +00:00
Timo Kreuzer
c940d08a6a [WIN32K]
Initialize EBRUSHOBJ.psoMask in EBRUSHOBJ_vInit. Should fix CORE-9165

svn path=/trunk/; revision=66236
2015-02-12 09:18:20 +00:00
Thomas Faber
f1d9eded2c [NTOS:MM]
- Set aside some additional system PTEs if special pool is enabled
CORE-8680

svn path=/trunk/; revision=66235
2015-02-12 09:14:52 +00:00
James Tabor
d0376b2093 [NtUser]
- Fix the results from the new API CreateWindowEx tests. Message sequence and isolating each job Destroy and Free perform will come later. Refer to CORE-8703. This may not fix the crash while in wine test User32:msg.c.
- Dedicated to Thomas Faber.
- Fix build window list using threads. The link list works okay for locking but for tracking thread windows, use the snapshot method.

svn path=/trunk/; revision=66234
2015-02-12 00:17:41 +00:00
James Tabor
8f317b9b09 [ApiTest]
- Add Thomas Faber API test from CORE-8703.

svn path=/trunk/; revision=66233
2015-02-11 23:53:08 +00:00
Timo Kreuzer
c34281f198 [MESA]
Partly sync find_value() with MESA 10.4.4. Fixes endless loop when GoogleEarth is started. GoogleEarth now loads and displays the earth, but it doesn't handle any input and makes the entire GUI hang.

svn path=/trunk/; revision=66232
2015-02-11 21:36:01 +00:00
Timo Kreuzer
becf1bd404 [WIN32K]
Implement support for hatch brush masks.

svn path=/trunk/; revision=66231
2015-02-11 21:35:48 +00:00
Timo Kreuzer
88cc747e0b [WIN32K]
Fix handling of mask bitmap in NtGdiMaskBlt

svn path=/trunk/; revision=66230
2015-02-11 21:35:09 +00:00
Timo Kreuzer
ab543f2e54 [WIN32K]
- Handle the case where we have a masked ROP, but no mask surface in EngBitBlt
- Alloc ROPs with a mask in EngPaint
Fixes ASSERT when GoogleEarth is launched.

svn path=/trunk/; revision=66229
2015-02-11 21:34:42 +00:00
Timo Kreuzer
aad6643529 [WIN32K]
Add minimal infrastructure for handling pattern brush masks.

svn path=/trunk/; revision=66228
2015-02-11 21:34:11 +00:00
Timo Kreuzer
3035893507 [WIN32K]
Improve naming of some BRUSH fields and set the correct fields to the correct values (ulStyle was not for the brush style, but the hatch style!)

svn path=/trunk/; revision=66227
2015-02-11 21:33:50 +00:00
Timo Kreuzer
1b7dcc47ca [WIN32K]
- Make sure PENs and BRUSHes are properly initialized.
- Fix BRUSHATTR allocation
- enable BRUSHATTR deallocation
- Remove some obsolete defines

svn path=/trunk/; revision=66226
2015-02-11 21:33:24 +00:00
Timo Kreuzer
a9a2c6971f [WIN32K]
Fix ROP2 value coming from user mode before using it.

svn path=/trunk/; revision=66225
2015-02-11 21:32:54 +00:00
Timo Kreuzer
cc61579cf1 [WIN32K]
Simplify ROP4_USES_* macros

svn path=/trunk/; revision=66224
2015-02-11 21:32:24 +00:00
Hermès Bélusca-Maïto
ccb97ad07d [WIN32K]: Fix an insecure user buffer reading/writing. Caught by Thomas Faber, thanks!
CORE-8322

svn path=/trunk/; revision=66223
2015-02-11 20:12:30 +00:00
Thomas Faber
07232c5dd8 [SHELL32]
- Show a confirmation dialog when emptying the recycle bin. Patch by Robert Naumann, with some modifications by me.
CORE-9006 #resolve

svn path=/trunk/; revision=66222
2015-02-11 11:06:12 +00:00
Timo Kreuzer
4b22cb6483 [GDI32_APITEST]
Add more tests for MaskBlt

svn path=/trunk/; revision=66221
2015-02-10 22:33:19 +00:00
Timo Kreuzer
95d5773b2e [GDI32_APITEST]
Add more helper code

svn path=/trunk/; revision=66220
2015-02-10 22:31:17 +00:00
Daniel Reimer
bd1dc3f8ca [BROWSEUI]
Fix german layout to... look better.

svn path=/trunk/; revision=66219
2015-02-10 21:02:11 +00:00
Thomas Faber
a7c7e5b7cf [GDI32_APITEST]
- Fix flakiness in GetDIBits test

svn path=/trunk/; revision=66218
2015-02-10 20:29:54 +00:00
Hermès Bélusca-Maïto
9c52a6c77b [CONSRV]: Fix a DPRINT.
svn path=/trunk/; revision=66217
2015-02-10 18:27:34 +00:00
Aleksandar Andrejevic
7ffd32d418 [FAST486]
Implement Fast486FpuMultiply properly.


svn path=/trunk/; revision=66216
2015-02-10 17:29:26 +00:00
Daniel Reimer
fdc2ad5b23 [BROWSEUI]
German update.
(Is it possible that our browseui is not even similar to the one from Win 5.2?)

svn path=/trunk/; revision=66215
2015-02-10 02:03:35 +00:00
Daniel Reimer
ab2c8401b7 [BROWSEUI]
Sync all languages with the once more not synced English one... Every language has a different state and no one sees that if the new strings are not added in there. At least add the English original. Thx for understanding.
DIALOG -> DIALOGEX

svn path=/trunk/; revision=66214
2015-02-09 23:25:49 +00:00
Giannis Adamopoulos
791bd8a318 Fix build on unix hosts
svn path=/trunk/; revision=66213
2015-02-09 22:31:53 +00:00
Giannis Adamopoulos
bb9cc13c1f [BROWSEUI]
- Implement CProgressDialog based on wine
- Patch by Huw Campbell, improved by me
CORE-4476

svn path=/trunk/; revision=66212
2015-02-09 22:29:23 +00:00
Thomas Faber
fd227cda35 [INCLUDE]
- Fix CListView::HitTest. Fixes stack corruption when dragging files on the desktop.
CORE-9143 #resolve

svn path=/trunk/; revision=66211
2015-02-09 19:59:59 +00:00
Thomas Faber
c066cbd438 [USER32]
- In ICO_ExtractIconExW, don't try to return two icons if only one was requested. Fixes stack corruption.
CORE-9142 #resolve

svn path=/trunk/; revision=66210
2015-02-09 19:04:42 +00:00
Giannis Adamopoulos
7b2c9d42ef [COM_APITEST]
- Test the interfaces exposed by CLSID_ProgressDialog
CORE-4476

svn path=/trunk/; revision=66209
2015-02-08 23:47:11 +00:00
Thomas Faber
3df35a13be [DDK]
- Add additional list entry checks that can be optionally enabled by defining EXTRA_KERNEL_LIST_ENTRY_CHECKS. These checks warn against attempts to remove items from an empty list, which can easily be an error (and is trivial to avoid where it's not).
- Enable these checks by default for ReactOS code
CORE-8419 #resolve

svn path=/trunk/; revision=66208
2015-02-08 14:22:26 +00:00
Thomas Faber
5a1de25f17 [NTOS]
- Avoid removing list entry if the list is empty in IopUnQueueIrpFromThread
CORE-8419

svn path=/trunk/; revision=66207
2015-02-08 14:15:45 +00:00
Thomas Faber
a5667eedbc [DDK]
- Add list entry security checks equivalent to those in current WDKs. This is useful for ROS because it detects memory corruption very quickly.
CORE-8419

svn path=/trunk/; revision=66206
2015-02-08 13:22:06 +00:00
Eric Kohl
f2772f2806 [NTOSKRNL]
Implement NtSaveMergedKeys and its backend CmSaveMergedKeys.

svn path=/trunk/; revision=66205
2015-02-08 11:49:58 +00:00
Thomas Faber
f142ee5329 [DDK]
- Add RtlFailFast and FAST_FAIL_* codes
CORE-8419

svn path=/trunk/; revision=66204
2015-02-08 10:57:47 +00:00
Johannes Anderwald
89896f9912 [PORTCLS]
- fix crash / assert triggered with cwawdm driver
- fix irp leak
- CORE 7822

svn path=/trunk/; revision=66203
2015-02-08 08:11:51 +00:00
Hermès Bélusca-Maïto
3d3bdc5873 [WINSRV]: Remove some deprecated code, keep other parts for reusage later on; cleanup SrvExitWindowsEx. If you enable the NotifyAndTerminateProcess call, you get a basic win32 process termination. This is now where the real work starts: do not kill CSRSS nor Winlogon, do not kill processes from other sessions, etc... Deal with console apps; display timeout dialog, and focus on the app that blocks shutdown by switching to the correct desktop. And we MUST NOT use user32 desktop APIs for switching to the different desktops, but we need to directly call win32k!! (for reasons that will appear later on; not implemented at the moment). Giannis, I will need your help for that!
Part 10/X
CORE-8322

svn path=/trunk/; revision=66202
2015-02-08 00:54:22 +00:00
Thomas Faber
683c14c278 [SPEC2DEF]
- Don't warn about symbols that should be private on MSVC builds. Link already does this.
CORE-8445

svn path=/trunk/; revision=66201
2015-02-08 00:00:30 +00:00
Thomas Faber
b8808ef996 [CMAKE]
- Support NO_PRIVATE_WARNINGS parameter when invoking spec2def to suppress warnings about symbols that should be private
- Disable such warnings for msxml3, ole32 and rsaenh
CORE-8445

svn path=/trunk/; revision=66200
2015-02-07 23:54:15 +00:00
Hermès Bélusca-Maïto
41180fb6b0 [SPEC2DEF]: Display the -private exports warning *only* when making import libs.
CORE-8445 #comment -private warning only displayed for import libs.

svn path=/trunk/; revision=66199
2015-02-07 21:42:26 +00:00
Thomas Faber
cfcdf14cef [SPEC2DEF]
- Remove space before colon in error messages

svn path=/trunk/; revision=66198
2015-02-07 21:20:15 +00:00
Hermès Bélusca-Maïto
38bb64ba24 [WINLOGON]
- Add DPRINTs to monitor how shutdown goes on (obviously they will go away when shutdown on ROS will be working).
- Add dumb handler for LN_LOGOFF_CANCELED message (unused for now...)

[WIN32K]: DPRINTs added for monitoring shutdown.

[WINSRV]: Start to plugin the whole thing (using pieces of Alex' shutdown patch):
- We need to use a "shutdown" loop (for UserThreadInitiateShutdown win32k call) for being able to cancel shuts down (not implemented yet).
- Add the "magic" call to CsrShutdownProcesses that calls the Shutdown callback of each CSR server for each Win32 process (these are those callbacks that do the real job of terminating the apps, displaying the "Kill the app" dialog, etc...). In few words, the old (disabled) code of InternalExitReactos need to go into those shutdown callbacks (but this is for other commits!).

Part 9/X

CORE-8322 #comment Continue plugging in the shutdown code (from Alex' patch) in WINSRV with adaptations into WINLOGON (+ adding DPRINTs for controlling the whole thing).

svn path=/trunk/; revision=66197
2015-02-07 20:46:27 +00:00
Amine Khaldi
aeaff2bf59 [WIN32K:INCLUDES] Some formatting fixes. NFC.
svn path=/trunk/; revision=66196
2015-02-07 19:14:42 +00:00
Timo Kreuzer
981aafb792 [WIN32K]
Fix the ROP code passed to IntEngStretchBlt from NtGdiStretchDIBitsInternal. Fixes crash of Nimbus Notes installer.
CORE-9048 #resolve

svn path=/trunk/; revision=66195
2015-02-07 17:51:20 +00:00
Hermès Bélusca-Maïto
159c00fe95 [WIN32k:includes] Whitespace fixes.
svn path=/trunk/; revision=66194
2015-02-07 16:19:57 +00:00
Timo Kreuzer
880a4bf3de [FREELDR]
- #ifdef DBG -> #if DBG
- #if 0 DbgDumpMemoryMap()

svn path=/trunk/; revision=66193
2015-02-07 15:52:18 +00:00
Hermès Bélusca-Maïto
b8d8fbdc9d [WINLOGON][WIN32K]
Move the shutdown privilege check from winlogon to win32k (function "UserInitiateShutdown") as it should be done.

[WIN32K]
- Introduce the pair of UserInitiateShutdown/UserEndShutdown calls that should be called when WINSRV starts a shutdown (and when it finishes it). In particular it is in UserInitiateShutdown that we need to check whether the caller has the rights to perform a shutdown (it should also have a valid window station).
- Remove the ROS-specific TWOPARAM_ROUTINE_EXITREACTOS call that is traded for Win2k3-compatible call to UserInitiateShutdown.

[WINSRV]
Hackfix our current ExitWindowsEx functionality (based on a patch by Alex made against r46050 for win32csr) to make it "compatible" with the improvements in win32k: impersonate the caller and call the UserInitiateShutdown win32k system call (instead of the TWOPARAM_ROUTINE_EXITREACTOS). More will come later on.

[USER32]
Win32k can require performing shutdown in an asynchronous way (needed also on WINSRV side) so we need to put all the code in a worker thread.

Part 8/X (part 6 was r65693 and part 7 was r66186).

CORE-8322 #comment Start to add Alex' win32csr shutdown patch in WINSRV; fixes for winlogon and additions to win32k.

svn path=/trunk/; revision=66192
2015-02-07 15:26:42 +00:00
Timo Kreuzer
8e988cc2f3 [MKHIVE]
Add back CmpAllocate prototype. Fixes MSVC warnings.

svn path=/trunk/; revision=66191
2015-02-07 15:05:04 +00:00
Giannis Adamopoulos
42554e6098 [SHELL32]
- Get rid of IDD_FILE_COPY dialog. It was never used, never completed and windows don't really have such a dialog.
- Remove SHShowFileOperationDialog which was never completed. This will be replaced shortly with a working solution by Huw Davies 

svn path=/trunk/; revision=66190
2015-02-07 14:42:39 +00:00
Thomas Faber
f3b718e042 [RTL]
- Implement RtlIpv4StringToAddressW. Dedicated to Jérôme. Thanks to the countless reviewers.
CORE-6490

svn path=/trunk/; revision=66189
2015-02-07 13:24:29 +00:00
Thomas Faber
008adec92d [WIN32K]
- Do not use an uninitialized variable in UserSetProcessWindowStation. Feel free to fix this properly

svn path=/trunk/; revision=66188
2015-02-07 11:11:37 +00:00
Thomas Faber
16c8f0601d [RTL]
- Implement RtlIpv4StringToAddressA and RtlIpv4StringToAddressExA using their -W counterparts
CORE-6490

svn path=/trunk/; revision=66187
2015-02-07 10:07:24 +00:00
Hermès Bélusca-Maïto
3e714d22fb [WINLOGON][WIN32K]: Tend towards Win2k3-compatible winlogon logoff/shutdown messaging. Something that needs to be fixed is that it is not winlogon that checks whether the app requesting the shutdown has the correct rights, but it is win32k. I temporarily disable this check in winlogon (it's not as if we introduced a security breach in ReactOS ^^)
svn path=/trunk/; revision=66186
2015-02-07 01:18:40 +00:00
Hermès Bélusca-Maïto
94c27d3aeb [WINSRV]: Remove a long standing hack (added 4 years ago) that is now useless.
CORE-5138 #comment Hack from r51460 finally removed.

svn path=/trunk/; revision=66185
2015-02-06 23:29:09 +00:00
James Tabor
cc48a3494b [User32]
- Patch by Huw Davies : Merge the blitting of the centered and non-centered cases.

svn path=/trunk/; revision=66184
2015-02-06 21:17:10 +00:00
James Tabor
e0152471f9 [WineTests|User32]
- Sync Combo to wine head. Patch by Huw Davies : Make the combo's listbox a topmost window. See CORE-5186 for prior report.

svn path=/trunk/; revision=66183
2015-02-06 21:07:59 +00:00
James Tabor
4cb4ee6326 [User32]
- Patch by Piotr Caban : Only store dialog focus when window is hidden or inactive. Only use DIALOGINFO-> hwndFocus to store last focus of inactive windows.

svn path=/trunk/; revision=66182
2015-02-06 20:57:45 +00:00
James Tabor
d783274010 [WineTests|User32]
- Sync Dialog to wine head.

svn path=/trunk/; revision=66181
2015-02-06 20:56:57 +00:00
Jérôme Gardou
fcddf62f18 [KMTEST/TCPIP]
- Add tests checking for TDI_CONNECT behaviour.

svn path=/trunk/; revision=66180
2015-02-06 10:49:04 +00:00
Hermès Bélusca-Maïto
51d68a3329 [FREELDR]
- For now, only activate custom ReactOS boot on non-x86 builds.
- Fix INI section item list initialization before using it! Fixes custom ReactOS boots (ie. remove an invalid heap free). Now custom ReactOS boots work!

svn path=/trunk/; revision=66179
2015-02-06 01:21:45 +00:00
Hermès Bélusca-Maïto
149e5e961a [SHELL32]
- Fix registry value retrieval with RegGetValue (RRF_RT_REG_EXPAND_SZ has a non-obvious functioning: it should be used with NO_EXPAND flag. Otherwise use RRF_RT_REG_SZ to retrieve REG_SZ values, or REG_EXPAND_SZ values with automatic expansion as expected). CORE-9001 #resolve #comment Fixed, thanks for reporting!
- Fix whitespace.

svn path=/trunk/; revision=66178
2015-02-06 00:07:23 +00:00
James Tabor
b07541cc5d [Win32ss]
- Validate the parent window before locking it. Attempt to fix CORE-9117.

svn path=/trunk/; revision=66177
2015-02-05 23:46:57 +00:00
Amine Khaldi
bff824b2ca [DLLs] Revert r66167 (Privatize the exports that should be so). Fixes MSVC build. Of course the glorious GCC toolchain is oblivious to this.
svn path=/trunk/; revision=66176
2015-02-05 22:12:55 +00:00
James Tabor
4f897d6aa9 [User32]
- Return timeout if the count and wait time is zero. This is a wine hack and fixes two related mgs:test_MsgWait* tests. Attempt to fix CORE-9117. Not sure if MsgWaitForMultipleObjects is the problem.

svn path=/trunk/; revision=66175
2015-02-05 21:31:05 +00:00
Hermès Bélusca-Maïto
d511783a3c [FREELDR]: Remove some extra newlines at the end of error messages that are displayed via message boxes, and also for few of them, use the fact that our message boxes implement printf-like features.
svn path=/trunk/; revision=66174
2015-02-05 21:24:26 +00:00
Hermès Bélusca-Maïto
927ab9996d [FREELDR]: Fix initialization of BootPath variable, and add some explanation comment as requested long time ago by Pierre.
svn path=/trunk/; revision=66173
2015-02-05 21:17:35 +00:00
Timo Kreuzer
23a57a334f [W32KNAPI]
Load NtGdiFlushUserBatch dynamically to allow loading on Win 2003, where the function does not exist.
ROSTESTS-131 #resolve

svn path=/trunk/; revision=66172
2015-02-05 10:10:33 +00:00
Timo Kreuzer
2efb302756 [GDI32]
CORE-8350 #comment Fix return value on error in RealizePalette. #resolve

svn path=/trunk/; revision=66171
2015-02-05 09:35:54 +00:00
Aleksandar Andrejevic
af6093b4a5 [FAST486]
Implement FRNDINT.


svn path=/trunk/; revision=66170
2015-02-05 01:03:09 +00:00
Hermès Bélusca-Maïto
63773511d0 [FREELDR]: Add some debug information when searching for PCI routing tables.
svn path=/trunk/; revision=66169
2015-02-05 00:43:39 +00:00
James Tabor
3c936843c2 - Missed this one.
svn path=/trunk/; revision=66168
2015-02-05 00:13:51 +00:00
Hermès Bélusca-Maïto
6ee06a3b26 [DLLs]: Privatize the exports that should be so.
svn path=/trunk/; revision=66167
2015-02-05 00:12:12 +00:00
James Tabor
fe753e82c7 [Win32ss]
- Setup system cursors and icons. Could help with Themes.
- Set default cursor to the message queue structure.
- Fix wine cursor icon tests. Fix ATI cursor passing issue.
- Fix that sticky mouse cursor while the screen saver is on.
- Move cursor code from User32 and shake that pop up window too.
- Setup for window station security checking.
- Dedicated to the great work by Jérôme Gardou. Doing ones best to preserve his original code!

svn path=/trunk/; revision=66166
2015-02-05 00:11:35 +00:00
Hermès Bélusca-Maïto
aa19105965 [SPEC2DEF]
- Warn about symbols that should be private. Patch by Thomas Faber. CORE-8445 #resolve #comment Committed in revision 66165. It's also nice/useful to get the warnings even if we are not generating an import lib (example when building rsaenh): MSVC warns also in this case.
- Improve error messages.
- some_ptr = 0; ---> use NULL instead.
- remove useless extra parentheses.

svn path=/trunk/; revision=66165
2015-02-04 23:56:23 +00:00
James Tabor
9491749bfd [NtUser]
- Add object handle information and set station user support.

svn path=/trunk/; revision=66164
2015-02-04 21:59:15 +00:00
Hermès Bélusca-Maïto
2ff70a1a12 [MSPAINT]: Improve help menu name in some languages.
Patch by Jared.
CORE-9087 #resolve #comment Fixed, thanks!

svn path=/trunk/; revision=66163
2015-02-04 21:34:22 +00:00
Daniel Reimer
5c1c0cf9fc [RAPPS]
Fix broken link to Total Commander
CORE-9123 #resolve #comment Please retry. Thx for help.

svn path=/trunk/; revision=66162
2015-02-04 21:27:20 +00:00
Jérôme Gardou
f8de863698 [NTDLL]
- use the edx register to store the function pointer to the syscall trampoline.
This is how google Chrome checks if an exported function is a system call or not.
See https://chromium.googlesource.com/chromium/src.git/+/master/sandbox/win/src/service_resolver_32.cc and https://bugs.winehq.org/show_bug.cgi?id=21232 for details

svn path=/trunk/; revision=66161
2015-02-04 16:58:41 +00:00
Amine Khaldi
667174effd [TRANSLATIONS] Turkish translation update by Erdem Ersoy. CORE-7861
svn path=/trunk/; revision=66160
2015-02-04 14:58:20 +00:00
Amine Khaldi
d952727844 [SHELL32] Move some *RecycleBin*() functions to a more appropriate source file. Improve header inclusions.
svn path=/trunk/; revision=66159
2015-02-04 09:13:43 +00:00
Timo Kreuzer
949aef7e6c [GDI32_APITEST]
Add simple tests for RealizePalette.
CORE-8350 #comment Tests show that the patch is not correct.

svn path=/trunk/; revision=66158
2015-02-04 09:02:25 +00:00
Timo Kreuzer
910b673508 [WIN32K]
Always update surface flags in EngModifySurface

svn path=/trunk/; revision=66157
2015-02-04 08:21:54 +00:00
Aleksandar Andrejevic
ec76f48f58 [FAST486]
Implement FDECSTP, FINCSTP and FXTRACT.


svn path=/trunk/; revision=66156
2015-02-04 03:22:48 +00:00
Hermès Bélusca-Maïto
6af8dff1f8 [FAST486]: Use a more "regular" syntax (i.e. understandable by other compilers than GCC).
svn path=/trunk/; revision=66155
2015-02-04 03:12:03 +00:00
Aleksandar Andrejevic
0027e5a95a [FAST486]
Implement FCHS, FABS, FTST, FXAM, FLD1, FLDL2T, FLDL2E, FLDPI, FLDLG2, FLDLN2 and FLDZ.


svn path=/trunk/; revision=66154
2015-02-04 02:47:13 +00:00
Hermès Bélusca-Maïto
56608c8fe0 [MPLAY32]: Use a consistent type/naming for mci errors.
svn path=/trunk/; revision=66153
2015-02-04 01:42:11 +00:00
Hermès Bélusca-Maïto
3c758ecb42 [MPLAY32]
Build the Open-File filter mask in runtime, according to the supported extensions and media devices registered in the registry.
Patch by Ricardo Hanke.
CORE-7883 #resolve #comment Committed, with number-of-chars vs. number-of-bytes fixes by me, plus minor modification to build the filter only once when mplay32 is launched, and use a default filter if runtime filter build fails.

svn path=/trunk/; revision=66152
2015-02-04 01:36:17 +00:00
Aleksandar Andrejevic
f0d5e95467 [FAST486]
Add stubs for the remaining FPU instructions. Implement FNOP.


svn path=/trunk/; revision=66151
2015-02-03 03:26:59 +00:00
David Quintana
5ddd8473f3 [RSHELL]
* Add comments in some key places.
* Reshuffled the order of a few methods.

svn path=/trunk/; revision=66150
2015-02-02 22:06:59 +00:00
James Tabor
be2a9b2e37 [Win32ss]
- Fix SeaMonkey crash while restarting the web browser.

svn path=/trunk/; revision=66149
2015-02-02 06:22:26 +00:00
Eric Kohl
168427ac29 [NTOSKRNL]
SeAssignSecurityEx: Add support for SEF_DEFAULT_OWNER_FROM_PARENT and SEF_DEFAULT_GROUP_FROM_PARENT.
This fixes several kmtest:SeInheritance bugs.

svn path=/trunk/; revision=66148
2015-02-01 23:01:31 +00:00
Hermès Bélusca-Maïto
80a5b9b021 [STLPORT]
Fix assignment. Patch by Victor Martinez.
CORE-8117 #resolve #comment Fixed in r66147, thanks!

svn path=/trunk/; revision=66147
2015-02-01 22:37:06 +00:00
Hermès Bélusca-Maïto
dcf70ea86f [FREELDR]: All tabs to 4 spaces and remove trailing whitespace.
svn path=/trunk/; revision=66146
2015-02-01 22:15:32 +00:00
Hermès Bélusca-Maïto
cd843a9298 [FREELDR]
- Code style changes (whitespace + C-style comments).
- Move reactos/registry to windows/ since it's only for booting windows-like OSes that registry functions are used.
- ARC hw support functions first move (i.e. another code refactoring will happen) outside of reactos/ (since they are used generally, not just for ReactOS loading).
- ARC name outside of reactos/
- Delete now-useless reactos/ subdirectory.

svn path=/trunk/; revision=66145
2015-02-01 21:35:45 +00:00
Hermès Bélusca-Maïto
fd896be2a7 [FREELDR]
- Fix date format in CHANGELOG (that uses that #$@! of US format)
- Diverse code style changes (whitespace, extra braces, C++ to C-style comments, ...)

svn path=/trunk/; revision=66144
2015-02-01 20:22:13 +00:00
Hermès Bélusca-Maïto
2682e03820 [FREELDR]
- Remove an unexisting function declaration.
- Move some boot methods back to suitable place.
- Whitespace fixes.

svn path=/trunk/; revision=66143
2015-02-01 17:49:11 +00:00
Hermès Bélusca-Maïto
42ef1d09a7 [FREELDR]: Pseudo-fix my previous commit. But anyway, the "usebiossettings" case looks strange... (I mean, this precise line: LoaderRedirectionInformation.PortAddress = (PUCHAR)strtoul(Settings, 0, 16); ).
svn path=/trunk/; revision=66142
2015-02-01 15:22:31 +00:00
Hermès Bélusca-Maïto
3536a8463e [FREELDR]: Don't use a null pointer for strstr call.
CORE-8198 #resolve #comment Fixed.

svn path=/trunk/; revision=66141
2015-02-01 15:10:19 +00:00
Hermès Bélusca-Maïto
434111e8b0 [CMLIB]: Whitespace fixes only.
svn path=/trunk/; revision=66140
2015-02-01 14:39:35 +00:00
Eric Kohl
df5dff26f4 [NTOSKRNL][INCLUDE]
Add keyed event access mask values and use them in the keyed event object implementation.
This fixes another kmtest:ObTypes bug.

svn path=/trunk/; revision=66139
2015-02-01 13:59:09 +00:00
Hermès Bélusca-Maïto
b799bbb859 [RTL]
- Whitespace files.
- Add missing PSEH inclusion (that can be detected if one comments the objbase.h include in rtl.h ...)

[MKHIVE]
Code cleanup + add a comment to explain what this ntoskrnl.h file is.

svn path=/trunk/; revision=66138
2015-02-01 13:33:06 +00:00
Hermès Bélusca-Maïto
5a6cb60c3d [CDMAKE]: Code cleanup (remove useless comments and that setjmp thingie).
svn path=/trunk/; revision=66137
2015-02-01 12:39:37 +00:00
Eric Kohl
30701b9657 [NTOSKRNL]
Set invalid atributes for the mutant object type. This fixes a kmtest:ObTypes bug.

svn path=/trunk/; revision=66136
2015-02-01 12:24:03 +00:00
James Tabor
e007c66f9b [NtUser]
- Add default setting to Foreground Flash Count. Should fix flash.

svn path=/trunk/; revision=66135
2015-01-31 23:30:30 +00:00
Aleksandar Andrejevic
6af9d3e24c [FAST486]
Implement FLDENV and FRSTOR.


svn path=/trunk/; revision=66134
2015-01-31 22:47:05 +00:00
James Tabor
4c848e9a69 [NtUser]
- Get flash window ready for use. Still more testing is needed. Missing shell support.

svn path=/trunk/; revision=66133
2015-01-31 22:41:34 +00:00
James Tabor
db9a74e7cc [NtUser]
- Hack fix crash while removing menus. See CORE-9107 for crash information and CORE-8299 for overall menu issues.

svn path=/trunk/; revision=66132
2015-01-31 21:44:26 +00:00
Aleksandar Andrejevic
8c1b044a8c [FAST486]
Implement FSTENV and FSAVE. Keep track of the last FPU instruction and operand.


svn path=/trunk/; revision=66131
2015-01-31 21:34:56 +00:00
Hermès Bélusca-Maïto
2369d5c3db Code style changes only.
svn path=/trunk/; revision=66130
2015-01-31 19:05:15 +00:00
Hermès Bélusca-Maïto
2f36640fb3 No code clarification, sorry.
svn path=/trunk/; revision=66129
2015-01-31 18:56:14 +00:00
Hermès Bélusca-Maïto
1957f91121 [CDMAKE]: Fix Philip's firstname; clarify code.
svn path=/trunk/; revision=66128
2015-01-31 18:54:52 +00:00
Hermès Bélusca-Maïto
73164f7524 [CDMAKE]: Have fun with cdmake:
- Fix copyright headers
- Fix string identifiers for ISO9660 and Joliet

svn path=/trunk/; revision=66127
2015-01-31 18:44:28 +00:00
Aleksandar Andrejevic
73f35d3ca1 [FAST486]
Implement FST/FSTP for single reals.


svn path=/trunk/; revision=66126
2015-01-31 16:13:40 +00:00
Eric Kohl
7008e871d9 [NPFS]
Fix a little logical error. This should fix the ntdll pipe winetest.

svn path=/trunk/; revision=66125
2015-01-31 15:58:00 +00:00
Hermès Bélusca-Maïto
494d45c39e [SHELL32]
Improve "no-open" feature by using a better icon. Patch by Jared.
CORE-9102 #resolve #comment Fixed ;)

svn path=/trunk/; revision=66118
2015-01-30 00:43:35 +00:00
Hermès Bélusca-Maïto
c389b991cd [BOOTDATA]: Default also to 32bpp (livecd, ...); see r65498 for more details. CORE-8826
svn path=/trunk/; revision=66113
2015-01-29 01:35:21 +00:00
Hermès Bélusca-Maïto
40c1535d0f [PACKAGES]: Update GNUTLS package files (tested by Sylvain & Daniel).
svn path=/trunk/; revision=66110
2015-01-29 00:43:44 +00:00
Hermès Bélusca-Maïto
77df154671 [LIVE|HYBRIDCD]: We also need an empty "Default User/Start Menu/Programs" directory.
svn path=/trunk/; revision=66109
2015-01-29 00:20:56 +00:00
Hermès Bélusca-Maïto
cf50f5cc47 [ROS***]: Add few more information in the readme's.
svn path=/trunk/; revision=66108
2015-01-29 00:15:35 +00:00
Hermès Bélusca-Maïto
5875781e83 [REACTOS_SETUP]
Show a critical error if txtsetup.sif cannot be found, instead of displaying empty fields in the setup. Patch by Lee Schroeder.
CORE-8971 #resolve #comment Fixed, thanks!

svn path=/trunk/; revision=66107
2015-01-29 00:06:55 +00:00
Hermès Bélusca-Maïto
249f9c7ce2 [FREELDR]: Reset FrldrBootDrive before chainloading in some cases (when the boot drive is going to change), because ChainLoadBiosBootSectorCode uses FrldrBootDrive for the boot drive. An alternative would be to pass this boot drive as a parameter to ChainLoadBiosBootSectorCode... Fixes FreeLdr booting to another drive.
svn path=/trunk/; revision=66106
2015-01-28 23:23:48 +00:00
Sylvain Petreolle
789f1cabb1 [LIVECD]
Add shortcut to the On Screen Keyboard.
Patch by Jared.
CORE-9093 #resolve

svn path=/trunk/; revision=66105
2015-01-28 22:32:53 +00:00
Sylvain Petreolle
9c919ee3e2 [UNIATA]
Update to 0.45e.
CORE-8727 #resolve
Sorry for the delay !

svn path=/trunk/; revision=66104
2015-01-28 22:20:09 +00:00
Pierre Schweitzer
c58284202d [FREELDR]
Revert r66102

svn path=/trunk/; revision=66103
2015-01-28 21:03:18 +00:00
Pierre Schweitzer
7e14b032e6 [FREELDR]
Fix REL build

svn path=/trunk/; revision=66102
2015-01-28 20:52:38 +00:00
Pierre Schweitzer
cb47930ae1 [CDMAKE]
It's totally pointless to nullify after calloc

svn path=/trunk/; revision=66101
2015-01-28 20:41:23 +00:00
Hermès Bélusca-Maïto
abc4e17f7c [CDMAKE]
- Fix misusage of the hash-table. CORE-9098 #resolve #comment Fixed in revision 66100!
- Really fix date for files and directories when CDs are generated on Windows. Use UTC time everywhere. Simplify code.

svn path=/trunk/; revision=66100
2015-01-28 20:26:56 +00:00
Timo Kreuzer
311d5df6e2 [FREELDR]
Increase number of static memory descriptors from 32 to 40.
CORE-9097 #resolve #comment Please retest and reopen if it's still not fixed.

svn path=/trunk/; revision=66099
2015-01-27 22:19:25 +00:00
Hermès Bélusca-Maïto
de72d5eae8 [CDMAKE]: Whitespace fixes only.
svn path=/trunk/; revision=66098
2015-01-27 19:31:19 +00:00
Hermès Bélusca-Maïto
ff86a5c370 Fix bootcd-regtest target. All the bootsectors (plus isoboot) should go to bootcd and bootcdregtest cds, and only isoboot should remain for the live and hybrid cds.
svn path=/trunk/; revision=66097
2015-01-27 00:19:02 +00:00
Colin Finck
b4c0d0c2fe [EXPLORER]
- Provide an editable file for the start menu banner just like we had for explorer-old
- Use the same font that's used for the ReactOS logo

svn path=/trunk/; revision=66095
2015-01-26 22:32:43 +00:00
Timo Kreuzer
320306b310 [WIN32K]
Fix major bug in EngModifySurface: when pvScan0 and lDelta are passed, the surface is converted to type STYPE_BITMAP. pvBits is calculated accordingly and surface flags are updated according to flSurface parameter. Fixes crash with Intel 810 graphic drivers. Thanks to Julio Carchi for testing/helping with debugging. CORE-7821 #resolve

svn path=/trunk/; revision=66094
2015-01-26 22:11:34 +00:00
Hermès Bélusca-Maïto
7c751fe5dc [REACTOS]
- CORE-9069 #comment Add a "NOT_IN_HYBRIDCD" flag (I don't have atm. a better name...) to specify files that must not be present in the bootcd/... or livecd/... directories of the hybridcd. The flag name is confusing because for few files (eg. readme.txt) it is used together with the target "all hybridcd". In this case, that means: add readme.txt file to the bootcd and livecd root directories, add it to the hybridcd root directory but NOT in the bootcd/ and livecd/ directories of the hybridcd... Everybody follows?
- Remove the bootsector files for the livecd (only keep isoboot though :) ) since they are not needed there (they are only needed for the bootcd).

svn path=/trunk/; revision=66092
2015-01-26 21:19:21 +00:00
Timo Kreuzer
e7d852bc11 [FREELDR]
Fix/improve range check. 
CORE-8995 #resolve 
CORE-8997 #resolve

svn path=/trunk/; revision=66091
2015-01-26 21:11:58 +00:00
James Tabor
890e37805d - Turn off trace.
svn path=/trunk/; revision=66089
2015-01-26 15:01:52 +00:00
James Tabor
8d5b642a5f [Win32ss|NtUser]
- Support process start up user show window parameter.

svn path=/trunk/; revision=66088
2015-01-26 15:00:24 +00:00
Timo Kreuzer
63ae430acc [FREELDR]
Make the DiskReadBuffer location and size dynamic. Should fix a number of issues with non-standard BIOSes. Many thanks to jeditobe for his help with testing/debugging of this issue.
CORE-8899 #resolve
CORE-9031 #resolve

svn path=/trunk/; revision=66087
2015-01-25 23:24:27 +00:00
Eric Kohl
273593de7e [CACLS]
Parsing arguments. Patch by Katayama Hirofumi.
#CORE-6799 #resolve

svn path=/trunk/; revision=66086
2015-01-25 19:22:49 +00:00
James Tabor
c094b4cd6e [Win32ss]
- Fix window from point so it handles disabled windows correctly.
- Cleanup processing mouse routine.
- See CORE-7447.

svn path=/trunk/; revision=66085
2015-01-25 15:57:22 +00:00
Thomas Faber
a46eeba526 [WIN32K:NTUSER]
- Do not use pwndChild uninitialized in co_WinPosSearchChildren

svn path=/trunk/; revision=66084
2015-01-25 15:26:13 +00:00
Hermès Bélusca-Maïto
66cc347765 [CDMAKE]
- Disable unused dir_hash_next_dir function and corresponding target_dir_traversal structure definition.
- Be really sure de->head and de->child are initialized at NULL.
- Remove extra parentheses and unused variable.

svn path=/trunk/; revision=66083
2015-01-24 00:15:08 +00:00
Hermès Bélusca-Maïto
8ee4a20157 [DOSMBR]
- tab --> 4-spaces.
- add some Uppercases at the beginning of sentences...

svn path=/trunk/; revision=66082
2015-01-23 22:21:09 +00:00
Hermès Bélusca-Maïto
a40388d89c [HYBRIDCD]: It appears we need to manually create the default_user/desktop folder to not fail (as we do for the real livecd).
svn path=/trunk/; revision=66081
2015-01-23 22:19:33 +00:00
Hermès Bélusca-Maïto
ea6251ad97 [CDMAKE]
- llmosrt.c --> llmsort.c as it should be named.
- Remove useless free(...) calls and a temp variable.

svn path=/trunk/; revision=66080
2015-01-23 21:38:15 +00:00
James Tabor
44613092ba [Win32ss]
- Plugging in the real fix for CORE-6129!
- Works like it should, but CMD properties window gets active when it should not. See CORE-6651.

svn path=/trunk/; revision=66078
2015-01-22 23:31:22 +00:00
Hermès Bélusca-Maïto
d829df8c49 [WALLPAPER]
Remove now unneeded RBuild file.

svn path=/trunk/; revision=66077
2015-01-22 22:29:48 +00:00
Amine Khaldi
57febf6ccf [DBGHELP] Restrict the Clang workaround in r64203. Fixes CORE-9084. Many thanks to David Quintana and The Arty for their help. Dedicated to Jim ;)
svn path=/trunk/; revision=66076
2015-01-22 21:13:57 +00:00
Timo Kreuzer
1adc737644 [WIN32K]
Fix broken ASSERTs
CORE-8938 #resolve

svn path=/trunk/; revision=66075
2015-01-22 21:03:46 +00:00
James Tabor
6362e14265 [NtUser]
- Finally fix ATI tests. Break through while testing User32:win.c:test_window_from_point. See CORE-6551.
- If any trouble, please create a new Jira report.

svn path=/trunk/; revision=66074
2015-01-21 23:15:28 +00:00
Hermès Bélusca-Maïto
571af394cd [REACTOS] HybridCD: Move the livecd.iso file into the livecd directory.
svn path=/trunk/; revision=66073
2015-01-21 22:24:47 +00:00
Amine Khaldi
f30e744a14 [TCPIP_DRVTEST] Temporarily fix build.
svn path=/trunk/; revision=66072
2015-01-21 18:38:26 +00:00
Jérôme Gardou
6113b2f585 [TCPIP_DRVTEST]
- Actually print the physical address of the ARP table entry.

svn path=/trunk/; revision=66071
2015-01-21 16:01:02 +00:00
Jérôme Gardou
1f7304870c [TCPIP_DRVTEST]
- Add quite a lot of tests for IOCTL_TCP_QUERY_INFORMATION_EX
This IOCTL is quite important because that's how iphlpapi gets data from it.
Also, this can be used as a viewer for quite a lot SNMP info as described here: http://www.oidview.com/mibs/0/RFC1213-MIB.html

svn path=/trunk/; revision=66070
2015-01-21 15:55:00 +00:00
Eric Kohl
acf84c8854 [NETCFGX][SYSSETUP]
- Move TCP/IP driver setup code from netcfgx to syssetup.
- Implement SetupStartService().
This installs the TCPIP driver even if no network adapter is available.
CORE-8420 #resolve

svn path=/trunk/; revision=66069
2015-01-20 20:57:58 +00:00
Timo Kreuzer
caae20ea25 [SPEC2DEF]
Fix generation of ARM assembly stubs with C++ name mangling. Patch by Yuntian Zhang.
CORE-8700 #resolve #comment Committed, thanks.

svn path=/trunk/; revision=66068
2015-01-20 18:33:33 +00:00
Amine Khaldi
b978d73b11 [NOTEPAD]
* Replace the page setup dialog with a modified copy from comdlg32. Use PageSetupDlg and a hook function to bring the dialog on screen instead of DialogBox and a dialog procedure. With this, PageSetupDlg can do most of the work (init the controls for example).
* Save the returned hDevMode and hDevNames to two global variables, so we can use them in later calls to page setup and print.
* Include header, footer and page margins when saving/loading settings.
* Remove printer setup from the file menu (and related code/resources) since it isn't needed anymore.
* Brought to you by Ricardo Hanke.
CORE-9040

svn path=/trunk/; revision=66067
2015-01-20 12:12:40 +00:00
Timo Kreuzer
7638b204cd [WIN32K]
Remove broken ASSERT
CORE-9033 #resolve
See issue #9033 for more details.

svn path=/trunk/; revision=66066
2015-01-19 23:24:07 +00:00
Eric Kohl
e269d75d98 [DEVMGR]
Enlarge the buffer by one WCHAR if REG_SZ values are being retrieved. This fixes strange enumerator properties.

svn path=/trunk/; revision=66065
2015-01-19 21:10:04 +00:00
Amine Khaldi
af6fb5892b [EVENTVWR] Fix the template of event details string copied in the memory clipboard. By Ștefan Fulea. CORE-8914
svn path=/trunk/; revision=66064
2015-01-19 13:00:03 +00:00
Amine Khaldi
482f3cba63 [NOTEPAD] Don't hardcode the error message that's displayed if StartPage fails. By Ricardo Hanke. Translators, you're up! CORE-9045
svn path=/trunk/; revision=66063
2015-01-19 12:49:51 +00:00
Amine Khaldi
997daf446e [SYSDM] Fix clicking on open User Accounts while using sysdm.cpl. By Jared. CORE-9047
svn path=/trunk/; revision=66062
2015-01-19 12:44:21 +00:00
Amine Khaldi
96d28bebdf [NOTEPAD] Allow the user to print only the current selection. Brought to you by Ricardo Hanke. CORE-9052
svn path=/trunk/; revision=66061
2015-01-19 12:40:34 +00:00
Amine Khaldi
484fabea89 [CRT] Fix handling of TLS data. Found by the syzygy folks. CORE-9071
svn path=/trunk/; revision=66060
2015-01-19 12:29:18 +00:00
Amine Khaldi
efcad39e0e [RAPPS] Turkish translation update by Erdem Ersoy. CORE-8874
svn path=/trunk/; revision=66059
2015-01-19 12:16:17 +00:00
Amine Khaldi
549a3d8b04 [RTL] Apply Wine commit cffd86f by Qian Hong: Make RtlAddVectoredExceptionHandler hotpatchable.
svn path=/trunk/; revision=66058
2015-01-19 12:06:17 +00:00
Amine Khaldi
3b7809f832 [TRANSLATIONS] Turkish translation update by Erdem Ersoy. CORE-7861
svn path=/trunk/; revision=66057
2015-01-19 12:05:42 +00:00
James Tabor
53c063af78 [User32]
- When sending set cursor with an error hit, it should locate a pop up window if any are visible. See CORE-6651.
- Need to fix NtUser co_IntProcessMouseMessage and co_WinPosWindowFromPoint properly. While testing, added hack to help make this work.
- REAL fix for CORE-6129.

svn path=/trunk/; revision=66056
2015-01-18 22:55:03 +00:00
James Tabor
2439d0030f [NtUser]
- Fix return to previously active window. See CORE-106.

svn path=/trunk/; revision=66055
2015-01-18 22:39:56 +00:00
Hermès Bélusca-Maïto
2bf5258b98 [HYBRIDCD]: Require dependency from bootcd too, so that the files that are needed for building the bootcd (the reactos.cab, .inf etc) are also built so that they can be incorporated into the hybridcd.
CORE-9069

svn path=/trunk/; revision=66054
2015-01-18 19:21:42 +00:00
Amine Khaldi
9c8e45896b [KERNEL32] Apply Wine commit caa0829 by Qian Hong: Make SetUnhandledExceptionFilter hotpatchable.
svn path=/trunk/; revision=66053
2015-01-18 16:49:17 +00:00
Hermès Bélusca-Maïto
40e2cf8ff0 [REACTOS]
Introduce a way to add arbitrary files into the hybrid cd under a "extras" directory:
- put your files into /trunk/reactos/modules/hybridcd_extras
- do a cmake . && ninja hybridcd
- voilà.
Notice that you need to redo a configure (via "cmake .") in order to update the hybridcd list of files that get included into the hybridcd...

CORE-9069

svn path=/trunk/; revision=66052
2015-01-18 16:28:18 +00:00
Hermès Bélusca-Maïto
bb43ef9710 [REACTOS]
Add basic Hybrid-CD generation to our build system.

Few changes were needed, especially in how we deal with the CD target "all": it's only for all the CD targets *BUT* the hybridcd. For the hybridcd you need to always specify the target manually (like in "... FOR all hybridcd" or "... FOR bootcd hybridcd" for example).

Since at the moment we cannot have the bootcd in RAMDISK, and I want to be able to either have the hybridcd booting livecd from within the CD (i.e. read/writes from the CD) or in RAMDISK, I need to also add the files that are going to be copied into the bootcd or livecd into the hybridcd.

CORE-9069 #resolve

svn path=/trunk/; revision=66051
2015-01-18 13:55:23 +00:00
Hermès Bélusca-Maïto
feb9cd80e4 [CDMAKE]: Remove potential trailing dir-separator characters at the end of the directory, in case e.g. we build up something like: "bootcd\\somefile.ext" in the boot/livecd.lst files (--> I want a directory "bootcd" and a file "somefile.ext", instead of the directory "bootcd\", otherwise the ISO becomes broken. Notice that when the path is "bootcd\somefile.ext the existing code worked ok. That's why I want to strip the remaining backslashes).
svn path=/trunk/; revision=66050
2015-01-18 13:11:35 +00:00
Hermès Bélusca-Maïto
147616c9fc [CDMAKE]: Whitespace and tabs fixes only. Next time you open your editor for coding ROS...: PLEASE, OH PLEASE!!! USE: 4-space indentation (NO TABS!!) and NO K&R coding style!!!!! (we *already* have a fixed code style in ROS).
svn path=/trunk/; revision=66049
2015-01-18 13:04:43 +00:00
Hervé Poussineau
67619ff9c8 [FREELDR] PXE: fix backward seeking (broken by r66036)
svn path=/trunk/; revision=66048
2015-01-17 22:48:29 +00:00
Hervé Poussineau
9dd2476ee1 [FREELDR] Limit disk buffer size to 0xC000 bytes, like before r65905
svn path=/trunk/; revision=66047
2015-01-17 22:48:21 +00:00
David Quintana
d7b7c58372 [RSHELL]
* Fix a long-lived signed/unsigned mismatch that may or may not have caused a few issues when hot-tracking the menubar.

svn path=/trunk/; revision=66046
2015-01-17 12:59:57 +00:00
Eric Kohl
58eee973cb [NTOSKRNL]
SepDuplicateToken: Do not allocate a new ModifiedId for the duplicated token. Use the ModifiedId of the source token instead. This fixes the DuplicateTokenEx test.

svn path=/trunk/; revision=66045
2015-01-17 11:53:40 +00:00
James Tabor
17b607a05e [User32]
- Alt-Tab Use windows logo icon as default. Patch from CORE-7864 #resolve

svn path=/trunk/; revision=66044
2015-01-17 00:31:19 +00:00
Hermès Bélusca-Maïto
3163c145e4 [CMAKE]: Tab2Space.
svn path=/trunk/; revision=66043
2015-01-16 22:42:08 +00:00
David Quintana
2ce78c4f63 [EXPLORER]
* Fix a HWND leak (and potential disaster that never happened) I noticed while investigating CORE-9008

svn path=/trunk/; revision=66042
2015-01-15 23:23:57 +00:00
David Quintana
5eee49bbea [EXPLORER]
* Addendum to r66040: Fix the return types and remove unused parameters.

svn path=/trunk/; revision=66041
2015-01-15 17:58:16 +00:00
David Quintana
ae7cd5ec73 [EXPLORER]
* Fix the notify window not resizing itself when the number of icons changes.
* Add error prints when AlignControls fails and exits early.
* Rename the Shell_NotifyIcon handler methods to something more appropriate.
CORE-9061 #resolve

svn path=/trunk/; revision=66040
2015-01-15 17:43:03 +00:00
Aleksandar Andrejevic
3e4d9f61d6 [NTVDM]
Implement INT 21h, AX = 38h (Get/Set Country-dependent Information).
Patch by Pierre Schweitzer. Thanks!


svn path=/trunk/; revision=66039
2015-01-14 22:22:05 +00:00
Daniel Reimer
9186a358da [RAPPS]
Improve the ReactOS Aplications Manager download dialog by Ismael Ferreras Morezuelas aka swyter
CORE-9056 #resolve #comment Committed, thx for help ^^

svn path=/trunk/; revision=66038
2015-01-14 21:56:27 +00:00
Hervé Poussineau
e7888466bb [NTOS:EX] Implement NtSystemDebugControl
svn path=/trunk/; revision=66037
2015-01-14 20:48:06 +00:00
Hermès Bélusca-Maïto
c788f45783 [FREELDR]: Addendum to PXE r66034: don't read after Path buffer validity.
svn path=/trunk/; revision=66036
2015-01-13 23:19:21 +00:00
Hervé Poussineau
f5ab68a2c6 [FREELDR] PXE: support backward seeking
svn path=/trunk/; revision=66035
2015-01-13 20:08:23 +00:00
Hervé Poussineau
cf89d4fdea [FREELDR] PXE: always use slashes for subdirectories and use lower casing
svn path=/trunk/; revision=66034
2015-01-13 20:08:18 +00:00
Hervé Poussineau
d08d31ad43 [FREELDR] Support failing to load some boot drivers
In that case, simply skip it and try the next one.

svn path=/trunk/; revision=66033
2015-01-13 20:08:14 +00:00
James Tabor
924eb19e72 [Win32ss]
- Remove hack to work around issue CORE-9039.
- Bypass two more DDE message calls from callback. Remove unneeded code.


svn path=/trunk/; revision=66032
2015-01-12 22:50:12 +00:00
James Tabor
5598f29e06 [NtOSKrnl]
- Fix status return from user mode callback. See CORE-9039.

svn path=/trunk/; revision=66031
2015-01-12 22:44:59 +00:00
David Quintana
ad29cd12e8 [RSHELL]
* Overhaul the Popup method's position calculation. It now takes into account proper alignment preferences and exclusion rectangles in order to position menu popups better.
* Fix a small compatibility issue with windows shell objects.
* Use the item rectangle for the exclusion, so that the popup code can properly calculate how to flip the menu position if it doesn't fit downwards.

[EXPLORER]
* Fix the flags sent to Popup when showing the start menu. We have flags that say exactly what we want, and MPPF_ALIGN_LEFT/RIGHT were introduced with NT6 anyhow.
CORE-9004 #resolve #comment Should be fixed with trunk r66030.

svn path=/trunk/; revision=66030
2015-01-12 18:03:39 +00:00
Hervé Poussineau
12d6b50f62 [cdmake] Set correct dates for directory entries
Set directory creation date to creation date of its parent, and fix root directory creation date.

This fixes a off-by-one month if ISO was created between February and December,
and invalid dates if ISO was created in January.

svn path=/trunk/; revision=66029
2015-01-11 20:43:41 +00:00
Eric Kohl
91c663f1f3 [NETSHELL]
Change resource strings to plural form 'Network Connections'.
CORE-9010 #resolve

svn path=/trunk/; revision=66028
2015-01-11 15:12:34 +00:00
Eric Kohl
6d11175bf0 [NETSHELL]
Fix coding syle and indentation. No code changes!

svn path=/trunk/; revision=66027
2015-01-11 14:58:55 +00:00
Daniel Reimer
4cc63e832b [RAPPS]
Database Update. This fixes the now dead LibreOffice link, too.
I completely skipped MirandaIM because they suck by deciding to do the same shit, Filezilla did. SF Malware "optimized" installer!

svn path=/trunk/; revision=66026
2015-01-11 14:38:26 +00:00
Daniel Reimer
b89c722854 [RAPPS]
Tidy up FF links in RAPPS. FF2 is DEAD! Instead we have now FF 3.6, 28 and newest.

svn path=/trunk/; revision=66025
2015-01-11 13:49:26 +00:00
Hermès Bélusca-Maïto
abbf37a507 [FREELDR]: Revert r66022. This wasn't our fault but VBox. See CORE-9046 for more details and proposed solution.
CORE-9046 #resolve #comment r66022 reverted.

svn path=/trunk/; revision=66024
2015-01-10 22:02:11 +00:00
Sylvain Petreolle
740ddee885 [LDR]
Relocating is NOT an eror.

svn path=/trunk/; revision=66023
2015-01-10 17:22:02 +00:00
Hermès Bélusca-Maïto
6117764150 [FREELDR]: Commit a temporary "hackfix" for (Pc)GetTime: on VBox when booting with PXE, for some mysterious reason, Int386(0x1A) call with AH = 0x02 (Get CMOS Time) *never ever* returns!! (however without PXE everything works). So... is it some kind of stack overflow or whatever that makes the Int386 function stack messy? Or something else? So in the meantime we use direct CMOS port reads. Timo, Hervé (and others), can you please review? And in particular why does it happen only with PXE?
svn path=/trunk/; revision=66022
2015-01-10 00:21:33 +00:00
Hermès Bélusca-Maïto
35b0d2e7ed [NTOS]: Bring into evidence an existing hack in PnPMgr, in the hope it'll be fixed and not remain here again for years...
svn path=/trunk/; revision=66021
2015-01-09 19:58:19 +00:00
Hermès Bélusca-Maïto
79f472a422 [RAMDISK]
- Fix DeviceRelations allocation bug
- Code style: Use sizeof(UNICODE_NULL) where needed; use sizeof(*ptr) for size of type pointed by ptr, when allocating space for ptr.

svn path=/trunk/; revision=66020
2015-01-09 18:26:17 +00:00
David Quintana
64f6189e30 [EXPLORER]
* Allow the result of the notify requests to return back to the caller. Fixes regressed shell32:systray winetests.
CORE-8840 #resolve #comment Should be properly fixed in r66019.

svn path=/trunk/; revision=66019
2015-01-09 17:24:43 +00:00
Amine Khaldi
8f3b11bfe3 [RAMDISK] Fix some comment typos. Convert comments to C style. No code changes.
svn path=/trunk/; revision=66018
2015-01-09 16:57:24 +00:00
David Quintana
1cab840681 Revert files that shouldn't have been included. I blame an ongoing headache for it.
svn path=/trunk/; revision=66017
2015-01-09 16:32:53 +00:00
David Quintana
a1fe1d888b [STOBJECT]
* Disable compiling the resource dialog for ro-RO also.

svn path=/trunk/; revision=66016
2015-01-09 16:29:46 +00:00
David Quintana
2f16a3b6da [STOBJECT]
* Fix resource strings so they compile correctly.
* Make use of the resource strings for the tooltip.
* Implement a context menu for the volume icon, using resource strings.
NOTE: I have a strange issue where the cursor disappears while the popup is open. No idea if it's my fault or win32k.

svn path=/trunk/; revision=66015
2015-01-09 16:25:49 +00:00
Hermès Bélusca-Maïto
7dbd809ef0 [ramdisk]: improve again the dprints.
svn path=/trunk/; revision=66014
2015-01-09 14:17:39 +00:00
Hermès Bélusca-Maïto
f3dfb65738 [RAMDISK]
- Whitespace fixes,
- Add braces for long "case blah: ..." code blocks,
- Add more informational messages when a feature is unimplemented (some control codes and cases happening when using ramdisk with bootcd).

svn path=/trunk/; revision=66013
2015-01-09 14:09:34 +00:00
Hermès Bélusca-Maïto
057211e26a [INSTALL_FREELDR]
Instead of keeping binary C arrays for FAT bootsectors (that by the way were completely out of date and were broken) in header files, just generate them out of our ASM-compiled bootsectors, with bin2c (as we do for PCI data for the HAL) and use them instead! So now we can use installfreeldr.exe to install e.g. a correct bootsector on a USB key that will work for loading freeldr! (and thus get rid of the Syslinux hack I presented in my video).

svn path=/trunk/; revision=66012
2015-01-09 00:12:51 +00:00
James Tabor
87a268ef23 [Win32ss]
- Fix remaining DDE issues, re-sync DDE code from wine. Add QOS startup. Moved error debug prints to traces. Over all improvement with test results.

svn path=/trunk/; revision=66011
2015-01-08 22:57:09 +00:00
Hermès Bélusca-Maïto
9a959644b3 [NTGDI]: #if'ed 0 unused pdcattr variable. Associated code with it went away in revision 65912. Timo, was it on purpose? Because in other NTGDI functions (in the same file) this code remained... (I'm talking about the if (pdcattr->ulDirty_ & (DIRTY_FILL | DC_BRUSH_DIRTY)) { DC_vUpdateFillBrush(dc); } things).
svn path=/trunk/; revision=66010
2015-01-08 20:35:51 +00:00
Pierre Schweitzer
a394c6bff6 [NTFS]
- Move directory enumeration into its own routine to prevent code duplication.
- Also, only take care of sub-node at the end of the enumeration. It doesn't make sense before.
- Supporting sub-nodes is still to be done.

svn path=/trunk/; revision=66009
2015-01-08 20:30:10 +00:00
Pierre Schweitzer
3feaedc7c5 [NTFS]
Also return MFT index in case of FileDirectoryInformation query

svn path=/trunk/; revision=66008
2015-01-08 20:29:04 +00:00
Pierre Schweitzer
c60b5e1383 [NTFS]
Also retrieve $STANDARD_INFORMATION attribute on directory enumeration to get the right file attributes.
This fixes improper display in cmd & in explorer due to missing file attributes flags

svn path=/trunk/; revision=66007
2015-01-08 20:28:25 +00:00
Amine Khaldi
5b57ee5686 [SHELL32_WINETEST] Enable test_dde() and test_dde_default_app(). CORE-6559
svn path=/trunk/; revision=66006
2015-01-08 16:42:35 +00:00
Amine Khaldi
383b76a99b [NOTEPAD] Fix some comment typos. Tabs => Spaces. Apply consistent formatting. No code changes.
svn path=/trunk/; revision=66005
2015-01-08 13:20:02 +00:00
Amine Khaldi
04d328abd5 [RAPPS] Romanian update by Ștefan Fulea. CORE-9034
svn path=/trunk/; revision=66004
2015-01-08 11:05:52 +00:00
Amine Khaldi
cec045f21e [URLMON][SHORTCUTS] Romanian update by Ștefan Fulea. CORE-9034
svn path=/trunk/; revision=66003
2015-01-08 10:56:38 +00:00
Amine Khaldi
aac93e5024 [TRANSLATIONS] General maintenance of Romanian resources by Ștefan Fulea. CORE-9034
svn path=/trunk/; revision=66002
2015-01-08 10:54:20 +00:00
James Tabor
be782dbced - Fix build.
svn path=/trunk/; revision=66001
2015-01-08 01:00:03 +00:00
James Tabor
2d94b2173f [Win32s]
- Implement DDE from wine. Leaving debug errors on the run and later move to trace. See CORE-7447.
- Use callbacks to User32 to convert the data and track it in Win32k.
- Add a new Quality of Service atom.
- Add things to class.c.
- Shell32 tests run now too, or only 4 run. This might be fixed too, since locating a lParam write back issue.

svn path=/trunk/; revision=66000
2015-01-08 00:56:51 +00:00
James Tabor
418366bf44 [User32]
- Fix DDE Server Class names to match system Atoms.

svn path=/trunk/; revision=65999
2015-01-07 21:47:33 +00:00
Hermès Bélusca-Maïto
cef76b7a93 [TOOLS]: Slap some sense in the indentation of some files. Next time: PLEASE CHECK YOUR F*CKING EDITOR's TABS AND SET THEM TO 4 SPACES BEFORE DOING ANYTHING ELSE!!!! (and not to 8 spaces and then use 4 space indentation and complete with tabs).
svn path=/trunk/; revision=65998
2015-01-07 19:26:49 +00:00
Hermès Bélusca-Maïto
30f966769f [SPEC2DEF]: Turn the tab character into its control code. Timo, is this tab really needed for ARM stubs, or not? (in that case maybe removing it would be better?)
svn path=/trunk/; revision=65997
2015-01-07 18:45:46 +00:00
Hermès Bélusca-Maïto
e0b0325c96 [HPP]: tab2space fixes.
svn path=/trunk/; revision=65996
2015-01-07 18:25:21 +00:00
Hermès Bélusca-Maïto
c67fcc673a [KBDTOOL]: Whitespace fixes.
svn path=/trunk/; revision=65995
2015-01-07 18:24:14 +00:00
Hermès Bélusca-Maïto
3f427653d8 [TOOLS]: Adds back kbdtool (Keyboard Layout Compiler), and hpp (Header File Preprocessor) too, to host-tools compilation.
svn path=/trunk/; revision=65994
2015-01-07 17:55:58 +00:00
James Tabor
4d380127d3 [Win32k]
- Answer my own question. Use the Extra Information long pointer to help traffic data. See CORE-7447.

svn path=/trunk/; revision=65993
2015-01-07 14:02:45 +00:00
Christoph von Wittich
1f48881307 [SHELL32_WINETEST]
do not skip progman_dde tests anymore

svn path=/trunk/; revision=65992
2015-01-07 09:58:38 +00:00
James Tabor
b204ea4aef [Win32k]
- Pass process ID to process information structure.

svn path=/trunk/; revision=65991
2015-01-06 04:17:20 +00:00
James Tabor
7de914f84e [Win32k]
- Fix control list of atoms.
- Add DDE atom.

svn path=/trunk/; revision=65990
2015-01-05 22:32:16 +00:00
James Tabor
0c9a650aa9 [ApiTest]
- Add a test for sequential list of control atoms. This is an addition to the Real Classes tests.

svn path=/trunk/; revision=65989
2015-01-05 22:25:48 +00:00
Hermès Bélusca-Maïto
bf3f878ee5 [FREELDR]: Make RamDiskLoadVirtualFile returning a BOOLEAN such that if we fail to load a Ram disk image, we can display an error message and abort boot.
svn path=/trunk/; revision=65988
2015-01-05 22:24:56 +00:00
Hermès Bélusca-Maïto
2bc6104f3d [SNDREC32]: I've just learnt that in Spanish they use the "principle of least capitalization", so follow this rule :D Thanks Ismael for having taught me this rule xD
svn path=/trunk/; revision=65987
2015-01-05 22:00:00 +00:00
Hermès Bélusca-Maïto
6ed8a87e4d [SNDREC]
- Uppercase fixing for the english app title of Sound Recorder. From a suggestion by Jared.
- Fix some french translation.
- Fix some "reactos_sndrec32" thingie in other languages.

Translators, please review and fix the translations!

CORE-9029 #resolve #comment Corrected in revision 65986, thanks!

svn path=/trunk/; revision=65986
2015-01-05 21:26:46 +00:00
James Tabor
78a30834a2 [Win32k]
- Get DDE working halfway. Pass more tests but still missing other tests. See CORE-7447.

svn path=/trunk/; revision=65985
2015-01-05 19:44:49 +00:00
Hermès Bélusca-Maïto
e36f91e0de [FREELDR]: Fix all (?, or almost?) LONG Status; into ARC_STATUS, and the awfully ugly BOOLEAN Status into BOOLEAN Success.
svn path=/trunk/; revision=65984
2015-01-05 01:34:29 +00:00
Hermès Bélusca-Maïto
a1b3d1f7e8 [USETUP]: "/RDIMAGEPATH" was a relinquish of very old FreeLdr code, at the time we had a special ReactOS boot method. Now we use a NTLDR-compatible switch "/RDPATH".
svn path=/trunk/; revision=65983
2015-01-05 00:46:08 +00:00
Hermès Bélusca-Maïto
1ebcd68f0d [FREELDR]
- Correctly append a backslash to the BootPath (if needed).
- Be able to specify relative boot paths (relative to the current boot device): as a consequence, remove the "LiveCD" hackish special value that was introduced long long ago.
- Fix BootPath retrieval in ReactOSSetup mode (via the SystemPath optional value), and use a better way to build the temporary txtsetup.sif full file names.

As a consequence we can now build hybrid cds with the following architecture:
\
--> loader\ (bootsectors + free/setupldr.sys)
--> myboot\ (contents of what_defaults_to_reactos directory for the bootcd)
--> mylive\ (contents of what_defaults_to_reactos directory for the livecd)
--> <regular_files>
and
freeldr.ini specifying the following values:

; The Setup entry
[Setup]
BootType=ReactOSSetup
SystemPath=\myboot

; The LiveCD entry
[LiveCD]
BootType=Windows2003
SystemPath=\mylive
Options=/MININT

Part 2/2
CORE-9023

svn path=/trunk/; revision=65982
2015-01-04 23:49:18 +00:00
Hermès Bélusca-Maïto
614b562bb0 [FREELDR]
- Some whitespace fixes in fs.h and code simplifications in fs.c
- Make FsOpenFile working correctly on non-ARC and ARC file names.
- Use FsOpenFile for opening ramdisks instead of ArcOpen (the file "handle" returned by FsOpenFile is just the FileId for ARC functions). Therefore we can open ramdisks files using Windows OSLOADER syntax, i.e. /RDPATH=the_image_file instead of being forced to append for example: net(0) (as in: /RDPATH=net(0)\the_image_file ): see http://lokniketan.org/index.php?title=PXE_booting_to_BARTPE#Work_with_files_in_the_TFTPBOOT_directory for an example of what I mean.

Part 1/2
CORE-9023

svn path=/trunk/; revision=65981
2015-01-04 23:41:14 +00:00
James Tabor
5ef2270ad9 [User32]
- Disable Ime Class support until Win32k Init bugs are fixed. 8^( Fix test bot.

svn path=/trunk/; revision=65980
2015-01-04 19:40:56 +00:00
Hermès Bélusca-Maïto
9ac9e563c2 [FREELDR] Some more code reorg before real fixes happen.
svn path=/trunk/; revision=65979
2015-01-04 19:37:12 +00:00
James Tabor
4b33c4ba90 [User32]
- Now move Dde function from stubs.

svn path=/trunk/; revision=65978
2015-01-04 19:34:58 +00:00
James Tabor
ee1b62f7f1 [Win32s]
- Implement Ime (only) class support. This is for the new synced class tests. Recommending Developers choice for testing real Imm32.dll support. Should include registry Loading of IMM via Win32k.
- Based on patch by Piotr Caban : Move IME window procedure to user32.

svn path=/trunk/; revision=65977
2015-01-04 19:27:40 +00:00
James Tabor
b74720f96d [Win32k]
- Move DDE stuff into its own file. Oh, the stub file too... Fix build.

svn path=/trunk/; revision=65976
2015-01-04 18:15:20 +00:00
James Tabor
f06c2230de [Win32k]
- Move DDE stuff into its own file.

svn path=/trunk/; revision=65975
2015-01-04 18:12:41 +00:00
Hermès Bélusca-Maïto
df529736f3 [FREELDR]: DiskGetBootPath can recognize ramdisk now.
svn path=/trunk/; revision=65974
2015-01-04 17:08:41 +00:00
Hermès Bélusca-Maïto
7e2cc1475e [FREELDR]: Small code style fixes; add a comment about the extra PXE check case in PcDiskGetBootPath. Fix also its return value.
svn path=/trunk/; revision=65973
2015-01-04 16:43:42 +00:00
Hermès Bélusca-Maïto
6c0accfe86 [FREELDR]: Whitespace fixes only.
svn path=/trunk/; revision=65972
2015-01-04 16:42:37 +00:00
Eric Kohl
c5626957ba [FMIFS]
Implement Format().

svn path=/trunk/; revision=65971
2015-01-04 15:34:23 +00:00
Eric Kohl
b7aadbcb61 [KERNEL32]
Tabs -> Spaces

svn path=/trunk/; revision=65970
2015-01-04 15:28:43 +00:00
Eric Kohl
ed6621d704 [USETUP]
- Revert partiton code to pre-r65855.


svn path=/trunk/; revision=65969
2015-01-04 13:53:45 +00:00
Hermès Bélusca-Maïto
72f7db1391 [FREELDR]: Do the same thing as how we fill out the ARC disk block elsewhere.
svn path=/trunk/; revision=65968
2015-01-04 13:01:14 +00:00
Hermès Bélusca-Maïto
f1b69f4958 [FREELDR]: Use boolean value.
svn path=/trunk/; revision=65967
2015-01-04 12:49:38 +00:00
Aleksandar Andrejevic
fc8f7e53b2 [FAST486]
Fix FPU exceptions (again).


svn path=/trunk/; revision=65966
2015-01-03 22:24:40 +00:00
Hermès Bélusca-Maïto
0a9c7876a7 Tab2Space changes.
svn path=/trunk/; revision=65965
2015-01-03 22:18:36 +00:00
Hermès Bélusca-Maïto
9743a65b37 [FREELDR][INCLUDES]
- ARC disk functions return ARC_STATUS codes (that are ULONG btw, not LONG). Fix prototypes where needed.
- Rearrange a bit our arc.h header by putting together related structures.

[FREELDR]
- Remove arcemul/time.c (put functions back into machine.c). ARC functions should use some SYSTEM_PARAMETER_BLOCK firmware vector array instead...

svn path=/trunk/; revision=65964
2015-01-03 20:45:34 +00:00
Hermès Bélusca-Maïto
66ef750fba [FREELDR]
- Move inXfile and rtl code into a lib subdir,
- Minor comment formatting.

svn path=/trunk/; revision=65963
2015-01-03 16:51:26 +00:00
Eric Kohl
a5c4f052be [USETUP]
Implement pre-install 'select format' and 'format' pages. These enable the user to re-format an existing install partitition.

CORE-9005 #resolve

svn path=/trunk/; revision=65962
2015-01-03 15:33:22 +00:00
Aleksandar Andrejevic
44c816e20c [FAST486][NTVDM]
Use an external interrupt for the FPU when the NE bit of CR0 is cleared.


svn path=/trunk/; revision=65961
2015-01-03 15:16:41 +00:00
Amine Khaldi
c765ca5556 [ROSAPPS] Convert resource files to UTF-8. By Alvin Wong. CORE-9021
svn path=/trunk/; revision=65960
2015-01-03 10:58:32 +00:00
Amine Khaldi
f7b25c90b7 [BUSLOGIC][EXPLORER_OLD][EXT2][FDEBUG][MSDMO] Convert resource files to UTF-8. By Alvin Wong. CORE-9021
svn path=/trunk/; revision=65959
2015-01-03 10:48:28 +00:00
Amine Khaldi
7455ea1766 [KEYBOARD] Convert resource files to UTF-8. By Alvin Wong. CORE-9021
svn path=/trunk/; revision=65958
2015-01-03 10:45:58 +00:00
Amine Khaldi
c5624975e5 [WIN32DLLS] Convert resource files to UTF-8. By Alvin Wong. CORE-9021
svn path=/trunk/; revision=65957
2015-01-03 10:34:01 +00:00
Amine Khaldi
8ca128cbf7 [SHELLEXT] Convert resource files to UTF-8. By Alvin Wong. CORE-9021
svn path=/trunk/; revision=65956
2015-01-03 10:18:03 +00:00
Amine Khaldi
6a92370e00 [CPL] Convert resource files to UTF-8. By Alvin Wong. Translators, please review! CORE-9021
svn path=/trunk/; revision=65955
2015-01-03 10:11:31 +00:00
Amine Khaldi
605dd2e44d [APPLICATIONS] Convert resource files to UTF-8. By Alvin Wong. Translators, please review! CORE-9021
svn path=/trunk/; revision=65954
2015-01-03 09:53:01 +00:00
Amine Khaldi
8fef5fac15 [MSCUTILS] Convert resource files to UTF-8. By Alvin Wong (alvinhochun - gmail). Translators, please review! CORE-9021
svn path=/trunk/; revision=65953
2015-01-03 09:45:55 +00:00
Amine Khaldi
8bf23c232f [CMDUTILS] Convert resource files to UTF-8. By Alvin Wong (alvinhochun - gmail). Translators, please review! CORE-9021
svn path=/trunk/; revision=65952
2015-01-03 09:35:09 +00:00
Amine Khaldi
17acb5b51b [OSK] Don't use a PCH for one source file.
svn path=/trunk/; revision=65951
2015-01-03 09:16:23 +00:00
Amine Khaldi
0533a6dcc7 [CMD] Fix duplicated ID in resources. GCC build of course doesn't warn/error about this but MSVC does. CORE-9020
svn path=/trunk/; revision=65950
2015-01-03 09:10:47 +00:00
Christoph von Wittich
df7cb92235 [GDI32_WINETEST]
don't skip metafile tests anymore
#ROSTESTS-4

svn path=/trunk/; revision=65949
2015-01-03 08:42:02 +00:00
James Tabor
e004d2381e [Win32ss]
- Use proper structure name for packed DDE.

svn path=/trunk/; revision=65948
2015-01-03 06:22:31 +00:00
James Tabor
96caf0ad2d [User32]
- Move dde.c to ddemisc.c to keep the same name as the wine counter part.
- Use dde.c for ReactOS based functions.

svn path=/trunk/; revision=65947
2015-01-03 04:39:20 +00:00
Aleksandar Andrejevic
f122f72179 [FAST486]
Fix a bug in UnsignedDivMod128.


svn path=/trunk/; revision=65946
2015-01-03 03:52:50 +00:00
Aleksandar Andrejevic
d8f89bc80c [FAST486]
Halfplement floating point division.
Halfplement opcode 0xD9.


svn path=/trunk/; revision=65945
2015-01-03 03:26:31 +00:00
Hermès Bélusca-Maïto
af8ae44bc4 Remove unneeded .cvsignore files.
svn path=/trunk/; revision=65944
2015-01-02 23:44:04 +00:00
Hermès Bélusca-Maïto
07ebe5c56b Fix member size in the SETUP_LOADER_BLOCK structure.
svn path=/trunk/; revision=65943
2015-01-02 23:10:44 +00:00
Aleksandar Andrejevic
39d88ba65b [FAST486]
Implement the FWAIT instruction.
Fix FPU exception handling. Implement exception masking.
Fix several other bugs and wrong definitions.


svn path=/trunk/; revision=65942
2015-01-02 21:19:31 +00:00
Hermès Bélusca-Maïto
f4cafa72d4 [CONSRV]: We can return the real NTSTATUS code instead of a STATUS_UNSUCCESSFUL. Noticed by Thomas some time ago. I kept the STATUS_UNSUCCESSFUL first because I didn't want to change the returned status code as it was before the changes of r65449. But I changed my mind since then! d8^)
svn path=/trunk/; revision=65941
2015-01-02 20:32:44 +00:00
Aleksandar Andrejevic
3e9c5864e7 [FAST486]
Split the D8/DC opcode handler into two handlers to eliminate the extra branch.
Implement opcode DF (New instructions: FBLD and FBSTP).


svn path=/trunk/; revision=65940
2015-01-02 18:29:30 +00:00
Amine Khaldi
e42181da22 [CRYPT32] Remove redundant code_page pragma. Remove redundant cryptres.h inclusion.
svn path=/trunk/; revision=65939
2015-01-02 14:14:17 +00:00
Benedikt Freisen
afea95d6b8 [MSPAINT] partially apply patch by swyter (bugfixes only). See CORE-5644
svn path=/trunk/; revision=65938
2015-01-02 13:58:25 +00:00
Amine Khaldi
741c7726db [TRANSLATIONS] Additional Spanish locale fixes and enhancements by Ismael Ferreras Morezuelas. CORE-9014
svn path=/trunk/; revision=65937
2015-01-02 13:08:07 +00:00
Amine Khaldi
a9971a2a04 [MSGINA] Remember the previous choice in the shutdown dialog. Brought to you by Ricardo Hanke. CORE-8992
svn path=/trunk/; revision=65936
2015-01-02 11:20:35 +00:00
Aleksandar Andrejevic
19116d3a60 [FAST486]
Fix several serious bugs in Fast486FpuToInteger.
Halfplement opcode 0xDD (everything except FRSTOR and FSAVE).
Cleanup the code a little bit.


svn path=/trunk/; revision=65935
2015-01-01 22:51:21 +00:00
Aleksandar Andrejevic
cc0c2313c3 [FAST486]
Implement opcode 0xDE (New instructions: FADDP, FMULP, FCOMPP, FSUBRP, FSUBP, FDIVRP and FDIVP).
Fix a bug in the 0xD8/0xDC opcode handler.


svn path=/trunk/; revision=65934
2015-01-01 19:20:44 +00:00
Aleksandar Andrejevic
62af7c6673 [FAST486]
Implement opcode 0xDA (FIADD, FIMUL, FICOM, FICOMP, FISUB, FISUBR, FIDIV, FIDIVR and FUCOMPP).


svn path=/trunk/; revision=65933
2015-01-01 18:05:45 +00:00
Hervé Poussineau
7df9b77837 [SETUPAPI] Handle Strings section with sub-language neutral
svn path=/trunk/; revision=65932
2015-01-01 17:08:19 +00:00
Timo Kreuzer
6be3688ad1 [WIN32K]
"unfix" ROP_TO_ROP4, it was correct before, but the used ROP in NtGdiInvertRgn was not correct. Fixes display of shortcuts.

svn path=/trunk/; revision=65931
2015-01-01 15:14:45 +00:00
Giannis Adamopoulos
514b38fec2 [MSGINA]
- Implement initializing themes as msdn suggests. We don't have shsvcs.dll yet but it doesn't harm to make our gina themes ready. 
See http://support.microsoft.com/kb/KbView/322047

svn path=/trunk/; revision=65930
2015-01-01 11:55:50 +00:00
Giannis Adamopoulos
4ee6f68f4d [WINLOGON]
- Implement calling SetWindowStationUser
See http://msdn.microsoft.com/en-us/library/windows/desktop/aa380571%28v=vs.85%29.aspx and  http://msdn.microsoft.com/en-us/library/windows/desktop/aa446670%28v=vs.85%29.aspx

svn path=/trunk/; revision=65929
2015-01-01 11:43:40 +00:00
Aleksandar Andrejevic
d89cf74100 [FAST486]
Finish implementing FPU opcode 0xDB (FILD, FIST, FISTP, FLD, FSTP).


svn path=/trunk/; revision=65927
2015-01-01 04:25:09 +00:00
Hermès Bélusca-Maïto
e274681598 [REACTOS]: Versioning for 2015, and...
... Happy New Year 2015 for everybody!

☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´

⋱★⋰⋱☆⋰⋱★⋰⋱☆⋰⋱☆⋰⋱★⋰⋱☆⋰⋱★⋰⋱☆⋰
░░░░░░█░█ █▀█ █▀█ █▀█ █░█░░░░░░
░░░░░░█▀█ █▀█ █▀▀ █▀▀ ▀█▀░░░░░░
░░░░░░▀░▀ ▀░▀ ▀░░ ▀░░ ░▀░░░░░░░
█▄░█ █▀▀ █░█░█░░█░█ █▀▀ █▀█ █▀█
█░██ █▀▀ █░█░█░░▀█▀ █▀▀ █▀█ ██▀
▀░░▀ ▀▀▀ ░▀▀▀░░░░▀░ ▀▀▀ ▀░▀ ▀░▀
⋱☆⋰⋱★⋰⋱☆⋰⋱★⋰⋱★⋰⋱☆⋰⋱★⋰⋱☆⋰⋱★⋰

░░░▄████▄░▄███▄░░▄██░██████░░░
░░░▀▀░▄██░██░██░████░██▄▄▄░░░░
░░░░▄██▀░░██░██░░░██░▄▄░▀██░░░
░░░██████░▀███▀░░░██░▀████▀░░░

☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´☆.¸¸.•´

svn path=/trunk/; revision=65926
2014-12-31 23:00:30 +00:00
Hermès Bélusca-Maïto
1e56397645 [ICONS]
- Use a better icon for the bootcd.
- Replace the GUI ReactOS Setup program icon with a better one, copied from msiexec (just to note, the "setup" icon from shell32 and appwiz are the same as msiexec one). Inspired from CORE-8971.

svn path=/trunk/; revision=65925
2014-12-31 22:26:19 +00:00
Hermès Bélusca-Maïto
12af51d23f Maybe the last committed patch of year 2014!
[CMD]
Enhance the "ver" command, specifying the OS on which cmd.exe runs (that can be different from ReactOS!) and the reported OS version when using the $V prompt format specifier.
Patch by Lee Schroeder, with modifications by me, see the report for more details.
CORE-8970 #resolve #comment Committed in revision 65924, thanks!

svn path=/trunk/; revision=65924
2014-12-31 21:22:49 +00:00
Eric Kohl
8235a5df62 [USETUP]
You can install ReactOS on 'unpartitioned space' again. Usetup will create a primary partition that spans the whole unpartitioned space, format the partition and install ReactOS on that partition.

svn path=/trunk/; revision=65923
2014-12-31 20:51:56 +00:00
Amine Khaldi
c7e2c1e0f8 [TRANSLATIONS] Spanish translation update by Ismael Ferreras Morezuelas. CORE-8991
svn path=/trunk/; revision=65922
2014-12-31 19:16:03 +00:00
Timo Kreuzer
9c81da0f9c [WIN32K]
Use the correct flags member in the DC to mark the RAO region dirty.

svn path=/trunk/; revision=65921
2014-12-31 17:10:59 +00:00
Timo Kreuzer
6cf32db099 [WIN32K]
Mark RAO region as dirty in NtGdiSelectBitmap, hopefully fixes CORE-8989

svn path=/trunk/; revision=65920
2014-12-31 16:22:23 +00:00
Timo Kreuzer
7b0c1877b9 [WIN32K]
Rewrite IntEngMaskBlt to work with device managed surfaces. Should fix CORE-7821 and CORE-8711

svn path=/trunk/; revision=65919
2014-12-31 15:15:44 +00:00
Timo Kreuzer
b193a23ecc [WIN32K]
Fix calculation of the source point in EngCopyBits for complex clipping regions. One might assume that this function is so essential, that it would do at least the most basic stuff correctly, but ...

svn path=/trunk/; revision=65918
2014-12-31 15:15:39 +00:00
Pierre Schweitzer
3de56b3af4 [FREELDR]
Display an error message with the file name in case we cannot get a file size over PXE.

This makes the error message "(../../boot/freeldr/freeldr/fs/pxe.c:107) err: PxeCall(0x25, 0000E8DE) failed with exit=1 status=0x1" in case of PXE boot less dramatic: it is expected not to find NTBOOTDD.SYS

svn path=/trunk/; revision=65917
2014-12-31 13:04:04 +00:00
Eric Kohl
20b0193d01 [USETUP]
Move the code that updates the partition type from FormatPartitionPage to a separate function (UpdatePartitionType) and call it from SelectPartitionPage. This fixes the creation of primary partitions.

svn path=/trunk/; revision=65916
2014-12-31 10:09:28 +00:00
Hermès Bélusca-Maïto
971bd0510b [WIN32K]: Some whitespace fixes. This gives me also the occasion to test few things:
░░░░░░█ █ █▀▀ █   █   █▀█░░░░░
░░░░░░█▀█ █▀▀ █ ▄ █ ▄ █ █░░░░░
░░░░░░▀ ▀ ▀▀▀ ▀▀▀ ▀▀▀ ▀▀▀░░░░░

░░░░░░█ █ █▀▀ █   █   █▀█░░░░░
░░░░░░█▀█ █▀▀ █ ▄ █ ▄ █ █░░░░░
░░░░░░▀ ▀ ▀▀▀ ▀▀▀ ▀▀▀ ▀▀▀░░░░░

!error RosBuild: dance
RosBuild: dance
RosKGB: hi!

svn path=/trunk/; revision=65915
2014-12-30 21:58:12 +00:00
Timo Kreuzer
1cb80f3aa0 [WIN32K]
- Fix definition of ROP_TO_ROP4
- Move some macros to intgdi.h
- Fix coordinate space mismatch in IntGdiBitBltRgn and IntGdiFillRgn
Fixes console window selection

svn path=/trunk/; revision=65914
2014-12-30 21:03:13 +00:00
Eric Kohl
1624612861 [USETUP]
InstallDirectoryPage1: Initialize DestinationRootPath. ReactOS can be installed on an existing partition again.
CORE-8984 #resolve

svn path=/trunk/; revision=65913
2014-12-30 20:17:27 +00:00
Timo Kreuzer
e7d3b42a46 [WIN32K]
Make sure the PDEV is locked before dereferencing the DC's surface

svn path=/trunk/; revision=65912
2014-12-30 19:38:41 +00:00
Timo Kreuzer
56aa42fe6e [WIN32K]
Simplify updating prgnVis in NtGdiSelectBitmap

svn path=/trunk/; revision=65911
2014-12-30 19:38:37 +00:00
Timo Kreuzer
3c30e5af66 [WIN32K]
- Rewrite NtGdiInvertRgn to not violate locking order
- Remove DceUpdateVisRgn from DC_vPrepareDCsForBlit: It is not GDI's task to handle Window clipping, it violates locking order, it's slow, it's ugly to call USER functions from GDI internals, it's a hack. I couldn't see any clipping regression, if you find anything, let me know.

svn path=/trunk/; revision=65910
2014-12-30 19:38:07 +00:00
Pierre Schweitzer
e1f04ea0de [FREELDR]
Simplify the stack management in PxeCallApi(), we don't need that much

svn path=/trunk/; revision=65909
2014-12-30 13:51:41 +00:00
Timo Kreuzer
c21b05742a [GDI32]
Remove some breakpoints and add some DPRINTs.

svn path=/trunk/; revision=65908
2014-12-30 13:21:48 +00:00
Pierre Schweitzer
99461a5b67 [FREELDR]
Tab -> spaces

svn path=/trunk/; revision=65907
2014-12-30 13:14:33 +00:00
Hermès Bélusca-Maïto
7316e9742e [CALC]
Use RegCreateKeyEx to be able to create the settings registry key in case it doesn't already exist.
Patch by Ricardo Hanke.
CORE-8986 #resolve #comment Fixed, thanks!

svn path=/trunk/; revision=65906
2014-12-30 12:21:04 +00:00
Hervé Poussineau
2272ff8795 [FREELDR] Make the disk read buffer size dynamic
CORE-8772 CORE-8899 #resolve #comment Should be fixed in r65904. Thanks for reporting.

svn path=/trunk/; revision=65905
2014-12-30 11:53:09 +00:00
Hervé Poussineau
f654bb0d51 [RAMDISK] Send the right DeviceObject in IRP_MN_QUERY_DEVICE_RELATIONS
svn path=/trunk/; revision=65904
2014-12-30 11:53:05 +00:00
Hervé Poussineau
5a3a445b01 [RAMDISK] Set correct device object in drive extension
This allows booting ReactOS livecd using PXE.

Welcome ReactOS to the world of computers without harddisk/cdrom.

svn path=/trunk/; revision=65903
2014-12-29 23:21:25 +00:00
Pierre Schweitzer
b9f5240173 [RAMDISK]
Implement RamdiskQueryDeviceRelations() when the device is a drive

According to Hervé, this allows booting ReactOS livecd using PXE (with one of his patch).

svn path=/trunk/; revision=65902
2014-12-29 23:14:42 +00:00
Pierre Schweitzer
9532ddd779 [RAMDISK]
Simplify & use IoCopyCurrentIrpStackLocationToNext()

svn path=/trunk/; revision=65901
2014-12-29 22:55:21 +00:00
Pierre Schweitzer
9980552e04 [RAMDISK]
- Implement RamdiskQueryCapabilities() which is used in case of IRP_MJ_PNP + IRP_MN_QUERY_CAPABILITIES
- Implement RamdiskQueryDeviceText() which is used in case of IRP_MJ_PNP + IRP_MN_QUERY_DEVICE_TEXT
- Implement RamdiskQueryBusInformation() which is used in case of IRP_MJ_PNP + IRP_MN_QUERY_BUS_INFORMATION
- Implement RamdiskIoCompletionRoutine() which is the completion routine in case of IRP forwarding
- Also implement support for IRP_MJ_PNP + IRP_MN_START_DEVICE
- Define the RamdiskDiskInterface GUID

This slowly gets RamDisk driver PnP compliant...

svn path=/trunk/; revision=65900
2014-12-29 22:42:11 +00:00
Eric Kohl
ac0ac23b55 [USETUP]
Change the partition creation workflow, so that the user is forced to choose a file system type and format a partition after it has been created.

svn path=/trunk/; revision=65899
2014-12-29 21:23:30 +00:00
Pierre Schweitzer
33f089b6ae [RAMDISK]
Wait for 1 min max but don't limit the number of acquire, ie: swap inverted args.
This fixes ASSERT on use.

Spotted by Hervé

svn path=/trunk/; revision=65898
2014-12-29 21:22:49 +00:00
Hermès Bélusca-Maïto
cd50299dd2 [RAPPS]
Finish Japanese translation, fix by Ai Asano and reported by Marco Maria Emanuele Bartucci.
CORE-8983 #resolve #comment Fixed, thanks!

svn path=/trunk/; revision=65897
2014-12-29 21:12:06 +00:00
Pierre Schweitzer
bdcb167357 [RAMDISK]
Define the GUID_BUS_TYPE_RAMDISK GUID

svn path=/trunk/; revision=65896
2014-12-29 20:41:15 +00:00
Pierre Schweitzer
ff098a27eb [RAMDISK]
Implement RamdiskQueryId() which is used in case of IRP_MJ_PNP + IRP_MN_QUERY_ID

svn path=/trunk/; revision=65895
2014-12-29 18:00:50 +00:00
Aleksandar Andrejevic
4037b3b7c0 [WHOAMI]
Use ANSI when printing to the console. Fix the logic of LookupPrivilegeDisplayNameW.
Patch by Ismael Ferreras Morezuelas.

CORE-8965 #resolve #comment Committed in revision r65894. Thanks!


svn path=/trunk/; revision=65894
2014-12-29 16:20:00 +00:00
Timo Kreuzer
e6475301eb [GDI32]
Import metafile code from wine. The wine code is unmodified (please keep it that way) and used through a wrapper function dispatcher and some helpers. Fixes 1931 wine tests.

svn path=/trunk/; revision=65893
2014-12-29 14:25:30 +00:00
Timo Kreuzer
2bcae18ec6 [WIN32K]
Simplify and fix calculation of biCompression in GreGetDIBitsInternal

svn path=/trunk/; revision=65892
2014-12-29 14:16:16 +00:00
Hermès Bélusca-Maïto
7c39a4ecb6 [WIN32K]
- Add global user heap (un)map helper functions that will be used in other portions of code.
- For consistency purpose also add the note about the mapping in desktop.c (see r65863 for what I mean).
- Temporarily add many trace messages.

svn path=/trunk/; revision=65891
2014-12-29 13:56:28 +00:00
Hervé Poussineau
3793271edf [NTOS:IO] Add some debug prints for remove locks
svn path=/trunk/; revision=65890
2014-12-29 13:16:07 +00:00
Timo Kreuzer
503848e61e [GDI32]
In Escape() make use of GdiGetDcAttr(), GreatLordish -> English and fix copy-pasta in comments, improve formatting, remove some code that (attention euphemism) wasn't exactly correct.

svn path=/trunk/; revision=65889
2014-12-29 13:12:29 +00:00
Timo Kreuzer
c8bc34b358 [GDI32]
Fix some parameters in the spec file

svn path=/trunk/; revision=65888
2014-12-29 13:12:23 +00:00
Timo Kreuzer
685a373f23 [WINE]
Add LOGBRUSH16 and LOGPEN16 to wingdi16.h

svn path=/trunk/; revision=65887
2014-12-29 13:12:15 +00:00
Timo Kreuzer
2bf752a8fe [WIN32K]
Implement GdiGetEMFRestorDc case in NtGdiGetDCDword

svn path=/trunk/; revision=65886
2014-12-29 13:12:10 +00:00
Timo Kreuzer
5d0f363c9f [WIN32K]
- Implement GreCreateCompatibleDC, allowing to pass in a boolean value, specifying the DC type (normal or "alternative" DC, aka metafile DC)
- Properly implement NtGdiCreateMetafileDC around GreCreateCompatibleDC

svn path=/trunk/; revision=65885
2014-12-29 13:12:05 +00:00
Timo Kreuzer
ed7952a360 [WIN32K]
- Implement NtGdiGetObjectBitmapHandle
- Set BR_IS_DIBPALCOLORS in IntGdiCreateDIBBrush

svn path=/trunk/; revision=65884
2014-12-29 13:11:59 +00:00
Timo Kreuzer
30d86f26f4 [GDI32]
In DeleteObject handle ALTDC type, factor out GdiDeleteBrushOrPen, improve code a bit

svn path=/trunk/; revision=65883
2014-12-29 13:11:54 +00:00
Timo Kreuzer
a0624a040f [GDI32]
Improve client object code

svn path=/trunk/; revision=65882
2014-12-29 13:11:48 +00:00
Timo Kreuzer
292ef5fd5c [GDI32]
Improve GetROP2and SetROP2

svn path=/trunk/; revision=65881
2014-12-29 13:11:40 +00:00
Timo Kreuzer
b818c891bf [GDI32]
- Do not call BitBlt from StretchBlt when extension matches, this is handled in win32k
- Use GdiGetDcAttr

svn path=/trunk/; revision=65880
2014-12-29 13:11:35 +00:00
Timo Kreuzer
e4cf6cd543 [GDI32]
Improve code in painting.c:
- Add annotations
- Use consitent formatting
- Use better parameter/variable names

svn path=/trunk/; revision=65879
2014-12-29 13:11:31 +00:00
Timo Kreuzer
cab100d983 [GDI32]
Move PatBlt, GetROP2 and SetROP2 to appropriate source files

svn path=/trunk/; revision=65878
2014-12-29 13:11:27 +00:00
Timo Kreuzer
45309fa8bf [GDI32]
Add anotations to arc.c, replace an instance of the ugly gfx_worker with an RCAST() macro

svn path=/trunk/; revision=65877
2014-12-29 13:11:07 +00:00
Amine Khaldi
f27f53b630 [TRANSLATIONS] Chinese (zh-CN) translation update by Henry Tang Ih. CORE-8935
svn path=/trunk/; revision=65876
2014-12-29 12:56:47 +00:00
Timo Kreuzer
6532b23851 [PSDK]
Fix copypasta from r65873

svn path=/trunk/; revision=65875
2014-12-29 12:28:56 +00:00
Giannis Adamopoulos
137dbef056 [SHELL32]
* Give focus to the def view control when CDesktopBrowser gets focus.
CORE-8980

svn path=/trunk/; revision=65874
2014-12-29 12:24:03 +00:00
Timo Kreuzer
5aebc94de8 [PSDK]
Improve some prototypes in wingdi.h

svn path=/trunk/; revision=65873
2014-12-29 12:01:23 +00:00
Hervé Poussineau
9cf08cfa62 [RAMDISK] Explicit the relation type check
svn path=/trunk/; revision=65872
2014-12-29 09:07:01 +00:00
Hervé Poussineau
c45cee00e3 [RAMDISK] White space fixes
svn path=/trunk/; revision=65871
2014-12-29 09:06:58 +00:00
Pierre Schweitzer
ff326f0703 [NTOSKRNL]
Use the PIP_REGISTRY_DATA() for DevicePropertyInstallState case in IoGetDeviceProperty()

svn path=/trunk/; revision=65870
2014-12-28 22:48:08 +00:00
Pierre Schweitzer
5dd10d76b0 [RAMDISK]
Implement support for IOCTL_DISK_CHECK_VERIFY, IOCTL_STORAGE_CHECK_VERIFY, IOCTL_STORAGE_CHECK_VERIFY2, IOCTL_CDROM_CHECK_VERIFY

svn path=/trunk/; revision=65869
2014-12-28 22:37:55 +00:00
Hervé Poussineau
994d960b81 [NTOS:IOMGR] When booting from a ramdisk, always assign drive letter X: to it
The only incomplete part to boot the LiveCD from PXE is some support in ramdisk.sys

svn path=/trunk/; revision=65868
2014-12-28 22:33:17 +00:00
Hervé Poussineau
74872db16c [NTOS:PNPMGR] Implement IoGetDeviceProperty/DevicePropertyInstallState case
svn path=/trunk/; revision=65867
2014-12-28 22:33:11 +00:00
Hervé Poussineau
aa38d68da9 [FREELDR] Add missing dependency (required by scsiport.c)
svn path=/trunk/; revision=65866
2014-12-28 22:15:34 +00:00
Hervé Poussineau
3ce44c57db [WHOAMI] Better error message when we're unable to find the logon SID
svn path=/trunk/; revision=65865
2014-12-28 22:15:08 +00:00
Pierre Schweitzer
a371a9b498 [NTOSKRNL]
Add missing specifiers

svn path=/trunk/; revision=65864
2014-12-28 21:29:32 +00:00
Hermès Bélusca-Maïto
f2f466977a [WIN32K]
A bit of code reorganization:
- move a maximum of typedefs into their corresponding headers,
- move user heap functionality into a dedicated header,
- add a note in some functions that the first heap mapping entry in the W32 process info structure is dedicated for the global user heap mapping,
- remove extra-parenthesis in casts.

svn path=/trunk/; revision=65863
2014-12-28 20:50:35 +00:00
Pierre Schweitzer
1c36df367b [NTOSKRNL]
- In case of AssignSecurityDescriptor operation in IopGetSetSecurityObject(), put the security descriptor in cache before attempting the assignement
- In IopUnloadDevice(), don't attempt to free the security descriptor, let this to Ob by just derefencing it. Spotted & fixed by Thomas.

This unregresses VMware Tools installation.

CORE-7991

svn path=/trunk/; revision=65862
2014-12-28 18:31:06 +00:00
Hermès Bélusca-Maïto
3b73052bf8 [WIN32K]
Split init code into GDI part and USER part. Don't use Eng* functions to initialize the InputIdleEvent.
Part 2/x

svn path=/trunk/; revision=65861
2014-12-28 15:28:00 +00:00
Pierre Schweitzer
14cce518d3 [NTOSKRNL]
Also lock IopSecurityResource during access check in IopParseDevice

svn path=/trunk/; revision=65860
2014-12-28 13:15:14 +00:00
Thomas Faber
938f228699 [MSI]
- Apply Wine commit f41ac94e (msi: Include the terminating null in the buffer size for decoded stream names.) by Hans Leidekker. Fixes a stack buffer overflow when installing VMware Tools.

svn path=/trunk/; revision=65859
2014-12-28 13:05:48 +00:00
Hermès Bélusca-Maïto
37f198c7d6 [WIN32K]: Rework a bit the initialization code to modularize it a bit (some parts to be reused in other places). Part 1/x
svn path=/trunk/; revision=65858
2014-12-28 13:00:28 +00:00
Pierre Schweitzer
594d5a3366 [NTOSKRNL]
Acquire IopSecurityResource exclusive when required. Spotted by Thomas.

svn path=/trunk/; revision=65857
2014-12-28 12:57:58 +00:00
Pierre Schweitzer
ecb6067cf0 [NTOSKRNL]
- Implement IopGetDeviceAttachmentBase() which allows getting the base device of the device stack given any device object in it
- Implement IopGetDevicePDO() which returns the physical device object of the device stack given any device object in it
- Implement IopSetDeviceSecurityDescriptor() which will swap the old security descriptor of a device object with a new provided one
- Implement IopSetDeviceSecurityDescriptors() which will swap the old security descriptor with a new provided one in all the device objects from the lowest provided to the uppest provided one.
- Fix a fixme in IopGetSetSecurityObject(), the operation SetSecurityDescriptor is now fully implemented for both PDO & DO.

This is required by VMware driver vmci.sys.
Even though, the installation doesn't get any better; it just changes the BSOD, we now face a memory corruption (in SE).

CORE-7991

svn path=/trunk/; revision=65856
2014-12-28 10:05:29 +00:00
Eric Kohl
cdc15f3bc5 [USETUP]
Update the on-disk partition tables immediately after modifying the in-memory tables. 

svn path=/trunk/; revision=65855
2014-12-28 09:16:41 +00:00
Aleksey Bragin
9bf8864501 [RAPPS]
- Add another tiny text-editor Akelpad, which works "good enough" in ReactOS.
Suggested by sergeygraf@yandex.ru, patch created by rechitskiy@reactos.org

svn path=/trunk/; revision=65854
2014-12-27 22:19:36 +00:00
Hervé Poussineau
040f158fa7 [ADVAPI/LSASRV] Implement LookupPrivilegeDisplayNameA, LookupPrivilegeDisplayNameW, LsaLookupPrivilegeDisplayName, LsarLookupPrivilegeDisplayName
Also partly implement LsarpLookupPrivilegeDisplayName (currently, privilege description is the same as privilege name)

svn path=/trunk/; revision=65853
2014-12-27 19:57:42 +00:00
Hermès Bélusca-Maïto
a306e56c55 [WIN32K]
- Put GDI initialization function(s) in a dedicated file.
- Whitespace fixes...

svn path=/trunk/; revision=65852
2014-12-27 19:16:05 +00:00
David Quintana
1db4f01f36 [FRAMEDYN]
* Actually use the right declaration. Fixes MSVC builds.

svn path=/trunk/; revision=65851
2014-12-27 14:04:32 +00:00
Pierre Schweitzer
f89f1cdf72 [NTOSKRNL]
Rename IopSecurityFile() to IopGetSetSecurityObject()

svn path=/trunk/; revision=65850
2014-12-27 13:46:00 +00:00
Pierre Schweitzer
acd3478e17 [FRAMEDYN]
Partly implement the Provider class from WMI.
This allows VMware Tools installer to complain a bit less about imports not found.

The installation still fails and still ends with a BSOD though.

CORE-7991

svn path=/trunk/; revision=65849
2014-12-27 13:33:14 +00:00
Daniel Reimer
959a34dc79 [RAPPS]
Add WINE Mono to RAPPS
CORE-8871 #resolve #comment Added to RApps DB.

svn path=/trunk/; revision=65848
2014-12-27 13:00:03 +00:00
Eric Kohl
27ff04d62b [USETUP]
- Re-enable the partition size check and display a warning if the install partition is too small.
- Update the required install partition size to 550MB.

svn path=/trunk/; revision=65847
2014-12-27 12:33:59 +00:00
Eric Kohl
9eba5bef02 [USETUP]
AddPartitionToDisk: Initialize DiskEntry pointer for existing partition entries.

svn path=/trunk/; revision=65846
2014-12-27 10:15:32 +00:00
James Tabor
5960c70f39 [Win32ss]
- Add header for Ime information. Setup support for Ime types and hot keys.
- Finish keyboard processing changes and call Imm process key for callback to user mode.

svn path=/trunk/; revision=65845
2014-12-27 06:59:29 +00:00
James Tabor
606ab6ed88 [w32knapi]
- Add Imm.h.

svn path=/trunk/; revision=65844
2014-12-27 06:33:48 +00:00
James Tabor
b4b8065c8c [Include]
- Add mod switch for SAS hotkey support.
- Add ImmProcessKey return flags, works the same as ImmProcessHotKey for WinCE.

svn path=/trunk/; revision=65843
2014-12-27 04:18:17 +00:00
James Tabor
594e534dd0 [Win32k]
- Move IME from stubs into its own file. Add flags and types to main header.
- Later, how to add Ime.h from mingw (tested it and works) and not effect VC++ ? VC SDK has Ime.h.
- Getting ready for Window Class update based on current wine tests.

svn path=/trunk/; revision=65842
2014-12-27 03:00:09 +00:00
Hermès Bélusca-Maïto
5f8ea303ee Whitespace fix.
svn path=/trunk/; revision=65841
2014-12-26 20:55:30 +00:00
Amine Khaldi
c84c201e3a [DXDIAG] Fix tab content redraw problem. By Lee Schroeder. CORE-8734
svn path=/trunk/; revision=65840
2014-12-26 14:33:14 +00:00
Amine Khaldi
9770259814 [FONTVIEW][MPLAY32][MSPAINT][TASKMGR] Chinese (zh-CN) translation update by Henry Tang Ih. CORE-8935
svn path=/trunk/; revision=65839
2014-12-26 14:18:02 +00:00
Amine Khaldi
55a9afa14c [WINLOGON][USER32] SetLogonNotifyWindow has only one parameter. Spotted by Giannis Adamopoulos. CORE-8174
svn path=/trunk/; revision=65838
2014-12-26 14:06:23 +00:00
Eric Kohl
9b71ae1269 [NOTEPAD]
Fix check mark of the status bar menu item.
Fix is based on mudheads patch.
CORE-8297 #resolve

svn path=/trunk/; revision=65837
2014-12-26 14:06:19 +00:00
Eric Kohl
df82e81f89 [SYSDM]
Fix startup and recovery option dialog issues.
Patch by Ricardo Hanke.
Thanks a lot!
CORE-8952 #resolve

svn path=/trunk/; revision=65836
2014-12-26 13:11:57 +00:00
Hermès Bélusca-Maïto
bf2b5fda05 [WIN32K]: Anecdotal formatting/renaming changes before reusing this code in other parts of wijn32k.
svn path=/trunk/; revision=65835
2014-12-26 12:06:43 +00:00
Pierre Schweitzer
5ad81a46e3 [DXDIAG]
Update French translation

svn path=/trunk/; revision=65834
2014-12-26 11:40:17 +00:00
Hervé Poussineau
6a3a03c719 [FREELDR] Support custom SystemPath and ramdisk in setup phase
We can now start ReactOS installation via PXE boot.

svn path=/trunk/; revision=65833
2014-12-26 11:38:43 +00:00
Hervé Poussineau
948e82af18 [FREELDR] Merge setupldr_pe and freeldr_pe
svn path=/trunk/; revision=65832
2014-12-26 11:38:39 +00:00
Hervé Poussineau
d8fc6d0000 [NTFS] Be verbose only on unimplemented FSCTL requests we're supposed to handle
svn path=/trunk/; revision=65831
2014-12-26 11:38:35 +00:00
Hervé Poussineau
723f55af2c [NTOS:CC] Fix some debug prints
svn path=/trunk/; revision=65830
2014-12-26 11:38:31 +00:00
Pierre Schweitzer
373fb8c25c [CHARMAP]
Fix the following issues:
- Skip rotated font (font name starting with "@" char)
- Fix a comment (misspelled "Richedit")
- Fix enlarged preview font in font name is long (it truncated font name in 31 chars when copying)
- Fix 2 magic values (255 here is not meaningful, and it doesn't even entirely showing Unicode Plane 0) 

Patch by Roy Tam.

CORE-8966 #resolve #comment Thanks. Commited in r65829.

svn path=/trunk/; revision=65829
2014-12-26 11:02:47 +00:00
James Tabor
51cd3cccb9 - Patch by Aric Stewart : Pass WM_IME_CONTROL messages to the IME.
svn path=/trunk/; revision=65828
2014-12-26 00:44:36 +00:00
Thomas Faber
fdc61d524b [WIN32K:NTUSER]
- Don't forget to ProbeForWrite in NtUserProcessConnect
- Use SEH in NtUserSetInformationThread:UserThreadCsrApiPort

svn path=/trunk/; revision=65827
2014-12-25 23:10:47 +00:00
Pierre Schweitzer
8783434e42 [WHOAMI]
Add French translation
It's totally broken though because the util directly writes Unicode to console. That should be fixed (see CORE-8965).

svn path=/trunk/; revision=65826
2014-12-25 22:01:29 +00:00
Hermès Bélusca-Maïto
ea4e02fba0 [USER32]
- CreateSystemThreads' parameter is unused, and the parameter of ONEPARAM_ROUTINE_CREATESYSTEMTHREADS win32k system call is set to TRUE when creating system threads in "remote processes", i.e. not CSRSS.
- Few code formatting fixes.
CORE-8949

svn path=/trunk/; revision=65825
2014-12-25 15:50:07 +00:00
Hermès Bélusca-Maïto
5195c10036 [WIN32K]: Change the enum id name for something meaningful (here: PROC == process and not procedure).
svn path=/trunk/; revision=65824
2014-12-25 15:27:31 +00:00
Hermès Bélusca-Maïto
13a6f58a0a [USER32]: Fix whitespace. Everybody knows that our user32/win32k modules are the best examples of good programming, indentation rules and so on...
svn path=/trunk/; revision=65823
2014-12-25 15:03:48 +00:00
David Quintana
fca4b3f636 [RSHELL]
* Add a copy of CBandSite to rshell, so we can debug it in windows with our explorer.

svn path=/trunk/; revision=65822
2014-12-24 17:00:53 +00:00
David Quintana
3b182d93b2 [BROWSEUI]
* Do not make browseui an NT6 dll just because it has a missing include and it needs a few previously undocumented constants. We can just define them in an undoc header.

svn path=/trunk/; revision=65821
2014-12-24 16:14:10 +00:00
Hermès Bélusca-Maïto
7afb72e9a2 [WIN32K]
Fix NtUserProcessConnect to use the process handle we give to it, instead of the "current process"... This should fix the user32 CSR connection that I was failing to fix in previous revisions...
CORE-8949

svn path=/trunk/; revision=65820
2014-12-24 15:48:37 +00:00
Hermès Bélusca-Maïto
84b91a7f5f [NETSHELL]
Fix flags usage for LoadImage / CopyImage, that made network tray applet icons uglily being downscaled from 32px versions instead of their 16px counterparts.

svn path=/trunk/; revision=65819
2014-12-24 15:25:42 +00:00
James Tabor
e0bd16e270 - Fix, always something, thank you Thomas.
svn path=/trunk/; revision=65818
2014-12-24 00:18:03 +00:00
Hermès Bélusca-Maïto
56347a8b98 [WIN32K]
Reintroduce CSR support for kernel mode, based on code from Ge that was wiped out in revision 58770, and by ntdll CSR code. Is needed for kernel to user-mode CSR callbacks.

For readers, I remind you the big callback picture in the Win32 subsystem:
- In Windows NT 3.1 and 3.51, USER and GDI was modeled against client/server model (USER32.DLL and WINSRV.DLL, and GDI32.DLL and GDISRV.DLL), all running in user mode (using the CSR API).
- Starting Windows NT 4.0 (and up), some USER and GDI parts were moved into kernel mode (in the WIN32K.SYS driver) to speedup communication. We get:
  * GDI32.DLL as the client, doing win32k system calls (kernel-mode system calls to win32k),
  * and USER32.DLL, WINSRV.DLL and WIN32K.SYS working in tandem, USER32.DLL being the client and {WINSRV.DLL, WIN32K.SYS} being the server.
    USER32.DLL can do win32k system calls or CSR calls to WINSRV.DLL (client to server calls). For server-to-server calls, we have WINSRV.DLL
    doing win32k system calls, or WIN32K.SYS doing CSR calls back to WINSRV.DLL . Also, there is the possibility for WIN32K.SYS to make user-mode
    callbacks to USER32.DLL.

svn path=/trunk/; revision=65817
2014-12-23 21:17:24 +00:00
Hermès Bélusca-Maïto
eacca6fe3e [NTDLL]: Whitespace fixes. No code changes.
svn path=/trunk/; revision=65816
2014-12-23 20:35:42 +00:00
James Tabor
4b6fb8acdf [NtUser]
- Crash while in recursion through hook calls. Move fast calls to api. Placed safe guards for removing message queue structures. Lock threads while calling hooks. Just add paranoid code to prevent recursion freeing that will crash the kernel at some point. Fixes OpenMPT crashes, see CORE-8819. This might improve the same issues with CORE-6734.

svn path=/trunk/; revision=65815
2014-12-23 19:05:44 +00:00
Amine Khaldi
117b0daf21 [KDVBOX] Properly handle the ASM source file.
svn path=/trunk/; revision=65814
2014-12-23 19:01:02 +00:00
Timo Kreuzer
69512e2d9b [KDVBOX]
Implement a virtualkd compatible kernel debugger transport DLL. I started this, because I didn't manage to get the original one working, but it turned out, the original one works, you only need to use the correct virtualkd version. Anyway, it's there now. A virtualkd version that works with VBox 4.3.16+ can be found here: http://forum.sysprogs.com/viewtopic.php?f=4&t=3370 or here: http://public.avast.com/~hnanicek/VirtualKd.zip
The folder is called kdvm, since I thought about adding support for VMWare as well, but here the original one probably works as well.
Also fix my email address in some files.

svn path=/trunk/; revision=65813
2014-12-23 17:48:16 +00:00
Hermès Bélusca-Maïto
a9305dd7bb [SHORTCUTS]
Fix Explorer shortcut icon. Patch by Jared.
CORE-8955 #resolve #comment Fixed in r65812, thanks!

svn path=/trunk/; revision=65812
2014-12-23 17:11:00 +00:00
Hermès Bélusca-Maïto
f743d127e7 [USER32]
Reenable some disabled tests, while disabling some other calls, namely:
- code in ClientThreadStartup (that was moved in ClientThreadSetupHelper that is hackilly now called in Init() from DllMain),
- code in User32CallClientThreadSetupFromKernel,
- add two flag manual resets in Init() and the forced call to ClientThreadSetupHelper,
- and moreover the whole CSR call in DllMain, that seems to sometimes cause some user32 internal global pointers to remain NULL where they should not (more specifically some "pdi" thing).

Obviously all these problems need to be understood (why some things do not become initialized when they should, etc...). See r65799, revert r65810, and CORE-8949.

svn path=/trunk/; revision=65811
2014-12-23 16:42:59 +00:00
Hermès Bélusca-Maïto
7385e6669c [USER32]: Add yet another magic hack to temporarily reenable bots (ofc. mention in the code that this is a hack). See r65799 for more details, and CORE-8949.
svn path=/trunk/; revision=65810
2014-12-23 14:31:28 +00:00
Amine Khaldi
df6ec77084 [TRANSLATIONS] Russian translation update by Kudratov Olimjon. CORE-8947
svn path=/trunk/; revision=65809
2014-12-23 11:25:42 +00:00
Amine Khaldi
9149e05f38 [BOOTDATA] Add some default settings for crash control to hivesys.inf. By Ricardo Hanke. CORE-8953
svn path=/trunk/; revision=65808
2014-12-23 11:01:17 +00:00
Amine Khaldi
9e80977c0d [SHDOCVW] Bring exports closer to native.
CORE-8936 CORE-8174

svn path=/trunk/; revision=65807
2014-12-23 10:53:07 +00:00
Amine Khaldi
252f1971de [SHLWAPI] Fix inverted StopWatch forwards. Accepted upstream. CORE-8954
svn path=/trunk/; revision=65806
2014-12-23 10:50:10 +00:00
David Quintana
c67d37f223 [EXPLORER]
* Fix count of visible buttons getting out of sync when removing buttons. Fixes empty space at the end of the notification toolbar.
CORE-8840 #resolve #comment This should be fixed as of r65805.

svn path=/trunk/; revision=65805
2014-12-23 01:55:48 +00:00
David Quintana
b11d90c85f [EXPLORER]
* Improve an older change that I commited by mistake, with the improvbements based on a patch by Giannis.
* In Windows, fixes the taskbar having a size grip with the taskbar is themed and locked.
* In ReactOS, the size grip never seems to disappear, contrary to Giannis' concerns in the issue.
* Because of the above, I decided to commit the changes, and let the sizing edge inconsistency be a followup to the issue.
CORE-6966 #resolve #comment A modified version of the patch was commited in r65804. Thanks.

svn path=/trunk/; revision=65804
2014-12-23 01:31:36 +00:00
David Quintana
d9a214e353 [EXPLORER]
* Handle WM_CONTEXTMENU in the notification area so it does not spread upwards to the taskbar window.
* In theory, only one of the two handlers would be necessary, and it is true when testing in Windows, but in ReactOS, the handler in CSysPagerWnd was not enough. This may be worth a look by the win32k experts to see if it's a bug, or Windows was correcting my error.
CORE-8870 #resolve #comment Should be fixed in r65803. Thanks for reporting.

svn path=/trunk/; revision=65803
2014-12-23 01:13:05 +00:00
Sylvain Petreolle
8222f8d654 [WHOAMI]
Fix warning into the russian file.

svn path=/trunk/; revision=65802
2014-12-22 23:44:25 +00:00
Pierre Schweitzer
cc116aa826 [FASTFAT]
So far, totally disable VPB swapout on dismount. It appears to have brought more issues than it actually solves.
A more accurate implementation will be required.

CORE-8928 #comment Can you please retry with r65801

svn path=/trunk/; revision=65801
2014-12-22 23:00:22 +00:00
Pierre Schweitzer
d34671697f [SHELL32]
Update French translation

svn path=/trunk/; revision=65800
2014-12-22 22:55:07 +00:00
Hermès Bélusca-Maïto
02a51a5dce In absence of patchbot, let's test patch directly on... trunk!! Yeah!! Let's break trunk! (or not, we'll see...)
[USER32][USERSRV][WIN32K]
- Flag CSRSS threads as such.
- Each time a win32 thread is "created" (or a win32k system call is done) a PsConvertToGuiThread call is done, that makes a Win32ThreadCallout which calls UserCreateThreadInfo. We should call back ClientThreadSetup to set client-side info.
- Introduce a ClientThreadSetupHelper function to try to understand what happens when doing direct calls to ClientThreadSetup and via win32k callbacks.
- Reenable CSR call in user32::DllMain but add shame hacks in Init(..) to force NtUserProcessConnect callbacks (yet they should not be done there): see the code comment associated for more details.
- Temporarily disable ClientThreadSetupHelper call in ClientThreadSetup because it makes things fail, like console input thread failing and so on...
- ... and in ClientThreadSetupHelper, some correct code is commented out because it currently breaks other things (like menu initialization etc...), and HACKS ARE ADDED!! (see especially the "if (gpsi)" one, that should not exist, but if removed we fail sometimes in MenuInit because gpsi becomes NULL for some reason, if some other code that makes redundant calls to NtUserProcessConnect, is uncommented).

To sum up I tried to scaffold the thing as it should be, but with disabled code to not break everything.

CORE-8949 #comment Revision 65799 committed the patch v1.

svn path=/trunk/; revision=65799
2014-12-22 21:23:00 +00:00
Hermès Bélusca-Maïto
4ccf6c6b75 [USERSRV]
- Reenable UserClientConnect callback, it's not the problematic code that made bots to fail at 3rd stage and caused r65716 to be committed.
- Put the system threads hack *after* having called NtUserInitialize (that really initializes user-kernel interface with win32k), and not before.

svn path=/trunk/; revision=65798
2014-12-22 19:50:00 +00:00
Hermès Bélusca-Maïto
61886223b4 [GDI32]
- Call NtGdiInit before initializing ourselves (ok, in ROS NtGdiInit does nothing interesting, but still do it to be call-compatible with win2k3 so everything initializes as it should).
- Do some cleanup on process detach.

svn path=/trunk/; revision=65797
2014-12-22 19:44:59 +00:00
Amine Khaldi
e1ad312568 [SNDREC32] Update Chinese (zh-CN) translation. By Henry Tang Ih. CORE-8933
svn path=/trunk/; revision=65796
2014-12-22 19:29:44 +00:00
Amine Khaldi
6ab6e74922 [TRANSLATIONS] Russian translation update by Kudratov Olimjon. CORE-8947
svn path=/trunk/; revision=65795
2014-12-22 19:10:42 +00:00
Amine Khaldi
028cf3af76 [NOTEPAD] Uzbek translation by Kudratov Olimjon. CORE-8948
svn path=/trunk/; revision=65794
2014-12-22 19:01:03 +00:00
Amine Khaldi
e9e0408e0a [MPLAY32] Fix some entries in the Chinese (zh-CN) translation. Spotted by Alexander Misel and fixed by Henry Tang Ih. CORE-8918
svn path=/trunk/; revision=65793
2014-12-22 18:52:25 +00:00
Amine Khaldi
55299d897c [SHELL32] Sync translations to the English one. Translators, you're on!
svn path=/trunk/; revision=65792
2014-12-22 18:48:47 +00:00
Amine Khaldi
4e00f10316 [SHELL32] Update Russian translation by Petr Akhlamov. CORE-8942
svn path=/trunk/; revision=65791
2014-12-22 18:38:27 +00:00
Hermès Bélusca-Maïto
e880206827 [WHOAMI]
- In German translation, replace erroneous \" to "" for putting quotes inside strings. Fixes resource compilation in GCC/MSVC.
- Make proper help string indentation in resource files. NOTE FOR TRANSLATORS: Please keep the identation correct!

svn path=/trunk/; revision=65790
2014-12-22 12:28:05 +00:00
Daniel Reimer
4dceaa107a [WHOAMI]
German translation

svn path=/trunk/; revision=65789
2014-12-22 11:40:58 +00:00
Pierre Schweitzer
6de4a7e051 [WHOAMI]
Fix invalid memory usage, memory leaks, partial zeroes, big if blocks, ...

Would be nice also to check all the allocations which are not checked yet

CORE-8533

svn path=/trunk/; revision=65788
2014-12-22 09:53:24 +00:00
Amine Khaldi
4d592a5c29 [WHOAMI] Add preliminary version of whoami utility by Ismael Ferreras Morezuelas (with some changes by me). CORE-8533
svn path=/trunk/; revision=65787
2014-12-21 23:10:46 +00:00
Amine Khaldi
b37505476c [TREE] Attempt to fix some style & formatting crimes. Improve header inclusions. CORE-8529
svn path=/trunk/; revision=65786
2014-12-21 18:48:33 +00:00
Amine Khaldi
9d80e094b4 [NTDLL_WINETEST] Properly enable back the LdrAddRefDll tests. CORE-8102
svn path=/trunk/; revision=65785
2014-12-21 18:00:03 +00:00
Amine Khaldi
048cc7d133 [NTDLL_WINETEST] Temporarily enable LdrAddRefDll tests in light of CORE-8102.
svn path=/trunk/; revision=65784
2014-12-21 17:16:15 +00:00
Pierre Schweitzer
b33aecdb8e [SHELL32]
Update French translation

svn path=/trunk/; revision=65783
2014-12-21 13:26:31 +00:00
Eric Kohl
baf567d896 [CMD]
Implement CTRL+Left (jump to previous word) and CRTL+Right (jump to next word) edit keys.

CORE-5626 #resolve

svn path=/trunk/; revision=65782
2014-12-21 12:36:24 +00:00
Pierre Schweitzer
7528b04c30 [MSPAINT]
Update French translation

svn path=/trunk/; revision=65781
2014-12-21 10:04:55 +00:00
Giannis Adamopoulos
80aefab1f2 [EXPLORER]
* Fix the fallback case when BCM_GETIDEALSIZE doesn't work.
* Take into account the size of the borders of the start button twice. Now the caption has enough space and doesn't hide part of the border and more importantly the button is vertically aligned to the tasks buttons.

svn path=/trunk/; revision=65780
2014-12-20 22:11:35 +00:00
Daniel Reimer
56dde36de0 [TRANSLATION]
Turkish Translation Update by Erdem Ersoy
CORE-7861 #resolve #comment Committed, thx for helping ^^

svn path=/trunk/; revision=65779
2014-12-20 22:02:26 +00:00
Eric Kohl
139d28e104 [USETUP]
Start implementing the recovery console: CLS, EXIT and HELP have been implemented. I also added a DUMPSECTOR command that enables us to dump disk sectors to the screen. For example "DUMPSECTOR 0 63" dumps disk 0 sector 63 to the screen.

svn path=/trunk/; revision=65778
2014-12-20 21:58:22 +00:00
Daniel Reimer
988ecb9a8c [TASKMGR]
Fix even some more translations to get this one fixed: CORE-5790
Sidenote: http://rammichael.com/resource-hacker-fx

svn path=/trunk/; revision=65777
2014-12-20 21:44:24 +00:00
Daniel Reimer
e753297287 [TASKMGR]
Fix some translations as preparation to get this one fixed: CORE-5790
At least most languages now look sort of nicely. Next: apply the patch and check the non ResHacker compatible languages

svn path=/trunk/; revision=65776
2014-12-20 20:51:54 +00:00
Giannis Adamopoulos
155eb2f79c [BROWSEUI]
* Forward focus to the defview window when the shell browser gets the focus.
* We can now navigate to the opened window with the keyboard right after it opens. That means that after opening from the desktop a window with the keyboard, we can navigate right away without any additional mouse clicks.

svn path=/trunk/; revision=65775
2014-12-20 20:32:32 +00:00
Daniel Reimer
2a420776e0 [BROWSEUI]
update Russian Translation by Akhlamov Petr
CORE-7981 #resolve #comment Committed, thx for help ^^

svn path=/trunk/; revision=65774
2014-12-20 19:31:44 +00:00
Daniel Reimer
004ad0567d [INF]
"No shortcut to the On Screen Keyboard in the start menu" by Jared
CORE-8883 #resolve #comment Committed with minor fix in German translation, thx for help.

svn path=/trunk/; revision=65773
2014-12-20 19:03:13 +00:00
David Quintana
a645e72e99 [BROWSEUI]
* Do not enable the CExplorerBand wrapper by default. Avoids crashing due to a stack overflow.
CORE-8930 #resolve #comment Oops. Fixed in r65772. Thanks.

svn path=/trunk/; revision=65772
2014-12-20 18:10:02 +00:00
Giannis Adamopoulos
0727e3b95a [SHELL32]
* Properly stub CheckStagingArea which is used by native explorer

svn path=/trunk/; revision=65771
2014-12-20 18:06:42 +00:00
Giannis Adamopoulos
710258ad83 [RPCSS]
* Create ScmCreatedEvent when we are done initializing.

svn path=/trunk/; revision=65770
2014-12-20 17:56:00 +00:00
David Quintana
cb546b4121 [RSHELL]
* Make the shell menus focus the parent before displaying themselves. Fixes keyboard focus when opening the start menu with the windows key.
NOTE: I put this in the focus manager for lack of a better place, but it may not be how Windows does it.

svn path=/trunk/; revision=65769
2014-12-20 17:45:45 +00:00
Pierre Schweitzer
2dc90d89b4 [EXPLORER]
Complete the French translation

svn path=/trunk/; revision=65768
2014-12-20 17:28:03 +00:00
Amine Khaldi
a3f14b038b [COMCTL32] Properly highlight r65766.
svn path=/trunk/; revision=65767
2014-12-20 16:55:10 +00:00
Giannis Adamopoulos
3b1abd64d6 [COMCTL32]
* Do not add two additional pixels at the top margin of the toolbar. This is the behaviour of comctl32 v6 and our explorer depends on that to appear properly. We don't have a proper solution for these differences in behavior and since we already opt to use the v6 behavior I think it is fine.

CORE-5483 #resolve #comment Committed a slightly different version of the patch, thanks.

svn path=/trunk/; revision=65766
2014-12-20 16:49:31 +00:00
David Quintana
ad76fad27f [SHELL32]
* Remove a leftover from when this file was C++.

CORE-8846 #resolve #comment Should be fixed in trunk r65765, thanks.

svn path=/trunk/; revision=65765
2014-12-20 16:47:35 +00:00
Pierre Schweitzer
53b722f8d7 [TREE]
- Fix tree internal name
- Add tree French translation

svn path=/trunk/; revision=65764
2014-12-20 16:41:23 +00:00
Pierre Schweitzer
0c35f7905b [TREE]
Convert resources strings to OEM before printing them on console.
Fixes broken displays with special chars

svn path=/trunk/; revision=65763
2014-12-20 16:40:57 +00:00
Amine Khaldi
b2b224b527 [PSDK] Define rpcndr.h DECLSPEC_UUID in consistency with the one in winnt.h. Fixes some redefinition warnings.
svn path=/trunk/; revision=65762
2014-12-20 16:26:03 +00:00
Amine Khaldi
b992e53d8e [RSHELL] Silence some MSVC linker warnings.
svn path=/trunk/; revision=65761
2014-12-20 16:24:21 +00:00
David Quintana
4c5970c6f2 [SHELL32] Mark the halfplementation as such.
CORE-3938

svn path=/trunk/; revision=65760
2014-12-20 16:22:43 +00:00
David Quintana
b6a4676eec [SHELL32]
* Halfplement IExtractIconAW support into the recycle bin. This is not fully correct as it always uses the fallback file icon, but it's better than nothing at all.

CORE-3938

svn path=/trunk/; revision=65759
2014-12-20 16:20:32 +00:00
David Quintana
4b7ab83f8d [NETSHELL]
* Move to shellext folder.
* Do not initialize the notification SSO, stobject will do so (like in Windows).
* Move some GUIDs to a shared header.

[STOBJECT]
* Initialize netshell's SSO the way Windows does it. Fixes network icon inconsistency.
* Move some GUIDs to a shared header.

CORE-8818 #resolve Fixed in trunk r65758.

svn path=/trunk/; revision=65758
2014-12-20 16:12:35 +00:00
David Quintana
a620535b0f [RSHELL]
* Make rshell.dll able to register its classes and support CoCreateInstance.

svn path=/trunk/; revision=65757
2014-12-20 16:04:45 +00:00
Amine Khaldi
b8416cd7f3 [BROWSEUI] Reorder some exports.
CORE-8936 CORE-8174

svn path=/trunk/; revision=65756
2014-12-20 15:16:18 +00:00
Amine Khaldi
c58a629e1f [SHELL32] Add export 007.. I mean 44. Mark some exports for inspection.
CORE-8936 CORE-8174

svn path=/trunk/; revision=65755
2014-12-20 15:10:45 +00:00
Amine Khaldi
ae3dc3b564 [SHLWAPI] Stub some exports. Stubplement SHGetAllAccessSA. Based on a patch by Giannis Adamopoulos.
CORE-8936 CORE-8174

svn path=/trunk/; revision=65754
2014-12-20 14:54:04 +00:00
Hermès Bélusca-Maïto
88116276ee [SERVICES]: Do not use GetSystemMetrics to retrieve SafeBoot option value, but instead use directly the registry (as it is done just after...).
svn path=/trunk/; revision=65753
2014-12-20 03:12:23 +00:00
Giannis Adamopoulos
9693cd1f07 [UXTHEME]
* Implement a few functions needed by windows themeui.dll

svn path=/trunk/; revision=65752
2014-12-19 14:21:18 +00:00
Amine Khaldi
2acbdc453c [UXTHEME] Remove some exports that do not exist in native. Reorder some exports. Add some missing exports. Mark OpenThemeDataEx as noname.
CORE-8174

svn path=/trunk/; revision=65751
2014-12-19 14:00:09 +00:00
Amine Khaldi
736374efcd [SHLWAPI_WINETEST] Addendum to r65749.
CORE-7556

svn path=/trunk/; revision=65750
2014-12-19 13:22:15 +00:00
Amine Khaldi
cfcca647bc [SHLWAPI] Import Wine commit 4b33a33 by Sebastian Lackner: Add implementation for StrCatChainW. Based on a patch by Huw Campbell.
CORE-7556

svn path=/trunk/; revision=65749
2014-12-19 13:20:42 +00:00
Timo Kreuzer
58d4218202 [WIN32K]
Handle coordinate translation in NtGdiOffsetClipRgn

svn path=/trunk/; revision=65748
2014-12-19 12:53:50 +00:00
Timo Kreuzer
9959f71bba [WIN32K]
Dump object event log, when trying to dereference an object with 0 references.

svn path=/trunk/; revision=65747
2014-12-19 11:12:40 +00:00
Timo Kreuzer
b2a9ab7151 [WIN32K]
Rename RGNOBJAPI_Lock to REGION_LockRgn and remove the 2nd argument, rename RGNOBJAPI_Unlock to REGION_UnlockRgn, remove the old inline lock/unlock functions. Do proper locking using GDIOBJ_bLockMultipleObjects in NtGdiEqualRgn.

svn path=/trunk/; revision=65746
2014-12-19 10:34:52 +00:00
Timo Kreuzer
fc5dd61639 [WIN32K]
Make sure to respect GDI object lock order in (Nt)UserScrollDC

svn path=/trunk/; revision=65745
2014-12-19 09:26:50 +00:00
James Tabor
b037edeae8 [Win32k]
- Crash is due to receiving an APC for the current sending thread. Prematurely freeing the data block and while the receiving thread did not have a chance to process it. Interception and calling back to user mode will allow thread to go away. What about the memory block, is it still allocated? A cleaver Hack can fix this, but still the application crashed leaving issues and trash laying about. See CORE-8779.

Reference:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff565592(v=vs.85).aspx
"Yes, for thread termination. No, for user APCs."

svn path=/trunk/; revision=65744
2014-12-18 23:45:11 +00:00
James Tabor
9bc240e832 - Fix a crash while moving minimized MDI window in ConTEXT.
svn path=/trunk/; revision=65743
2014-12-18 22:38:40 +00:00
Giannis Adamopoulos
a138064724 [RSHELL]
* Implement using a thin border for the start menu when themes are enabled
CORE-8925

svn path=/trunk/; revision=65742
2014-12-18 18:24:01 +00:00
Pierre Schweitzer
2de386a06c [BOOTDATA]
Add the NtfsMftZoneReservation registry key on installation

See http://support.microsoft.com/kb/174619 for more information

svn path=/trunk/; revision=65741
2014-12-18 18:15:15 +00:00
David Quintana
d73c38b69c [RSHELL]
* Fix the focus manager to properly close the shell menus when clicking outside the menu area.
* Close the shell menus when activating a context menu action.
* Open the shell menus without activating. Fixes titlebar color changing to inactive for the Favorites menu.

[RSHELL]
[SHELL32]
[BROWSEUI]
* Remove a few DbgPrints and downgrade some others into TRACEs.

CORE-8836 #resolve

svn path=/trunk/; revision=65740
2014-12-18 17:34:46 +00:00
Timo Kreuzer
217eef81d8 [GDI32]
- Rename SetRectRgnEx to IntSetRectRgn and make it usermode only
- Implement IntSetNullRgn
- Improve SetRectRgn code and enable the usermode part

svn path=/trunk/; revision=65739
2014-12-18 08:13:14 +00:00
Timo Kreuzer
f3f9526d93 [GDI32]
Rewrite CombineRgn, enabling full handling in usermode if the resulting region is either a rectangular or a NULL region.

svn path=/trunk/; revision=65738
2014-12-18 08:13:10 +00:00
Timo Kreuzer
383e40f59f [WIN32K]
Fix REGION_vSyncRegion and RGNOBJAPI_Unlock to actually make sense

svn path=/trunk/; revision=65737
2014-12-18 08:13:06 +00:00
Timo Kreuzer
dd9435905a [USER32]
Fix copy-paste-bug in SubtractRect

svn path=/trunk/; revision=65736
2014-12-18 08:13:01 +00:00
Timo Kreuzer
54f66b4232 [WIN32K]
- Rename xmemcheck to REGION_bGrowBufferSize
- Implement REGION_bEnsureBufferSize and REGION_vAddRect helper functions
- Replace MERGERECT macro with REGION_bMergeRect inline function

svn path=/trunk/; revision=65735
2014-12-18 08:12:55 +00:00
Timo Kreuzer
542d41ba8b [WIN32K]
Improve REGION_bMakeFrameRegion and REGION_bMakeSimpleFrameRgn

svn path=/trunk/; revision=65734
2014-12-18 08:12:51 +00:00
Timo Kreuzer
fe261bd6e2 [WIN32K]
- Make REGION_iOffsetRgn check the region for coordinate space overflow and fail, if the region cannot be moved
- Rename REGION_iOffsetRgn to REGION_bOffsetRgn and make it return BOOL instead of the complexity, since the majority of callers are not interested in the complexity. It's also more obvious that we need to check for an error.

svn path=/trunk/; revision=65733
2014-12-18 08:12:41 +00:00
Timo Kreuzer
beff5fdc06 [WIN32K]
- Rename IntGdiOffsetRgn to REGION_iOffsetRgn

svn path=/trunk/; revision=65732
2014-12-18 08:12:34 +00:00
Timo Kreuzer
72bceaffc2 [WIN32K]
Implement exclusive lock order checks for GDI objects in debug builds

svn path=/trunk/; revision=65731
2014-12-18 08:12:28 +00:00
Timo Kreuzer
c6f684e727 [WIN32K]
- Rewrite NtGdiFillRgn and IntGdiPaintRgn
We now properly support painting regions on DCs with arbitrary world transforms, with pattern brushes and we respect the foreground ROP and mode of the DC. And we don't run into deadlocks due to having an exclusive region lock while trying to lock a DC. LOCKING MUST BE DONE IN PROPER ORDER!

svn path=/trunk/; revision=65730
2014-12-18 08:12:23 +00:00
Timo Kreuzer
c3d2353ed6 [WIN32K]
Properly implement EngPaint, calling IntEngBitBlt, instead of doing a manual single color fill.

svn path=/trunk/; revision=65729
2014-12-18 08:12:19 +00:00
Timo Kreuzer
9697fb6e1e [WIN32K]
- Implement REGION_bXformRgn
- Move IntGdiPaintRgn ro bitblt.c

svn path=/trunk/; revision=65728
2014-12-18 08:12:06 +00:00
Timo Kreuzer
095f2182e8 [WIN32K]
- Move IntGdiReleaseRaoRgn and IntGdiReleaseVisRgn to cliprgn.c
- Remove unused IntUpdateVisRectRgn

svn path=/trunk/; revision=65727
2014-12-18 08:12:01 +00:00
Timo Kreuzer
e6d7e74e6a [WIN32K]
- Rename IntSetPolyPolygonRgn to REGION_SetPolyPolygonRgn
- Implement GreCreatePolyPolygonRgn wrapper around it
- Fix iMode usage in NtGdiPolyPolyDraw
- Improve some variable naming

svn path=/trunk/; revision=65726
2014-12-18 08:11:56 +00:00
Timo Kreuzer
a969022b08 [WIN32K]
Rework GreCreateFrameRgn to return the new region. Implement the internal function REGION_bMakeFrameRegion doing the actual work. Fix frame calculation by moving the source region diagonal instead of only horizontal and vertical, use IntGdiOffsetRgn instead of manually fiddling with the rectangles.

svn path=/trunk/; revision=65725
2014-12-18 08:11:50 +00:00
Timo Kreuzer
620c12a295 [WIN32K]
- Move NtGdiFillRgn and NtGdiFrameRgn to bitblt.c
- Remove unused NtGdiUnionRectWithRgn
- Rename REGION_CreateFrameRgn to GreCreateFrameRgn

svn path=/trunk/; revision=65724
2014-12-18 08:11:42 +00:00
Timo Kreuzer
87c12612dc [WIN32K]
Move NtGdiInvertRgn to bitblt.c

svn path=/trunk/; revision=65723
2014-12-18 08:11:36 +00:00
Timo Kreuzer
163de23b57 [WIN32K]
- Remove useless offset part in REGION_CropAndOffsetRegion

svn path=/trunk/; revision=65722
2014-12-18 08:11:31 +00:00
Timo Kreuzer
4fa10c7ef9 [WIN32K]
Fix MSVC warnings

svn path=/trunk/; revision=65721
2014-12-18 08:11:25 +00:00
Timo Kreuzer
2768e3abbd [WIN32K]
More improvements to region.c:
- PROSRGNDATA -> REGION, void -> VOID, int -> INT, uppercase struct names
- do not put assignments into if statements
- !x -> x == NULL for pointers
- Add additional parentheses / curly braces
- rename RGN_ATTR::Flags to iComplexity

svn path=/trunk/; revision=65720
2014-12-18 08:11:19 +00:00
Timo Kreuzer
1a37b7cfb8 [WIN32K/FORMATTING]
- Tabs -> spaces
- Fix indentation
- Improve comment formating
- No code change

svn path=/trunk/; revision=65719
2014-12-18 08:11:13 +00:00
Timo Kreuzer
0d02208b99 [GDI32]
Avoid casting RECT and POINT to RECTL and POINTL by adding a define

svn path=/trunk/; revision=65718
2014-12-18 08:11:09 +00:00
Timo Kreuzer
ab81b74bb4 [GDI32]
Implement GdiGetRgnAttr

svn path=/trunk/; revision=65717
2014-12-18 08:11:04 +00:00
Hermès Bélusca-Maïto
f9b8d7214f [USER32][USERSRV]
Temporarily disable UserClientConnect (in server side) and CSR client to server call (in client side), always set gfServerProcess to FALSE (that is normally almost true but when CSR itself does USER32 operations...), and comment again GetConnect() call in ClientThreadSetup, in an attempt to "fix" 3rd stage for bots (so that we don't assert in DesktopPtrToUser because some pdi is NULL...)

svn path=/trunk/; revision=65716
2014-12-18 01:53:08 +00:00
Hermès Bélusca-Maïto
e157eb4929 [CONSRV]: Explicitely use UNICODE SetWindowText API.
svn path=/trunk/; revision=65715
2014-12-18 01:35:55 +00:00
Hermès Bélusca-Maïto
c6fccde6d2 [WIN32K]
- Code formatting for NtUserProcessConnect.
[USER32]
- Hack a call to GetConnected in ClientThreadSetup in an attempt to temporarily "fix" a bug that makes the bots fail. Now we really need to fix user32 init!

svn path=/trunk/; revision=65714
2014-12-18 00:30:27 +00:00
James Tabor
5b624b75db [NtUser]
- Cleanup status and update header.

svn path=/trunk/; revision=65713
2014-12-18 00:19:33 +00:00
Hermès Bélusca-Maïto
effa3a4d24 [USERSRV]
- Set the process creation notify routine for BASE that needs to be called when a process is created.
Patch by Timo, see CORE-7505.

[BASESRV]
- Implement BaseSetProcessCreateNotify that just saves internally the notification function to be called when a process is created.
- Call the notification function where it should be.

CORE-7505

svn path=/trunk/; revision=65712
2014-12-17 23:03:36 +00:00
Hermès Bélusca-Maïto
ae2e894b80 [USERSRV]: usersrv needs static-link to basesrv because it'll use an API in the next commit :p (hint: process creation notification). For Timo's patch CORE-7505
svn path=/trunk/; revision=65711
2014-12-17 22:34:13 +00:00
Hermès Bélusca-Maïto
672f036f93 [HEADERS]
- Play around and declare USERSRV_API_CONNECTINFO (CSR-style-name connect info structure type) as an alias to USERCONNECT (win32k-style-name) structure that is used to perform... "connections" between user32 and winsrv/win32k subsystem.

[WIN32K]
- Make UserThreadCsrApiPort case of NtUserSetInformationThread return success to make usersrv happy (while saving CSR port handle in win32k is still not implemented).

[USER32]
- Clean up "a bit" DllMain, call CsrClientConnectToServer to connect to usersrv (copy-paste of what we do in kernel32 for base and console connection) and now determine properly whether we are doing server-to-server calls (i.e. properly set gfServerProcess).
- Reorganize GdiDllInitialize calls and put them all to the end of DllMain instead.
- No need to support DLL_THREAD_ATTACH/DETACH so call the magic DisableThreadLibraryCalls function.

[USERSRV]
- Implement UserClientConnect with the patch of Timo CORE-7505: it gives a CSR port handle to win32k (if not already done), then do process connection.

CORE-7505

svn path=/trunk/; revision=65710
2014-12-17 22:22:05 +00:00
Hermès Bélusca-Maïto
6268701e22 [KERNEL32]: Minor code formatting.
svn path=/trunk/; revision=65709
2014-12-17 22:07:41 +00:00
Hermès Bélusca-Maïto
2abc02f9c7 Delete unuseful file...
svn path=/trunk/; revision=65708
2014-12-17 22:06:36 +00:00
Daniel Reimer
42b68bba90 [SHELL32]
German translation update

svn path=/trunk/; revision=65707
2014-12-17 21:09:30 +00:00
Amine Khaldi
eb0152b771 [USRMGR] Italian translation update by Nicolò Altamura. CORE-8857
svn path=/trunk/; revision=65706
2014-12-17 17:59:02 +00:00
Amine Khaldi
041fb54b3e [MPLAY32] Update Chinese (zh-CN) translation. By Henry Tang Ih.
CORE-8918

svn path=/trunk/; revision=65705
2014-12-17 17:51:10 +00:00
Amine Khaldi
e6d6e86150 [SYSDM] Minor changes to the Startup and Recovery options dialog resource. Brought to you by Ricardo Hanke.
CORE-8924

svn path=/trunk/; revision=65704
2014-12-17 17:47:54 +00:00
Giannis Adamopoulos
59dee0fd6f [EXPLORER]
* Remove internal IStartMenuSite interface that didn't serve any purpose.
* Stop using global instances of some core classes.

svn path=/trunk/; revision=65703
2014-12-17 12:44:58 +00:00
Giannis Adamopoulos
2d5024bcae [RSHELL]
* Disable themes for the toolbars used for shell menus
* See issue CORE-8922 for details

svn path=/trunk/; revision=65702
2014-12-17 12:38:19 +00:00
Giannis Adamopoulos
f8294a310a [RSHELL]
- Remove definition for an undocumented function that already exists in our headers
- See issue CORE-8920

svn path=/trunk/; revision=65701
2014-12-17 12:28:35 +00:00
Giannis Adamopoulos
fadad0db13 [RSHELL]
- Simplify some code by using shlwapi helpers
- See issue CORE-8919

svn path=/trunk/; revision=65700
2014-12-17 12:11:31 +00:00
Giannis Adamopoulos
3f135b5ac6 Try to fix build
svn path=/trunk/; revision=65699
2014-12-17 11:46:19 +00:00
Giannis Adamopoulos
cfac63ea85 [BROWSEUI]
* Simplify a lot of methods my using helpers from shlwapi.
* Remove declarations for undocumented functions that are already declared in our headers.
* Move definitions of IID_IAugmentedShellFolder and CLSID_MergedFolder to our headers.
* Remove definitions of functions that are already implemented in shlwapi.
* Add CreateMergedFolder and CreateMenuBand functions in precomp.h in order to simplify creating these objects when using rshell.

svn path=/trunk/; revision=65698
2014-12-17 11:35:07 +00:00
David Quintana
4c893c3d59 [SEHLL32]
* Implement handling of file associations marked as "NoOpen". Patch by Lee Schroeder, with a few tweaks.
CORE-8855 #resolve #comment Commited in trunk r65697. Thanks.

svn path=/trunk/; revision=65697
2014-12-17 00:46:30 +00:00
Hermès Bélusca-Maïto
5b22f2c5c3 [WIN32K]
- Simplify NtUserInitialize: we can check whether gpepCSRSS is != NULL to see if we are initialized or not (instead of using gbInitialized).
- The UserInitialize helper doesn't need to take parameters. The two event handles (power and media, used when we receive a power event -- for sleep, etc... -- and a media event -- like USB key insertion and such --) just need to be used in the not-yet-implemented "Initialize Power Request List" and "Initialize Media Change" steps.
- Something that should be done is to bugcheck if the USER version reported is != 5.0 (as windows does).

[WINSRV]
- Collapse common inclusions from usersrv and consrv into the common header winsrv.h.

[USERSRV]
- _UserSoundSentry is NTAPI
- Stub UserClientConnect (Timo's patch contains more involved code. I will commit it later).
- Our NtUserInitialize(0, NULL, NULL); call (that made Windows BSOD) is wrong. It should be done with its first parameter correctly set to the USER version (5.0) and the two other parameters are handles to power and media events (see above). We should create them before.
This is part of patch by Timo Kreuzer.
CORE-7505 #comment UserClientConnect stubbed (it should be better implemented, I will commit the code from the patch later on); power&media events initialized; NtUserInitialize corrected.

svn path=/trunk/; revision=65696
2014-12-17 00:33:40 +00:00
David Quintana
09bdb1f5ce [SHELL32]
* Revert r65589, since it breaks tray icons.

svn path=/trunk/; revision=65695
2014-12-17 00:32:34 +00:00
Hermès Bélusca-Maïto
06c09f7300 [WIN32K]: Some code formatting in csr.c before revampering it.
svn path=/trunk/; revision=65694
2014-12-17 00:17:44 +00:00
Hermès Bélusca-Maïto
423dd92dbd [WIN32K]
Stubplement NtUserQueryInformationThread and NtUserSetInformationThread that will be used for:
- shutdown support: CORE-8322
- communicating a CSR Port handle to win32k: CORE-7505
CORE-7505 CORE-8322

svn path=/trunk/; revision=65693
2014-12-16 23:09:29 +00:00
Hermès Bélusca-Maïto
77b8d17482 ... And as a result of the previous commit, finally get rid of the "deprecated" directory!
svn path=/trunk/; revision=65692
2014-12-16 21:59:50 +00:00
Hermès Bélusca-Maïto
2b315b5802 [WIN32SS]: Push back csr code into win32k (not compiled yet). The thing is that win32k uses a LPC port to communicate with winsrv.dll . But it's winsrv.dll that gives a handle of the CSR port to win32k via a call to NtUserSetInformationThread with the UserThreadCsrApiPort information class. See part of Timo's patch in CORE-7505 that will be submitted later on. Also I need to somewhat stub the UserThreadCsrApiPort info class in NtUserSetInformationThread :)
svn path=/trunk/; revision=65691
2014-12-16 21:58:18 +00:00
Hermès Bélusca-Maïto
c8b67f57b6 [KERNEL32][BASESRV]
On Windows 2k3, BASESRV_API_CONNECTINFO went under a slimming treatment and now is only 4 bytes. In fact all its information was already existing in the static base data structure (BaseStaticServerData). We should now be more 2k3-compatible :)
Fix also the testbots.

svn path=/trunk/; revision=65690
2014-12-16 21:48:23 +00:00
Timo Kreuzer
4894f79a03 [SPEC2DEF]
Improve error output

svn path=/trunk/; revision=65689
2014-12-16 21:21:14 +00:00
Timo Kreuzer
ec7ca046bc [NTOSKRNL]
Hey Arch, using uninitialized variables is bad, mkay?

svn path=/trunk/; revision=65688
2014-12-16 21:15:57 +00:00
Timo Kreuzer
0d1a5d0f19 [EVENTVWR]
Fix MSVC build and x64 warnings

svn path=/trunk/; revision=65687
2014-12-16 21:03:24 +00:00
Hermès Bélusca-Maïto
5007c54522 [BASESRV]: Use BaseSrvCleanupVDMResources taking a CSR_PROCESS structure instead of just its PID to be able to possibly use more things to do VDM cleanup (in the future).
svn path=/trunk/; revision=65686
2014-12-16 20:28:44 +00:00
Hermès Bélusca-Maïto
52ac8586cf [BASESRV]: basesrv exports few APIs used in winsrv, so declare basesrv as IMPORTLIB.
svn path=/trunk/; revision=65685
2014-12-16 20:26:02 +00:00
Hermès Bélusca-Maïto
a4333d20f7 [BASESRV]
- Introduce BaseClientConnectRoutine and BaseClientDisconnectRoutine functions that do basesrv (de)initialization, and BaseSrvNlsConnect that may potentially init further NLS support in the future.
- BaseSrvDebugProcess is deprecated in Windows 2k3+.
- Few whitespace fixes.
Piece of patch by Timo Kreuzer.
CORE-7505 #comment Basesrv (dis)connect routines committed in r65684.

svn path=/trunk/; revision=65684
2014-12-16 20:15:35 +00:00
David Quintana
db53788957 [SHELL32]
* Use PrivateExtractIconsW instead of PrivateExtractIconExW to obtain the icons for caching. Fixes small shell icons using large icons scaled down instead of the proper 16px icons. Patch by Ismael Ferreras Morezuelas (swyter).
CORE-8404 #resolve #comment Commited in r65683. Thanks.

svn path=/trunk/; revision=65683
2014-12-16 18:21:48 +00:00
Hermès Bélusca-Maïto
8ebed423a8 [CSR]
- Cleanup a bit csrmsg.h (by me), the ObjectDirectory member of the CSR_API_CONNECTINFO structure becomes unused starting Windows 2k3 (add an informative comment about that fact).
- Remove now unneeded ObjectDirectory duplication code (by Timo).
- Fix some whitespace.
CORE-7505 #comment ObjectDirectory duplication code removed in r65682.

svn path=/trunk/; revision=65682
2014-12-15 23:35:32 +00:00
Hermès Bélusca-Maïto
d63ba99439 [BASESRV]
- Whitespace fixes.
- Stub AppCompat module.
Patch by Timo Kreuzer.
CORE-7505 #comment AppCompat committed in r65681.

svn path=/trunk/; revision=65681
2014-12-15 22:48:38 +00:00
Pierre Schweitzer
5fd0b10a9d [NTFS]
Return the MFT index in FileFullDirectoryInformation and NtfsGetBothDirectoryInformation queries

svn path=/trunk/; revision=65680
2014-12-15 21:44:52 +00:00
Pierre Schweitzer
e032664c6c [NTFS]
- Store the link count in FCB and return it in FileStandardInformation query
- Return the MFT index in NtfsGetInternalInformation query 

svn path=/trunk/; revision=65679
2014-12-15 21:28:06 +00:00
Hermès Bélusca-Maïto
ef4abbbb64 [MSGINA]: Update the function names of stubs, with (in comments) the number of parameters they take.
See CORE-8459 for more information.
CORE-8459 #resolve #comment Fixed in r65678.

svn path=/trunk/; revision=65678
2014-12-15 21:07:23 +00:00
Hermès Bélusca-Maïto
a55958d1b1 [TASKMGR]: Disable the "End task" button if no item is selected.
Part 2 of a patch by Edijs.
CORE-5655 #comment Patch committed. When one of you will have a patch for the Windows-menu items disabled bug, please reopen the report. #resolve

svn path=/trunk/; revision=65677
2014-12-15 20:45:38 +00:00
Hermès Bélusca-Maïto
0e707a8c26 [TASKMGR]: Disable the "End process" button if no item is selected.
Part 1 of a patch by Edijs.
CORE-5655 #comment procpage.c fix committed.

svn path=/trunk/; revision=65676
2014-12-15 20:33:26 +00:00
Hermès Bélusca-Maïto
55e82d6d2b [TREE]
- Use #pragma once in resource.h
- put windows.h after CRT includes.
- Convert the main .rc back to ANSI otherwise rc.exe complains, see http://stackoverflow.com/questions/15244065/error-rc2135-in-c-project-due-to-utf-8-encoding-of-rc-file for more details.

svn path=/trunk/; revision=65675
2014-12-15 20:17:17 +00:00
James Tabor
c181d8e316 - Fix build.
svn path=/trunk/; revision=65674
2014-12-15 01:41:57 +00:00
James Tabor
225783c294 - Fix build.
svn path=/trunk/; revision=65673
2014-12-15 01:40:58 +00:00
James Tabor
8cda920638 [NtUser]
- Finaly fix CORE-6129 leaving CORE-6651 to fix.

svn path=/trunk/; revision=65672
2014-12-15 01:38:27 +00:00
Daniel Reimer
13c3cc0240 [RAPPS]
Extend Turkish translation for rapps database by Erdem Ersoy
CORE-8874 #resolve #comment Committed, thx for help.

svn path=/trunk/; revision=65671
2014-12-15 01:01:58 +00:00
Daniel Reimer
36a607c8b8 [SYSDM]
Fix some misaligned button and text fields.
CORE-7338 #resolve #comment Should be fixed.

svn path=/trunk/; revision=65670
2014-12-15 01:00:07 +00:00
Daniel Reimer
e24917b475 [RAPPS]
rosapps maintenance of Romanian parts by Ștefan Fulea
CORE-8520 #resolve #comment Committed, thx for help.

svn path=/trunk/; revision=65669
2014-12-15 00:23:41 +00:00
Daniel Reimer
57d0c2a98d [TRANSLATION]
Turkish Translation Update by Erdem Ersoy
CORE-7861 #resolve #comment Committed, thx for help.

svn path=/trunk/; revision=65668
2014-12-15 00:12:56 +00:00
Daniel Reimer
223bc9c336 [USER32]
TRANSLATION: Ukrainian translation update for User32 by Yaroslav Fedoryako
CORE-8596 #resolve #comment Committed. Thx for help.

svn path=/trunk/; revision=65667
2014-12-14 23:58:12 +00:00
Daniel Reimer
32861c20d3 [INPUT]
TRANSLATION: Ukrainian translation update for input.dll by Yaroslav Fedoryako
CORE-8616 #resolve #comment Committed. Thx for help.

svn path=/trunk/; revision=65666
2014-12-14 23:57:11 +00:00
Daniel Reimer
e8d986a554 [USRMGR]
Italian translation of user accounts (control panel) by nicoalta01 (Marco Maria Emanuele Bartucci as I hope his name is)
While I was at it... convert the rest to UTF8
CORE-8857 #resolve #comment Committed, thx for help.

svn path=/trunk/; revision=65665
2014-12-14 23:52:49 +00:00
Daniel Reimer
ec4cc1a38b [URLMON]
TRANSLATION: Czech translation update
CORE-8499 #comment INF is UCS2 LE now and the Lang ID is corrected. Can you confirm that this is fixed now?

svn path=/trunk/; revision=65663
2014-12-14 23:38:05 +00:00
Hermès Bélusca-Maïto
9f24fbfec9 Partial merge of condrv_restructure branch r65657.
svn path=/trunk/; revision=65660
2014-12-14 22:57:49 +00:00
Daniel Reimer
0b132a9e1e [SHELL32]
Update German translation by Robert Naumann
CORE-8912 #resolve #comment Committed Thx for help.

svn path=/trunk/; revision=65659
2014-12-14 22:56:10 +00:00
Daniel Reimer
b812120a00 [BROWSEUI]
Update German translation by Robert Naumann
CORE-8913 #resolve #comment Committed Thx for help.

svn path=/trunk/; revision=65658
2014-12-14 22:55:08 +00:00
Hermès Bélusca-Maïto
83c026ccfe Sync with trunk r65656.
svn path=/branches/condrv_restructure/; revision=65657
2014-12-14 22:41:19 +00:00
Ziliang Guo
af188cf2f8 [DESK.CPL]
Check for the correct registry value for the wallpaper. Patch by Ricardo Hanke.
CORE-8796

svn path=/trunk/; revision=65656
2014-12-14 22:38:45 +00:00
Hermès Bélusca-Maïto
d7e4510259 [CONSRV]
- Fix info header.
- Add a VDMBuffer check.

svn path=/branches/condrv_restructure/; revision=65655
2014-12-14 22:19:05 +00:00
Hermès Bélusca-Maïto
1fa498439b [MSPAINT]: Remove trailing whitespace.
svn path=/trunk/; revision=65654
2014-12-14 21:56:21 +00:00
Hermès Bélusca-Maïto
15f101905a [CONSRV]: Rename context members with a more explicit name (code "style" only).
svn path=/branches/condrv_restructure/; revision=65653
2014-12-14 21:51:32 +00:00
Pierre Schweitzer
5a3af281d7 [NTFS]
- Implement NtfsGrabFCBFromTableById() and NtfsGetFCBForFileById(). These two are responsible for opening and retrieving a file open by ID.
- Modified NtfsMakeFCBFromDirEntry() so that it supports openings by ID which come with less information than normal openings.
- Modified NtfsGrabFCBFromTable() so that it doesn't return a FCB which would have been opened by ID.
- Modified NtfsOpenFile() so that it allows opening a file by ID using the two FCB helpers functions defined upper.
- Modified NtfsCreateFile() so that it can validate input in case of opening by ID.

To make it short, all this implements file opening by ID in NTFS driver. I made the choice to separate FCB which are coming from "normal" opening and these from ID opening.
The reason is that a file opening with ID has less information than a normal opening, and may fail on these information retreival. This is due to the fact that if opening by ID can virtual open all the files, because it ignores authorizations, traverses checks, in the end for retrieving the information, such checks can be done and fail.

I also left all this disabled so far, because it appears to regress NFI. I will investigate this.

CORE-8725

svn path=/trunk/; revision=65652
2014-12-14 21:18:47 +00:00
Hermès Bélusca-Maïto
0187ba2a21 [CONSRV]: More code cleaning.
svn path=/branches/condrv_restructure/; revision=65651
2014-12-14 21:18:40 +00:00
Pierre Schweitzer
6cea3c4018 [NTFS]
Make the NTFS driver more verbose in file information requests

svn path=/trunk/; revision=65650
2014-12-14 21:09:29 +00:00
Hermès Bélusca-Maïto
715013f96b [CONSRV]: Move ConioDrawConsole to where it should belong.
svn path=/branches/condrv_restructure/; revision=65649
2014-12-14 19:01:52 +00:00
Daniel Reimer
ca068b28b6 [TREE]
German translation for tree utility.

svn path=/trunk/; revision=65648
2014-12-14 18:58:51 +00:00
Ziliang Guo
71ef2b4cc4 [SETUP]
Add registry value for wallpaper directory. Patch by Ricardo Hanke.
CORE-8797

svn path=/trunk/; revision=65647
2014-12-14 18:39:24 +00:00
Ziliang Guo
c030203e6a [TREE]
Cleanup of Tree utility by Lee Schroeder.
CORE-8908

svn path=/trunk/; revision=65646
2014-12-14 18:30:14 +00:00
Pierre Schweitzer
ecb8f375f8 [NTFS]
Implement GetVolumeBitmap().

This allows NFI to find which file is at which LCN: http://www.heisspiter.net/~Pierre/rostests/NTFS_NFI_LCN.png

So far, NFI is not as verbose as it is on Windows in such cases, because FILE_OPEN_BY_FILE_ID is *still* unimplemented (you should consider implementing it Pierre ;-)).
I checked with Windows, the correct file is found though!

CORE-8725

svn path=/trunk/; revision=65645
2014-12-14 18:13:57 +00:00
Hermès Bélusca-Maïto
6ba8a926da [CONSRV]: Add PCONSRV_CONSOLE --> PCONSOLE casts (needed *on purpose*).
svn path=/branches/condrv_restructure/; revision=65644
2014-12-14 18:05:50 +00:00
Hermès Bélusca-Maïto
4bc1529cfa [CONSRV]: Move all references to VDM screenbuffers from condrv back to consrv (only ConDrvWriteConsoleOutputVDM remains in condrv for now...)
svn path=/branches/condrv_restructure/; revision=65643
2014-12-14 17:30:38 +00:00
Hermès Bélusca-Maïto
6dcdba6692 [CONDRV]: Code reshuffling only.
svn path=/branches/condrv_restructure/; revision=65642
2014-12-14 17:02:39 +00:00
Hermès Bélusca-Maïto
37d3115479 [SACDRV]: Code formatting.
svn path=/trunk/; revision=65641
2014-12-14 16:54:14 +00:00
Hermès Bélusca-Maïto
f995f5fef8 [CONSRV]: Use an optional parameter for passing things to the "line discipline" functions.
svn path=/branches/condrv_restructure/; revision=65640
2014-12-14 16:53:47 +00:00
Pierre Schweitzer
e4e3241286 [NTFS]
- In the VCB, directly store the total number of clusters available in the volume, this will save a few recurrent divisions
- Use this everywhere it is possible
- Validate input in GetVolumeBitmap(): make sure we don't want bitmap beyond end of the volume

CORE-8725

svn path=/trunk/; revision=65639
2014-12-14 14:38:44 +00:00
Pierre Schweitzer
c16d33beae [NTFS]
- Implement NtfsGetUserBuffer() that will (attempt to) return the user output buffer for METHOD_NEITHER IOCTL.
- Implement parameters checking GetVolumeBitmap()

CORE-8725 

svn path=/trunk/; revision=65638
2014-12-14 12:24:18 +00:00
Hermès Bélusca-Maïto
508364d0b2 [COMP]: Minor code style changes + whitespace fixes.
svn path=/trunk/; revision=65637
2014-12-14 12:04:45 +00:00
Pierre Schweitzer
71ca9839a4 [NTFS]
Stub FSCTL_GET_VOLUME_BITMAP which is required by NFI.

CORE-8725

svn path=/trunk/; revision=65636
2014-12-14 10:54:20 +00:00
Cameron Gutman
2021ab5899 [CDFS]
- Fix CD-ROM disc change handling
- Fixes CORE-6119

svn path=/trunk/; revision=65635
2014-12-14 09:27:11 +00:00
Pierre Schweitzer
5d774268db [CALC]
Apply r65633 to all the language files.

CORE-7746

svn path=/trunk/; revision=65634
2014-12-14 09:18:47 +00:00
Ziliang Guo
f15a2f9255 [CALC]
Switch calc to using the registry for storing configuration values. Remove 9x codepath. Patch by Lee Schroeder. Cleaning up Ziliang Guo.
CORE-7746

svn path=/trunk/; revision=65633
2014-12-14 05:48:05 +00:00
Ziliang Guo
b9312f9bb6 [TREE]
Fix build.

svn path=/trunk/; revision=65632
2014-12-14 00:09:51 +00:00
Ziliang Guo
85260e1fa7 [TREE]
Implement directory tree commandline utility. Code by Asif Bahrainwala. Cleanup by Ziliang Guo.
CORE-8529

svn path=/trunk/; revision=65631
2014-12-14 00:00:54 +00:00
Eric Kohl
38b680f392 [EVENTVWR]
Clean up the resource IDs.
Fix small icon loading.

svn path=/trunk/; revision=65630
2014-12-13 22:35:48 +00:00
Ziliang Guo
bf0ce0bccc [COMP]
Incorporate fixes provided by a patch from over three years ago that adds support for the additional compare options. Patch provided by kruntuid. Slight cleanup and reshuffling of some code to make it cleaner.
CORE-8484

svn path=/trunk/; revision=65629
2014-12-13 21:17:59 +00:00
Eric Kohl
75e5e3462a [EVENTVWR]
Update the Event Detail Dialog to better match XP/2K3
Patch by Lee Schroeder.
I updated the remaining dialogs.
Translators: Please check the dialogs!

CORE_8904 #resolve

svn path=/trunk/; revision=65628
2014-12-13 20:53:06 +00:00
Timo Kreuzer
d4579fbe00 [DDK]
ExInitializePushLock is NTAPI!

svn path=/trunk/; revision=65627
2014-12-13 14:37:34 +00:00
Timo Kreuzer
65836ff301 [NTOSKRNL]
Fix x64 build

svn path=/trunk/; revision=65626
2014-12-13 11:01:57 +00:00
Pierre Schweitzer
065dd42b53 [TASKMGR]
Don't leak process handle

CORE-3716

svn path=/trunk/; revision=65625
2014-12-13 08:18:09 +00:00
Ziliang Guo
e3228a4c64 [TASKMGR]
Prevent task manager from killing critical processes. Patch by Ismael Ferreras Morezuelas.
CORE-3716

svn path=/trunk/; revision=65624
2014-12-13 06:35:56 +00:00
Ziliang Guo
8c112bc3e7 [EVENTVWR]
Display seconds for event time in event viewer. Patch by Lee Schroeder.
CORE-8612

svn path=/trunk/; revision=65623
2014-12-13 05:07:58 +00:00
James Tabor
7edb9e1657 [User32]
- Patch by Vincent Povirk : Allow EndMenu() calls from WM_ENTERMENULOOP.
- Patch by Akihiro Sagawa : Don't close a popup menu when clicking a sub-menu parent item twice.
- Move code to match wines. See CORE-8299.

svn path=/trunk/; revision=65622
2014-12-13 01:18:35 +00:00
Ziliang Guo
aa7bd0b1b7 [DESK.CPL]
Modify font enumeration code to deal with failure to read the registry key. Also change the registry key being queried to match the one used on Windows. Patch by Ricardo Hanke.
CORE-8203

svn path=/trunk/; revision=65621
2014-12-12 22:07:29 +00:00
Ziliang Guo
34dee12ec2 [SHIMGV]
Fix display window calculation. Patch by Ricardo Hanke.
CORE-7656

svn path=/trunk/; revision=65620
2014-12-12 21:15:17 +00:00
James Tabor
57fd9b8882 [Win32k]
- Fix double click on application icons. See CORE-3269.


svn path=/trunk/; revision=65619
2014-12-12 20:28:20 +00:00
David Quintana
5e63339a90 [EXPLORER]
* Followup to t65603. Fixes the start menu themeing regression (when running explorer in windows 2003).
CORE-8898 #resolve

svn path=/trunk/; revision=65618
2014-12-12 16:28:46 +00:00
Amine Khaldi
fd0186b855 [USER32] We're not using any debugging routines here.
svn path=/trunk/; revision=65617
2014-12-12 13:23:45 +00:00
Amine Khaldi
db0d247c82 [CRT] Explicitly mark strncpy and wcsncpy as __cdecl.
svn path=/trunk/; revision=65616
2014-12-12 13:20:14 +00:00
Amine Khaldi
395dc9ef1f [W32KDLL_APITESTS] Properly handle ASM files. Also use set_module_type() instead of manually setting the entry point.
svn path=/trunk/; revision=65615
2014-12-12 13:17:16 +00:00
Amine Khaldi
51fa01cea7 [SHIMGVW] Fix DLL stubs, intended to fix a crash on Windows. Patch by Ricardo Hanke.
CORE-8073 #resolve #comment Committed in r65614. Thanks!

svn path=/trunk/; revision=65614
2014-12-12 13:08:59 +00:00
Pierre Schweitzer
5bf209a1aa [NTFS]
Ach! Wir können noch nicht mit dem ID öffnen!

So far, bail out when we are requested to open a file with its MFT index instead of its name.
nfi triggers this a lot. Likely to be implemented ;-)

CORE-8725 

svn path=/trunk/; revision=65613
2014-12-11 22:15:49 +00:00
Pierre Schweitzer
00abdbc36f [NTFS]
My dear Pierre, in FSCTL_GET_NTFS_FILE_RECORD, you have METHOD_BUFFERED (yes, read well ;-)).
So if you want it to work, you HAVE to return the size of the data you wrote to the output buffer...
This makes FSCTL_GET_NTFS_FILE_RECORD finally working in ReactOS...

nfi.exe finally goes a bit farther, displays some files names and dies. Definitely still needs love.

CORE-8725

svn path=/trunk/; revision=65612
2014-12-11 21:58:45 +00:00
Giannis Adamopoulos
4b301b04e1 [EXPLORER]
* Use LoadLibrary instead of GetModuleHandle in the wrapper of WinList_Init.
* Shdocvw was never loaded till that point so WinList_Init was not called.
* Should fix Opening link location in windows.

svn path=/trunk/; revision=65611
2014-12-11 21:18:36 +00:00
Ziliang Guo
c960788a1d [SHIMGVW]
Implement rotation of images, but does not save changes or warn of quality loss.
CORE-7567

svn path=/trunk/; revision=65610
2014-12-11 20:01:52 +00:00
Ziliang Guo
0188f94d85 [CORE-8302]
Fix aspect ratio calculation in shell image viewer. Patch by Ricardo Hanke.

svn path=/trunk/; revision=65609
2014-12-11 19:57:03 +00:00
Ziliang Guo
cbc7920dbe [CORE-7737]
Implement browsing with the shell image viewer. Patch by Ricardo Hanke.

svn path=/trunk/; revision=65608
2014-12-11 19:52:47 +00:00
Ziliang Guo
f758aece6f [SHIMGVW]
Fix tooltips for image viewer at least on Windows. Patch by Richardo Hanke.
CORE-7740 #resolve

svn path=/trunk/; revision=65607
2014-12-11 18:11:08 +00:00
Sylvain Petreolle
16c3dc3016 test
svn path=/trunk/; revision=65606
2014-12-11 18:00:21 +00:00
Giannis Adamopoulos
502f155b91 [EXPLORER]
- Simplify some code by using the IUnknown_ exports of shlwapi and using CComPtr.

svn path=/trunk/; revision=65605
2014-12-11 17:42:56 +00:00
David Quintana
71a780a54c Oops. That didn't happen.
svn path=/trunk/; revision=65604
2014-12-11 16:33:43 +00:00
David Quintana
4afe020ac6 [EXPLORER]
* Cleanup variable names and fix a few typos along the way.
* Refactor the start button code into a CStartButton class.
NOTE: There is a known regression with start button themeing, which I'm working on. The missing notification icons are not caused by this.
CORE-8898

svn path=/trunk/; revision=65603
2014-12-11 16:32:07 +00:00
Ziliang Guo
e6979b9c26 [SHIMGVW]
Dynamically allocate the string for the file-type box. Patch by Ricardo Hanke.
CORE-7702 #resolve

svn path=/trunk/; revision=65602
2014-12-10 21:27:18 +00:00
Pierre Schweitzer
5e1a81a596 [NTFS]
Implement the downward fashion of FSCTL_GET_NTFS_FILE_RECORD and always return a file record which is in use
CORE-8725

svn path=/trunk/; revision=65601
2014-12-10 20:45:04 +00:00
Giannis Adamopoulos
7427f826d0 [EXPLORER]
* Simplify CreateStartMenu. Use CComPtr and IUnknown_SetSite.

svn path=/trunk/; revision=65600
2014-12-09 22:49:54 +00:00
Giannis Adamopoulos
50d056ca73 [EXPLORER]
* Make SetWindowStyle and SetWindowExStyle simple wrappers around SHSetWindowBits. There is no reason to reinvent the wheel.

svn path=/trunk/; revision=65599
2014-12-09 22:01:46 +00:00
Giannis Adamopoulos
f8a69bddfb [EXPLORER]
* Remove dragdrop.cpp. It was never used.

svn path=/trunk/; revision=65598
2014-12-09 21:55:56 +00:00
Giannis Adamopoulos
8264611855 [EXPLORER]
* Import some undocumented functions directly instead of using GetProcAddress

svn path=/trunk/; revision=65597
2014-12-09 21:37:59 +00:00
Pierre Schweitzer
5503ce60e6 [NTOSKRNL]
THE oneliner....
Properly read the information from the IRP to get the reparse tag. This fixes the handling of reparse mount points in ReactOS.

To make it short and crystal clear: reparse points from NTFS now work in ReactOS.
Demonstration with a Windows 7 volume read inside ReactOS with our NTFS driver and the "Documents and Settings" directory pointing to Users.

IopDoNameTransmogrify() properly gets the reparse data and extracts the mount point:
(../../ntoskrnl/io/iomgr/file.c:178) IopDoNameTransmogrify(B074DB98, B022BC28, B0226068)
(../../ntoskrnl/io/iomgr/file.c:232) Old name: '\Documents and Settings\'
(../../ntoskrnl/io/iomgr/file.c:266) Reparsed name: '\??\C:\Users'

Then.... http://www.heisspiter.net/~Pierre/rostests/NTFS_Reparse.png
First, I attempt to open "Documents and Settings" on my NTFS volume, it fails as "C:\" drive is hardcoded in the reparse point.
So, I create the Users directory on C:\ and a dummy file in it.
Then, I cd again which works now.
And dir properly shows the dummy created file :-).

svn path=/trunk/; revision=65596
2014-12-09 21:33:38 +00:00
Pierre Schweitzer
a98c9c1219 [NTOSKRNL]
Implement support reparse points in IofCompleteRequest()

svn path=/trunk/; revision=65595
2014-12-08 20:44:19 +00:00
Pierre Schweitzer
447fca27dc [NTFS]
Fix the implementation of the reparse point handling. This takes into account our $FILE_NAME attribute not being aware it's a reparse point...
We now fully get into Io and fail miserably as it seems I forgot one place where reparse points support has to be added.
D'oh!

svn path=/trunk/; revision=65594
2014-12-08 19:55:56 +00:00
Pierre Schweitzer
62f2a171cd [NTFS]
Fix a stupid copy paste error!

svn path=/trunk/; revision=65593
2014-12-08 19:51:55 +00:00
Pierre Schweitzer
f94ebb610d [NTFS]
On FCB creation, merge file attributes from $FILE_NAME and from $STANDARD_INFORMATION
Not sure it's fully legal, but it allows us to catch them all!

svn path=/trunk/; revision=65592
2014-12-08 19:36:40 +00:00
Pierre Schweitzer
a91d0a5297 [NTFS]
Implement GetStandardInformationFromRecord() which will return $STANDARD_INFORMATION attribute from a file record

svn path=/trunk/; revision=65591
2014-12-08 19:19:30 +00:00
Pierre Schweitzer
229c947271 [NTFS]
Complete a bit more the information dumped from attributes

svn path=/trunk/; revision=65590
2014-12-08 18:44:29 +00:00
James Tabor
a4c82de831 [Shell32]
- Use a timeout to send WM_COPYDATA.
- Recall reading, while being sent to a thread that is hung indefinitely or blocked, it will not return properly. This seems to be the case for CORE-8779. Play it safe and use a timeout.

svn path=/trunk/; revision=65589
2014-12-08 17:10:02 +00:00
Pierre Schweitzer
f9e8e07d32 [NTFS]
Do not forget to set IRP status block information in case of reparse point.

svn path=/trunk/; revision=65588
2014-12-08 07:35:45 +00:00
Eric Kohl
ce3e70b717 [USETUP]
Show an indicator for active partitons in the partition list.

svn path=/trunk/; revision=65587
2014-12-07 22:28:12 +00:00
Pierre Schweitzer
ebf69b050b [NTFS]
- Implement NtfsReadFCBAttribute() which is responsible for reading an attribute from a file which is referenced by its FCB. It will first read the file record in the MFT and then read the attribute, if found.
- Use NtfsReadFCBAttribute() to implement support for reparse point in NtfsCreateFile(). Once a reparse point is found, we attempt to open its data. Given their layout, we directly hand them to the Io manager. Just make sure that we return something consistent on disk. Only handle IO_REPARSE_TAG_MOUNT_POINT so far.
Next question to answer is: what to do when a reparse point is encountered during path traversal?

svn path=/trunk/; revision=65586
2014-12-07 20:59:45 +00:00
Pierre Schweitzer
0ee87ef80a [NTOSKRNL]
Addendum to r65584: don't forget to commit the header~

svn path=/trunk/; revision=65585
2014-12-07 18:02:04 +00:00
Pierre Schweitzer
70c4b88da1 [NTOSKRNL]
Implement support for (some) reparse points in Io manager. Ob should be already fine.
- Implement the IopDoNameTransmogrify() function. This one is responsible for checking the correct data for the reparse point and to update the path name in the file object. It will also free the memory buffer allocated by the driver to communicate the reparse information.
- Fix the support for reparse points in IopCompleteRequest(). If we receive reparse status + reparse tag we know, we call IopDoNameTransmogrify() to update file objet.
- Fix the support for reparse points in IopParseDevice() (oh! you again? :-)). When we complete the IRP ourselves, act as in IopCompleteRequest(). Then, we properly update objects manipulated by Io for the create request and we return STATUS_REPARSE so that Ob can update and recall us afterwards so that we complete.
Some parts are left unimplemented when it comes to reparse tags which are not IO_REPARSE_TAG_MOUNT_POINT. But still less than previously ;-).

svn path=/trunk/; revision=65584
2014-12-07 17:59:58 +00:00
Aleksandar Andrejevic
0dca6fd8ed [SHELL32:ICONS]
Replace the old "My Computer" icon with a new one.
New icon by: Ismael Ferreras Morezuelas.
CORE-8890 #resolve #comment Committed in revision r65583. Thanks!


svn path=/trunk/; revision=65583
2014-12-07 17:53:08 +00:00
Pierre Schweitzer
8d0ae10798 [BUGCODES]
Add bug check code 0xF9 DRIVER_RETURNED_STATUS_REPARSE_FOR_VOLUME_OPEN
Ref: http://msdn.microsoft.com/en-us/library/windows/hardware/ff560396%28v=vs.85%29.aspx

svn path=/trunk/; revision=65582
2014-12-07 16:54:27 +00:00
Pierre Schweitzer
5296d62877 [NTFS]
Implement NtfsFsdDeviceControl()


svn path=/trunk/; revision=65581
2014-12-07 14:16:13 +00:00
Pierre Schweitzer
14863b54d6 [NTFS]
Allow direct opening of a reparse point, but don't handle yet reparse itself

svn path=/trunk/; revision=65580
2014-12-07 14:05:47 +00:00
Pierre Schweitzer
ce76daabd9 [NTFS]
Implement NtfsFCBIsReparsePoint() which returns true in case current FCB is a reparse point

svn path=/trunk/; revision=65579
2014-12-07 13:30:13 +00:00
Giannis Adamopoulos
c3c85103f2 [EXPLORER]
- Add accelerator table for the taskbar. It is unused for now.

svn path=/trunk/; revision=65578
2014-12-07 11:07:51 +00:00
Daniel Reimer
aa00cb3f4c [OSK]
Update keyboard layout to become bigger, text fitting in the buttons and bein easier to use Part 2/2
+ small fixes.

svn path=/trunk/; revision=65577
2014-12-07 01:33:46 +00:00
Hermès Bélusca-Maïto
a177c84557 [OSK]: Add a better keyboard icon, copied from cpl/main/resources/keyboard.ico (it's keyboard tango icon). Pointed by swyter.
svn path=/trunk/; revision=65576
2014-12-06 19:58:28 +00:00
Daniel Reimer
132efe4c54 [OSK]
Update keyboard layout to become bigger, text fitting in the buttons and bein easier to use Part 1/2

svn path=/trunk/; revision=65575
2014-12-06 19:47:03 +00:00
Daniel Reimer
2ce1352fc8 Rule #1 of today: If you steal from resources... then at least steal from the most fitting one in layout matters...
[OSK]
Fix german layout by moving the "#" button where it should be and adding the "<" button next to "Y"

svn path=/trunk/; revision=65574
2014-12-06 13:43:55 +00:00
Daniel Reimer
b0d6a110ef [OSK]
- Forgot to translate some hidden text ^^
- Add a less brownish ROS icon based on our favicon file.

svn path=/trunk/; revision=65573
2014-12-06 13:25:50 +00:00
Daniel Reimer
d833e6777c [OSK]
- Add german resource file.
- Convert all others to UTF-8.
- Add manifest file and modify DOIALOG to DIALOGEX + changing default font to MS Shell Dlg. Hello themed keyboard ^^
TBD: Sizes are WAY too small IMO...

svn path=/trunk/; revision=65572
2014-12-06 13:08:48 +00:00
Sylvain Petreolle
2805f84806 [SHUTDOWN]
Remove useless check.

svn path=/trunk/; revision=65571
2014-12-06 11:33:31 +00:00
Hermès Bélusca-Maïto
f6b392dd4c Fix merge r65567.
svn path=/branches/condrv_restructure/; revision=65570
2014-12-05 22:24:49 +00:00
Hermès Bélusca-Maïto
a381da464a [OSK]
- Fix some coding style (whitespace): this is not win32k!!
- Remove unneeded headers.

svn path=/trunk/; revision=65569
2014-12-05 22:09:10 +00:00
James Tabor
e86551f057 [OSK]
- Add On Screen Keyboard to base applications. See CORE-7279 #resolved.

svn path=/trunk/; revision=65568
2014-12-05 21:43:00 +00:00
Hermès Bélusca-Maïto
9919d4fa10 Sync to trunk r65566.
svn path=/branches/condrv_restructure/; revision=65567
2014-12-05 21:20:35 +00:00
David Quintana
63a134ffc1 [BROWSEUI]
* Make the CBandSiteMenu class actually insert the Toolbars menu, even if it's not yet implemented. This fills the top of the taskbar context menu instead of leaving an ugly separator at the top.

svn path=/trunk/; revision=65566
2014-12-05 16:41:18 +00:00
Hermès Bélusca-Maïto
561200f6d3 Only layout was set different. Fix build.
svn path=/trunk/; revision=65565
2014-12-05 00:23:11 +00:00
Hermès Bélusca-Maïto
f471dceaae [LOCALIZATION]: Add Bengali to other files.
svn path=/trunk/; revision=65564
2014-12-05 00:21:36 +00:00
Hermès Bélusca-Maïto
b96ad17f20 [LOCALIZATION]
Add Bengali to the list of available lang #defines (see http://www.microsoft.com/resources/msdn/goglobal/default.mspx for the list).

svn path=/trunk/; revision=65563
2014-12-04 23:50:08 +00:00
Hermès Bélusca-Maïto
3ce4b32ab5 Fix some DPRINTs.
svn path=/trunk/; revision=65562
2014-12-04 23:15:18 +00:00
Hermès Bélusca-Maïto
03e7e918aa [CONSRV]
- Give the process handle which creates the screenbuffer, to ConDrvCreateScreenBuffer.
- Few code refactoring.

svn path=/trunk/; revision=65561
2014-12-04 22:47:13 +00:00
David Quintana
96d86fca58 [EXPLORER]
* Reorganize a bit the CTrayWindowCtxMenu::QueryContextMenu method and do not error if AddContextMenus fails. Fixes the taskbar context menu not opening on right-click.
(No need to call it explorer-new now that it's the primary one!)
CORE-8838

svn path=/trunk/; revision=65560
2014-12-04 19:53:02 +00:00
Giannis Adamopoulos
be4775c2b8 [INCLUDES]
* Move some shared definitions in a common header

svn path=/trunk/; revision=65559
2014-12-04 18:20:51 +00:00
Giannis Adamopoulos
d45dcc697d Try to fix build
svn path=/trunk/; revision=65558
2014-12-04 17:40:29 +00:00
Giannis Adamopoulos
8492b3df2a [SHELL32]
- Implement handling accelerators for CDesktopBrowser. The only noticeable difference is that pressing alt+f4 in the desktop doesn't close it.
See issue #8864 for more details.

svn path=/trunk/; revision=65557
2014-12-04 17:30:44 +00:00
Giannis Adamopoulos
d1c24a9a68 [EXPLORER]
- Implement registering all hotkeys that explorer registers in windows. Not all of them are implemented. The ones that are implemented work fine in windows but most of them don't work on ros. Thankfully nothing regressed by doing things the same with windows .

svn path=/trunk/; revision=65556
2014-12-04 17:20:43 +00:00
Giannis Adamopoulos
e018794583 [EXPLORER]
- Handle TWM_DOEXITWINDOWS in CTrayWindow. This message is sent from CDesktopWindow when it handles alt+f4 as an accelerator.
- Also handle SC_CLOSE for WM_SYSCOMMAND by calling ExitWindowsDialog.
- Fixes pressing alt+f4 in xp
- Now we have to make CDesktopWindow send TWM_DOEXITWINDOWS to the tray

svn path=/trunk/; revision=65555
2014-12-03 17:16:53 +00:00
David Quintana
079da15e39 [BROWSEUI]
* Add a stubbed CExplorerBand, which I will be using to investigate how the windows shell implements the sidebar panels.
This will never be called in ReactOS because our shell view doesn't handle the buttons for opening the sidebars, so it never asks the shell browser to open one.

CORE-8815

svn path=/trunk/; revision=65554
2014-12-03 16:11:46 +00:00
Amine Khaldi
4de21be788 [KBDES] Please Ismael Ferreras Morezuelas (swyter) with these mostly formatting changes.
CORE-8848

svn path=/trunk/; revision=65553
2014-12-03 11:40:37 +00:00
Amine Khaldi
c0d2bce06a [PSDK]
* Add missing MoveFileWithProgress{A,W} declarations.
CORE-4476

svn path=/trunk/; revision=65552
2014-12-03 11:35:29 +00:00
Jérôme Gardou
750f99929f [KMTEST/TCPIP]
- Adjust test data to better reflect w2k3 behaviour.
Thanks Amine for the tests.

svn path=/trunk/; revision=65551
2014-12-02 18:53:45 +00:00
Jérôme Gardou
d85b6d69f8 [KMTESTS/TCPIP]
- Fix MSVC build.

svn path=/trunk/; revision=65550
2014-12-02 18:38:32 +00:00
Jérôme Gardou
ec74758add [TCPIP_DRVTEST]
- Do not try to HeapFree a stack buffer.

svn path=/trunk/; revision=65549
2014-12-02 18:12:26 +00:00
Jérôme Gardou
e07183a73b [KMTESTS]
- Fix typo

svn path=/trunk/; revision=65548
2014-12-02 18:08:33 +00:00
Jérôme Gardou
e7ed762d4b [ROSTESTS]
- Add tcpip_drvtest, for now only testing the IOCTL behind iphlpapi's GetInterfaceInfo

svn path=/trunk/; revision=65547
2014-12-02 18:06:57 +00:00
Jérôme Gardou
a928f15f42 [KMTEST]
- Add some tests for tcpip.sys TDI capabilities (for now, TDI_PROVIDER_INFO)

svn path=/trunk/; revision=65546
2014-12-02 18:06:48 +00:00
Jérôme Gardou
6ef8833b55 [INCLUDE]
- Introduce tcpip_undoc.h defining undocumented tcpip.sys IOCTLs and structures.

svn path=/trunk/; revision=65545
2014-12-02 18:02:15 +00:00
David Quintana
4c9df7c3e5 [RSHELL]
* Oops. That shouldn't have been commited.

svn path=/trunk/; revision=65544
2014-12-02 12:27:44 +00:00
Jérôme Gardou
4c7f135588 [PSDK]
- Add missing TDI_SERVICE_* flags

svn path=/trunk/; revision=65543
2014-12-01 19:30:45 +00:00
David Quintana
527ff12b2c [RSHELL]
* Fix gcc build.

svn path=/trunk/; revision=65542
2014-12-01 16:41:58 +00:00
David Quintana
1e7e753a35 [RSHELL]
* The windows menu classes hide the items when the callback returns S_OK, and show them on S_FALSE. Fix our implementation to match.
* The windows CMergedFolder uses its own internal SHITEMID structure, so using filesystem paths directly won't work for hiding the Programs folder. 
* Also, because of the above, it's best to create the Programs menu object separately.


svn path=/trunk/; revision=65541
2014-12-01 16:32:58 +00:00
James Tabor
0bc45dba49 [Win32k]
- Use thread state for GetMessageExtraInfo.

svn path=/trunk/; revision=65540
2014-12-01 14:47:05 +00:00
Giannis Adamopoulos
8b417dd15d Try to fix Build
svn path=/trunk/; revision=65539
2014-12-01 09:42:29 +00:00
Giannis Adamopoulos
5b12c58f87 [WINSRV]
* Stop using ONEPARAM_ROUTINE_CSRSS_GUICHECK

[WIN32K]
* Move the manual gui check for console windows entirely in win32k
* This shouldn't cause any regressions to the ancient gui-on-demand feature

svn path=/trunk/; revision=65538
2014-12-01 09:38:04 +00:00
David Quintana
5967527b98 [RSHELL]
* Partially rewrite CMergedFolder to fix the invalid assumption that the results of enumerating a folder are ordered.
Fixes the folder merging on certain languages not working as expected, and also some other weaknesses of the previous implementation.

CORE-8835 #resolve #comment Should be fixed in r65537. Thanks for reporting.

svn path=/trunk/; revision=65537
2014-12-01 04:23:44 +00:00
Timo Kreuzer
685e2218f0 [WIN32K]
Fix reference counting in PDEVOBJ_pSurface. Fixes failed assertions on newer MSVC builds.

svn path=/trunk/; revision=65536
2014-12-01 00:01:17 +00:00
Hermès Bélusca-Maïto
7dc70b785f Fix the fix of the fix (yes, really!) Also, Hervé, I'm not really convinced you need to upcase the first letter in the RtlPathTypeDriveAbsolute case. Can you recheck that (and if unneeded, remove the commented line)?
svn path=/trunk/; revision=65535
2014-11-30 12:06:58 +00:00
Hermès Bélusca-Maïto
e077e546cd Fix the fix.
svn path=/trunk/; revision=65534
2014-11-30 11:56:36 +00:00
Hermès Bélusca-Maïto
20ac78114f [RTL]: RtlGetFullPathName_Ustr: Do not upcase the drive letter in the source string (that should not be modified), but use a temporary variable.
svn path=/trunk/; revision=65533
2014-11-30 11:53:19 +00:00
Hervé Poussineau
a198ec0538 [RTL] Upcase drive letter in RtlGetFullPathName_Ustr
svn path=/trunk/; revision=65532
2014-11-29 21:56:14 +00:00
Hervé Poussineau
62f368b666 [RTL] Add some missing UNIMPLEMENTED
svn path=/trunk/; revision=65531
2014-11-29 21:44:11 +00:00
Hervé Poussineau
85c6a329ba [NTFS] Fix CcInitializeCacheMap call
svn path=/trunk/; revision=65530
2014-11-29 21:43:57 +00:00
Hervé Poussineau
1cec297066 [NTOS:CC] Add some debug prints
svn path=/trunk/; revision=65529
2014-11-29 21:43:39 +00:00
Hermès Bélusca-Maïto
bac6bdb719 [USER32]
- On Win2k3, the EXIT_(ROS)_EX csr message has 3 parameters, instead of 2 (as on win2k), and the dwReserved is in fact unused.
[USERSRV]
- Add CSR shutdown callback UserClientShutdown (stub).
[CONSRV|USERSRV]
- The CSR shutdown callbacks are just stubs currently.

Part 5/X
CORE-8322

svn path=/trunk/; revision=65528
2014-11-29 21:19:01 +00:00
Pierre Schweitzer
e85718fec8 [FASTFAT]
- Add a flag to enable (or disable depends on your reading ;-)) the VPB swapout process for volume umount.
- By default, disable it for MSVC builds.

This *might* lolfix the MSVC builds.

Just for the record, we also have a bug in the GCC builds but it doesn't seem to show up. 
The main issue is that after formatting, we close handle to the volume, and IRP_MJ_CLEANUP is properly received and initiates a bit of dismount.
But then, the IRP_MJ_CLOSE is never received (why????) and thus, dismount cannot properly end.
This is a real & serious issue.

svn path=/trunk/; revision=65527
2014-11-29 20:26:07 +00:00
Pierre Schweitzer
8d5e230523 [FASTFAT]
Fix a FIXME in fastfat:
- Implement support for device buffers flush in VfatFlushVolume().

Unlike Windows SDK, we don't divert the current IRP to pass it to storage device. Here, we allocate a new IRP and call the device so that it flushes buffers.

svn path=/trunk/; revision=65526
2014-11-29 20:15:44 +00:00
Pierre Schweitzer
fa9b68d4bb [FASTFAT]
If you decrease handles count on cleanup, don't forget to increase it on create.

This fixes sharing violation on ReactOS installation with IopParseDevice hack disabled. 

svn path=/trunk/; revision=65525
2014-11-29 20:09:44 +00:00
David Quintana
6d54197797 [SHELL32]
* Make use of the resource IDs for all paths that need localizing. It was working in the past but was broken by re-synchronizing the code with WINE, which has unlocalized hardcoded strings instead.
This fixes the shortcuts not appearing in other languages.
* Fix the folder for Administrative tools in spanish language

[USERENV]
* Fix spanish folder names to match our shell32 and Windows.

TRANSLATORS: If your language is broken, ensure that the paths in userenv and shell32 resources match!

CORE-8834 #resolve #comment Should be fixed in trunk r65524, thanks for reporting. If this problem still happens, speak with your language's translator or provide your own patch.

svn path=/trunk/; revision=65524
2014-11-29 17:17:52 +00:00
Amine Khaldi
65489ad035 [KBDES] Update, fix and improve the Spanish keyboard layout file.
* Brought to you by Ismael Ferreras Morezuelas (swyter) with consistency formatting changes by me.
CORE-8848 #resolve #comment Committed the changes in r65523. Gracias!

svn path=/trunk/; revision=65523
2014-11-29 10:15:37 +00:00
James Tabor
c0851ad2a3 [NtUser]
- Fix timeout for send messages.
- Assert if not the same thread while dispatching messages.

svn path=/trunk/; revision=65522
2014-11-29 08:26:54 +00:00
Hermès Bélusca-Maïto
b085d814b6 [USER32]
- Move to an appropriate file, and correctly implement (i.e. via CSR call to USERSRV) EndTask.
[USERSRV]
- Hackplement SrvEndTask using our old code.

Part 4/X

CORE-8322

svn path=/trunk/; revision=65521
2014-11-28 23:42:40 +00:00
Hermès Bélusca-Maïto
725057bae3 Forgot this file too.
svn path=/trunk/; revision=65520
2014-11-28 23:24:38 +00:00
Hermès Bélusca-Maïto
e5d2106458 [WIN32K][ROSTESTS]
So...
... first of all NtUserQueryInformationThread takes only 4 parameters in Win2k3 so do it as well...
... and since we claim at being compatible with Win2k3 (and not XP), one **MUST** review **ALL** our win32k exports, in win32ss/w32ksvc.db database first, and then in our w32kdll apitests !!!!!
But I won't do it !

svn path=/trunk/; revision=65519
2014-11-28 23:19:25 +00:00
Hermès Bélusca-Maïto
7e5b127603 [WIN32K]: Remove those unneeded #defines, they are already declared in include/reactos/undocuser.h
CORE-8322

svn path=/trunk/; revision=65518
2014-11-28 21:59:32 +00:00
Hermès Bélusca-Maïto
e10e14dcd4 [WIN32K]: Move IntClientShutdown function to a dedicated file (that will contain other shutdown helper functions in the future). Part 3/X
CORE-8322

svn path=/trunk/; revision=65517
2014-11-28 21:48:44 +00:00
Hermès Bélusca-Maïto
331ed663bf [USERSRV]: Use UlongToHandle and make ServicesProcessId global (will be used later on, for shutdown). Part 2/X
CORE-8322

svn path=/trunk/; revision=65516
2014-11-28 21:08:57 +00:00
Hermès Bélusca-Maïto
c5601a5515 [USER32]: Move some logon-related functions to an appropriate file.
svn path=/trunk/; revision=65515
2014-11-28 20:58:50 +00:00
James Tabor
5ec4df01ce [NtUser]
- Revert 65431, it seems to be breaking more than it fixes. Process Explorer will break again, working on a better way to fix this. See CORE-7447.

svn path=/trunk/; revision=65514
2014-11-28 20:44:04 +00:00
Hermès Bélusca-Maïto
d3b2696104 [USER32]
- Call GetThreadConsoleDesktop of CONSRV if needed, in GetThreadDesktop (in case the process is a console app).
- Introduce two last-error helpers UserSetLast(NT)Error which work the same as the (Base)SetLast(NT)Error of kernel32, needed for CSR status errors etc...

[WINSRV]
- Improve the stub of SrvGetThreadConsoleDesktop (it needs to success, and atm. it always zeroes-out the returned console desktop handle).

svn path=/trunk/; revision=65513
2014-11-28 20:34:16 +00:00
Amine Khaldi
0abf72fdee [KERNEL32_WINETEST] Addendum to r65511.
svn path=/trunk/; revision=65512
2014-11-28 19:22:34 +00:00
Amine Khaldi
3be4abc045 [RTL] Import Wine commit f87767b by Piotr Caban: Handle ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID flag when opening manifest in RtlCreateActivationContext.
svn path=/trunk/; revision=65511
2014-11-28 19:20:39 +00:00
Giannis Adamopoulos
198dcf7d19 [EXPLORER]
* Move some definitions in precomp.h

svn path=/trunk/; revision=65510
2014-11-27 21:11:29 +00:00
Giannis Adamopoulos
5c6b27436a Attempt to fix build.
svn path=/trunk/; revision=65509
2014-11-27 20:32:38 +00:00
Pierre Schweitzer
3c6889480c [FASTFAT]
Properly handle shared accesses on volume open.
No need to add the support for this in cleanup, it was already there.

svn path=/trunk/; revision=65508
2014-11-27 20:28:50 +00:00
Giannis Adamopoulos
98669c13f1 [HEADERS]
- Move definitions for DrawCaptionTemp to userundoc.h as it shouldn't be defined in the psdk
- Add browseui_undoc.h and move there the undocumented definitions for browseui
- Add comctl32_undoc.h and move there the undocumented definitions for comctl32
- Move undocumented definitions for shlwapi to shlwapi_undoc.h
- Add shellutils.h to contain helper macros and definitions that are nor per se undocumented.
- Cleanup internal definitions of explorer. Remove several temporary hacks. They were added at a time that these features were not implemented at all.

svn path=/trunk/; revision=65507
2014-11-27 20:27:19 +00:00
Amine Khaldi
4f8f6087e3 [CMAKE]
* Simplify compiling some single-source-file tools.

svn path=/trunk/; revision=65506
2014-11-27 19:09:07 +00:00
Amine Khaldi
62e8524e6e * Addendum to r65503 (consistent formatting).
svn path=/trunk/; revision=65505
2014-11-27 18:59:19 +00:00
James Tabor
c3543f4697 [NtUser]
- Fix code duplication.

svn path=/trunk/; revision=65504
2014-11-27 18:35:57 +00:00
Giannis Adamopoulos
39569fc498 [ADVAPI32]
- Stub ElfRegisterEventSourceW, ElfReportEventW and ElfDeregisterEventSource. These are needed by windows sxs.dll, and sxs.dll is needed by windows basesrv.dll.

svn path=/trunk/; revision=65503
2014-11-27 14:21:43 +00:00
Ged Murphy
7a8c45344a [DEVICE_MANAGER]
- Test whether a driver is hidden or not by checking its status instead of the old hack of hiding certain classes which we deemed should be hidden.
- Add support for hiding devices and problem overlays when showing by connection. 
- We now show and hide identical devices when run alongside the Win8 MS device manager in both by type and by connection.
- Update the radio buttons when selecting the menu type.
- Add a manifest and use Win7 arrows on the TreeView.

svn path=/trunk/; revision=65502
2014-11-27 13:47:49 +00:00
Pierre Schweitzer
267881ff71 [FASTFAT]
Set clean shutdown bit on dismount

svn path=/trunk/; revision=65501
2014-11-27 06:16:21 +00:00
Amine Khaldi
9cfe36c5ca [SHELL] Reapply r65477 (rename explorer-new to explorer).
svn path=/trunk/; revision=65500
2014-11-26 23:24:26 +00:00
Amine Khaldi
e73c9fb02d [SHELL] Reapply r65476 (rename explorer to explorer-old).
svn path=/trunk/; revision=65499
2014-11-26 23:22:44 +00:00
Amine Khaldi
2a2210d52b [SETUP]
* Set 32bpp as default bit depth instead of 16bpp. Suggestion and patch provided by Ismael Ferreras Morezuelas (swyter).
CORE-8826 #resolve #comment Committed in r65498. Gracias!

svn path=/trunk/; revision=65498
2014-11-26 23:17:02 +00:00
Amine Khaldi
96cdf37afe [SHELL] Move shlguid_undoc.h, shlobj_undoc.h and shlwapi_undoc.h to our includes folder instead of the PSDK one.
CORE-7330

svn path=/trunk/; revision=65497
2014-11-26 23:03:06 +00:00
Amine Khaldi
5c1a8109c8 * The Shell.. for a long time we dreamed of having a compatible, properly working rewrite, but it's easier said than done. Over the years this effort has been split into tasks, and this branch was the biggest overall. Now it's time to merge it back to trunk!
* This merge is also a chance to thank every single person involved directly and indirectly in this epic work, among them: Martin Fuchs for ReactOS explorer which we are respectfully retiring now, as it served the project so well over all these years. Thomas Bluemel (Thomas Weidenmueller aka w3seek) for his brave work on the shell, mainly his explorer_new. Andrew Hill for advancing the shell bringup with some impressive work. David Quintana, Giannis Adamopoulos and Huw Campbell for working as a solid team on making this branch a huge success, allowing the shell rewrite dream to finally become a reality. Again, thank you all!
* Merging this branch is not the end.. it's the beginning of some serious bug fixing based hopefully on the Community's continuous feedback.
* Finally, here are *some* of the highlights of this branch (simply put):

[BROWSEUI] Halfplement the address bar. Mostly implement the Favorites menu. Implement handling most hotkeys that should be handled by CShellBrowser. Fix various bugs.

[EXPLORER_NEW] Convert to C++ and use several wtl-like classes to simplify it. Fix several bugs and implement misc missing features.

[FILEBROWSER] A small exe file that opens a new file browser window in its own process. Tested to work in windows. It can be used to test our browseui.dll in windows.

[FONTS] A new marlett font.

[MSGINA] Add a proper shutdown dialog that's used when the user selects shutdown from the start menu (this is how it's done in Windows).

[RSHELL] A temporary module that hosts the implementation of the following classes needed for the shell: CMenuBand, CMenuDeskBar, CMenuSite, CMergedFolder, CStartMenu. These were implemented and tested in windows and for that reason they are still there. Should be moved in shell32 in the future.

[SHELL32] Reorganize files to isolate the ones that are not yet forked from wine. Fix various problems. Simplify the implementation of some shell folders. Implement filling in the file menu in the file browser.

[STOBJECT] A shell extension responsible for misc taskbar notification icons. So far only the sound icon is implemented. Adding this is necessary as the old explorer had the sound icon built in and deprecating it needs a proper solution for these notification icons.

[WIN32K] Fix several bugs that prevented the new start menu (that was implemented and tested in Windows) from functioning properly in ReactOS, mostly due to focus issues. Fix several shell notifications to behave more like in Windows.

* Tonight! We shall feast!
* And tomorrow the US guys shall feast again, on turkey! :p

CORE-7330

svn path=/trunk/; revision=65496
2014-11-26 19:49:18 +00:00
Ged Murphy
d006975972 [DEVICE_MANAGER]
- On refresh, recurse the tree and delete all the Device Ids attached to each node
- Fix SAL and a few missing comments

svn path=/trunk/; revision=65495
2014-11-26 19:46:26 +00:00
Amine Khaldi
0b09ff9f77 * Addendum to r65483.
svn path=/branches/shell-experiments/; revision=65494
2014-11-26 18:02:55 +00:00
Ged Murphy
552b2ba55c [DEVICE_MANAGER]
- Add a class for managing the device view, and a class for managing the device objects.
- Implement listing devices by type and by connection.
- Add support for showing hidden devices
- Add support for showing unknown devices with overlay icons.
- implement showing the device properties via dounle click or hitting enter
- Add support for both Win7/8 as well as XP
- Make the code much more readable and maintainable. and easier to move to an mmc snapin if we ever get one.

I forgot this existed until today. I had some spare time so I decided to have a quick go at finishing it. Stick with the original one for now though, I ran out of time....

svn path=/trunk/; revision=65493
2014-11-26 17:21:45 +00:00
Amine Khaldi
129e820c19 * Sync up to trunk head (r65491).
svn path=/branches/shell-experiments/; revision=65492
2014-11-26 16:49:31 +00:00
James Tabor
8da4894280 [Explorer]
- Restore the original four virtual window support. See CORE-6151.

svn path=/trunk/; revision=65491
2014-11-26 15:29:51 +00:00
Timo Kreuzer
556eadf871 [WIN32K]
- Implement FLOATOBJ_bConvertToLong inline function that converts a FLOATOBJ to a long or returns FALSE if the value would overflow a LONG
- Remove underscore prefixes from inline FLOATOBJ functions and use it only on those that already exist as non-inline versions.
- Remove duplicated FLOATOBJ defines for non-x86
- Fail on integer overflow in XFORMOBJ_bXformFixPoints to avoid creating bogus coordinates.

svn path=/trunk/; revision=65490
2014-11-25 23:44:59 +00:00
Hermès Bélusca-Maïto
fc2043573c Forgot this include...
svn path=/trunk/; revision=65489
2014-11-25 23:36:56 +00:00
Hermès Bélusca-Maïto
8b95166d91 [LSASS][SERVICES][WINLOGON]: As CSRSS and SMSS already, those apps should be marked as critical for the system. See http://www.geoffchappell.com/studies/windows/win32/ntdll/api/rtl/peb/setprocessiscritical.htm for more details.
svn path=/trunk/; revision=65488
2014-11-25 23:34:14 +00:00
James Tabor
d1f8d55254 [Win32k]
- Fixes wine win.c:test_SetParent last ShowWindow test after popup dies.

svn path=/trunk/; revision=65487
2014-11-25 23:03:43 +00:00
Pierre Schweitzer
fb11517f41 [NTFS]
Make the bound check more consistent and more accurate

svn path=/trunk/; revision=65486
2014-11-25 21:03:17 +00:00
Timo Kreuzer
3b807b3629 [FREELDR]
Move down MEMORY_MARGIN to 0x9A00 to fix boot on BIOSes with even larger EBDAs (see also r64945 and r65127), still leaving 48KB for the DISKREADBUFFER
CORE-8830 #resolve

svn path=/trunk/; revision=65485
2014-11-25 20:21:16 +00:00
James Tabor
6cabec82f6 [Win32k]
- Fix wine win.c:test_mouse_input:WM_COMMAND tests.

svn path=/trunk/; revision=65484
2014-11-25 19:56:40 +00:00
Amine Khaldi
861d261971 [EXPLORER][EXPLORER_NEW]
* Revert the renames (r65476 => r65478).
* We'll do these after we merge.

svn path=/branches/shell-experiments/; revision=65483
2014-11-25 16:17:58 +00:00
Amine Khaldi
9bdc095371 * Sync up to trunk head (r65481).
svn path=/branches/shell-experiments/; revision=65482
2014-11-25 12:43:36 +00:00
Timo Kreuzer
2e4fc079dc [PSDK/XDK]
Add back definitions that go lost in the last commit.
winnt.h is autogenerated, please do not modify it directly, but instead modify the related file in XDK and regenerate the headers from XDK.

svn path=/trunk/; revision=65481
2014-11-25 09:46:18 +00:00
Timo Kreuzer
c6f12ff6ba [PSDK]
When I wrote "the compiler can optimize this better" I was obviously referring to a sane compiler like MSVC. Optimize (U)Int32x32To64 on x86 GCC builds by using __emul(u), since the native math results in horribly inefficient code doing 3 multiplications and some shifts.

svn path=/trunk/; revision=65480
2014-11-25 09:08:34 +00:00
David Quintana
e047c09545 [EXPLORER-NEW]
* Top-Level windows have no parent background so it makes no sense to try to draw it.

svn path=/branches/shell-experiments/; revision=65479
2014-11-25 01:19:32 +00:00
David Quintana
fd5c4836ad Oops. My bad.
svn path=/branches/shell-experiments/; revision=65478
2014-11-24 23:53:28 +00:00
David Quintana
ff807f43d0 [EXPLORER-NEW]
* Rename the new explorer to take the now-vacant folder name, to match the output filename. Change 2/2

svn path=/branches/shell-experiments/; revision=65477
2014-11-24 23:10:11 +00:00
David Quintana
e0e308711a [EXPLORER-OLD]
* Although the output filename was changed for almost as long as this branch has existed, I never bothered to actually rename the folders to reflect the output name. Change 1/2

svn path=/branches/shell-experiments/; revision=65476
2014-11-24 23:08:50 +00:00
Pierre Schweitzer
10d2eaf33b [NTFS]
Add the reparse point attribute definition

svn path=/trunk/; revision=65475
2014-11-24 20:02:40 +00:00
Pierre Schweitzer
f2e863d929 [NTFS]
Warn about unimplemented sub-node browsing while looking into a MFT directory stream.
Might likely explain why we cannnot enumerate all the files on a Win7 volume.

svn path=/trunk/; revision=65474
2014-11-24 20:01:34 +00:00
Pierre Schweitzer
d23756ccb7 [NTFS]
ASSERT -> NT_VERIFY

Spotted by Thomas. Thanks :-)

svn path=/trunk/; revision=65473
2014-11-24 19:54:22 +00:00
James Tabor
620eec28ea [NtUser]
- Synchronize mouse messages. Part II
- Dedicated to Giannis Adamopoulos and Amine Khaldi.
- Additional fixes are added.
- This should be more accurate, based on "Hit Testing: Which HWND is the mouse over?":
http://blogs.msdn.com/b/dwayneneed/archive/2008/09/08/transparent-windows-in-wpf.aspx
- Note: Older FireFox menu item hilite select seem to work now, do not need to keep moving the mouse to keep it hilited to be selected.
- Test results: https://reactos.org/sites/all/modules/reactos/testman/compare.php?ids=33709,33710,33713

svn path=/trunk/; revision=65472
2014-11-24 02:50:18 +00:00
Hermès Bélusca-Maïto
398b0a3c4f [CONSRV]: Implement CREATE_NO_WINDOW support.
svn path=/trunk/; revision=65471
2014-11-23 23:04:45 +00:00
Pierre Schweitzer
1dc01e0746 [NTFS]
- Fix $FILENAME_ATTRIBUTE definition to allow reading reparse points tag
- Add missing file attribute (reparse point)

svn path=/trunk/; revision=65470
2014-11-23 20:52:59 +00:00
Hermès Bélusca-Maïto
f43bb8d7df [TASKMGR]
- Show programs command line in taskmgr.
  Patch by Ismael Ferreras Morezuelas with minor modifications by me.
- int nMaxCount --> ULONG nMaxCount (that makes everything clearer and removes MSVC warnings).
CORE-5467 #resolve #comment Feature committed in revision 65469, cheers ;)

svn path=/trunk/; revision=65469
2014-11-23 20:10:15 +00:00
Pierre Schweitzer
4a61f5ee5b [NTFS]
- Implement NtfsGetPositionInformation(), NtfsGetBasicInformation()
- Add a fixme in NtfsGetStandardInformation() regarding the number of links

svn path=/trunk/; revision=65468
2014-11-23 19:53:16 +00:00
Hermès Bélusca-Maïto
2fb9a4573b Fixup a potential division by zero (that happens anyway in my tests).
svn path=/trunk/; revision=65467
2014-11-23 19:16:41 +00:00
Hermès Bélusca-Maïto
734795e23e [TASKMGR]
Improve formatting memory size usage in the status bar of Task Manager.
Patch by Ismael Ferreras Morezuelas (swyter).
CORE-8810 #resolve #comment Committed in r65466, thanks d:^D

svn path=/trunk/; revision=65466
2014-11-23 18:36:25 +00:00
Hermès Bélusca-Maïto
60205c7b0b [WIN32K]: Use the logon process ID instead of a full win32k process object, it simplifies code in some parts.
svn path=/trunk/; revision=65465
2014-11-23 16:09:00 +00:00
Hermès Bélusca-Maïto
72074af697 Whitespace fixes.
svn path=/trunk/; revision=65464
2014-11-23 15:57:13 +00:00
Hermès Bélusca-Maïto
d35b779e48 [WINSRV]: Pave the way for proper ReactOS shutdown. Part 1/X
CORE-8322

svn path=/trunk/; revision=65463
2014-11-23 15:50:49 +00:00
Pierre Schweitzer
d010ffc7df [NTFS]
- In NtfsQueryDirectory(), don't upcase name in dir search pattern, it can conflict with POSIX names.
- In CompareFileName(), handle the fact that for Win32 & DOS we do case insensitive comparisons by upcasing name before match. Don't do it for POSIX names!

This fixes name completion in cmd for POSIX. And doesn't break it for Win32 :-).

svn path=/trunk/; revision=65462
2014-11-23 15:49:24 +00:00
Hermès Bélusca-Maïto
16aefd4c54 Resuscitate VMS subsystem (yeah, you've correctly read: VMS!!) from revision 24496.
svn path=/trunk/; revision=65461
2014-11-23 15:24:49 +00:00
Hermès Bélusca-Maïto
2ca9fcd3b0 Resuscitate POSIX subsystem from revision 21378.
svn path=/trunk/; revision=65460
2014-11-23 15:23:36 +00:00
Hermès Bélusca-Maïto
9f2787eb32 Resuscitate OS/2 subsystem from revision 24496.
svn path=/trunk/; revision=65459
2014-11-23 15:22:07 +00:00
Hermès Bélusca-Maïto
ace5ce5329 Create a repository to ressuscitate our verrrrry old subsystems.
svn path=/trunk/; revision=65458
2014-11-23 14:50:34 +00:00
Hermès Bélusca-Maïto
f8fc01c589 [CONSRV]: Reduce code duplication and remove unused InputWaitHandle member.
svn path=/trunk/; revision=65457
2014-11-23 14:26:37 +00:00
Pierre Schweitzer
950747c6d1 [NTFS]
- Implement GetBestFileNameFromRecord() which will select the higher subsystem name available (POSIX -> Win32 -> DOS) and return it
- Replace the hand-made implementation of it in dirctl functions relying on it (NtfsGetDirectoryInformation(), NtfsGetFullDirectoryInformation(), NtfsGetBothDirectoryInformation())
- Use it in NtfsMakeFCBFromDirEntry()

This fixes browsing POSIX volume (and opening file) in cmd. Even though, explorer doesn't seem to be happy with such change...
This doesn't fix yet the autocompletion in cmd either.

svn path=/trunk/; revision=65456
2014-11-23 14:07:08 +00:00
Hervé Poussineau
c966e68f3b [PSDK] Add some missing setupapi-related functions
svn path=/trunk/; revision=65455
2014-11-23 13:48:20 +00:00
Hervé Poussineau
997dd60f96 [SCSIPORT] Better error messages when receiving unexpected IOCTLs of mount manager
svn path=/trunk/; revision=65454
2014-11-23 13:48:12 +00:00
Hervé Poussineau
bcc95895c6 [NTOS:CC] Fix bug in CcPinRead
In fact, this bug is never exposed because CcPinMappedData always returns TRUE.

svn path=/trunk/; revision=65453
2014-11-23 13:48:06 +00:00
Hervé Poussineau
b89c9e939b [NTOS:MM] Fix warnings when NEWCC is enabled
svn path=/trunk/; revision=65452
2014-11-23 13:48:01 +00:00
Hermès Bélusca-Maïto
5d7ced37ec [NTVDM]: Rewrite video window scrolling code more efficiently (i.e. getting rid of HeapAlloc/Free calls). As a bonus, implement scrolling horizontally.
svn path=/trunk/; revision=65451
2014-11-23 12:03:55 +00:00
Hermès Bélusca-Maïto
0f5d768793 [KERNEL32]
- Fix a misspelling.

[NTDLL]
- Fix the prototypes of RtlFormatMessageEx(Ex), this fixes strange apps kills when they use FormatMessage[A/W] with win2k3 kernel32 (that uses internally RtlFormatMessage to do the job).

svn path=/trunk/; revision=65450
2014-11-22 23:13:41 +00:00
Hermès Bélusca-Maïto
b280f71b27 [KERNEL32][CONSRV]
- Remove the USE_CONSOLE_INIT_HANDLES define since now we "support" the console initialization events.
- The events in the CONSOLE_START_INFO structure are console initialization events used for asynchronous console creation, that are set whenever console creation succeeds, or fails.
- Stubplement their usage in CONSRV.

Now we are able to fully use Windows 2k3 kernel32.dll and be able to run console programs with it.

svn path=/trunk/; revision=65449
2014-11-22 22:13:08 +00:00
Hermès Bélusca-Maïto
ec34daaa0a [NTVDM]:
- INT 15h offers some "OS hooks" that do nothing normally but return success.
- Stub "Switch to protected mode" INT 15h AH=89h function.

svn path=/trunk/; revision=65448
2014-11-22 19:18:23 +00:00
Aleksandar Andrejevic
9f8411bf3a [FAST486]
- Fix interrupts in V86 mode.
- CLI and STI should call Fast486GetCurrentPrivLevel in their IOPL check, since it
  always returns 3 if the VM flag is set.


svn path=/trunk/; revision=65447
2014-11-22 16:33:47 +00:00
Hermès Bélusca-Maïto
e9b8b6f597 [FAST486]: Fix a comment and use the TOGGLE_OPSIZE macro.
svn path=/trunk/; revision=65446
2014-11-22 16:23:59 +00:00
Timo Kreuzer
34e909ecc9 [WIN32K]
- In XFORMOBJ_bApplyXform do not overwrite the data in the input buffer
- Make XFORMOBJ_bXformFixPoints return VOID instead of BOOL

svn path=/trunk/; revision=65445
2014-11-22 09:07:33 +00:00
Amine Khaldi
80b272de8e [TRANSLATIONS][WDMAUD]
* Reactos/ReactOs => ReactOS.

svn path=/trunk/; revision=65444
2014-11-21 18:57:46 +00:00
Amine Khaldi
1dd4984c28 [NTOS:PNPMGR]
* Attempt to address Timo's review about coding style changes.

svn path=/trunk/; revision=65443
2014-11-21 18:45:18 +00:00
Hermès Bélusca-Maïto
37a3e6af8a [NTVDM:DOS]: Don't forget to update CommandInfo.Env otherwise we would use the old environment buffer that is now invalid, hence corrupting the heap and doing other nasty things :P Debugged by V.
svn path=/trunk/; revision=65442
2014-11-21 15:55:39 +00:00
Aleksandar Andrejevic
6ad2881080 [FAST486]
Attempt to write the value to the stack before subtracting from the actual ESP register
in Fast486StackPush.


svn path=/trunk/; revision=65441
2014-11-21 09:46:57 +00:00
James Tabor
692cd5a0bb [NtUser]
- Synchronize mouse messages. Best way to do this, just post the move message while it occurs and just update it with recurrent information. The other way was to check time stamps and that was a hackish headache. Then the scorn and reticule would erupt. So it was easier to just post to the queue, update and if a mouse down up was captured than it would be in the order as it was received.
- See CORE-8779 #resolve, CORE-8394, CORE-7797, CORE-7447.

svn path=/trunk/; revision=65440
2014-11-21 03:15:27 +00:00
Hermès Bélusca-Maïto
8e44d4d4af [URTL]: Fix whitespace plus misspelling.
svn path=/trunk/; revision=65439
2014-11-21 02:35:38 +00:00
Hermès Bélusca-Maïto
d8808ad153 [NTVDM]: Make the environment strings list optional for some Dos app start functions.
svn path=/trunk/; revision=65438
2014-11-21 02:26:53 +00:00
Hermès Bélusca-Maïto
83303b29d9 [NTVDM]
- Add stubs for VDDReserve/ReleaseIrqLine;
- Add stub implementation for Direct Memory Access;
- Add corresponding exports.

svn path=/trunk/; revision=65437
2014-11-21 00:22:48 +00:00
Hermès Bélusca-Maïto
fc11139981 [DDK]
Add few VDD API prototypes:
- VDDReserve/ReleaseIrqLine to get a "lock" on an IRQ line (so that VDDs can check whether some IRQs are free or not).
- Add DMA services.

svn path=/trunk/; revision=65436
2014-11-21 00:13:51 +00:00
Hermès Bélusca-Maïto
b17f25b733 [NTVDM]: Temporarily disable the mouse driver since mouse still doesn't fully work.
svn path=/trunk/; revision=65435
2014-11-21 00:11:53 +00:00
Hermès Bélusca-Maïto
534adb371c [NTVDM]: Static'ify some local vars & functions.
svn path=/trunk/; revision=65434
2014-11-21 00:11:11 +00:00
Sylvain Petreolle
b13a724042 [NET]
Update spanish localization.
Patch by swyter.
CORE-8817 #resolve

svn path=/trunk/; revision=65433
2014-11-20 22:05:58 +00:00
James Tabor
f0350171f6 [NtUser]
- Remove over compensating code. See CORE-7447.

svn path=/trunk/; revision=65432
2014-11-19 06:05:39 +00:00
James Tabor
d7df3046e0 [NtUser]
- Fix Process Explorer crash in Win32k. See CORE-8779 and CORE-7447.

svn path=/trunk/; revision=65431
2014-11-19 05:35:33 +00:00
Hermès Bélusca-Maïto
a60eca74a7 [NTVDM]
Code organization:
- Create directory hardware/video where to put all video emulation (VGA currently, and maybe other things in the future);
- Create directory hardware/sound where to put all sound emulation (PC speaker currently, and maybe other things in the future);
- timer.c/h --> pit.c/h;
- Adjust the necessary includes and the cmakefiles;
- Remove unneeded includes;
- NTVDM is allowed to have its own VS project ^^

svn path=/trunk/; revision=65430
2014-11-18 02:18:18 +00:00
Hermès Bélusca-Maïto
d6985bdb0a [NTVDM]: Inline a function and fix spelling.
svn path=/trunk/; revision=65429
2014-11-18 00:44:24 +00:00
Amine Khaldi
b868fbf04a [RAPPS]
* Licence => License.
CORE-8804 #resolve #comment Committed in r65428. Thanks!

svn path=/trunk/; revision=65428
2014-11-17 16:33:45 +00:00
Amine Khaldi
37eed35556 * Sync up to trunk head (r65426).
svn path=/branches/shell-experiments/; revision=65427
2014-11-17 15:16:41 +00:00
Hermès Bélusca-Maïto
0bbe7eda19 [NTVDM]
- Remove unneeded commented code;
- Fix few things related to committing the reserved low-memory VDM page by kernel32;
- Decommit this memory when we terminate NTVDM.

svn path=/trunk/; revision=65426
2014-11-17 02:08:12 +00:00
Hermès Bélusca-Maïto
bc27bfaa6b [NTVDM]: Use the ScreenMode variable in other places too...
svn path=/trunk/; revision=65425
2014-11-17 00:34:29 +00:00
Hermès Bélusca-Maïto
5dbe74176e [NTVDM]
- Do not recalculate at each refresh the new resolution that usually does not change (if it changes because of a modification of some VGA register, we detect that, and we change the vga mode). So keep the current resolution and use it in paint functions.
- Really reenter a new text/graphic mode when needed (ie. when alphanumeric bit and computed resolution change), this avoids useless console screenbuffers recreations (and flickering), things go faster, yet the VGA registers are still updated (as expected). See r65379, r65018 and r65015 for more details.

svn path=/trunk/; revision=65424
2014-11-17 00:12:20 +00:00
Hermès Bélusca-Maïto
9219f1f8ef [NTVDM]: Code formatting only!
svn path=/trunk/; revision=65423
2014-11-16 23:15:12 +00:00
Hermès Bélusca-Maïto
f4bed99915 [NTVDM]
- Rename flags;
- Improve VgaUpdateTextCursor a bit (and fix a bug);
- Improve a DPRINT and monitor CGA ports (for debugging purposes);
- Code styling.

svn path=/trunk/; revision=65422
2014-11-16 22:19:32 +00:00
Hermès Bélusca-Maïto
4a12998fb3 [NTVDM]
- Remove some old comments (and commented DPRINTs);
- More support for Bda->VGAOptions;
- Improve implementation of VidBiosSetCursorShape (start some cursor emulation, and add a note about it);
- Implement few "Alternate Function Select" subfunctions.

svn path=/trunk/; revision=65421
2014-11-16 16:01:09 +00:00
Timo Kreuzer
2577b38332 [WIN32K]
Copy only the actual size of the BITMAPINFO back to usermode in NtGdiGetDIBitsInternal.

svn path=/trunk/; revision=65420
2014-11-16 14:22:54 +00:00
Timo Kreuzer
6e7c087233 [LIBS]
Remove some explicit comparisons with TRUE and make desired explicit comparison more obvious.
Patch by Love Nystrom, modified by me. Fixes a bug in RtlUpcaseUnicodeString. Not committed: modifications to freetype, since this is 3rd party code.
CORE-8799


svn path=/trunk/; revision=65419
2014-11-16 14:07:37 +00:00
Eric Kohl
71b471e27e [NET]
Replace remaining hard coded 'padding' strings.

svn path=/trunk/; revision=65418
2014-11-16 10:34:49 +00:00
Sylvain Petreolle
cc4b3a61b2 [EXPLORER-NEW]
Fix includes casing.

svn path=/branches/shell-experiments/; revision=65417
2014-11-15 23:12:06 +00:00
Timo Kreuzer
dfd58eda6d [NTOSKRNL]
Remove explicit comparisons with TRUE
Patch by Love Nystrom, adjusted by me
CORE-8799

svn path=/trunk/; revision=65416
2014-11-15 22:47:51 +00:00
David Quintana
1795a3bf16 [SHELL32]
* Commit the folder location fixes. They are mostly untested due to being unable to boot to desktop, but looking at the contents of the HDD after syssetup runs seems that the shortcuts are all created in their rightful place. If anyone is able to boot, feel free to test.

svn path=/branches/shell-experiments/; revision=65415
2014-11-15 18:34:22 +00:00
Hermès Bélusca-Maïto
f7311a5a01 [NTVDM]: Fix various little things in the video BIOS (and fix some video mode registers).
svn path=/trunk/; revision=65414
2014-11-15 16:14:04 +00:00
Daniel Reimer
d557b68747 Deleting Old RAPPS's Readme Files And Adding New README File by Erdem Ersoy
CORE-8503 #resolve #comment I have no problems with a translated readme file, but the line to the Wiki was added.

svn path=/trunk/; revision=65413
2014-11-15 15:58:43 +00:00
Daniel Reimer
cca301190e rapps: (for database) Many Improvements and Many Fixes by Erdem Ersoy
CORE-7710 #resolve #comment Committed again from the same CORE report. Note to my self, next time this thing is being reopened, I will set it to WONTFIX! Open a NEW REPORT!

svn path=/trunk/; revision=65412
2014-11-15 15:46:30 +00:00
Daniel Reimer
e486d61d55 Adding New Apps for Rapps by Erdem Ersoy
CORE-7493 #resolve #comment Added, but the more recent versions + changed the SF mirror to the generic one + skipped the translating of a application's english name. Thx

svn path=/trunk/; revision=65411
2014-11-15 15:35:40 +00:00
Daniel Reimer
efc06198c2 Add Inkscape to rapps by Ricardo Hanke
CORE-8604 #resolve #comment Added to rapps, thx for the prove that it works ^^

svn path=/trunk/; revision=65410
2014-11-15 15:33:13 +00:00
Amine Khaldi
bed61d0b02 [ADVAPI32]
* Update ConvertSecurityDescriptorToStringSecurityDescriptor{A,W}().
CORE-8540

svn path=/trunk/; revision=65409
2014-11-15 15:12:24 +00:00
Pierre Schweitzer
c846c8e4a8 [MOUHID]
[KBDHID]
Remove redundant code in DriverEntry()

svn path=/trunk/; revision=65408
2014-11-15 13:41:24 +00:00
Amine Khaldi
c4c4f1af81 [MSAFD]
* Plug a leak. CID 716386.
CORE-7975

svn path=/trunk/; revision=65407
2014-11-15 12:28:03 +00:00
Amine Khaldi
e2407791fb [DEVMGR]
* Plug a leak. CID 1105932.
CORE-7975

svn path=/trunk/; revision=65406
2014-11-15 12:09:14 +00:00
Amine Khaldi
45c3c5fa2b [ADVAPI32]
* Update CreateProcessWithTokenW().
CORE-8540

svn path=/trunk/; revision=65405
2014-11-15 11:57:24 +00:00
Eric Kohl
cee173bc8d [APPWIZ]
Formatting. No code changes!

svn path=/trunk/; revision=65404
2014-11-15 11:52:50 +00:00
Aleksandar Andrejevic
bc0b6aa8fc [NTVDM]
In non-standalone mode, commit the memory reserved in CreateProcessInternalW instead of
allocating from the heap.


svn path=/trunk/; revision=65403
2014-11-15 01:35:28 +00:00
Pierre Schweitzer
fc3c9fbab5 [KMTEST]
Close your eyes.
Really do it! I see you kept them open...
There are closed now?
OK... All fine.
You can open them again.
Nothing happened.
Source code always used to be like that. A commented was never left by mistake in it.
Never, ok? 

svn path=/trunk/; revision=65402
2014-11-14 21:01:45 +00:00
Pierre Schweitzer
093fafbb5e [KMTEST]
Reenable tests for MCBs. They got fixed by Hervé in r65398.

ROSTESTS-106 #resolve #comment Fixed by Hervé in r65398. Thanks!

svn path=/trunk/; revision=65401
2014-11-14 19:43:39 +00:00
Daniel Reimer
c4bdd01325 Rapps: Word Viewer 2010 is not 2010, but 2003
CORE-8681 #resolve #comment Fixed, thx.

svn path=/trunk/; revision=65400
2014-11-13 21:18:27 +00:00
Daniel Reimer
d5c0562adf On Rapps Office Excel Viewer 2007 is called Office Excel Viewer 2010
CORE-8710 #resolve #comment Fixed, thx.

svn path=/trunk/; revision=65399
2014-11-13 21:17:15 +00:00
Hervé Poussineau
9d8e6117b2 [NTOS:FSRTL] Fix lots of problems in large MCB implementation
KM tests now pass, except one error case which is not correctly handled.

svn path=/trunk/; revision=65398
2014-11-13 20:11:05 +00:00
Hervé Poussineau
3a0448b448 [NTOS:FSRTL] Stub-implement oplock and tunnel functions
svn path=/trunk/; revision=65397
2014-11-13 20:11:00 +00:00
Hervé Poussineau
942a7e9457 [NTOS:SE] Fix SeValidSecurityDescriptor
svn path=/trunk/; revision=65396
2014-11-13 20:10:52 +00:00
Amine Khaldi
81dea422f6 * Sync up to trunk head (r65394).
svn path=/branches/shell-experiments/; revision=65395
2014-11-13 19:27:12 +00:00
David Quintana
4b0ff82950 [SYSSETUP]
* Use the right function for the fix.

svn path=/branches/shell-experiments/; revision=65394
2014-11-13 17:11:07 +00:00
David Quintana
70bd9e70f3 [SYSSETUP]
* Fix some icons not appearing. The desktop one for "Command Prompt" still appears on the SYSTEM folder instead of the Default User one somehow.

svn path=/branches/shell-experiments/; revision=65393
2014-11-13 17:03:15 +00:00
Timo Kreuzer
79965b20db [WIN32K]
Round to nearest integer in FIX2LONG, used in XFORMOBJ APIs. Fixes rounding errors when doing coordinate transformation.

svn path=/trunk/; revision=65392
2014-11-13 11:12:56 +00:00
Timo Kreuzer
d8b68f3d7b [FREELDR]
Remove explicit comparisons with TRUE
i.e. if (BooleanValue == TRUE) -> if (BooleanValue) (and not !BooleanValue as accidentally written in the previous commit message!)
Patch by Love Nystrom
CORE-8799

svn path=/trunk/; revision=65391
2014-11-13 11:00:41 +00:00
Timo Kreuzer
35b6795c92 [WIN32SS]
if (BooleanValue == TRUE) -> if (!BooleanValue)
Patch by Love Nystrom
CORE-8799

svn path=/trunk/; revision=65390
2014-11-13 10:31:45 +00:00
David Quintana
cd35aef5ab [BROWSEUI]
* Remove the unwanted "(Empty)" item from the static menu, the SF menu will add its own if needed.

[RSHELL]
* Load the "(Empty)" string from shell32 resources.

[SHELL32]
* Add the string resource for empty menus.


svn path=/branches/shell-experiments/; revision=65389
2014-11-12 17:13:05 +00:00
Timo Kreuzer
5cd320d592 [WIN32K]
Allow arbitrary transforms in NtGdiExtCreateRegion.
Shearing and rotation are not handled correctly yet, but at least we do no longer fail on transforms that have scaling and an offset, which are classified as GX_GENERAL

svn path=/trunk/; revision=65382
2014-11-12 10:15:09 +00:00
Timo Kreuzer
6ee2be9843 [GDI32_APITEST]
Fix build

svn path=/trunk/; revision=65381
2014-11-12 09:58:45 +00:00
Timo Kreuzer
a1330711d6 [GDI32_APITEST]
Add tests for ExtCreateRegion

svn path=/trunk/; revision=65380
2014-11-12 09:49:32 +00:00
Hermès Bélusca-Maïto
8cd169b5c5 [NTVDM]
- Store in bit 7 of Bda->VGAOptions (40:87) whether we needed to clear video memory (or not) when changing the video mode.
- When retrieving the current video mode, set this bit 7 as required.
- Improve a bit the DPRINT of VidBiosSetVideoMode for diagnostic purposes.
- Remove the temporary "fix" (read: hack, and it broke some apps) from r65015 / r65018 : I'm working on a real fix.
- Rework some subfunctions of the INT 10h, AH=11h function (font generator).
- Fix reporting "256 kb video memory" in the Bda->VGAOptions flag.

svn path=/trunk/; revision=65379
2014-11-11 18:44:03 +00:00
Sylvain Petreolle
29782f8dc5 [ADVAPI_WINETEST]
Make peace^W tests, not war.☮
Wave a hello to sysreg so that it doesn't kill us.
ROSTESTS-56

svn path=/trunk/; revision=65378
2014-11-11 16:12:14 +00:00
Hermès Bélusca-Maïto
77ee067aa5 [NTVDM]: Make static some variables, fix IRQ1/12 timing, use NT QueryPerformanceCounter API instead of its Win32 part and move the "while (VdmRunning && CpuRunning)" loop into ClockUpdate.
svn path=/trunk/; revision=65377
2014-11-11 15:49:56 +00:00
Hermès Bélusca-Maïto
2f840d26f8 [NTVDM]: Errm... fix the "fix": apps *must* always set AX (not AL) to a correct value before calling INT 33h. The app that wrongly set AX did it once... ^^
svn path=/trunk/; revision=65375
2014-11-11 01:57:59 +00:00
Hermès Bélusca-Maïto
4b79109382 [NTVDM]
- Disable some DPRINTs and reenable some others (those concerning programs loading).
- INT 15h, AH=C2h calls a dedicated mouse bios function, which is stubplemented.
- Move part of the HW mouse / driver hack from the HW mouse module into the BIOS mouse.
- INT 33h: s/BiosMouseService/DosMouseService/, in this interrupt we need to check for function numbers in AL (not in AX :) fixes few apps).
- Reenable mouse user handler callbacks calls in CallMouseUserHandlers.
- Some apps (e.g. the demo from http://www.brackeen.com/vga/mouse.html ) draw by themselves the cursor and do not bother to call the INT 33h "Show cursor" function, but expects that moving the mouse we report its correct position. Fix DosMouseUpdatePosition so that it always updates the stored mouse position, but redraws it only when the cursor is shown.

svn path=/trunk/; revision=65374
2014-11-11 01:40:23 +00:00
David Quintana
4f5c586905 [RSHELL]
* Make use of the CToolbar class here too.
* Fix the menubar logic for closing menus on a second click. Almost. There's some glitch when clicking too fast, that I will fix later.

svn path=/branches/shell-experiments/; revision=65373
2014-11-11 01:05:39 +00:00
Pierre Schweitzer
0440330ea6 [FASTFAT]
- Implement VPB swapout in our FAT driver for dismout (see VfatCheckForDismount)
- Dereference volume handles on close (not on cleanup)
- Keep track of the VDO in our VCB
- Let VfatCheckForDismount() do the actual dismount, instead of VfatDismountVolume() which just initiates it

CORE-8732 #comment Can you retry?

svn path=/trunk/; revision=65372
2014-11-10 22:11:36 +00:00
Amine Khaldi
545615df47 [CMAKE][NTVDM]
* There is no folder named ntvdm inside ntvdm.
* Improve some inclusions (avoid ../ types).

svn path=/trunk/; revision=65369
2014-11-10 19:47:28 +00:00
Amine Khaldi
2bf9800b96 [CMAKE][BOOTSECT]
* Improve some inclusions (avoid ../ types).

svn path=/trunk/; revision=65368
2014-11-10 19:21:06 +00:00
Pierre Schweitzer
ef570a4f3f [PARTTEST]
Add a dummy application that will open first disk and check first sector for MBR and then will open first partition to check for something known (& not MBR)

svn path=/trunk/; revision=65367
2014-11-10 18:26:34 +00:00
Pierre Schweitzer
f00ed8906d [FASTFAT]
- Store IO VPB in our VCB for later use
- Prepare a spare VPB in our VCB for dismount swapout

svn path=/trunk/; revision=65361
2014-11-10 17:42:51 +00:00
Amine Khaldi
0343b8c5b5 [NPPTOOLS]
* Import from Wine 1.7.27.
CORE-8789 #resolve #comment Imported in r65358.
CORE-8540

svn path=/trunk/; revision=65358
2014-11-10 16:41:42 +00:00
Amine Khaldi
f57a299104 [CMAKE][NTOS]
* Improve some inclusions (avoid ../ types).
* The answer is 42.

svn path=/trunk/; revision=65357
2014-11-10 16:26:55 +00:00
Kamil Hornicek
d65a3b59a3 [WIN32K]
- fix up icon size before calculating the destination rectangle
CORE-8782

svn path=/trunk/; revision=65356
2014-11-10 14:00:02 +00:00
Jérôme Gardou
2b4ca7374b [MSAFD]
- Use wine debug output routines instead of blunt DbgPrint
This avoids the horrid "MSAFD: STATUS_XXX" which doesn't help.

svn path=/trunk/; revision=65355
2014-11-10 13:06:48 +00:00
Amine Khaldi
eae27787e5 * Sync up to trunk head (r65353).
svn path=/branches/shell-experiments/; revision=65354
2014-11-10 11:20:45 +00:00
Pierre Schweitzer
da318dabea [FASTFAT]
Properly flush volume on dismount

svn path=/trunk/; revision=65353
2014-11-10 10:18:29 +00:00
Pierre Schweitzer
411da63870 [NTOSKRNL]
So... Because actual ReactOS mood is to worship hacks instead of looking for proper fixes to have decent behavior: reenable the IopParseDevice hack.

But, so far, only reenable it for the 1st stage: the most intensive storage stack stage (unless you start playing with partitions & formating in 3rd stage).

CORE-8732 #resolve #comment Bug is now properly hidden with r65352

svn path=/trunk/; revision=65352
2014-11-10 09:45:43 +00:00
Kamil Hornicek
e2ae551d1b [REGEDIT]
- initialize ExportKeyPath so that parseKeyName is not fed garbage if exporting all
CORE-8771

svn path=/trunk/; revision=65351
2014-11-09 23:31:26 +00:00
Eric Kohl
3c5de6a8aa [NET]
Add missing resources to the spanisch translation.

svn path=/trunk/; revision=65350
2014-11-09 21:22:46 +00:00
Sylvain Petreolle
5653be740f [NTVDM]
Verbosity--;


svn path=/trunk/; revision=65349
2014-11-09 21:07:59 +00:00
Timo Kreuzer
d85969ddd5 [GDI32_APITEST]
Fix GCC build

svn path=/trunk/; revision=65348
2014-11-09 17:19:16 +00:00
Timo Kreuzer
9165518e88 [GDI32_APITEST]
Add test for rect regions

svn path=/trunk/; revision=65347
2014-11-09 17:14:17 +00:00
Amine Khaldi
d86a0ae50f [TRANSLATIONS]
* Spanish translation update by Ismael Ferreras Morezuelas (IRC name swyter).
CORE-8767 #resolve #comment Committed in r65346. Gracias ;)

svn path=/trunk/; revision=65346
2014-11-09 17:05:20 +00:00
Amine Khaldi
83c7d4b77e [TRANSLATIONS]
* Turkish translation update by Erdem Ersoy.
CORE-7861

svn path=/trunk/; revision=65345
2014-11-09 16:58:28 +00:00
Hermès Bélusca-Maïto
494c79f6af [NET]: Forgot this change, lost in replacements ;)
svn path=/trunk/; revision=65344
2014-11-09 13:43:23 +00:00
Eric Kohl
cb2d2566b1 [NET]
Fix indentation. No code changes!

svn path=/trunk/; revision=65343
2014-11-09 13:41:38 +00:00
Eric Kohl
e05c2fc9d3 [NET]
Replace remaining hardcoded strings by resource strings.

svn path=/trunk/; revision=65342
2014-11-09 13:39:20 +00:00
Hermès Bélusca-Maïto
9108b0107b [DESK.CPL]
Do string case-insensitive comparisons when adding wallpaper file names to the list.
Patch by Ricardo Hanke.
CORE-8775 #resolve #comment Fixed in r65341, thanks!

svn path=/trunk/; revision=65341
2014-11-09 12:00:28 +00:00
Hermès Bélusca-Maïto
9789eed844 Fix variable type ;)
svn path=/trunk/; revision=65340
2014-11-09 11:50:33 +00:00
Hermès Bélusca-Maïto
05790cd38d [TASKMGR]
Displays the current user name in the TaskMgr shutdown menu.
Patch by Ismael Ferreras Morezuelas (swyter) with minor modifications by me.
CORE-8536 #resolve #comment Committed in r65339, thanks!

svn path=/trunk/; revision=65339
2014-11-09 11:48:18 +00:00
Johannes Anderwald
20f7791d4b [NTOS:PNPMGR]
- Implement IoGetDeviceInterfaces with PhysicalDeviceObject support

svn path=/trunk/; revision=65338
2014-11-09 08:22:43 +00:00
Hermès Bélusca-Maïto
951a7e2106 [NTOS:PNPMGR]
- Remove an unneeded ExFreePool(DeviceInstance.Buffer); call in IopGetInterfaceDeviceList because at this point DeviceInstance is not yet initialized. Fixes MSVC build.
- No need to check for DeviceInstance.Buffer being NULL or not (in IopDeviceStatus), because in case it was NULL the IopCaptureUnicodeString call already failed.
- Add some brackets to conform to code style.

svn path=/trunk/; revision=65337
2014-11-09 02:26:49 +00:00
Hermès Bélusca-Maïto
a36ff01e00 [NTVDM]: Use variable-length buffers in DisplayMessage, in case we display a very long message (uses the _vscwprintf CRT function, not available on Win2k. You need to recompile NTVDM with WIN2K_COMPLIANT define if you want to be able to run it on win2k. In that case DisplayMessage uses a quite large enough buffer for its needs). If somebody knows an alternative to _vscwprintf that does the very same job, and which exists on Win2k, I would be happy to use it instead.
svn path=/trunk/; revision=65336
2014-11-09 01:46:31 +00:00
Hermès Bélusca-Maïto
0a21e7b198 [NTVDM:DOS]
- Use the correct environment strings block when starting DOS programs.
- When building the DOS master env block, remove the current directory env strings (they start with '='), upcase the environment names (not their values) and remove the WINDIR environment that we inherited when we started NTVDM DOS.

svn path=/trunk/; revision=65335
2014-11-09 00:49:17 +00:00
Timo Kreuzer
612333a5c0 [DPRINT12345]
Silence more annoying DPRINTs, and add one that hopefully helps to debug a problem.

svn path=/trunk/; revision=65334
2014-11-08 22:19:07 +00:00
Hermès Bélusca-Maïto
6990cd2172 [NTVDM]
- For the BIOS wait hack, use the NT API instead of the Win32 one.
- Remove unneeded DOS-exported functions.
- Use a PitGetReloadValue function for retrieving the reload value of a given PIT channel, instead of directly reading the reload value member, for functions *outside* of the PIT module.
- Implement basic Pulse-Width Modulation code for the PC speaker emulation.

svn path=/trunk/; revision=65333
2014-11-08 21:45:20 +00:00
Eric Kohl
7cfea2fbb6 [NET]
USER command:
- Replace stings by resource strings.
- Add a function to print padded resource strings.
- Fix the password input routine. Repeat if the passwords don't match.

svn path=/trunk/; revision=65332
2014-11-08 21:44:32 +00:00
Johannes Anderwald
5c1937b443 [USBHUB]
- it makes sense to also activate the device interface

svn path=/trunk/; revision=65331
2014-11-08 21:00:37 +00:00
Johannes Anderwald
e713fbca92 [NTOS]
- implement PlugPlayControlGetInterfaceDeviceList class for NtPlugPlayControl

svn path=/trunk/; revision=65330
2014-11-08 20:58:57 +00:00
Johannes Anderwald
038c71e251 [UMPNPMGR]
- pass flags to NtPlugPlayControl

svn path=/trunk/; revision=65329
2014-11-08 20:54:40 +00:00
Johannes Anderwald
df7f13199b [NDK]
- add flags member

svn path=/trunk/; revision=65328
2014-11-08 20:51:57 +00:00
Timo Kreuzer
b5339379bc [FREELDR]
Tabs -> spaces!

svn path=/trunk/; revision=65327
2014-11-08 19:11:47 +00:00
Timo Kreuzer
dc9b7a0dbe [FREELDR]
Check for CPU compatibility early and bugcheck if the CPU is too old.
Based on patch by winocm.
CORE-6427

svn path=/trunk/; revision=65326
2014-11-08 19:05:22 +00:00
Hermès Bélusca-Maïto
1b2bbd97fa [KERNEL32][BEEP]
Int32x32To64 used with unsigned input values will cause unintentional sign extension. There is a lot of code in ROS that is still not fixed!!
Fixes BEEP sound. See also r64020, CORE-8502 and CORE-8505 for more details.
CORE-8505 #comment CsrCaptureTimeout and BEEP code fixed.

svn path=/trunk/; revision=65325
2014-11-08 16:35:05 +00:00
Timo Kreuzer
b461fd27f1 [GDI32]
- Add annotations for text function
- Improve formatting and some variable names
- No code change

svn path=/trunk/; revision=65324
2014-11-08 15:34:47 +00:00
Eric Kohl
34353069cc [NET]
- Convert error messages to resource strings.
- ACCOUNTS: Add some padding to display strings.
- USER: Support interactive password input.

svn path=/trunk/; revision=65323
2014-11-08 14:35:27 +00:00
Johannes Anderwald
3c80eb5dc2 [NDK]
- adjust PLUGPLAY_CONTROL_INTERFACE_DEVICE_LIST_DATA
[UMPNPMGR]
- implement PNP_GetInterfaceDeviceList, PNP_GetInterfaceDeviceListSize
- currently not yet working PlugPlayControlGetInterfaceDeviceList class in NtPlugPlayControl is not implemented

svn path=/trunk/; revision=65322
2014-11-08 13:28:01 +00:00
Johannes Anderwald
8670de06d4 [NDK]
- add type for retrieving device interface list
- please review

svn path=/trunk/; revision=65321
2014-11-08 13:13:03 +00:00
Timo Kreuzer
b52f449aca [GDI32]
Use GdiGetDcAttr() where appropriate, improve SetLastError() situation.

svn path=/trunk/; revision=65320
2014-11-08 13:12:07 +00:00
Amine Khaldi
583ff26215 [CSCRIPT]
* Import from Wine 1.7.27.
CORE-8770 #resolve #comment Imported in r65317.
CORE-8540

svn path=/trunk/; revision=65319
2014-11-08 11:41:13 +00:00
Amine Khaldi
c7de5a4234 [WSCRIPT_WINETEST]
* Import from Wine 1.7.27.
CORE-8769 CORE-8540

svn path=/trunk/; revision=65318
2014-11-08 11:26:28 +00:00
Amine Khaldi
fc7bb9d4d4 [WSCRIPT]
* Import from Wine 1.7.27.
CORE-8769 #resolve #comment Imported in r65317.
CORE-8540

svn path=/trunk/; revision=65317
2014-11-08 11:23:02 +00:00
Amine Khaldi
b1eff474af [WSHOM_WINETEST]
* Import from Wine 1.7.27.
CORE-8768 CORE-8540

svn path=/trunk/; revision=65316
2014-11-08 10:27:05 +00:00
Amine Khaldi
5c37fe1739 [WSHOM.OCX]
* Import from Wine 1.7.27.
CORE-8768 #resolve #comment Imported in r65315.
CORE-8540

svn path=/trunk/; revision=65315
2014-11-08 10:22:22 +00:00
Johannes Anderwald
32019a9b0f [USBHUB]
- register device interface GUID_DEVINTERFACE_USB_DEVICE for usb devices

svn path=/trunk/; revision=65314
2014-11-08 09:26:21 +00:00
Aleksandar Andrejevic
02f61a837b [FAST486]
Clear the prefix flags when an exception occurs.
Add another missing return after a call to Fast486Exception.


svn path=/trunk/; revision=65313
2014-11-08 05:56:49 +00:00
Aleksandar Andrejevic
3117e70e36 [FAST486]
- Fix the FPU_CHECK() macro.
- Make sure pages are marked dirty even if they have been accessed before.
- Always return after calling Fast486Exception.


svn path=/trunk/; revision=65312
2014-11-08 02:56:54 +00:00
Hermès Bélusca-Maïto
ca31e1569d [HALx86]: Display the invalid opcodes when HalpOpcodeInvalid is called.
svn path=/trunk/; revision=65311
2014-11-07 21:19:27 +00:00
Aleksandar Andrejevic
ed11c3a778 [FAST486]
Fix BT, BTC, BTS and BTR.


svn path=/trunk/; revision=65310
2014-11-07 19:20:38 +00:00
Pierre Schweitzer
0ca2bff44e [FASTFAT]
Properly check for volume open on lock request

svn path=/trunk/; revision=65309
2014-11-07 15:38:31 +00:00
Amine Khaldi
86e82138e7 [TRANSLATIONS]
* Russian translation update by Kudratov Olimjon.
CORE-8701 #resolve #comment Committed in r65308. Thanks!

svn path=/trunk/; revision=65308
2014-11-07 15:08:59 +00:00
Amine Khaldi
f47cea9091 [SHELL32]
* Work on the exports a bit to match native.
* There are still cases worth inspecting, marked as FIXME.
CORE-8174

svn path=/branches/shell-experiments/; revision=65307
2014-11-07 14:26:27 +00:00
Amine Khaldi
14648f53e5 [SHELL32]
* Another partial sync of pidl.c with Wine 1.7.27.
* Move some functions where they are used, and remove some unused ones.
* Mark some of our changes with history revisions.
CORE-8540

svn path=/branches/shell-experiments/; revision=65306
2014-11-07 11:30:38 +00:00
Amine Khaldi
fc98679849 [SHELL32]
* Another partial sync of pidl.c with Wine 1.7.27.
* Move SHParseDisplayName where it belongs.
CORE-8540

svn path=/branches/shell-experiments/; revision=65305
2014-11-07 10:53:10 +00:00
Aleksandar Andrejevic
572d2d2a26 [FAST486]
Store the faulting address in CR2 (PFLA) when a page fault occurs.


svn path=/trunk/; revision=65304
2014-11-07 00:00:17 +00:00
Kamil Hornicek
a25ff6fb7e [USER32]
- use get_best_icon_file_entry's magic to find the correct icon in ICO_ExtractIconExW - thanks Jérôme!
- add cursor files support for PrivateExtractIcon(Ex)

svn path=/trunk/; revision=65303
2014-11-06 23:28:28 +00:00
Pierre Schweitzer
fad60e6ee8 [NTFS]
MagicValues--;

svn path=/trunk/; revision=65302
2014-11-06 21:12:54 +00:00
Pierre Schweitzer
c24acbfdc2 [NTFS]
Add a sanity check in NtfsFindMftRecord()

svn path=/trunk/; revision=65301
2014-11-06 20:54:27 +00:00
Aleksandar Andrejevic
3e9aa4c71d [FAST486]
Update the CPL when performing an interrupt.


svn path=/trunk/; revision=65300
2014-11-06 20:47:31 +00:00
Amine Khaldi
e8103dd4d3 * Sync up to trunk head (r65298).
svn path=/branches/shell-experiments/; revision=65299
2014-11-06 19:24:18 +00:00
Amine Khaldi
2060ee5d9c [SHELL32]
* Another partial sync of brsfolder.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65298
2014-11-06 19:14:58 +00:00
Kamil Hornicek
5b5d036b35 [USER32]
- add ICO files support for PrivateExtractIcons(Ex)
- fixes Juice and ICO files now show their icons in explorer
CORE-4021

svn path=/trunk/; revision=65297
2014-11-06 19:11:03 +00:00
Amine Khaldi
1bf6f2b179 [SHELL32]
* Partial sync of shell32_main.h with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65296
2014-11-06 18:45:30 +00:00
Kamil Hornicek
5eaf6cc648 [USER32]
- partially sync exticon.c with Wine 1.7.30

svn path=/trunk/; revision=65295
2014-11-06 18:33:42 +00:00
Amine Khaldi
9f5ca3848b [SHELL32]
* Another partial sync of clipboard.c with Wine 1.7.27.
* Move RenderPREFEREDDROPEFFECT to CIDLDataObj.cpp where it belongs.
CORE-8540

svn path=/branches/shell-experiments/; revision=65294
2014-11-06 18:33:33 +00:00
Amine Khaldi
98ab989c82 [SHELL32]
* Partial sync of clipboard.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65293
2014-11-06 18:10:37 +00:00
Amine Khaldi
4a6b43ac42 [SHELL32]
* Move clipboard.cpp to the wine folder.
* Convert clipboard.cpp into clipboard.c.

svn path=/branches/shell-experiments/; revision=65292
2014-11-06 18:07:58 +00:00
Amine Khaldi
0f56f8c10c [SHELL32]
* Another partial sync of classes.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65291
2014-11-06 17:26:42 +00:00
Amine Khaldi
d6cf4f43aa [SHELL32]
* Partial sync of classes.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65290
2014-11-06 16:58:43 +00:00
Amine Khaldi
68ba7b8c1b [SHELL32]
* Move classes.cpp to the wine folder.
* Convert classes.cpp into classes.c.

svn path=/branches/shell-experiments/; revision=65289
2014-11-06 16:49:41 +00:00
Amine Khaldi
4b78f524f2 [SHELL32]
* Another partial sync of changenotify.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65288
2014-11-06 16:35:20 +00:00
Amine Khaldi
0bf0ff1e78 [SHELL32]
* Partial sync of changenotify.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65287
2014-11-06 16:11:48 +00:00
Amine Khaldi
9cb0bb8edd [SHELL32]
* Move changenotify.cpp to the wine folder.
* Convert changenotify.cpp into changenotify.c.

svn path=/branches/shell-experiments/; revision=65286
2014-11-06 16:01:10 +00:00
Amine Khaldi
2b4b0b0af6 [SHELL32]
* Another partial sync of shlmenu.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65285
2014-11-06 13:04:41 +00:00
Amine Khaldi
fffb400d3a [SHELL32]
* Partial sync of shlmenu.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65284
2014-11-06 12:57:39 +00:00
Amine Khaldi
ad2ed830be [SHELL32]
* Move shlmenu.cpp to the wine folder.
* Convert shlmenu.cpp into shlmenu.c.

svn path=/branches/shell-experiments/; revision=65283
2014-11-06 12:45:07 +00:00
Amine Khaldi
2aebe831cb [SHELL32]
* Apply Wine commit bfad4fa9 by Piotr Caban: Don't convert output parameter in SHBrowseForFolderA (Valgrind).
CORE-8540

svn path=/branches/shell-experiments/; revision=65282
2014-11-06 11:25:43 +00:00
Aleksandar Andrejevic
d7897ca1e5 [FAST486]
We can't load the stack segment until after we've updated the CPL.


svn path=/trunk/; revision=65281
2014-11-06 05:37:50 +00:00
Aleksandar Andrejevic
e42640b500 [FAST486]
Fix the limit calculation when using page granularity.
RETF can also perform inter-privilege returns.
Fix the privilege checks when loading CS. DPL != CPL is only a #GP
when we're doing a jump or a call.


svn path=/trunk/; revision=65280
2014-11-06 05:16:14 +00:00
David Quintana
7d0ca528ce [EXPLORER-NEW]
* Use IContextMenu for the context menus, instead of a struct with function pointers.

svn path=/branches/shell-experiments/; revision=65279
2014-11-06 03:05:33 +00:00
Thomas Faber
453e370737 [FASTFAT]
- Fix failure case handling in vfatUpdateFCB
- NULL output parameters on failure in vfatGetFCBForFile
- Fix a few typos

svn path=/trunk/; revision=65278
2014-11-06 00:07:01 +00:00
Thomas Faber
468b64c679 [NTOS:IO]
- Silence super noisy debug print in IopQueryAttributesFile

svn path=/trunk/; revision=65277
2014-11-05 23:27:04 +00:00
Thomas Faber
0e9ce28f2c [FASTFAT]
- Fix incorrect referencing in VfatCreateFile. vfatGetFCBForFile expects a reference on ParentFcb (and may release it), and also returns a referenced parent FCB.
CORE-8756 #resolve

svn path=/trunk/; revision=65276
2014-11-05 23:23:52 +00:00
David Quintana
fb929febc6 [COMCTL32]
* Begin implementing TB_GETMETRICS/TB_SETMETRICS. Will send to wine once the button spacing setting works (after writing tests and whatever else may be necessary).

svn path=/branches/shell-experiments/; revision=65275
2014-11-05 23:00:23 +00:00
David Quintana
a2cc12f3e7 [EXPLORER-NEW]
* Make use of the CToolbar<T> class to implement a CTaskToolbar.
* Change the CTaskSwitchWnd class to use CTaskToolbar instead of managing the HWND directly.
* Silence logspam in CTrayBandSite.
* Fix CNotifyToolbar to properly.
* Move the call to SetMetrics to be called only on initialization, instead of every time an icon changes.
* Make the start button a CContainedWindowT instead of a raw HWND. TODO: Make a CStartButton class to manage it.

[include/reactos/rosctrls.h]
* Some improvements needed by the taskbar.

svn path=/branches/shell-experiments/; revision=65274
2014-11-05 22:58:53 +00:00
Kamil Hornicek
46f478ab95 [WIN32K]
- don't create a rect with a zero area in NtGdiExtFloodFill
CORE-8755

svn path=/trunk/; revision=65273
2014-11-05 22:01:08 +00:00
Aleksandar Andrejevic
6eb52f4986 [FAST486]
Make sure the corrected prefetch address contains the block we're trying to read.


svn path=/trunk/; revision=65272
2014-11-05 20:21:32 +00:00
Amine Khaldi
2c30ae43b0 * Sync up to trunk head (r65270).
svn path=/branches/shell-experiments/; revision=65271
2014-11-05 19:33:30 +00:00
Thomas Faber
a66700e316 [FASTFAT]
- Assert that we never reference or dereference an FCB with RefCount 0
CORE-8733

svn path=/trunk/; revision=65270
2014-11-05 19:06:19 +00:00
Thomas Faber
b708ab01e9 [FASTFAT]
- VfatCleanupFile: do not dereference the FCB when closing the volume file object. ObDereferenceObject already causes an IRP_MJ_CLOSE request to be sent, which dereferences the FCB.
CORE-8733 #resolve

svn path=/trunk/; revision=65269
2014-11-05 18:52:11 +00:00
Amine Khaldi
1ed1e48cd2 [SHELL32]
* Another partial sync of brsfolder.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65267
2014-11-05 17:04:42 +00:00
Thomas Faber
b637c49e6a [REGEDIT]
- Avoid unicode character literal. Fixes weird looking address bar button on MSVC build.

svn path=/trunk/; revision=65266
2014-11-05 16:51:16 +00:00
Thomas Faber
1cfc7939e6 [IPHLPAPI]
- Fix MSVC build

svn path=/trunk/; revision=65265
2014-11-05 16:31:13 +00:00
Hermès Bélusca-Maïto
895a44acc9 [FAST486]
- Fix another typo (addendum to r65263).
- Whitespace fixes.

svn path=/trunk/; revision=65264
2014-11-05 12:45:47 +00:00
Aleksandar Andrejevic
254daee831 [FAST486]
Fix two typos.


svn path=/trunk/; revision=65263
2014-11-05 04:58:40 +00:00
Aleksandar Andrejevic
a57f40f992 [FAST486]
Allow direct calls/jumps to TSS selectors in Fast486ProcessGate.


svn path=/trunk/; revision=65262
2014-11-05 00:50:11 +00:00
Aleksandar Andrejevic
b452f14184 [FAST486]
Fix the paging exception code.


svn path=/trunk/; revision=65261
2014-11-05 00:27:43 +00:00
Aleksandar Andrejevic
b4648ec8fe [FAST486]
- Move the descriptor reading logic into a separate function.
- Implement hardware task switching and task gates.
- Flush the TLB when reloading CR3.


svn path=/trunk/; revision=65260
2014-11-04 22:58:02 +00:00
Thomas Faber
ca809b6cdc [NTOS:SE]
- Implement ACL inheritance for SeAssignSecurityEx
CORE-8745 #resolve

svn path=/trunk/; revision=65259
2014-11-04 22:44:50 +00:00
Thomas Faber
418629f6a9 [KMTESTS:SE]
- Add a test for SeAssignSecurity[Ex]
CORE-8745

svn path=/trunk/; revision=65258
2014-11-04 22:42:15 +00:00
Pierre Schweitzer
71606f1035 [NTFS]
Actually, we know how to read non resident attributes, so read a non resident attribute list if found.

svn path=/trunk/; revision=65257
2014-11-04 21:16:14 +00:00
Thomas Faber
902e8bb68e [KMTESTS]
- Move out definitions for user/kernel test utility functions into their own header (still not pretty, but at least the one header won't get as huge
- Make KmtStartThread/KmtFinishThread available to all tests

svn path=/trunk/; revision=65256
2014-11-04 20:55:16 +00:00
Timo Kreuzer
f1f1a19b03 Merged revision(s) 62353, 62531-62532, 62853, 64152, 64173-64174 from branches/kernel-fun/reactos:
[NTOSKRNL]
Implement SystemPrioritySeperation case in NtSetSystemInformation
........
[NTOSKRNL]
Fix an ASSERT in ExfReleasePushLockExclusive
........
[NTOSKRNL]
Fix KiCallbackReturnHandler
........
[NTOSKRNL]
Don't expect a fully sized LOADER_PARAMETER_EXTENSION, since the win2003 loader doesn't provide the full one.
........
[NTOSKRNL]
Implement a fake NtLockProductActivationKeys

........
[NTOSKRNL]
- Add some DPRINTs on errors
- Silence a DPRINT
- Only DPRINT on unimplemented affinity support on SMP builds

........
[NTOSKRNL]
- Remove an undocumented flag from the lpc request type in NtRequestWaitReplyPort. This is required for some windows modules that use this flag, otherwise the function fails.
........

svn path=/trunk/; revision=65255
2014-11-04 20:47:18 +00:00
Timo Kreuzer
afc42dae68 [NTOSKRNL]
Merge r62304 and r65253 from kernel-fun branch:
Fix logic in ObSetSecurityDescriptorInfo. To understand the change: it is not only style change! The old code modified SecurityDescriptor, which must always stay the same in the loop!

svn path=/trunk/; revision=65254
2014-11-04 20:41:10 +00:00
Timo Kreuzer
4e41ff66c0 [WIN32K]
- Fix completely broken REGION_CropAndOffsetRegion
- Make sure iType is correctly set in NtGdiGetRegionData

svn path=/trunk/; revision=65252
2014-11-04 20:20:45 +00:00
Amine Khaldi
b269ecaffd [SHELL32]
* Partial sync of brsfolder.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65251
2014-11-04 20:13:22 +00:00
Amine Khaldi
4190d21c43 [SHELL32]
* Move brsfolder.cpp to the wine folder.
* Convert brsfolder.cpp into brsfolder.c.

svn path=/branches/shell-experiments/; revision=65250
2014-11-04 20:10:43 +00:00
Amine Khaldi
d05db38784 [SHELL32]
* bool => BOOL.

svn path=/branches/shell-experiments/; revision=65249
2014-11-04 20:00:09 +00:00
Thomas Faber
e9fc785372 [NTOS:SE]
- Simplify SeSetSecurityDescriptorInfoEx
- Don't dereference an object that was never referenced

svn path=/trunk/; revision=65248
2014-11-04 18:47:13 +00:00
Thomas Faber
8a98907e4c [NTOS:SE]
- Call SeSetSecurityDescriptorInfoEx from SeSetSecurityDescriptorInfo

svn path=/trunk/; revision=65247
2014-11-04 18:40:24 +00:00
Giannis Adamopoulos
a5bcd416fb [SHELL32]
Rename cpp files to the name of the class they implement

svn path=/branches/shell-experiments/; revision=65246
2014-11-04 13:28:57 +00:00
Giannis Adamopoulos
dee95b2a3f [SHELL32]
- Rename IFileSystemBindDataImpl to CFileSysBindData
- Rename IconExtraction to CExtractIcon
- Rename IEnumIDListImpl to CEnumIDListBase
- Rename IDataObjectImpl to CIDLDataObj

svn path=/branches/shell-experiments/; revision=65245
2014-11-04 12:49:36 +00:00
Thomas Faber
9852daf344 [NTOS:SE]
Various minor behavior corrections & simplifications for SeAssignSecurityEx:
- Fail on missing subject context or invalid group
- Initialize NewDescriptor to NULL on failure
- Never set SE_*_DEFAULTED flags
- Assume a primary token exists
- Remove unnecessary variable initialization
- Remove unnecessary length alignment
CORE-8745

svn path=/trunk/; revision=65244
2014-11-04 12:35:22 +00:00
Giannis Adamopoulos
bc9009dda3 [SHELL32]
- Simplify CMyDocsFolder folder to use a CFSFolder internally
- Note that while CAdminToolsFolder and CFontsFolder should aggregate CFSFolder, CMyDocsFolder shouldn't and this is implementation is much closer to windows.

svn path=/branches/shell-experiments/; revision=65243
2014-11-04 11:45:05 +00:00
Jérôme Gardou
092c5ad023 [IPHLPAPI]
- Retrieve unicast addresses and prefixes in GetAdaptersAddresses.

svn path=/trunk/; revision=65242
2014-11-04 10:38:43 +00:00
Jérôme Gardou
5e4cc9a9c9 [TCPIP/AFD]
- Use less weird internal structures and more public headers.

svn path=/trunk/; revision=65241
2014-11-04 10:38:26 +00:00
Pierre Schweitzer
099910fd83 [NTFS]
- Move the ROUND_UP & ROUND_DOWN macro definition to header
- Make NtfsReadDisk() sector size aware so that it can properly align read on the disk (and thus prevent them from failing)
- If $ATTRIBUTE_LIST is non resident, then display a message and continue, don't assert on it. This is to be implemented later on.

This fixes directory enumeration on a Windows 7 NTFS volume.

svn path=/trunk/; revision=65240
2014-11-04 07:56:20 +00:00
Pierre Schweitzer
217a030519 [NTFS]
Try to read the names from the biggest name space to the smallest.
Only at the end assert we have to have a name.

This fixes name enumeration on Windows 7 NTFS volumes.

svn path=/trunk/; revision=65239
2014-11-04 07:52:14 +00:00
James Tabor
ef9b3e68e3 [NtUser]
- Capture is already set. Trouble shooting CORE-8299 and CORE-3247.
- Correct spellings and adding traces.

svn path=/trunk/; revision=65238
2014-11-04 05:21:41 +00:00
Hermès Bélusca-Maïto
c13514d480 [NTVDM]
- Fix the BIOS32 Wait hack (Sleep takes a duration in milliseconds, whereas the BIOS function takes the duration in microseconds).
- Initialize the PIT channels with realistic values (realistic == found on real BIOSes).
- Remove unneeded commented code.

svn path=/trunk/; revision=65237
2014-11-03 21:27:20 +00:00
Giannis Adamopoulos
75ae835000 [SHELL32]
- Make CFontsFolder a dumb wrapper around CFSFolder

svn path=/branches/shell-experiments/; revision=65236
2014-11-03 21:14:49 +00:00
Amine Khaldi
d7ca29bc06 [SHELL32]
* Another partial sync of pidl.c and pidl.h with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65235
2014-11-03 20:15:17 +00:00
Amine Khaldi
8c29f2837c [SHELL32]
* Partial sync of pidl.c and pidl.h with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65234
2014-11-03 19:58:55 +00:00
Amine Khaldi
6069abeef0 [SHELL32]
* Move pidl.cpp and pidl.h to the wine folder.
* Convert pidl.cpp into pidl.c.
CORE-8540

svn path=/branches/shell-experiments/; revision=65233
2014-11-03 19:50:36 +00:00
Amine Khaldi
6a6f52bf66 [SHELL32]
* Move shellreg.cpp to the wine folder.
* Rename shellreg.cpp to shellreg.c.
* Sync shellreg.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65232
2014-11-03 19:05:48 +00:00
Amine Khaldi
0f48f23d19 [SHELL32]
* Another partial sync of shellord.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65231
2014-11-03 18:53:50 +00:00
Amine Khaldi
8e1cdffb62 [SHELL32]
* Partial sync of shellord.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65230
2014-11-03 18:21:49 +00:00
Amine Khaldi
ae35d57677 [SHELL32]
* Move shellord.cpp to the wine folder.
* Convert shellord.cpp into shellord.c.
CORE-8540

svn path=/branches/shell-experiments/; revision=65229
2014-11-03 18:09:50 +00:00
Giannis Adamopoulos
768eecf19e [SHELL32]
- Begin improving our shell folders implementation
- CAdminToolsFolder is just a fancy CFSFolder so there is no need to reinvent the wheel
- Use a real CFSFolder to do all the work. When ATL aggregation works, we will be able to make this prettier
- Keep a small hack in CAdminToolsFolder::GetDisplayNameOf which returns the folder's name (I need to investigate if this is correct or not)

svn path=/branches/shell-experiments/; revision=65228
2014-11-03 16:41:20 +00:00
Thomas Faber
053bc502bb [PCI]
- Addendum to r65181: fix a stray debug print

svn path=/trunk/; revision=65227
2014-11-03 16:16:26 +00:00
David Quintana
98bc7ac7c8 [EXPLORER-NEW]
* Move the CToolbar class into rosctrls.h, so we can make use of it in other parts of reactos.

svn path=/branches/shell-experiments/; revision=65226
2014-11-03 16:05:09 +00:00
David Quintana
c6b81aa43b [EXPLORER-NEW]
* Fix GCC build.

svn path=/branches/shell-experiments/; revision=65225
2014-11-03 15:06:54 +00:00
Amine Khaldi
370a6f8dc3 [SHELL32]
* Move control.cpp to the wine folder.
* Rename control.cpp to control.c.
* Partially sync control.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65224
2014-11-03 14:36:57 +00:00
Amine Khaldi
fd9f0d8b86 [SHELL32]
* Move shpolicy.cpp to the wine folder.
* Rename shpolicy.cpp to shpolicy.c.
* Sync shpolicy.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65223
2014-11-03 13:59:23 +00:00
Amine Khaldi
e24032eb8c [SHELL32]
* Apply Wine commit e330a128 by Alexandre Julliard: Use Shell_GetImageLists to retrieve image lists instead of using a global variable.
CORE-8540

svn path=/branches/shell-experiments/; revision=65222
2014-11-03 13:43:01 +00:00
Amine Khaldi
3a9653d24e [SHELL32]
* Move shellpath.cpp to the wine folder.
* Rename shellpath.cpp to shellpath.c.
* Partially sync shellpath.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65221
2014-11-03 13:29:18 +00:00
Jérôme Gardou
9c6ff49dd7 [IPHLPAPI]
- Start implementing GetAdaptersAddresses.
For now it noly gives interface names and DNS servers IP, but that's already more than 'UNIMPLEMENTED'.

svn path=/trunk/; revision=65220
2014-11-03 12:55:59 +00:00
Jérôme Gardou
9de8655c35 [PSDK]
- Add missing GAA_FLAG_* flags for GetAdaptersAddresses function

svn path=/trunk/; revision=65219
2014-11-03 12:55:54 +00:00
Jérôme Gardou
d4ca070d84 [TCPIP]
- Use the structure defined in the public headers instead of some strange internal thing.
Uppercase is not so fashionable after all.

svn path=/trunk/; revision=65218
2014-11-03 12:55:45 +00:00
Amine Khaldi
ebaefd4cf3 [SHELL32]
* Move shell32_main.cpp to the wine folder.
* Rename shell32_main.cpp to shell32_main.c.
* Partially sync shell32_main.c with Wine 1.7.27.
* Update the location of shell32_main.h in inclusions.
CORE-8540

svn path=/branches/shell-experiments/; revision=65217
2014-11-03 12:17:30 +00:00
Amine Khaldi
8b3a691a5b [SHELL]
* Mark _ILGetExtension and _ILGetFileType as EXTERN_C.
* __inline before return type.
* Some tiny style consistency fixes.

svn path=/branches/shell-experiments/; revision=65216
2014-11-03 12:13:40 +00:00
Amine Khaldi
7328a488fa [SHELL]
* __inline before return type.

svn path=/branches/shell-experiments/; revision=65215
2014-11-03 12:10:23 +00:00
Giannis Adamopoulos
afba1474ae [EXPLORER_NEW]
- Fix build

svn path=/branches/shell-experiments/; revision=65214
2014-11-03 11:33:23 +00:00
Amine Khaldi
86f440a776 [SHELL32]
* Allow shdebugstr_guid() to be used from C code too.
* Move shellole.cpp to the wine folder.
* Rename shellole.cpp to shellole.c.
* Sync shellole.c with Wine 1.7.27.
CORE-8540

svn path=/branches/shell-experiments/; revision=65213
2014-11-03 10:52:20 +00:00
Giannis Adamopoulos
2aefa1130a [SHELL32]
- Add shell32.cpp and move there CShell32Module, DllGetVersion, DllMain, DllCanUnloadNow, DllGetClassObject, DllRegisterServer, DllUnregisterServer, DllInstall, IDefClFImpl, IDefClF_fnConstructor and SHCreateDefClassObject
- Now shell32_main.cpp and shellole.cpp have code that can be converted back to C and synced to wine

svn path=/branches/shell-experiments/; revision=65212
2014-11-03 10:38:21 +00:00
Giannis Adamopoulos
ee9f3746cc [SHELL32]
- Move SHGetDesktopFolder to desktop.cpp

svn path=/branches/shell-experiments/; revision=65211
2014-11-03 10:12:24 +00:00
Jérôme Gardou
0039187504 [NTOS/PS]
- Do not leak a reference to the process object when setting quotas.

svn path=/trunk/; revision=65210
2014-11-03 09:52:08 +00:00
David Quintana
406cb9dd75 [EXPLORER-NEW]
* Rename a few I<x>Impl to C<x>
* Refactor the toolbar code of notification area into its own class.
* Also refactor away the code specific to the toolbar control into a CToolbar class. Todo: move the CToolbar class into some header file.

svn path=/branches/shell-experiments/; revision=65209
2014-11-03 04:16:56 +00:00
Giannis Adamopoulos
89af2b02ad [SHELL32]
- Remove an old todo file that described the things that were implemented in the shell-experiments branch

svn path=/branches/shell-experiments/; revision=65208
2014-11-02 23:50:54 +00:00
Giannis Adamopoulos
855e2e5a66 [SHELL32]
- Move shellstring.c to a new folder called wine. More files should be moved there eventually.

svn path=/branches/shell-experiments/; revision=65207
2014-11-02 23:41:24 +00:00
Giannis Adamopoulos
5c14d148e1 [SHELL32]
- Move files that implement dialogs and property sheets in dialogs folder

svn path=/branches/shell-experiments/; revision=65206
2014-11-02 23:30:48 +00:00
Pierre Schweitzer
21cd59bc0f [DISK]
Add a hack to forcibly set sector size in case of weird input. This is noisy on purpose.
Also, be more informative in case of read rejection. Are we reading beyond partition or do we have invalid sector size?
With the hack, the invalid sector size should disappear.

This is to help debugging the recent errors with the removal of IopParseDevice() hack

svn path=/trunk/; revision=65205
2014-11-02 23:11:22 +00:00
Hervé Poussineau
3fc8b084e5 [NTFS] Implement IRP_MJ_QUERY_INFORMATION/FileNetworkOpenInformation:
We are now able to execute some binaries on a NTFS partition.

svn path=/trunk/; revision=65204
2014-11-02 22:56:53 +00:00
Hervé Poussineau
68487164df [NTFS] Fix IRP_MJ_QUERY_INFORMATION/FileNameInformation, which should handle buffers not big enough
svn path=/trunk/; revision=65203
2014-11-02 22:56:47 +00:00
Hervé Poussineau
bdbbb217d5 [NTFS] Update headers
svn path=/trunk/; revision=65202
2014-11-02 22:56:38 +00:00
Giannis Adamopoulos
544bb81e8f [SHELL32]
- Remove authors.cpp

svn path=/branches/shell-experiments/; revision=65201
2014-11-02 22:52:49 +00:00
David Quintana
d2d3c97622 [EXPLORER-NEW]
* Refactor startmnu.cpp into three separate files. startctxmnu.cpp contains the context menu handler for the start button, and startmnusite.cpp contains the former IStartMenuSiteImpl, renamed to CStartMenuSite.

svn path=/branches/shell-experiments/; revision=65200
2014-11-02 22:26:44 +00:00
David Quintana
d2f5f7f14f [EXPLORER-NEW]
* Refactor the desktop thread/creation code.

svn path=/branches/shell-experiments/; revision=65199
2014-11-02 21:52:54 +00:00
Pierre Schweitzer
f2cbb4ac21 [NTFS]
Update headers.
Hervé, feel free to copy :-P

svn path=/trunk/; revision=65198
2014-11-02 21:50:40 +00:00
David Quintana
162ff471bb [EXPLORER-NEW]
* Convert codebase to C++ and make use of C++ classes for the COM objects.

svn path=/branches/shell-experiments/; revision=65197
2014-11-02 20:18:54 +00:00
Hervé Poussineau
6a520d8fbe [NTFS] Hack fix duplicate directory entries for files having a short name and a long name
svn path=/trunk/; revision=65196
2014-11-02 20:18:34 +00:00
Hervé Poussineau
c554032df9 [NTFS] Optimize directory search initialization
svn path=/trunk/; revision=65195
2014-11-02 20:18:27 +00:00
David Quintana
3da5418d3f [RSHELL]
[STOBJECT]
* Some nitpicking.

[SHELL32]
* Fix missing null-termination by using proper string literals.

svn path=/branches/shell-experiments/; revision=65194
2014-11-02 20:17:23 +00:00
David Quintana
3b5e160482 [SHELL32]
* Fix GCC build.

svn path=/branches/shell-experiments/; revision=65193
2014-11-02 20:13:56 +00:00
Pierre Schweitzer
ffa40006ae [NTFS]
Quickly implement NtfsReadFile().

By quickly, I mean that it works but is under optimal in many ways, and also doesn't support any caching. So, don't expect breaking performances.

BUUUUUUT... This implements reading a file on a NTFS volume on ReactOS! And it works!
Here is a picture of all the achievements of ReactOS with NTFS lately: http://www.heisspiter.net/~Pierre/rostests/NTFS_all.png
-> Volume information
-> Displaying files in explorer
-> Moving across directories
-> Reading a file (with more here)

That's all folks! (for now ;-))

svn path=/trunk/; revision=65192
2014-11-02 19:55:22 +00:00
Pierre Schweitzer
6ea5fe3e43 [NTFS]
Don't attempt to uninitialize cache map with a spin lock held.

svn path=/trunk/; revision=65191
2014-11-02 19:27:58 +00:00
Hervé Poussineau
82f99f5e41 [NTFS] Fix directory listing with search pattern
This fixes name completion in command prompt.

svn path=/trunk/; revision=65190
2014-11-02 18:58:16 +00:00
Hervé Poussineau
3248b9e3b7 [NTOS:CM] Remove some debug prints
svn path=/trunk/; revision=65189
2014-11-02 18:58:09 +00:00
Hervé Poussineau
77e9b087e9 [FDC] Remove some debug prints
svn path=/trunk/; revision=65188
2014-11-02 18:58:04 +00:00
Hervé Poussineau
ad03599ffb [SYSSETUP] Disable debug prints (incidentally enabled in r65128)
svn path=/trunk/; revision=65187
2014-11-02 18:57:56 +00:00
Pierre Schweitzer
b304d6f14a [NTFS]
Fix a really nasty bug in NTFS: it was possible to perform a buffer overflow when reading the bitmap data.

svn path=/trunk/; revision=65186
2014-11-02 17:53:18 +00:00
Giannis Adamopoulos
a099e6c7a2 [SHELL32]
- Remove lots of typecasts in CDefView
- Use strict typed itemids

svn path=/branches/shell-experiments/; revision=65185
2014-11-02 17:49:28 +00:00
Amine Khaldi
c472e29a70 * Sync up to trunk head (r65183).
svn path=/branches/shell-experiments/; revision=65184
2014-11-02 16:12:38 +00:00
Thomas Faber
760375811e [NTOS:SE]
- Call SeAssignSecurityEx from SeAssignSecurity
- Fix a FIXME

svn path=/trunk/; revision=65183
2014-11-02 15:41:20 +00:00
Giannis Adamopoulos
6f1b132494 [ATL]
- Add a couple of macros needed for the time we will be able to support aggregation with ATL

svn path=/branches/shell-experiments/; revision=65182
2014-11-02 13:35:03 +00:00
Timo Kreuzer
a841fadcaa [HAMMERTIMESTFU]
Silence "a few" DPRINTs

svn path=/trunk/; revision=65181
2014-11-02 11:30:14 +00:00
Amine Khaldi
611a14d331 [SHELL32]
* Fix GCC build.

svn path=/branches/shell-experiments/; revision=65180
2014-11-02 11:16:37 +00:00
Eric Kohl
1087501706 [NET]
Net user command:
- Fix typos in the /ACTIVE option.
- Implement the /COUNTRYCODE, /PASSWORDCHG and /PASSWORDREQ options.

svn path=/trunk/; revision=65179
2014-11-02 09:56:18 +00:00
Thomas Faber
db79c779e8 [SACDRV]
- Silence debug prints
- Avoid magic numbers

svn path=/trunk/; revision=65178
2014-11-02 07:17:39 +00:00
Giannis Adamopoulos
b8c49d0520 [SHELL32]
- Add an evil header that is going to simplify our C++ code in the shell a lot
- Use the new CListView in the implementation of CDefView to make it more readable and maintainable

svn path=/branches/shell-experiments/; revision=65176
2014-11-02 00:26:22 +00:00
Pierre Schweitzer
a899cf5bdd [USETUP]
Make commented out code build (if ever uncommented ;-))

svn path=/trunk/; revision=65175
2014-11-01 21:13:16 +00:00
Pierre Schweitzer
fc65ad4d5f [EXT2LIB]
Whatever happened during format, always unmount the volume.
This allows switching FS in usetup after formating an ext2 volume.

As a record, before (read, with the IopParseDevice) hack, this wasn't possible and if formating with ext2 was possible, kernel would have written with either RawFS or FastFAT driver. Which is not exactly what we want ;-).
But no joy guys... The Ext2Fsd needs to work in ReactOS first before we can effectively install ReactOS on ext2 volumes.

In any case, that's a clear step forward :-)

svn path=/trunk/; revision=65174
2014-11-01 21:09:10 +00:00
Pierre Schweitzer
c1bbc436cb [FASTFAT]
Implement some kind of volume dismount in FastFAT (ie, implement VfatDismountVolume())

This is not fully perfect situation, but it does most of the job (+ leaking a few things). So far, this is not dramatic as its main use is for 1st stage. This will have to be improved later on.

CORE-8732 #comment Can you retest please?

svn path=/trunk/; revision=65173
2014-11-01 20:19:52 +00:00
Eric Kohl
2f120e9e6d [NET]
Display user group memberships.

svn path=/trunk/; revision=65172
2014-11-01 19:24:44 +00:00
Thomas Faber
6f9a074461 [FASTFAT]
- The volume FCB is not reference counted, so don't dereference it on close.

svn path=/trunk/; revision=65171
2014-11-01 18:00:15 +00:00
Hermès Bélusca-Maïto
2420e2ff0d [BASESRV]
- Correctly set the VdmPower flag when the process being started is a NT VDM
- Return a correct status code if VDM access is forbidden.

svn path=/trunk/; revision=65170
2014-11-01 17:51:39 +00:00
Hermès Bélusca-Maïto
fec7f48782 [KERNEL32]
- Mark almost all of the exported console APIs hotpatchable (normally on windows 2k3, all the exports of kernel32 are hotpatchable...)
- Version check mismatch is not a ReactOS error by itself so adjust the DPRINT a bit.

svn path=/trunk/; revision=65169
2014-11-01 15:35:45 +00:00
Kamil Hornicek
fd0e046213 [RAPPS]
- don't resize the richedit window on minimize
CORE-6116

svn path=/trunk/; revision=65168
2014-11-01 12:43:45 +00:00
Eric Kohl
8031de0f5d [NET]
- Display workstations.
- Implement the /ACTIVATE option to enable/disable user accounts.

svn path=/trunk/; revision=65167
2014-11-01 12:32:01 +00:00
Pierre Schweitzer
7fbedc7a2a [NTFS]
Simplify buffer size management in GetNtfsFileRecord(). As tests shown, Windows doesn't care about the real size of the file record and expects the caller to pass the complete size of the record and returns it fully.

CORE-8725

svn path=/trunk/; revision=65166
2014-11-01 10:02:08 +00:00
Pierre Schweitzer
67656096bd [NTFS_TEST]
Add a simple application (à la NTFSInfo & nfi) to dump the data about a NTFS volume using the FSCTL control codes.
This is for both demonstrating how it works and to assess our driver behavior against Windows behavior of these FSCTL.

CORE-8725

svn path=/trunk/; revision=65165
2014-11-01 09:56:33 +00:00
Pierre Schweitzer
ce5999a8eb [PSDK]
Add yet another missing NTFS define

svn path=/trunk/; revision=65164
2014-11-01 08:58:41 +00:00
Pierre Schweitzer
139ec81ccb [PSDK]
Add missing NTFS defines

svn path=/trunk/; revision=65163
2014-11-01 08:03:57 +00:00
Kamil Hornicek
0cad6a3b91 [EVENTLOG]
- fix a possible null dereference

svn path=/trunk/; revision=65162
2014-10-31 22:39:19 +00:00
Giannis Adamopoulos
15ba278fdd [RSHELL]
- A HACK notice was more obvious than needed (I got what I asked after all).
- Reenable opening the printers folder since it works now

svn path=/branches/shell-experiments/; revision=65161
2014-10-31 22:32:01 +00:00
Giannis Adamopoulos
f48774515c [SHELL32]
- Do not release the pointer to the ShellView that was just created 
- Fixes a crash when showing the Printers shell folder

svn path=/branches/shell-experiments/; revision=65160
2014-10-31 22:30:21 +00:00
Amine Khaldi
46551d006f [SHELL32]
* Apply Wine commit a2c90524 by Aric Stewart: Improve the FO_MOVE operation.
* More shell32:shlfileop tests run, less fail.
CORE-8540

svn path=/trunk/; revision=65159
2014-10-31 18:46:27 +00:00
David Quintana
827930cde2 [BROWSEUI]
* Implement hiding the statusbar from the view menu. Based on patch by Christoph von Wittich.

svn path=/branches/shell-experiments/; revision=65158
2014-10-31 18:37:40 +00:00
Kamil Hornicek
7a2c925aed [KERNEL32]
- rewrite the GEO_FRIENDLYNAME case of GetGeoInfoW which was completely wrong, intl.cpl now shows a valid list of locations
- note: The geo location resource strings have an arbitrary offset so that they don't collide with the nls resources (which shouldn't be there). Once these are moved out of kernel32 into locale.nls this offset alongside with the hack already present in GetLocalisedText can be removed.

svn path=/trunk/; revision=65157
2014-10-31 18:13:36 +00:00
Thomas Faber
52f76a303d [SHELL32]
- Fix a use after free in COpenWithMenu::Initialize. Powered by DPH.

svn path=/trunk/; revision=65156
2014-10-31 18:02:52 +00:00
Thomas Faber
e62a1d0299 [NEWDEV]
- Fix buffer overflow in PopulateCustomPathCombo. Powered by DPH.
- Fix a signed vs unsigned comparison

svn path=/trunk/; revision=65154
2014-10-31 17:35:38 +00:00
Thomas Faber
b5b1531e3e [MSGINA]
- pszEnvironment is a multi-sz string so make sure to double-null terminate it. Fixes a buffer overrun in winlogon; powered by DPH.

svn path=/trunk/; revision=65153
2014-10-31 17:05:30 +00:00
Kamil Hornicek
175d2a76b3 [KERNEL32]
- fall back to english if a localized resource is not found in GetLocalisedText
- this prevents debug spam and loss of functionality (see CORE-8720) for languages that don't have kernel32 translated

svn path=/trunk/; revision=65152
2014-10-31 16:32:23 +00:00
David Quintana
1bb0aaf50f [EXPLORER-NEW]
* Some nitpicking.

[STOBJECT]
* Fix the notification not having an assigned callback message id.

svn path=/branches/shell-experiments/; revision=65151
2014-10-31 15:57:56 +00:00
Kamil Hornicek
56f6fe0862 [WIN32K]
- don't access user mode buffers directly in the Freetype code

svn path=/trunk/; revision=65150
2014-10-31 15:57:09 +00:00
Amine Khaldi
88ae5a3afe [INCLUDE/REACTOS]
* Fix GCC build.

svn path=/branches/shell-experiments/; revision=65149
2014-10-31 15:32:05 +00:00
Amine Khaldi
6581292e05 * Sync up to trunk head (r65147).
svn path=/branches/shell-experiments/; revision=65148
2014-10-31 15:27:51 +00:00
Amine Khaldi
80d683ac8d [SHELL32]
* Rename shellstring.cpp to shellstring.c and update it against Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=65147
2014-10-31 15:16:51 +00:00
Amine Khaldi
8a1d7dd1c0 [SHELL32]
* Move TRASH_CanTrashFile and TRASH_TrashFile declarations to recyclebin.h.
* Do not include xdg.h in shlfileop.cpp anymore.
* Remove the now unneeded xdg.h.

svn path=/trunk/; revision=65146
2014-10-31 14:29:26 +00:00
Pierre Schweitzer
c9d1d86d84 [NTFS]
- Move FSCTL_GET_NTFS_VOLUME_DATA implementation in its own function GetNfsVolumeData(), so remove it from NtfsUserFsRequest()
- Add support for FSCTL_GET_NTFS_FILE_RECORD in NtfsUserFsRequest()
- Implement GetNtfsFileRecord() which returns a file record. Not fully sure about its implementation, this is to be checked.

This does not really improve the nfi situation in any kind yet...

CORE-8725

svn path=/trunk/; revision=65145
2014-10-31 14:21:35 +00:00
Pierre Schweitzer
6635caf5c4 [NTOSKRNL]
Testman confirms that IopParseDevice() hack is no longer required.
So, this is the end of this 8y old hack.

Now ReactOS is able to properly use its storage stack (who said, amazing?)

Bisous IopParseDevice() hack :-)

svn path=/trunk/; revision=65144
2014-10-31 14:16:15 +00:00
Jérôme Gardou
da308db0af [OPENGL32]
- Do not crash if thread data was not allocated

svn path=/trunk/; revision=65143
2014-10-31 11:35:32 +00:00
Pierre Schweitzer
cfb13ee214 [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.

svn path=/trunk/; revision=65142
2014-10-31 11:22:26 +00:00
Pierre Schweitzer
afaa63a42c [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!

svn path=/trunk/; revision=65141
2014-10-31 11:17:43 +00:00
Jérôme Gardou
3d37281ca2 [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

svn path=/trunk/; revision=65140
2014-10-31 11:04:12 +00:00
Jérôme Gardou
f801abcacf [NTOS/SE]
- Allocate the new ACL for the token with the right pool.
Fixes google chrome BAD_POOL_CALLER bugcheck.

svn path=/trunk/; revision=65139
2014-10-31 11:03:56 +00:00
Amine Khaldi
d4eaa22e1f [FTP]
* Plug a leak. CID 513875.
CORE-7975

svn path=/trunk/; revision=65138
2014-10-31 10:40:48 +00:00
Amine Khaldi
7de7c827be [LOGOFF]
* LocalFree should only be executed if AllocAndLoadString() succeeds. Spotted by Thomas Faber.

svn path=/trunk/; revision=65137
2014-10-31 10:24:48 +00:00
Amine Khaldi
55f7571996 [IPCONFIG]
* Plug some leaks. CIDs 716301 => 716305.
CORE-7975

svn path=/trunk/; revision=65136
2014-10-31 10:20:55 +00:00
Amine Khaldi
614ee71e6d [FINGER]
* Addendum to r37084.
* Really fixes CIDs 500624 and 500625 which were marked as fixed.
CORE-7975

svn path=/trunk/; revision=65135
2014-10-31 09:53:18 +00:00
Amine Khaldi
c5095466a0 [FINGER]
* Plug a leak. CID 1102406.
CORE-7975

svn path=/trunk/; revision=65134
2014-10-31 09:43:48 +00:00
Amine Khaldi
b1626fe71e [LOGOFF]
* Plug some leaks. CIDs 716284 and 716285.
CORE-7975

svn path=/trunk/; revision=65133
2014-10-31 09:22:59 +00:00
Amine Khaldi
a7c09060d2 [SHELL32]
* Plug a leak. CID 716474.
CORE-7975

svn path=/trunk/; revision=65132
2014-10-31 09:08:43 +00:00
Kamil Hornicek
476cc79d1f [WIN32K]
- check for an attached surface a bit earlier in GreExtTextOutW
- fixes Foobar 2000
CORE-7425

svn path=/trunk/; revision=65131
2014-10-31 00:21:03 +00:00
Pierre Schweitzer
b3fd4ef2f0 [VFATLIB]
When we're done with formatting, attempt to umount the volume, so that it can be remounted properly by FastFAT.

svn path=/trunk/; revision=65130
2014-10-30 21:12:38 +00:00
Pierre Schweitzer
ab38eafc21 [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 :-)).

svn path=/trunk/; revision=65129
2014-10-30 20:56:40 +00:00
Sylvain Petreolle
00bc798da9 [APPWIZ][SYSSETUP]
Enforce focus of the Wine Gecko download prompt in second stage.
Patch by Ismael Ferreras Morezuelas (swyter)

svn path=/trunk/; revision=65128
2014-10-30 20:50:30 +00:00
Hervé Poussineau
a293927d33 [FREELDR] Move down the requirement of highest usable address
This fixes PXE boot in QEMU, where highest usable address is 0x9c400.

svn path=/trunk/; revision=65127
2014-10-30 20:22:57 +00:00
Christoph von Wittich
15ec865f72 [EXPLORER-NEW]
fix gcc build

svn path=/branches/shell-experiments/; revision=65125
2014-10-30 19:00:19 +00:00
David Quintana
4dfef8d21d [EXPLORER_NEW]
* Cleanup some window procs.
* Fix some redraw issues in the notification area due to misuse of themeing.

svn path=/branches/shell-experiments/; revision=65124
2014-10-30 14:55:56 +00:00
Amine Khaldi
d23ef58d9e [BOOTDATA]
* Romanian translation update by Ștefan Fulea.
CORE-8630 #resolve #comment Committed in r65123. Thanks!

svn path=/trunk/; revision=65123
2014-10-30 13:29:44 +00:00
Kamil Hornicek
535667ca32 [INTL]
- don't display garbage in the location combo box

svn path=/trunk/; revision=65122
2014-10-30 12:15:11 +00:00
Amine Khaldi
4f72545247 * Sync up to trunk head (r65120).
svn path=/branches/shell-experiments/; revision=65121
2014-10-30 11:52:53 +00:00
Pierre Schweitzer
2fc51b27ef [NTOSKRNL]
Actually enable again the hack...
For whatever reason, it works with my WC but not with clean trunk...
Where are the you, magic and silent patch that fixes it? :-(

svn path=/trunk/; revision=65120
2014-10-30 08:39:03 +00:00
Pierre Schweitzer
1bc8e4320f [NTOSKRNL]
Finally, disable again the IopParseDevice hack.
Just for the record, opening a volume with FILE_READ_EA or FILE_READ_DATA is legal and works in Windows (NTFS Info for instance opens it with GENERIC_READ).

Let's hope we can rid of this hack forever now... It's been with us since 2006!

svn path=/trunk/; revision=65119
2014-10-30 07:49:37 +00:00
Pierre Schweitzer
2009765b6a [FASTFAT]
Don't over-reference our FCB in case of volume opening (vfatAttachFCBToFileObject() already references it).

This fixes 1st stage and beyond with IopParseDevice hack off

svn path=/trunk/; revision=65118
2014-10-30 07:46:25 +00:00
Pierre Schweitzer
9288b1ab76 [NTOSKRNL]
Reenable IopParseDevice hack for now.
Out of fixes for tonight.

svn path=/trunk/; revision=65117
2014-10-29 23:28:15 +00:00
Pierre Schweitzer
bedd8fa9be [FASTFAT]
Now that we start to honor the storage stack (ie, without the IopParseDevice hack ;-)), we have to let FSDs forward device IOCTLs.
This allows back copying files on 1st stage

svn path=/trunk/; revision=65116
2014-10-29 23:10:31 +00:00
Pierre Schweitzer
c9ec1555ad [FASTFAT]
Don't attempt to mount any partition just because we have a valid partition table...
Restrict this to them being marked as FAT or compatible.

svn path=/trunk/; revision=65115
2014-10-29 22:51:16 +00:00
David Quintana
47cc151eb1 [RSHELL]
* Hopefully fix the start menu closing randomly. May have side-effects, but I think it's best to be conservative here and prefer the possibility of the menu staying open unexpectedly, rather than closing unexpectedly.

svn path=/branches/shell-experiments/; revision=65114
2014-10-29 22:50:27 +00:00
Pierre Schweitzer
d22dd7da46 [NTFS]
Addendum to r65112

svn path=/trunk/; revision=65113
2014-10-29 22:40:16 +00:00
Pierre Schweitzer
7f1c752c3a [NTFS]
Implement support for the FSCTL_GET_NTFS_VOLUME_DATA user request in NtfsUserFsRequest().

This makes NTFSInfo capable of working in ReactOS :-). A picture to show it: http://www.heisspiter.net/~Pierre/rostests/NTFS_info.png
Yes, NTFS Zone isn't computed yet. I'll have a look at it later on.

This doesn't fix nfi.exe though. If it can get its data, it cannot continue. It loops forever on a FSCTL we don't handle yet.

CORE-8725

svn path=/trunk/; revision=65112
2014-10-29 22:36:55 +00:00
David Quintana
2e0e5f7174 [BROWSEUI]
* Allow the static items in the Favorites menu to be received by the shell browse window.
* Handle the Organize Favorites menu item by opening either the USER favorites, or the COMMON version of the folder.

[RSHELL]
* Send the proper HWND together with the HMENU, when sending callbacks.

svn path=/branches/shell-experiments/; revision=65111
2014-10-29 22:28:51 +00:00
Sylvain Petreolle
d7565e93f7 [NTOSKRNL]
Reapply r65107.
We need fixes, not hacks.
Sorry for being popular^W pressure ;)


svn path=/trunk/; revision=65110
2014-10-29 22:22:24 +00:00
Eric Kohl
b87393f170 [NETAPI32]
NetUserModalsGet:
- Return the proper maximum password age.
- Remove dead code.

svn path=/trunk/; revision=65109
2014-10-29 22:17:23 +00:00
Sylvain Petreolle
a1baaa2225 [UNIATA]
Update to 0.45c1.

svn path=/trunk/; revision=65108
2014-10-29 21:34:01 +00:00
Pierre Schweitzer
a65c5549f9 [NTOSKRNL]
Reenable hack due to popular pressure.
Still better than fixing it, it seems...
So, break again volume opening.

svn path=/trunk/; revision=65107
2014-10-29 21:22:36 +00:00
Pierre Schweitzer
0872193d40 [NTFS]
Finally, move old stuff back from disk.sys to ntfs.sys now it can be properly reached on volume opening:
- Halfplement NtfsUserFsRequest() and add support for IRP_MN_USER_FS_REQUEST in NtfsFsdFileSystemControl()
- Also, use the proper FSCTL code: FSCTL_GET_NTFS_VOLUME_DATA which exists and is documented instead of FSCTL_GET_NTFS_VOLUME_DATA. Spotted by Christoph.

CORE-8725

svn path=/trunk/; revision=65106
2014-10-29 18:42:05 +00:00
Pierre Schweitzer
c009666393 [DISK]
Revert r65097 and r65090.
Thanks to r65104, now the FSCTLs go to the right place: the FSDs!

Thanks to Thomas for pointing out that NTFSinfo was really talking with the FSD on Windows and not to disk.sys

CORE-8725

svn path=/trunk/; revision=65105
2014-10-29 18:25:30 +00:00
Pierre Schweitzer
48cddc2fcc [NTOSKRNL]
Disable the IopParseDevice hack. It appears it was triggered on volume opening and thus was breaking volume opening which were then forwarded down to disk.sys.
Not sure how legit it is to have it anylonger.

At least, disabling it reenables volume opening in ReactOS and associated FSCTL!

Alex & Aleksey, can you review please?

CORE-8725

svn path=/trunk/; revision=65104
2014-10-29 18:20:43 +00:00
Kamil Hornicek
34147616fd [NLS]
- fix the code page value
- also fixes intl.cpl showing date format string in the code page list

svn path=/trunk/; revision=65103
2014-10-29 18:20:03 +00:00
Kamil Hornicek
c1c1e05803 [KERNEL32]
- remove bunch of stray pragmas
- add a czech translation to stop debug spam reported in CORE-8720

svn path=/trunk/; revision=65102
2014-10-29 16:59:44 +00:00
Kamil Hornicek
08e9098294 [BOOTDATA]
- add metrics to classic themes (the flag 0xb0001 will result in a kinda esoteric value of type REG_QWORD)
- fixes switching from Lautus back to a classic theme
CORE-8718

svn path=/trunk/; revision=65100
2014-10-29 14:27:09 +00:00
David Quintana
5ee771bbc6 [BROWSEUI]
* Fix a 'pasta.
* Open something less stupid when clicking on "Is this copy legal?" in the Help menu.

svn path=/branches/shell-experiments/; revision=65099
2014-10-29 12:32:46 +00:00
David Quintana
a0ec7d507f [RSHELL]
* Fix assumption that the USER folder will always exist and only the COMMON folder may be missing. Allows the Start Menu to work in livecd.

[BROWSEUI]
* Apply the same fix to the Favorites folder, although the LiveCD does not currently have the folder so it will not work regardless.

svn path=/branches/shell-experiments/; revision=65098
2014-10-29 11:52:45 +00:00
Pierre Schweitzer
88ea664a82 [DISK]
Actually, sysinternals used to release the source code of NTFSInfo (thanks Christoph!), so we know a bit more about the interface of the user FS request.
So, implement a bit more of the interface to validate it properly works (and so far, it does!)

CORE-8725

svn path=/trunk/; revision=65097
2014-10-29 11:31:19 +00:00
Amine Khaldi
4fc224434a * Sync up to trunk head (r65095).
* Thank you Kamil for r65087 ;)

svn path=/branches/shell-experiments/; revision=65096
2014-10-29 11:25:42 +00:00
David Quintana
b06af9ef67 [BROWSEUI]
* Implement File->Close

svn path=/branches/shell-experiments/; revision=65095
2014-10-29 11:14:28 +00:00
David Quintana
d75b3832c8 [BROWSEUI]
* Implement executing the items from the Favorites menu.

svn path=/branches/shell-experiments/; revision=65094
2014-10-28 22:28:28 +00:00
Timo Kreuzer
54d0920f7e [GDI32]
Improve functions in coord.c:
- Use GdiGetDcAttr() where appropriate
- Fix SetLastError() usage
- Add annotations
- improve variable naming
- Add some comments

svn path=/trunk/; revision=65093
2014-10-28 22:16:24 +00:00
David Quintana
a3006f2401 [RSHELL]
* Remove a few GCC unused-but-set-variable warnings.

svn path=/branches/shell-experiments/; revision=65092
2014-10-28 22:13:18 +00:00
Pierre Schweitzer
7a204076f6 [DISK]
Get ready to enter into the 10th dimension... So:
- Implement support for IRP_MJ_FILE_SYSTEM_CONTROL. Yes... You read well! So, implemented a ScsiDiskFileSystemControl() function. The way it is added to the DriverObject is a big hack, class2 is not supposed to have such requests, so, we do it in its back. Fear!
- Stubplement the NtfsRussinovichism() function. This is the only function we're supposed to call with IRP MJ FSCTRL and with IRP MN USRFSRQST. Its purpose (when its implemented) is to reply back to the M. Russinovich tools (NFI & NTFSInfo) so that they can directly dump NTFS information without going into NTFS driver. They kind of bypass it.
We do all agree this is a ugly hack. But it exists in Windows, as these tools work in Windows. And it would be useful they actually work in ReactOS.
Soon, we'll be able to publish a book "ReactOS Internals" where we speak about undocumented FS controls to dump NTFS information to show how well our NTFS works ;-).

svn path=/trunk/; revision=65090
2014-10-28 21:59:57 +00:00
Eric Kohl
70cb67436c [NET]
Display more password information in the NET USER command.

svn path=/trunk/; revision=65089
2014-10-28 21:57:41 +00:00
David Quintana
40a2e03359 [RSHELL]
* CMenuBand: Refcount before assigning a return pointer.
* CMenuDeskBar: Revert change and protect the refcounting in case I was wrong to assume there will be exactly one OnFinalMessage for each OnCreate.
* CMenuToolbars: Add a debug message.
* CStartMenu: Refcount correctly.

svn path=/branches/shell-experiments/; revision=65088
2014-10-28 21:40:50 +00:00
Kamil Hornicek
b71df11be9 [WIN32K]
- addendum to revision 64877 which slightly changed UserDrawCaption's logic
- fixes window title being drawn over the icon

svn path=/trunk/; revision=65087
2014-10-28 21:38:26 +00:00
Timo Kreuzer
6417d36a41 [GDI32]
- Move functions to the appropriate source files, zap hacks.c, stubs.c, stubsa.c and stubsw.c (sorry for the noise, but this mess had to be cleaned up)

svn path=/trunk/; revision=65086
2014-10-28 21:09:01 +00:00
Pierre Schweitzer
aaebdbf9d3 [FASTFAT]
For now, disable the VfatSetRenameInformation() asserts in trunk.
They can be reenabled for testing by commenting "#define NASSERTS_RENAME" out.

CORE-8721 #resolve #comment Fixed with r65085

svn path=/trunk/; revision=65085
2014-10-28 20:39:42 +00:00
Giannis Adamopoulos
6dce3d956e Revert unwanted change
svn path=/branches/shell-experiments/; revision=65084
2014-10-28 19:52:04 +00:00
Giannis Adamopoulos
b763819882 [RSHELL]
- Do not release CMenuDeskBar more times than necessary
- Should fix the start menu

svn path=/branches/shell-experiments/; revision=65083
2014-10-28 19:50:49 +00:00
Pierre Schweitzer
135e926315 [NTFS]
Finally, implement NtfsGetFreeClusters() which will just read the $Data stream from $BITMAP file record to get the amount of free clusters to allow estimating the free space on a volume.
The implementation is likely under-optimized... But wwell, the rest of the FSD is not better. Who talked about caching?! ;-)

Because pictures are more relevant than words in such case: http://www.heisspiter.net/~Pierre/rostests/NTFS_disksize.png

svn path=/trunk/; revision=65082
2014-10-28 19:17:59 +00:00
David Quintana
41e4833e4e [BROWSEUI]
* Disable the Tools menu items until they are implemented.

svn path=/branches/shell-experiments/; revision=65081
2014-10-28 18:37:44 +00:00
David Quintana
a2eba5b034 [BROWSEUI]
* Properly return the toolbar status on QueryStatus.
* Properly make use of the returned into from QueryStatus.

svn path=/branches/shell-experiments/; revision=65080
2014-10-28 18:32:21 +00:00
David Quintana
210edd7588 Fix GCC build.
svn path=/branches/shell-experiments/; revision=65078
2014-10-28 17:33:22 +00:00
Giannis Adamopoulos
2c3bb20acb Merge r65001 from shell-experiments branch:
[user32]
- Properly notify the theme engine that the caption needs to be repainted on WM_SETICON
- Fixes a classic frame appearing when themes are enabled and we navigate to a different folder

svn path=/trunk/; revision=65077
2014-10-28 17:32:01 +00:00
Ged Murphy
f5ca079e13 [WINLOGON]
- Stop the log from being spammed when the session is idle and no screensaver is set
- Also checking if my login still works :)

svn path=/trunk/; revision=65076
2014-10-28 17:07:47 +00:00
Amine Khaldi
3899f1daa8 * Sync up to trunk head (r65074).
svn path=/branches/shell-experiments/; revision=65075
2014-10-28 16:58:25 +00:00
David Quintana
30a510975b [RSHELL]
* Fix executing items after the menu has closed.

svn path=/branches/shell-experiments/; revision=65074
2014-10-28 15:39:47 +00:00
Giannis Adamopoulos
180b6fb083 [STOBJECT]
- Disable querying if audio is muted or not for now.
- Hides an assert that happened in wdmaud.drv

svn path=/branches/shell-experiments/; revision=65073
2014-10-28 15:27:00 +00:00
Giannis Adamopoulos
5273a84a3f [SHELL32]
- Return a readable folder name when SHGDN_FORADDRESSBAR was specified
- We no longer show GUIDs in the address bar 

svn path=/branches/shell-experiments/; revision=65072
2014-10-28 15:07:31 +00:00
Giannis Adamopoulos
6dfa5325d0 [RSHELL]
- Actually give focus to the start menu when CMenuDeskBar::Popup is called
- Fixes opening and navigating the start menu with the keyboard

svn path=/branches/shell-experiments/; revision=65071
2014-10-28 14:31:19 +00:00
Giannis Adamopoulos
6f9dab8a15 [EXPLORER_NEW]
- Use IMenuPopup_OnSelect to close the start menu when the win key is pressed. 
- Fixes closing the start menu (on windows and on reactos)

svn path=/branches/shell-experiments/; revision=65070
2014-10-28 14:18:16 +00:00
Giannis Adamopoulos
2c619c6486 [WIN32K]
- Send the HSHELL_TASKMAN notification to the shell when the windows key is pressed
- Needed to open and close the start menu with the keyboard

svn path=/branches/shell-experiments/; revision=65069
2014-10-28 13:45:43 +00:00
Pierre Schweitzer
d6fa9e7094 [NTFS]
ReleaseAttributeContext() is to be used out of mft.c
I believe that at some point, we're leaking memory...

svn path=/trunk/; revision=65068
2014-10-28 10:26:47 +00:00
Timo Kreuzer
1bc1ae75f3 [GDI32]
Implement separate functions for all SelectObject cases.

svn path=/trunk/; revision=65067
2014-10-28 09:06:33 +00:00
Christoph von Wittich
27b8f91dbd [DRIVERS]
don't use uninitialized variables

svn path=/trunk/; revision=65066
2014-10-28 08:15:49 +00:00
David Quintana
dc1da96ab8 [RSHELL]
* Fix some small things that were getting in the way of fixing the start menu (which was broken and no one noticed). The actual fix will come tomorrow since my brain is about to implode at this time.

svn path=/branches/shell-experiments/; revision=65065
2014-10-28 01:27:02 +00:00
Giannis Adamopoulos
c199f8be2e [SHELL32]
- Properly check for error in CDefaultContextMenu::DoCreateLink

svn path=/branches/shell-experiments/; revision=65064
2014-10-28 00:58:19 +00:00
Timo Kreuzer
c8e18b66a9 [GDI32]
- Use GdiGetDcAttr instead of GdiGetHandleUserData where appropriate
- Add a few missing SetLastError()
- Fix return failure return value of GetBkColor()
- Improve order of operations in SelectObject (needs more fixing)

svn path=/trunk/; revision=65063
2014-10-28 00:55:22 +00:00
Aleksandar Andrejevic
891d638347 [FAST486]
Fix a typo in r65061.


svn path=/trunk/; revision=65062
2014-10-28 00:53:02 +00:00
Aleksandar Andrejevic
f1a3c93e07 [FAST486][NTVDM]
Get rid of Fast486Interrupt, since it's not used anywhere. Also we can now remove
workarounds for all of the bugs that it caused.
Implement the "single-instruction interrupt delay" for instructions that load the
stack segment only.


svn path=/trunk/; revision=65061
2014-10-28 00:33:03 +00:00
James Tabor
14c0c3cbce [NtUser]
- Revert 64363. See CORE-7797.

svn path=/trunk/; revision=65060
2014-10-28 00:26:22 +00:00
Hermès Bélusca-Maïto
af80d3517d [FAST486]: We should invalidate the prefetch buffer *after* having fetched the BOP byte (but before calling its handler), not before fetching the byte :)
svn path=/trunk/; revision=65059
2014-10-28 00:19:48 +00:00
Timo Kreuzer
bd446bbb01 [GDI32]
- Handle GDILoObjType_LO_ALTDC_TYPE in GdiGetDcAttr
- Rewrite GdiGetLDC using GdiGetDcAttr
- Implement GdiSetLDC

svn path=/trunk/; revision=65058
2014-10-28 00:16:18 +00:00
Giannis Adamopoulos
a5597dfcc1 [win32k]
- Revert a recent change in trunk that broke the new shell. Its a shame to see the new shell behave like crap because of win32k

svn path=/branches/shell-experiments/; revision=65057
2014-10-27 23:49:06 +00:00
Timo Kreuzer
a12507355a [GDI32]
Forgot to commit this...

svn path=/trunk/; revision=65056
2014-10-27 23:39:21 +00:00
Timo Kreuzer
2d1292ebbe [GDI32]
- Improve formatting
- Use more consistent variable names
- Remove unnecessary casts
- Add some annotations
- No intended code changes

svn path=/trunk/; revision=65055
2014-10-27 23:37:05 +00:00
Jérôme Gardou
207b88eaf1 [KERNEL32]
- Do not try to open memory events under the process object root directory.
CORE-8600 #resolve

svn path=/trunk/; revision=65054
2014-10-27 22:05:51 +00:00
Timo Kreuzer
18134c10db [GDI32]
Add Support routines for client objects. Will be used later. You might wonder why the code uses a lame hash table to link the client object handles to the user mode pointer, when it should be clear that a *client* object should have a user mode attribute, like other objects, that we can use, especially since that is the only real purpose of that object. Well, tell that the MS developer, who implemented client objects without a user mode attribute...

svn path=/trunk/; revision=65053
2014-10-27 20:53:59 +00:00
Timo Kreuzer
8ab78d931a [WIN32K]
- Fail in NtGdiCreateClientObj, when the object type is not valid.
This is based on Windows behavior, only more strict. Windows allows to set the stock bit and reuse count, which is probably not what we want.

svn path=/trunk/; revision=65052
2014-10-27 20:40:11 +00:00
Giannis Adamopoulos
afb6acc945 [SHELL32]
- Rewrite the monstrosity that was supposed to open control panel items. Still not really correct but works.

svn path=/branches/shell-experiments/; revision=65051
2014-10-27 18:26:09 +00:00
Amine Khaldi
0593e15998 [ADVAPI32]
* Update GetTrusteeForm{A,W}().
CORE-8540

svn path=/trunk/; revision=65050
2014-10-27 17:23:05 +00:00
Amine Khaldi
b9febc1490 [ADVAPI32]
* Remove unused MAX_GUID_STRING_LEN and RECORD.
* Remove some unneeded forward declarations.
* Reorder ACEFLAG to reduce difference to Wine.
CORE-8540

svn path=/trunk/; revision=65045
2014-10-27 17:00:41 +00:00
Amine Khaldi
16c90ce222 [ADVAPI32]
* Zap SidTable.

svn path=/trunk/; revision=65044
2014-10-27 16:30:45 +00:00
Pierre Schweitzer
af8bee9d61 [FASTFAT]
Don't leak reference in case of share access failure.

svn path=/trunk/; revision=65043
2014-10-27 13:39:03 +00:00
Pierre Schweitzer
8c225a0e59 [FASTFAT]
Add sanity checks in VfatSetRenameInformation() to make sure we don't leak any FCB reference

svn path=/trunk/; revision=65042
2014-10-27 13:38:14 +00:00
Pierre Schweitzer
817dfb57e2 [NTFS]
Bugfixing... Part 10/X:
- Properly compute entry name length in CompareFileName()
- Also, in CompareFileName() properly handle the return of RtlCompareUnicodeString(); this is not RtlEqualUnicodeString()!
- In NtfsLookupFileAt(), don't return an error when we're done walking the path, it's a normal behavior

All these fixes allow our NTFS to go one step farther: it can open directory/files (reading files data remains untested so far) in root and in its subdirs. Which was broken previously.
The said bugfixes in action (and in image): http://www.heisspiter.net/~Pierre/rostests/NTFS_listing_subdir.png

svn path=/trunk/; revision=65041
2014-10-27 12:35:58 +00:00
Thomas Faber
6af614fb4a [ADVAPI32]
- Hackfix CORE-8717 to stop 2nd stage from failing. Proper fix will be submitted to Wine.

svn path=/trunk/; revision=65040
2014-10-27 11:52:44 +00:00
James Tabor
f1caf76d48 [NtUser]
- Fix default sizes for desktop resources. See CORE-8659.

svn path=/trunk/; revision=65039
2014-10-27 02:11:08 +00:00
Giannis Adamopoulos
37ebd8e1e4 [BEOWSEUI]
- Simplify shellbrowser.cpp a bit

svn path=/branches/shell-experiments/; revision=65038
2014-10-27 00:39:53 +00:00
Aleksandar Andrejevic
949c27964d [FAST486]
Don't leave the prefetch cache in a possibly invalid state if Fast486ReadLinearMemory
returns FALSE.


svn path=/trunk/; revision=65037
2014-10-27 00:21:06 +00:00
Giannis Adamopoulos
a4feb3fb65 [BROWSUI]
- Fix CAddressBand::Invoke to correctly detect if an item exists in the list and select the correct item when it does.
- Improve CAddressEditBox::Execute to check if the passed pidl is the one that is being displayed.
- Also fix it to parse the path if needed.
- Directly call CAddressEditBox::Execute when enter is pressed or the Go button is pressed
- Should fix most issues with the address bar

svn path=/branches/shell-experiments/; revision=65036
2014-10-26 23:46:35 +00:00
Aleksandar Andrejevic
bc64e37fd1 [FAST486]
Implement an (optional) instruction prefetch cache.
Implement the INVLPG instruction.


svn path=/trunk/; revision=65035
2014-10-26 23:37:54 +00:00
Pierre Schweitzer
dd58a72a8b [KERNEL32]
Prevent a use-after-free issue in GetVolumeNameForVolumeMountPointW()

svn path=/trunk/; revision=65034
2014-10-26 21:09:07 +00:00
Pierre Schweitzer
a71e1f3760 [FASTFAT]
Make sure the appropriate resource is exclusively acquired when playing with FCB references

svn path=/trunk/; revision=65033
2014-10-26 20:29:00 +00:00
Pierre Schweitzer
4a49b030de [FASTFAT]
s/DeviceObject/DeviceExt/g

svn path=/trunk/; revision=65032
2014-10-26 20:23:07 +00:00
Pierre Schweitzer
c9e616ea2b [FASTFAT]
Implement vfatGrabFCB() (which was defined but never implemented) for increasing the reference count on a FCB.
This will make debugging easier.

Dedicated to Thomas :-).

svn path=/trunk/; revision=65031
2014-10-26 20:20:42 +00:00
Amine Khaldi
531323417d [ADVAPI32]
* Update ConvertStringSidToSid{A,W}().
* Fixes some advapi32:security tests.
CORE-8540

svn path=/trunk/; revision=65030
2014-10-26 19:56:15 +00:00
Amine Khaldi
68f176a03b [RASDLG]
* Turkish translation update by Erdem Ersoy.
CORE-7861

svn path=/trunk/; revision=65029
2014-10-26 19:43:01 +00:00
Hervé Poussineau
fa7836ce2a [NTFS] Also return the short file name to caller if available
svn path=/trunk/; revision=65028
2014-10-26 19:10:39 +00:00
Hervé Poussineau
beb81cc389 [NTFS] Prefer long file name when naming objects
We now always see the long file name of an object when browsing NTFS partitions.

svn path=/trunk/; revision=65027
2014-10-26 19:10:17 +00:00
Hervé Poussineau
0a8cd9075d [NTFS] Correctly read indexes
This fixes (at least) an infinite loop when trying to mount some partitions.

svn path=/trunk/; revision=65026
2014-10-26 19:10:04 +00:00
Hervé Poussineau
d345eefe9c [NTFS] Fix some debug prints
svn path=/trunk/; revision=65025
2014-10-26 19:09:52 +00:00
Pierre Schweitzer
d10c7decd5 [FASTFAT]
Acquire DirResource in DoQuery() before attempting to play with FCBs.

This is dedicated to Thomas ;-)

svn path=/trunk/; revision=65024
2014-10-26 18:48:30 +00:00
Eric Kohl
7491f794e3 [NTOS:SE]
Remove the old access check code in SepAccessCheckEx and use the new code instead. The new access check code is a lot better than the old code, but it makes the boot and install fail. This is caused by some kernel objects which are accessed using insufficient access rights. Therefore I added a little hack that shows a warning when insufficient rights are granted for an object and access is granted anyway. 

svn path=/trunk/; revision=65023
2014-10-26 18:39:58 +00:00
Amine Khaldi
f7a65d3155 [ADVAPI32]
* Update GetAclInformation().
CORE-8540

svn path=/trunk/; revision=65022
2014-10-26 17:51:59 +00:00
Thomas Faber
cc4ef02bd0 [CRT]
- Fix strlen/wcslen FPO specification. Spotted by Timo.
- Also add FPO info for memset, memchr, memmove/memcpy

svn path=/trunk/; revision=65021
2014-10-26 17:32:00 +00:00
Giannis Adamopoulos
dffea1c618 [browseui]
- Improve CBaseBar::TranslateAcceleratorIO stub
- Returning always TRUE means that creating a basebar ended up eating all messages
- Fixes the hang that happened when we clicked on the folders button in the toolbar

svn path=/branches/shell-experiments/; revision=65020
2014-10-26 17:16:19 +00:00
David Quintana
f99f83df93 [BROWSEUI]
* Sidebars are not implemented, but it's ok. No need to force a debug break in there.

svn path=/branches/shell-experiments/; revision=65019
2014-10-26 17:06:58 +00:00
Hermès Bélusca-Maïto
d07dc3a5c2 [NTVDM]: Temporarily fix for r65015 before a proper fix.
svn path=/trunk/; revision=65018
2014-10-26 16:56:14 +00:00
Amine Khaldi
b10d8f4686 [ADVAPI32]
* Update GetAce().
CORE-8540

svn path=/trunk/; revision=65017
2014-10-26 16:48:36 +00:00
Amine Khaldi
283d189dda [ADVAPI32]
* Update DeleteAce().
CORE-8540

svn path=/trunk/; revision=65016
2014-10-26 15:59:57 +00:00
Hermès Bélusca-Maïto
53adda2513 [NTVDM]: No need to re-change to a given video mode when it is already set. Fixes strange changes for e.g. some apps that find intelligent to switch 256 times to mode 13h (for example) before continuing to run.
svn path=/trunk/; revision=65015
2014-10-26 15:57:21 +00:00
Pierre Schweitzer
cb5688fcf0 [FASTFAT]
Make FATGetNextDirEntry() and vfatFindDirSpace() complain when they are given a cleaned up FCB (which shouldn't happen!).
They'll display full path, references count, open handles count.

Where are you little reference leak?

svn path=/trunk/; revision=65014
2014-10-26 15:56:20 +00:00
Pierre Schweitzer
caedf961bb [FASTFAT]
Don't leak reference on failure in vfatPrepareTargetForRename().

svn path=/trunk/; revision=65013
2014-10-26 15:35:18 +00:00
Hermès Bélusca-Maïto
454d38da22 [NTVDM]: Return the latched data for keyboard ps/2 port only. Also when starting an app put a ENTER key release into the keyboard buffer because some apps expect it.
svn path=/trunk/; revision=65012
2014-10-26 15:01:14 +00:00
Aleksandar Andrejevic
95928b831b [NTVDM]
Signal the next IRQ on EOI.


svn path=/trunk/; revision=65011
2014-10-26 14:57:44 +00:00
Amine Khaldi
439fa16903 [ADVAPI32]
* Import ADVAPI_GetComputerSid from Wine 1.7.27.
* Apply Wine commit f7a6c4c3 by Detlef Riekenberg: Allow string alias for common RID in sid strings.
CORE-8540

svn path=/trunk/; revision=65010
2014-10-26 11:55:05 +00:00
Hermès Bélusca-Maïto
0de95c0f94 [FAST486][NTVDM]: Do not compile some FPU functions when FAST486_NO_FPU is defined (fixes build).
svn path=/trunk/; revision=65009
2014-10-26 11:50:14 +00:00
Amine Khaldi
41f5ac7550 [ADVAPI32]
* Reorder AceRights to reduce difference to Wine.
CORE-8540

svn path=/trunk/; revision=65008
2014-10-26 11:47:29 +00:00
Amine Khaldi
6d8f72bf65 [ADVAPI32]
* Apply Wine commit e57edfea by Paul Vriens: Skip leading spaces when parsing.
* Update the related functions with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=65007
2014-10-26 10:59:11 +00:00
Amine Khaldi
7a1f0bac68 [ADVAPI32]
* Update CopySid().
CORE-8540

svn path=/trunk/; revision=65006
2014-10-26 10:34:40 +00:00
Hermès Bélusca-Maïto
fd83e0e04f [NTVDM]: Addendum to r64985: correctly display the IPS and the TimerTicks (both of them are *LONGLONG).
svn path=/trunk/; revision=65005
2014-10-26 02:38:07 +00:00
Aleksandar Andrejevic
0c4632c9e5 [NTVDM]
Make sure the offset doesn't exceed the VGA bank size.
Load the latch registers after the loop (optimization).


svn path=/trunk/; revision=65004
2014-10-26 02:29:31 +00:00
Hermès Bélusca-Maïto
1e491f4d40 [NTVDM]: Fix the validity check of the hVdd handle in the port structure so that we don't try to call an invalid VDD IO handler. That fixes stack corruption for example in the case of OUTSB/W operations, where we could call an invalid VDD handler taking 3 parameters that in fact calls (because VDD handlers and our internal ones are stored in a union, the choice of the handler is done via the hVdd value) an internal handler taking only 2 parameters... Bug triggered when testing MSVC-compiled NTVDM in speed-optimized mode. Diagnosed by V. and I, thanks V!
svn path=/trunk/; revision=65003
2014-10-26 02:27:11 +00:00
Hermès Bélusca-Maïto
6a9276ecb9 [DDK]: VDD IO handlers are WINAPI and not something undefined (CDECL ... ?). Double-checked by V.
svn path=/trunk/; revision=65002
2014-10-26 01:28:32 +00:00
Giannis Adamopoulos
845a63443c [user32]
- Properly notify the theme engine that the caption needs to be repainted on WM_SETICON
- Fixes a classic frame appearing when themes are enabled and we navigate to a different folder

svn path=/branches/shell-experiments/; revision=65001
2014-10-26 00:58:52 +00:00
Amine Khaldi
c9b98be5d3 [ADVAPI32]
* Update OpenThreadToken().
CORE-8540

svn path=/trunk/; revision=65000
2014-10-25 22:37:02 +00:00
James Tabor
f65a37a7d0 [NtUser]
- Do not block sending messages from a dying thread. See CORE-7447.

svn path=/trunk/; revision=64999
2014-10-25 22:06:13 +00:00
Eric Kohl
8caa060f52 [NET]
Implement and use console-aware print functions to print strings and resources.

svn path=/trunk/; revision=64998
2014-10-25 21:27:05 +00:00
Timo Kreuzer
75d471db4b [WIN32k]
Stop ASSERTing, that we always have all the resources we need in IntCreateCompatibleBitmap

svn path=/trunk/; revision=64997
2014-10-25 21:16:17 +00:00
Amine Khaldi
23298ac30c * Sync up to trunk head (r64995).
svn path=/branches/shell-experiments/; revision=64996
2014-10-25 19:46:12 +00:00
Amine Khaldi
518b6188ec [WININET_WINETEST]
* ROSTESTS-73 is not fixed yet.

svn path=/trunk/; revision=64995
2014-10-25 18:35:58 +00:00
Amine Khaldi
8a0b31154d [ADVAPI32]
* Update ImpersonateNamedPipeClient().
CORE-8540

svn path=/trunk/; revision=64994
2014-10-25 18:30:05 +00:00
Jérôme Gardou
8680a1f138 [WIN32K]
- Use a palette created from the DIB infos for surface created through CreateDIBitmap(CBM_CREATEDIB)
CORE-8695 #comment Booting in 16bpp mode is now OK, but some problems remain when switching mode from 16bpp to 32bpp

svn path=/trunk/; revision=64993
2014-10-25 18:11:36 +00:00
Jérôme Gardou
35e122d62f [WIN32K]
- Always store alpha-aware cursors in a 32bpp RGB surface.
CORE-8695

svn path=/trunk/; revision=64992
2014-10-25 18:11:31 +00:00
Jérôme Gardou
5211c92255 [WIN32K]
- Avoid leaking handles when loading animated cursors.

svn path=/trunk/; revision=64991
2014-10-25 18:11:27 +00:00
Jérôme Gardou
34a323186d [USER32]
- Fix a stupid buffer overflow I introduced in r64967.
 - Take BITMAPCOREINFO into account when loading a cursor from file.

svn path=/trunk/; revision=64990
2014-10-25 18:11:11 +00:00
Amine Khaldi
147bfd92e5 [ADVAPI32]
* Move a couple functions from sec.c to security.c.
CORE-8540

svn path=/trunk/; revision=64989
2014-10-25 17:46:33 +00:00
Aleksandar Andrejevic
a037c16a5b [FAST486]
The opcode handlers don't need a return value, it's not used anywhere.


svn path=/trunk/; revision=64988
2014-10-25 17:16:37 +00:00
Amine Khaldi
9e3669b4fb [ADVAPI32]
* Update GetKernelObjectSecurity().
CORE-8540

svn path=/trunk/; revision=64987
2014-10-25 16:08:39 +00:00
David Quintana
d07a1dc09a [EXPLORER-NEW]
* Fix HMENU leak.

[BROWSEUI]
* Work around for WM_SETICON not properly returning the old HICON.

[SHELL32]
* Fix HICON leak.
* Nitpick.

[WIN32K]
* Do not refcount the menus improperly.

svn path=/branches/shell-experiments/; revision=64986
2014-10-25 15:44:11 +00:00
Hermès Bélusca-Maïto
ab0736d95a [NTVDM]: So..... do not overflow the Cycles count, i.e. better estimate the number of instructions per second :)
svn path=/trunk/; revision=64985
2014-10-25 15:36:11 +00:00
Amine Khaldi
be62f3c6b3 [ADVAPI32]
* Update AllocateAndInitializeSid().
CORE-8540

svn path=/trunk/; revision=64984
2014-10-25 15:28:29 +00:00
Eric Kohl
c1e082a84a [NET]
Display local group properties and members.

svn path=/trunk/; revision=64983
2014-10-25 14:28:38 +00:00
Amine Khaldi
a3930ce68f [ADVAPI32]
* Update CreateRestrictedToken().
* More advapi32:security tests run now.
CORE-8540

svn path=/trunk/; revision=64982
2014-10-25 14:15:00 +00:00
Amine Khaldi
93ecff8e68 [ADVAPI32]
* Update ADVAPI_IsLocalComputer().
CORE-8540

svn path=/trunk/; revision=64981
2014-10-25 14:02:23 +00:00
Amine Khaldi
21ef917d3f [ADVAPI32]
* Fix set_ntstatus() to use NT_SUCCESS when performing the checks.
CORE-8540

svn path=/trunk/; revision=64980
2014-10-25 13:56:28 +00:00
Amine Khaldi
648ce226ac [ADVAPI32]
* Move some functions from trustee.c to security.c.
CORE-8540

svn path=/trunk/; revision=64979
2014-10-25 12:45:57 +00:00
Amine Khaldi
5781991967 [ADVAPI32]
* Move some functions from sec/misc.c to security.c.
CORE-8540

svn path=/trunk/; revision=64978
2014-10-25 12:30:01 +00:00
Amine Khaldi
2d07e343d6 [ADVAPI32]
* Move CreateProcessWithLogonW() from logon.c to security.c.
CORE-8540

svn path=/trunk/; revision=64977
2014-10-25 12:27:03 +00:00
James Tabor
e4cff1c66a [Win32k]
- Fix a copy paste error, see CORE-8667.
- Set top margin to 2.

svn path=/trunk/; revision=64976
2014-10-25 11:45:47 +00:00
Daniel Reimer
36c59fdf14 [RAPPS]
Updates for some softwares.
Fix several broken mirrors and replace the in theory working one for IrfanView.
Fix some sizes.

svn path=/trunk/; revision=64975
2014-10-25 11:43:51 +00:00
Thomas Faber
23c10d8d81 [CRT]
- Add frame pointer omission information to assembly string functions to fix debugging annoyances. Reviews appreciated

svn path=/trunk/; revision=64974
2014-10-25 00:08:23 +00:00
Christoph von Wittich
2c42dec0d7 [TASKMGR]
fix HMENU leak in TaskManager_OnTabWndSelChange
CORE-8705

svn path=/trunk/; revision=64972
2014-10-24 20:41:25 +00:00
Timo Kreuzer
40369c24e3 [CMAKE]
Improve configure script to allow passing multiple arguments, like "configure VSSolution RTC". Add a small help command ("help" or "/?"), allow passing CMake parameters like -DFOO:BOOL=TRUE after our custom parameters.

svn path=/trunk/; revision=64971
2014-10-24 19:17:58 +00:00
Thomas Faber
33e318ed91 [RTL]
- Implement RtlTryEnterHeapLock and use it to fix RtlpDphEnterCriticalSection

svn path=/trunk/; revision=64970
2014-10-24 19:05:54 +00:00
Jérôme Gardou
5acaa31a62 [WIN32K]
- Properly check for CBM_INIT bit in CreateDIBitmap.
 - Take into account the fact that we could be passed a BITMAPCOREHEADER
CORE-8695

svn path=/trunk/; revision=64969
2014-10-24 18:45:25 +00:00
Amine Khaldi
2252d516b0 [ADVAPI32]
* Move some functions from ac.c to security.c.
CORE-8540

svn path=/trunk/; revision=64968
2014-10-24 17:51:40 +00:00
Jérôme Gardou
954bd930d0 [USER32]
- Use CreateDIBitmap with the CDM_CREATEDIB undocumented flag to create alpha bitmaps. This permits to create display compatible yet 32bpp DDBs.
CORE-8695 #comment PLease retest, should be OK now.

svn path=/trunk/; revision=64967
2014-10-24 17:31:50 +00:00
Jérôme Gardou
a09a102a08 [WIN32K]
- First implementation of CreateDIBitmap with the undocumented CBM_CREATEDIB flag.
CORE-8695

svn path=/trunk/; revision=64966
2014-10-24 17:31:46 +00:00
Jérôme Gardou
de410717f3 [WIN32K]
- Differenciate 16bpp 565 from 16bpp 555 in alphablending code.
 - Fix RGB vs BGR mismatch
CORE-8695

svn path=/trunk/; revision=64965
2014-10-24 17:31:37 +00:00
Thomas Faber
2c1be02837 [WIN32K]
- Move call to UserRegisterClass out of SEH. All parameters are kernel pointers, so exceptions here are critical kernel bugs that shouldn't be hidden.
CORE-8702 #resolve

svn path=/trunk/; revision=64964
2014-10-24 17:28:21 +00:00
Amine Khaldi
f54eb842d6 [ADVAPI32]
* Reorder AllocateLocallyUniqueId() to reduce difference to Wine.
CORE-8540

svn path=/trunk/; revision=64963
2014-10-24 16:57:17 +00:00
Amine Khaldi
7ff75bbc92 [ADVAPI32]
* Move some functions from token.c to security.c.
CORE-8540

svn path=/trunk/; revision=64962
2014-10-24 16:52:57 +00:00
Amine Khaldi
8069b8c90d * Sync up to trunk head (r64959).
svn path=/branches/shell-experiments/; revision=64961
2014-10-24 16:06:58 +00:00
David Quintana
fa016aa3a8 [RSHELL]
* Fix HMENU leak in menu-based shell popups (and menubar).

svn path=/branches/shell-experiments/; revision=64960
2014-10-24 16:03:58 +00:00
Amine Khaldi
598366a6cc [ADVAPI32]
* Move PrivilegeCheck() to security.c.
CORE-8540

svn path=/trunk/; revision=64959
2014-10-24 15:49:52 +00:00
Amine Khaldi
4423aa8bb2 [ADVAPI32]
* Reorder functions and definitions to reduce difference to the Wine source file.
CORE-8540

svn path=/trunk/; revision=64958
2014-10-24 15:40:29 +00:00
Amine Khaldi
51bb98a094 [ADVAPI32]
* Move sid.c to the wine folder as a starting point for security.c.
CORE-8540

svn path=/trunk/; revision=64957
2014-10-24 14:01:16 +00:00
Amine Khaldi
348778c75f [ADVAPI32]
* Move cred.c to the wine folder.
CORE-8540

svn path=/trunk/; revision=64956
2014-10-24 13:37:01 +00:00
Jérôme Gardou
6990f9e443 [WIN32K]
- Keep track of the PDEV which we create a compatible bitmap for.
 - Allow attaching a DDB to a DC if they are from the same PDEV
Fixes various problems after mode switching, including the infamous "Where is desk.cpl palette bitmap"

svn path=/trunk/; revision=64955
2014-10-24 11:35:07 +00:00
Jérôme Gardou
97fcf61354 [WIN32K]
- Do not dereference hook objects when it's not needed.
 - Avoid use after free.
CORE-8698 #resolve

svn path=/trunk/; revision=64954
2014-10-24 11:34:55 +00:00
Jérôme Gardou
7540c2ea36 [WIN32K]
- Add a proper Alpha blending implementation for 16bpp surfaces
CORE-8695

svn path=/trunk/; revision=64953
2014-10-24 11:34:45 +00:00
Thomas Faber
2b44442ffa [NTOS:IO]
- Serialize device enumeration requests
CORE-8697 #resolve

svn path=/trunk/; revision=64952
2014-10-24 10:03:42 +00:00
Thomas Faber
fcae57435c [NTOS:IO]
- Introduce IopDriverLoadResource to protect against concurrent driver loading
CORE-8696 #resolve

svn path=/trunk/; revision=64951
2014-10-24 10:02:14 +00:00
Thomas Faber
2c91c440f1 [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
2014-10-24 09:39:15 +00:00
Thomas Faber
274363e9df [USER32]
- Zero-initialize result in SendMessageTimeout
CORE-8699 #resolve

svn path=/trunk/; revision=64949
2014-10-24 09:26:03 +00:00
Thomas Faber
487818ab87 [USER32_APITEST]
- Add a test for SendMessageTimeout failure case
- Remove a pointless (and broken) memset (Coverity)
CORE-8699

svn path=/trunk/; revision=64948
2014-10-24 09:16:04 +00:00
Timo Kreuzer
02995bf1a1 [NTOSKRNL]
Do not try to dereference Irp->UserIosb if it is NULL, to avoid unnecessary exceptions (inside SEH).

svn path=/trunk/; revision=64947
2014-10-24 07:16:44 +00:00
Thomas Faber
08701eea3f [NTOS:IO]
- Normalize, er.. simplify IopNormalizeImagePath a bit and use pool tagging

svn path=/trunk/; revision=64946
2014-10-23 22:05:56 +00:00
Timo Kreuzer
3b3996b399 [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
2014-10-23 21:52:39 +00:00
David Quintana
108d7f2057 Sync up to trunk HEAD (r64942).
svn path=/branches/shell-experiments/; revision=64943
2014-10-23 20:48:15 +00:00
Jérôme Gardou
9bc147ffd5 [WIN32K]
- Fix hook leaks.
User object manager creates object with 2 (two, deux, zwei, dos) reference counts.

svn path=/trunk/; revision=64942
2014-10-23 20:08:03 +00:00
Amine Khaldi
8039ce5b7d * Sync up to trunk head (r64939).
svn path=/branches/shell-experiments/; revision=64941
2014-10-23 19:52:45 +00:00
David Quintana
ac06c3cf99 [BROWSEUI]
* Fix icon leak of the returned old icon from WM_SETICON.

[RSHELL]
* Add two debug prints (not hit).

[FILEBROWSER]
[EXPLORER-NEW]
* Free PWSTR pointers after exiting.

svn path=/branches/shell-experiments/; revision=64940
2014-10-23 19:50:29 +00:00
Jérôme Gardou
3ef4731492 [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
2014-10-23 19:41:52 +00:00
Jérôme Gardou
25c228cd3f [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
2014-10-23 19:41:42 +00:00
Amine Khaldi
a8e3dcc9e1 [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
2014-10-23 18:58:35 +00:00
Amine Khaldi
73e6ff1519 [PCIX]
* PciIdPrintfAppend is a vararg too.

svn path=/trunk/; revision=64936
2014-10-23 18:51:12 +00:00
Amine Khaldi
a0a95141dd [PCIX]
* PciIdPrintf is a vararg.

svn path=/trunk/; revision=64935
2014-10-23 18:42:39 +00:00
Eric Kohl
903f5b3e03 [NET]
Implement the first part of the NET USER command.

svn path=/trunk/; revision=64934
2014-10-23 18:36:11 +00:00
Amine Khaldi
26272f6095 [COMPBATT]
* Arch, don't return NTSTATUS instead of PCOMPBATT_BATTERY_DATA!

svn path=/trunk/; revision=64933
2014-10-23 18:33:21 +00:00
Amine Khaldi
36609d44e0 [DSOUND]
* ProjectVector is used in commented out code.

svn path=/trunk/; revision=64932
2014-10-23 18:07:43 +00:00
Thomas Faber
863c3c8c19 [NTOS:FORMATTING]
- Try to fix indentation in iomgr/driver.c. Whitespace changes only

svn path=/trunk/; revision=64931
2014-10-23 17:59:16 +00:00
Amine Khaldi
5892b26e03 [WINSPOOL.DRV]
* We're not using any debugging routines here.

svn path=/trunk/; revision=64930
2014-10-23 17:55:42 +00:00
David Quintana
1cd79168e1 [RSHELL]
* CMenuBand: Increase the refcount of m_smc before returning it.
* CMenuBand: Improve the closing logic so that the object is reusable when it needs to be, and can still be released properly.
* CMenuDeskBar: Protect self against unexpected termination.
* CMenuFocusManager: Refcount objects that are being used.
* CStartMenu: Properly release the created objects after it's done using them (by using CComPtr instead of raw pointers).

[BROWSEUI]
* AddressBand: Release the addressband site when closing the band.
* InternetToolbar: Do not filter away ALL the items of the favorites folder.
* InternetToolbar: Do not AddRef a CComPtr that already did the refcounting itself.

CORE-8690

svn path=/branches/shell-experiments/; revision=64929
2014-10-23 17:17:16 +00:00
Jérôme Gardou
532e8139c5 [USER32]
- Fix wrong size check.
Spotted by Thomas

svn path=/trunk/; revision=64926
2014-10-23 15:40:13 +00:00
Thomas Faber
d617e9abfc [NTOS:IO]
- Simplify how IopLoadUnloadDriver is called by making the function queue a work item instead of its caller

svn path=/trunk/; revision=64925
2014-10-23 14:37:51 +00:00
Amine Khaldi
cfb9b0f028 [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
2014-10-23 12:24:07 +00:00
Hermès Bélusca-Maïto
19b3162442 [NTVDM]: Addendum to revision 64917: remove unnecessary casts.
svn path=/trunk/; revision=64923
2014-10-23 12:21:46 +00:00
Amine Khaldi
121e60dbda * Sync up to trunk head (r64921).
svn path=/branches/shell-experiments/; revision=64922
2014-10-23 12:17:44 +00:00
Jérôme Gardou
8cbba79468 [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
2014-10-23 11:46:06 +00:00
Jérôme Gardou
946d03c45b [WIN32K]
- Use shared icon handles when copying the small class icon from the larger one.
CORE-7575

svn path=/trunk/; revision=64920
2014-10-23 11:46:01 +00:00
Jérôme Gardou
f20e2e7a8f [USER32]
- Implement CopyImage(LR_SHARED) case.
CORE-7575

svn path=/trunk/; revision=64919
2014-10-23 11:45:55 +00:00
Jérôme Gardou
796aebbf35 [USER32]
- Cursoricon objects are allocated on the user heap, not the desktop heap.
CORE-7575

svn path=/trunk/; revision=64918
2014-10-23 11:45:50 +00:00
Aleksandar Andrejevic
f991665f09 [FAST486][NTVDM]
Arch, I/O port numbers should always be stored in USHORT variables!


svn path=/trunk/; revision=64917
2014-10-23 11:44:07 +00:00
Jérôme Gardou
03b386d0e0 [USER32_APITEST]
- Add a test showing that CopyImage accepts LR_SHARED flag.
CORE-7575

svn path=/trunk/; revision=64916
2014-10-23 11:19:21 +00:00
Jérôme Gardou
f0e276168d [WIN32K]
- Call IntDestroyCurIconObject instead of explicitly destroying the handle.
CORE-7575

svn path=/trunk/; revision=64915
2014-10-23 09:52:57 +00:00
Jérôme Gardou
6e51ca263b [WIN32K]
- Reference cursor and icon objects when copying a class from one heap to another.
CORE-7575

svn path=/trunk/; revision=64914
2014-10-23 09:32:46 +00:00
Jérôme Gardou
78c8971f65 [USER32]
- Return the right value in CopyImage when copying cursors/icons
CORE-7575

svn path=/trunk/; revision=64913
2014-10-23 09:32:43 +00:00
Jérôme Gardou
54592b1afb [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
2014-10-23 09:32:39 +00:00
Jérôme Gardou
797a6346f2 [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
2014-10-23 09:32:21 +00:00
Timo Kreuzer
8dc7d09ca1 [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
2014-10-23 09:22:45 +00:00
Timo Kreuzer
70bd834afe [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
2014-10-23 09:05:32 +00:00
Kamil Hornicek
0f21d941ce [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
2014-10-22 20:05:32 +00:00
Thomas Faber
b990d9a4c9 [RTL]
- Address a review comment by Timo -- use more explicit comparison

svn path=/trunk/; revision=64907
2014-10-22 19:40:13 +00:00
Thomas Faber
d13df46fe4 [NTOS:FORMATTING]
- Trip trailing whitespace in Io/Pnp

svn path=/trunk/; revision=64906
2014-10-22 19:34:46 +00:00
Timo Kreuzer
5c0f6850a4 [XDK/DDK]
Improve debugprint in __assert_annotationA/W

svn path=/trunk/; revision=64905
2014-10-22 19:30:27 +00:00
Kamil Hornicek
93d7ffd181 [SERVMAN]
- better fix for CDI 513719, LVText might not be null terminated - spotted by Timo

svn path=/trunk/; revision=64904
2014-10-22 19:28:33 +00:00
Timo Kreuzer
86018d03c4 [NTOSKRNL]
- Fix potential use-after-free CID 732509
- Fix buffer size in call to ObQueryNameString

svn path=/trunk/; revision=64903
2014-10-22 19:20:03 +00:00
Hervé Poussineau
f42c9182f2 [NTOS:IO] Replace an error message by an assert
This was expected to be done soon after r32518.

svn path=/trunk/; revision=64902
2014-10-22 19:17:13 +00:00
Amine Khaldi
a1bc1edda7 [ADVAPI32/CRED]
* Sync with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64901
2014-10-22 18:41:40 +00:00
Amine Khaldi
3bfe9ee622 [ADVAPI32/CRYPT]
* Sync with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64900
2014-10-22 18:29:59 +00:00
Amine Khaldi
eabfb53a71 [PSDK]
* Add missing PFE_IMPORT_FUNC and WriteEncryptedFileRaw.

svn path=/trunk/; revision=64899
2014-10-22 18:26:47 +00:00
Amine Khaldi
d7530c0ea5 [KERNEL32]
* Zap szCountryListName.
* Comment out unused charset_names and strcpynAtoW.
CORE-8540

svn path=/trunk/; revision=64898
2014-10-22 18:05:36 +00:00
Amine Khaldi
5bc272dbc3 [KERNEL32]
* Sync GetStringTypeW with Wine 1.7.27.
* Allows more kernel32:locale tests to run.
CORE-8540

svn path=/trunk/; revision=64897
2014-10-22 17:58:58 +00:00
Amine Khaldi
1994661271 [KERNEL32]
* Sync LCMapString{A,W} with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64896
2014-10-22 17:52:18 +00:00
Amine Khaldi
06e986393a * Sync up to trunk head (r64894).
svn path=/branches/shell-experiments/; revision=64895
2014-10-22 17:07:43 +00:00
Amine Khaldi
c094a9b51f [CMAKE]
* Allow the use of the LOCATION property with new CMake versions.

svn path=/trunk/; revision=64894
2014-10-22 16:56:56 +00:00
Amine Khaldi
f47eeb21ab [TASKMGR]
* Minor style changes in wWinMain.

svn path=/trunk/; revision=64893
2014-10-22 16:51:25 +00:00
Amine Khaldi
4ef9ff28e2 [KERNEL32]
* Zap NLS_RegEnumSubKey.

svn path=/trunk/; revision=64892
2014-10-22 16:43:19 +00:00
Amine Khaldi
18ec4d369d [KERNEL32]
* Replace EnumSystemGeoID with the one from Wine 1.7.27.
* Fixes some kernel32:locale tests.
CORE-8540

svn path=/trunk/; revision=64891
2014-10-22 16:40:54 +00:00
Kamil Hornicek
6f16539c0c [TASKMGR]
- fix CIDs 731628 (unlikely buffer overrun), 500038 (dead code), 1101977 (unchecked return value)

svn path=/trunk/; revision=64890
2014-10-22 16:01:24 +00:00
Thomas Faber
6256673633 [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
2014-10-22 13:26:50 +00:00
Thomas Faber
2e4b0e9661 [NTOS:MM]
- Add missing call to ExpSeedHotTags

svn path=/trunk/; revision=64888
2014-10-22 13:18:10 +00:00
Thomas Faber
5c565a4740 [NTOS:KE]
- Issue the appropriate bug check codes when faulting in special pool
CORE-8680

svn path=/trunk/; revision=64887
2014-10-22 13:13:31 +00:00
Thomas Faber
2c09a3d5af [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
2014-10-22 13:04:57 +00:00
Thomas Faber
f67ab25a16 [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
2014-10-22 12:29:31 +00:00
Kamil Hornicek
a48fe43631 [MSCONFIG]
- fix CID 503793 (unlikely NULL pointer dereference), 514558 (check return value)

svn path=/trunk/; revision=64884
2014-10-22 12:13:40 +00:00
Amine Khaldi
27938d24c5 [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
2014-10-21 23:02:21 +00:00
Kamil Hornicek
2ee22c5764 [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
2014-10-21 22:58:23 +00:00
Hermès Bélusca-Maïto
c7f4cb10e3 [FAST486]: Rename some 0F0x opcodes to "ExtOpcode..." to clarify what they are and where they are used.
svn path=/trunk/; revision=64881
2014-10-21 21:18:23 +00:00
Kamil Hornicek
a90ae59c2a [USER32]
- fix CID 514402 (by Christoph)
[MMIXER]
- fix CID 503774, 715945, 511119
[WS2_32_NEW]
- fix a debug print

svn path=/trunk/; revision=64880
2014-10-21 21:08:51 +00:00
Jérôme Gardou
12faa73856 [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
2014-10-21 19:57:03 +00:00
Jérôme Gardou
68fb2f6899 [I_KNEW_IT]
- InterlockedDecrement(JeromesBuildFailures)

svn path=/trunk/; revision=64878
2014-10-21 19:14:47 +00:00
Jérôme Gardou
1c19d25eb3 [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
2014-10-21 18:59:44 +00:00
Jérôme Gardou
f696300a7a [WIN32K]
- Use the first frame of an animated cursor in case we're trying to use one.

svn path=/trunk/; revision=64876
2014-10-21 18:59:39 +00:00
Jérôme Gardou
19cf379c80 [WIN32K]
- Refcount++ the process info when we're adding it to a cursor process list.
CORE-8661

svn path=/trunk/; revision=64875
2014-10-21 18:59:34 +00:00
Amine Khaldi
359e6346cd [KERNEL32]
* Sync casemap.c with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64874
2014-10-21 18:42:12 +00:00
Amine Khaldi
d8fff8998e [IP]
* Zap tcp_state_str.

svn path=/trunk/; revision=64873
2014-10-21 18:39:22 +00:00
Amine Khaldi
3f32c3a15d [KERNEL32]
* Sync format_msg.c with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64872
2014-10-21 18:25:34 +00:00
Kamil Hornicek
cd1f57b5d4 [CMD]
- fix resource leaks CID 716324, 716323, 716322, 716321, 716320, 716319, 716318

svn path=/trunk/; revision=64871
2014-10-21 16:05:54 +00:00
Amine Khaldi
8d45f7ba25 [STRMBASE]
* Zap InputPin_Vtbl, OutputPin_Vtbl and impl_BaseInputPin_from_BasePin(). Already accepted upstream.

svn path=/trunk/; revision=64870
2014-10-21 15:52:51 +00:00
Amine Khaldi
931a7cbb25 [XCOPY_WINETEST]
* Import from Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64869
2014-10-21 15:50:16 +00:00
Thomas Faber
7b84cd051b [WIN32K]
- Fix DCE list entry handling
CORE-8669 #resolve

svn path=/trunk/; revision=64868
2014-10-21 14:28:16 +00:00
Thomas Faber
268d1c62fe [RTL]
- Fix a buffer overflow in RtlSetBits/RtlClearBits

svn path=/trunk/; revision=64867
2014-10-21 14:22:28 +00:00
David Quintana
a44f907d52 [USER32]
* 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=/branches/shell-experiments/; revision=64866
2014-10-21 13:32:00 +00:00
Thomas Faber
dfde71668b [WIN32K]
- Remove bug-hiding list macros that accept NULL in LIST_ENTRYs.
CORE-8668 #resolve

svn path=/trunk/; revision=64865
2014-10-21 12:43:15 +00:00
David Quintana
9abc368186 [EXPLORER-NEW]
* Cleanup in case of error. CID 1248426

[RSHELL]
* Add uninitialized class fields. CID 1248477
* Avoid leaking memory. CID 1248438

[BROWSEUI]
* Fix potential overwriting of a variable. CID 716363
* Save the rshell handle instead of loading it every time. CID 1248435
* Fix leaked PIDL. CID 1248418 

[SHELL32]
* Fix GCC build. And one small nickpick that has been bothering me for a long time.

svn path=/branches/shell-experiments/; revision=64864
2014-10-21 12:24:15 +00:00
Jérôme Gardou
2e2957d928 [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
2014-10-21 10:45:55 +00:00
Jérôme Gardou
84c07bcc10 [WIN32K]
- Avoid use after free in debug configuration
CORE-8661 #resolve

svn path=/trunk/; revision=64862
2014-10-21 10:45:49 +00:00
Jérôme Gardou
a336377ef4 [CMAKE]
- link keyboard layout modules to gcc_ssp if the stack protector is enabled.

svn path=/trunk/; revision=64861
2014-10-21 10:45:36 +00:00
James Tabor
64057f44f9 [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
2014-10-21 03:13:21 +00:00
James Tabor
5c5affcc22 [Win32k]
- rpdeskParent can be NULL and should not be depended on! Fixes CORE-8665.

svn path=/trunk/; revision=64859
2014-10-21 03:02:07 +00:00
David Quintana
96cdae0a7c [BROWSEUI]
* SHOnCWMCommandLine: Fix IETHREADPARAM leak.

[SHELL32]
* Fix HMENU leak of the popup used in the view mode button of the toolbar.

[RSHELL]
* Undo a previous change to help debug the leaks.
* Remove child submenus when closing a menu band.
* Add some extra verification for debugging purposes. 

[BROWSEUI]
[RSHELL]
[SHELL32]
* Move ReleaseCComPtrExpectZero to the shared header.

svn path=/branches/shell-experiments/; revision=64858
2014-10-20 21:35:22 +00:00
David Quintana
b138a8620d [EXPLORER-NEW]
* Initialize struct contents to zero. CID 1102492

[BROWSEUI]
* Fix build.

svn path=/branches/shell-experiments/; revision=64857
2014-10-20 21:23:32 +00:00
Sylvain Petreolle
ccf02b054c [UNIATA]
Update to 0.45b1.
CORE-8280 #resolve

svn path=/trunk/; revision=64856
2014-10-20 21:21:43 +00:00
Sylvain Petreolle
1a453ba5b6 [UNIATA]
Update to 0.45b.
CORE-8280

svn path=/trunk/; revision=64855
2014-10-20 21:20:35 +00:00
David Quintana
fd029c9779 [RSHELL]
[SHELL32]
[BROWSEUI]
* Move undocshell.h to a shared location, and move some shared utility functions into it.
* Replace all the COM object constructor functions with generic equivalents.
* Fixes a big bunch of "problems" found by Coverity Scan, but I don't have the list of CID at the moment.

svn path=/branches/shell-experiments/; revision=64854
2014-10-20 21:09:55 +00:00
Pierre Schweitzer
8dfcb13a92 [KERNEL32]
Don't care for the return value (yet?) of StringCbPrintfW. This fixes release build.

svn path=/trunk/; revision=64853
2014-10-20 20:26:07 +00:00
Hermès Bélusca-Maïto
34aaa8fdf4 [NTVDM]: Now that HLT is implemented, use it in the INT32 handlers.
svn path=/trunk/; revision=64852
2014-10-20 19:45:37 +00:00
Hermès Bélusca-Maïto
705dcd2d05 [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
2014-10-20 19:42:52 +00:00
Amine Khaldi
e46ceff760 [STRMBASE]
* Zap TransformFilter_Vtbl. Already accepted upstream.

svn path=/trunk/; revision=64850
2014-10-20 17:38:06 +00:00
Amine Khaldi
2047c64c1f [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
2014-10-20 17:35:22 +00:00
Kamil Hornicek
7d9706dd1f [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
2014-10-20 14:26:47 +00:00
Christoph von Wittich
923584ae2a [devmgr]
don't free stack memory with LocalFree
CID 1101901

svn path=/trunk/; revision=64846
2014-10-20 13:32:33 +00:00
Kamil Hornicek
6beb0e5668 [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
2014-10-20 13:08:42 +00:00
Christoph von Wittich
df8c74d505 [explorer]
DragQueryFile expects size in characters

svn path=/trunk/; revision=64844
2014-10-20 10:05:30 +00:00
Thomas Faber
09f50240a3 [FASTFAT]
- Move FCB list removal to vfatDelFCBFromTable, since vfatAddFCBToTable does the insert. Fixes list corruption in vfatUpdateFCB.

svn path=/trunk/; revision=64843
2014-10-20 09:31:50 +00:00
Christoph von Wittich
bd73779966 [cmd/help]
do not call wcslen on uninitialized variable

svn path=/trunk/; revision=64842
2014-10-20 09:21:08 +00:00
Christoph von Wittich
c453a6b8d7 [cmd]
GetDateFormat expects size in characters

svn path=/trunk/; revision=64841
2014-10-20 08:47:57 +00:00
Thomas Faber
851df094ac [KERNEL32]
- Fix MSVC build

svn path=/trunk/; revision=64840
2014-10-20 08:30:55 +00:00
Thomas Faber
46c2db7796 [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
2014-10-20 08:08:50 +00:00
Thomas Faber
00ee551726 [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
2014-10-19 22:12:06 +00:00
Christoph von Wittich
d0697e4b3d [videoprt]
fix uninitialized variable usage in error case

svn path=/trunk/; revision=64837
2014-10-19 21:57:29 +00:00
Pierre Schweitzer
b70df35327 [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
2014-10-19 21:38:32 +00:00
Christoph von Wittich
39c0fb7d1f [regsrv32]
don't free hDll twice

svn path=/trunk/; revision=64835
2014-10-19 21:30:26 +00:00
Eric Kohl
7cd22fe762 [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
2014-10-19 20:12:19 +00:00
Pierre Schweitzer
a0149739ce [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
2014-10-19 20:12:14 +00:00
Pierre Schweitzer
3b8b4734d6 [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
2014-10-19 19:48:52 +00:00
Timo Kreuzer
211e68d9b1 [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
2014-10-19 19:37:55 +00:00
Amine Khaldi
609ba8d717 * Sync up to trunk head (r64829).
svn path=/branches/shell-experiments/; revision=64830
2014-10-19 18:45:40 +00:00
Pierre Schweitzer
064ac54c96 [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
2014-10-19 17:43:37 +00:00
Hermès Bélusca-Maïto
aa15945793 [NTVDM]: fix MIPS count in cases display delays get longer than 1 sec...
svn path=/trunk/; revision=64828
2014-10-19 17:24:57 +00:00
Amine Khaldi
fabcc9ac05 [USER32]
* We're not using any debugging routines here.

svn path=/trunk/; revision=64827
2014-10-19 17:24:43 +00:00
Timo Kreuzer
be627c2e59 [WIN32K]
Fix uninitialized variable use.

svn path=/trunk/; revision=64826
2014-10-19 16:37:27 +00:00
Pierre Schweitzer
e0b6d85507 [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
2014-10-19 16:29:38 +00:00
Aleksandar Andrejevic
bff1bdafaf [FAST486]
The r64823 patch was not properly merged.


svn path=/trunk/; revision=64824
2014-10-19 15:02:37 +00:00
Aleksandar Andrejevic
c46f3aa372 [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
2014-10-19 14:46:02 +00:00
Timo Kreuzer
50e22a432f [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
2014-10-19 13:17:49 +00:00
Timo Kreuzer
74cb166477 [CRT]
Fix MSVC global constructor initialization.

svn path=/trunk/; revision=64821
2014-10-19 10:27:22 +00:00
Hermès Bélusca-Maïto
a4a867f83a 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
2014-10-19 00:05:18 +00:00
Hermès Bélusca-Maïto
b858c18208 Fix whitespace, and get rid of that sh*tty K&R style.
svn path=/trunk/; revision=64819
2014-10-18 23:59:25 +00:00
Hermès Bélusca-Maïto
eea6067270 [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
2014-10-18 23:51:35 +00:00
Timo Kreuzer
2b55d972ca [CRT]
Implement __do_global_ctors for MSVC

svn path=/trunk/; revision=64817
2014-10-18 21:38:07 +00:00
Timo Kreuzer
400a2c65cf [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
2014-10-18 21:22:52 +00:00
Timo Kreuzer
91dd4cbea0 [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
2014-10-18 21:12:12 +00:00
Hervé Poussineau
8325f695c5 [ACPI] Fix some traces
svn path=/trunk/; revision=64814
2014-10-18 21:09:31 +00:00
Hervé Poussineau
6cba55f89e [CMLIB] Add an assert to track potential registry corruptions
svn path=/trunk/; revision=64813
2014-10-18 21:08:40 +00:00
Timo Kreuzer
e1db75d329 [AMD64]
Fix build

svn path=/trunk/; revision=64812
2014-10-18 21:01:17 +00:00
Timo Kreuzer
e80c501cf4 [FREELDR]
Apply proper indentation, no code change.

svn path=/trunk/; revision=64811
2014-10-18 19:01:53 +00:00
Amine Khaldi
423388ab06 [USER32]
* WINEMessageTypeNames is only used in a case wrapped inside #ifndef __REACTOS__.

svn path=/trunk/; revision=64810
2014-10-18 18:41:15 +00:00
Amine Khaldi
02c5aaa0bd [USER32]
* We're not using any debugging routines here.

svn path=/trunk/; revision=64809
2014-10-18 18:37:28 +00:00
Amine Khaldi
2864422049 [CMAKE/MSVC]
* Rename the lib to runtmchk. Really.
CORE-8626

svn path=/trunk/; revision=64808
2014-10-18 14:45:02 +00:00
Amine Khaldi
df43f0f0a0 [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
2014-10-18 14:22:09 +00:00
Amine Khaldi
ee8be36736 [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
2014-10-18 14:16:54 +00:00
Amine Khaldi
9b9d883909 [FRAMEBUF_NEW]
* Use set_module_type() instead of the combination of set_entrypoint(), set_subsystem() and set_image_base().

svn path=/trunk/; revision=64805
2014-10-18 14:12:41 +00:00
Amine Khaldi
9f58c0ec69 [CMAKE]
* Fix inconsistencies around kernel mode dlls handling.

svn path=/trunk/; revision=64804
2014-10-18 14:09:11 +00:00
Hermès Bélusca-Maïto
dcd0795cd0 [FAST486]: Implement a basic support for the Trap Flag.
svn path=/trunk/; revision=64803
2014-10-18 14:08:50 +00:00
Amine Khaldi
9333ffdf62 [APITESTS/W32KDLL_*]
* Use set_module_type() instead of set_entrypoint().

svn path=/trunk/; revision=64802
2014-10-18 14:00:20 +00:00
Amine Khaldi
2ebfae067a [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
2014-10-18 13:13:20 +00:00
Pierre Schweitzer
e2a846bea8 [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
2014-10-18 12:18:37 +00:00
Kamil Hornicek
4a58f77497 [SHELL32]
- fix a copy paste error
CID 1101990

svn path=/trunk/; revision=64799
2014-10-18 10:33:49 +00:00
Thomas Faber
71451cf5dd [MOUNTMGR]
- Fix IsDriveLetter. CID 1206760.

svn path=/trunk/; revision=64798
2014-10-18 10:11:02 +00:00
Thomas Faber
e383d6c605 [CDROM]
- Remove invalid frees. CID 511759.

svn path=/trunk/; revision=64797
2014-10-18 09:52:14 +00:00
Amine Khaldi
c0e495f046 [CMAKE]
* Addendum to r64795.
* Also remove unneeded wine linking and ntdll importing.
* Remove redundant defines.

svn path=/trunk/; revision=64796
2014-10-17 23:29:24 +00:00
Amine Khaldi
2bdcf8789d [CMAKE]
* Make the minimum required version 2.8.
* Remove redundant psdk dependencies.
* Tidy up CMake files.

svn path=/trunk/; revision=64795
2014-10-17 23:28:29 +00:00
Hermès Bélusca-Maïto
fd8e3415c8 [NTVDM]: simplify code and add a reference link concerning the CrtColorPaletteMask mask.
svn path=/trunk/; revision=64794
2014-10-17 22:27:34 +00:00
Pierre Schweitzer
60d3d2c399 [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
2014-10-17 22:17:59 +00:00
Hermès Bélusca-Maïto
f9ec8698fc [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
2014-10-17 22:08:51 +00:00
Amine Khaldi
44a73d10bc [CMAKE/KEYBOARD]
* Improve the way we handle keyboard layouts.

svn path=/trunk/; revision=64791
2014-10-17 20:41:58 +00:00
Sylvain Petreolle
cab7763783 [EXT2FS]
Properly fix warnings on MSVC, introduced in r38302.
"- 'allowwarnings=true' -- not anymore", they said.
Advice by ThFabba.

svn path=/trunk/; revision=64790
2014-10-17 19:27:29 +00:00
James Tabor
df36f5a015 [User32Test]
- Turn off tracking pop up menu tests. See CORE-8299.

svn path=/trunk/; revision=64789
2014-10-17 17:48:35 +00:00
James Tabor
1f5f256e01 [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
2014-10-17 16:43:46 +00:00
Kamil Hornicek
adf80f6d59 [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
2014-10-17 16:39:54 +00:00
Aleksandar Andrejevic
ec863ef510 [NTVDM]
Add an 8x14 font to the video BIOS.
Font data provided by Roy Tam.


svn path=/trunk/; revision=64786
2014-10-17 14:15:43 +00:00
Amine Khaldi
c47d138515 [USER32_WINETEST]
* Sync with Wine 1.7.27.
* Jim! help!
CORE-8540

svn path=/trunk/; revision=64785
2014-10-17 13:49:22 +00:00
Amine Khaldi
a0b621c3e4 [ADVAPI32_WINETEST]
* Sync with Wine 1.7.27.
CORE-8540

svn path=/trunk/; revision=64784
2014-10-17 13:36:13 +00:00
Amine Khaldi
d38402977a [PSDK]
* Add missing PROCESS_SET_LIMITED_INFORMATION and THREAD_RESUME.

svn path=/trunk/; revision=64783
2014-10-17 13:35:59 +00:00
Thomas Faber
74ea894067 [PING]
- Remove a broken "optimization"
CORE-7509 #resolve

svn path=/trunk/; revision=64782
2014-10-17 13:21:06 +00:00
Amine Khaldi
0854129ae9 [KDCOM]
* Use set_module_type() instead of combining set_entrypoint() and set_image_base().

svn path=/trunk/; revision=64781
2014-10-17 11:12:03 +00:00
Amine Khaldi
2e2fd94fa3 [CMAKE]
* Fix IMAGEBASE handling.

svn path=/trunk/; revision=64780
2014-10-17 11:10:47 +00:00
Amine Khaldi
3331eff2ba [LIBXML2]
* Update to v2.9.2.
CORE-8642

svn path=/trunk/; revision=64779
2014-10-17 10:58:01 +00:00
Thomas Faber
e5a60cbf1b [NPFS]
- Arch, pool tags are specified in reverse order

svn path=/trunk/; revision=64778
2014-10-17 10:04:57 +00:00
Amine Khaldi
5a93a71d04 [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
2014-10-17 07:59:29 +00:00
Pierre Schweitzer
3fa669eddb [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
2014-10-17 06:55:52 +00:00
Hermès Bélusca-Maïto
13b500f258 [FAST486]: Use psh/poppack.h here too.
svn path=/trunk/; revision=64775
2014-10-17 02:31:14 +00:00
Hermès Bélusca-Maïto
a12d0f001f [FAST486]: rename some structs and use #include <pshpack/poppack.h> for portability purposes.
svn path=/trunk/; revision=64774
2014-10-17 02:29:48 +00:00
Hermès Bélusca-Maïto
f9278312d9 [FAST486]: Do not call RtlCopyMemory for copying few bytes (2 and 4).
svn path=/trunk/; revision=64773
2014-10-16 21:48:18 +00:00
Thomas Faber
9bc2c3ba15 [NPFS]
- Don't return a canceled IRP from NpRemoveDataQueueEntry.

svn path=/trunk/; revision=64772
2014-10-16 21:43:03 +00:00
Pierre Schweitzer
104149a180 [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
2014-10-16 21:37:27 +00:00
Timo Kreuzer
08a4791b4a {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
2014-10-16 21:33:32 +00:00
Jérôme Gardou
6b2a5b98f0 [TCPIP]
- Fix potential NULL pointer dereference

svn path=/trunk/; revision=64769
2014-10-16 20:15:33 +00:00
Jérôme Gardou
e9067c2bda [INCLUDE/IDL]
- Properly mark some arguments as [out] only for wlansvc interface.

svn path=/trunk/; revision=64768
2014-10-16 20:15:26 +00:00
Jérôme Gardou
cac835f291 [USERENV]
- Add proper stubs for GetAppliedGPOList[A,W]
CORE-8636

svn path=/trunk/; revision=64767
2014-10-16 20:15:13 +00:00
Jérôme Gardou
84ff0ecbd0 [PSDK]
- Add GetAppliedGPOList[A,W] declarations
CORE-8636

svn path=/trunk/; revision=64766
2014-10-16 20:14:25 +00:00
Pierre Schweitzer
682e176eca [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
2014-10-16 20:05:36 +00:00
Amine Khaldi
b5e8d798e9 [WIN32K]
* Zap EGAColorsTriples and DefLogPaletteTriples.
* Remove extra () around a comparison.

svn path=/trunk/; revision=64764
2014-10-16 19:14:52 +00:00
Thomas Faber
e67bbc79a9 [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
2014-10-16 16:57:11 +00:00
Thomas Faber
32f8a44f8e [NPFS]
- Don't call RtlEqualUnicodeString (paged code) while holding a spin lock. Powered by Driver Verifier.

svn path=/trunk/; revision=64762
2014-10-16 16:40:13 +00:00
Thomas Faber
c38e07c128 [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
2014-10-16 16:36:17 +00:00
Jérôme Gardou
a28fa3fdf0 [SPEC2DEF]
- Fix typo: PRix64 --> PRIx64
 - Use GUID to trace 'int128' arguments, as that's what they almost always are.

svn path=/trunk/; revision=64760
2014-10-16 09:23:33 +00:00
Aleksandar Andrejevic
66202b4312 [NTVDM]
Fix the IRQ priority and routing in PicGetInterrupt.


svn path=/trunk/; revision=64759
2014-10-16 01:41:24 +00:00
Timo Kreuzer
cb9e70d5f7 [RunTmChk]
Fix a typo, remove a spare int 3, add file headers with BSD license

svn path=/trunk/; revision=64758
2014-10-15 22:44:26 +00:00
Timo Kreuzer
75c6300b37 [NTOSKRNL]
Don't use an uninitialized variable in MmArmAccessFault (Alex, please review). Brought to you by MSVC runtime checks.

svn path=/trunk/; revision=64757
2014-10-15 22:03:50 +00:00
Timo Kreuzer
911faa3a6f [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
2014-10-15 21:54:12 +00:00
Hermès Bélusca-Maïto
e5e46c1db5 [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
2014-10-15 21:31:51 +00:00
Pierre Schweitzer
a32e6674f9 [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
2014-10-15 21:02:05 +00:00
Pierre Schweitzer
560d00e49b [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
2014-10-15 20:36:30 +00:00
Pierre Schweitzer
d71653b9cb [NTFS]
Implement NtfsDateTimeToFileTime() which convert epoch time (1970) to Windows time (1601) 

svn path=/trunk/; revision=64752
2014-10-15 20:23:47 +00:00
David Quintana
11bbfc4a0b [RSHELL]
* Actually send an OnSelect message right before executing the menu items. Fixes the problem where going to start->shutdown would keep the start menu open in the background.

svn path=/branches/shell-experiments/; revision=64727
2014-10-13 16:09:57 +00:00
David Quintana
ec0cfbe374 [MSGINA]
* Fix an exception in the shutdown dialog that was silently eaten by the window proc.

svn path=/branches/shell-experiments/; revision=64725
2014-10-13 16:07:19 +00:00
Amine Khaldi
87f3265217 * Sync up to trunk head (r64716).
svn path=/branches/shell-experiments/; revision=64718
2014-10-13 12:23:44 +00:00
David Quintana
e052b025f2 [SHELL32]
* Fix another comment.
* Fix a cch/cb bug.
* Make use of the DSA_DestroyCallback function instead of messing around with the internals of the DSA.
CORE-8564

svn path=/branches/shell-experiments/; revision=64646
2014-10-09 12:54:29 +00:00
David Quintana
bd7fc320f2 Note to self: Flush mind before committing.
svn path=/branches/shell-experiments/; revision=64631
2014-10-09 00:13:05 +00:00
David Quintana
4adeeffd92 [SHELL32]
* Rewrite SHFileOperationA using human-readable code.
CORE-8564

svn path=/branches/shell-experiments/; revision=64630
2014-10-09 00:10:20 +00:00
David Quintana
13c5c447a2 [RSHELL]
[BROWSEUI]
* Add some traces

[SHELL32]
* Implement displaying the View popup from the toolbar. 

svn path=/branches/shell-experiments/; revision=64596
2014-10-08 15:25:52 +00:00
David Quintana
247aff1fe6 [BROWSEUI]
* Fix opening folder windows on desktop process.

svn path=/branches/shell-experiments/; revision=64580
2014-10-07 20:23:52 +00:00
David Quintana
1147974a95 [RSHELL]
* Work around shellexecute not handling GUID path components by giving them to explorer as a cmdline parameter.
* NOTE: The Printers and Faxes option is temporarily disabled because it CRASHES explorer-new.

svn path=/branches/shell-experiments/; revision=64579
2014-10-07 14:45:32 +00:00
David Quintana
d9f777ce1c [FILEBROWSER]
* Always open separate.

[BROWSEUI]
* Use the threadref IUnknown for reference counting in the browser threads.

svn path=/branches/shell-experiments/; revision=64578
2014-10-07 14:40:33 +00:00
David Quintana
db5b0c31c4 Sync with trunk r64509.
svn path=/branches/shell-experiments/; revision=64510
2014-10-03 19:20:19 +00:00
David Quintana
b4c329189a [MSGINA]
* We don't keep changelogs in the file headers anymore. That's what the SVN commit history is for.
CORE-7559

svn path=/branches/shell-experiments/; revision=64406
2014-09-29 21:49:42 +00:00
David Quintana
da3e45f868 * Sync with trunk r64401.
svn path=/branches/shell-experiments/; revision=64405
2014-09-29 21:34:53 +00:00
David Quintana
36f8c65080 Stupid SVN doesn't add new files to the working cope when importing a patch, for some reason I can't comprehend.
svn path=/branches/shell-experiments/; revision=64404
2014-09-29 20:22:22 +00:00
David Quintana
257a0de098 [MSGINA]
[SHELL32]
 * Implement shell shutdown using a proper shutdown dialog. Patch by Lee Schroeder with a small change to fix MSVC build.
CORE-7559 #comment Commited into shell-experiments branch r64403. 

svn path=/branches/shell-experiments/; revision=64403
2014-09-29 20:14:21 +00:00
David Quintana
6aaa167a00 [RSHELL]
* Implement skeleton shell dde parser.

[SHELL32]
* Copy over the skeleton from rshell, and fill in the handlers for ViewFolder and ExploreFolder, with rudimentary implementations.

CORE-7552

svn path=/branches/shell-experiments/; revision=64395
2014-09-29 16:22:21 +00:00
Amine Khaldi
42040abadc * Sync up to trunk head (r64377).
svn path=/branches/shell-experiments/; revision=64380
2014-09-28 20:18:27 +00:00
Amine Khaldi
840c5ea8f7 [FILEBROWSER]
* Fix build.

svn path=/branches/shell-experiments/; revision=64377
2014-09-28 19:18:34 +00:00
David Quintana
1e44d47830 [BROWSEUI]
* Implement SHCreateFromDesktop and supporting functions, and move those implementations to their own file.

[SHELL32]
* Handle message 1035 from the desktop window.

[SHLWAPI]
* Fix a bug in SHAllocShared, where source and destination parameters were reversed.

[EXPLORER-NEW]
* Use SHCreateFromDesktop to open the new window.

NOTE: There appears to be some more problems with the SH*Shared implementation, beyond the swapped parameters, which prevent the opening of the new windows. These functions will have to be revised and the corrected implementation sent to WINE.

svn path=/branches/shell-experiments/; revision=64314
2014-09-26 14:47:07 +00:00
David Quintana
1bc1185f8a Sync with trunk r64222.
svn path=/branches/shell-experiments/; revision=64225
2014-09-22 12:51:09 +00:00
Amine Khaldi
18a81d5d1e [SHELL-EXPERIMENTS]
* Sync up to trunk head (r64124).

svn path=/branches/shell-experiments/; revision=64126
2014-09-12 19:21:19 +00:00
David Quintana
9c947e10d2 [EXPLORER-NEW]
* Fix GCC build

svn path=/branches/shell-experiments/; revision=64125
2014-09-12 12:44:28 +00:00
David Quintana
e70e3650ed [EXPLORER-NEW]
* <+smiley1_> could you please create a subroutine for that?

svn path=/branches/shell-experiments/; revision=64109
2014-09-10 17:26:47 +00:00
David Quintana
f6f5fd7017 [EXPLORER-NEW]
* Implement Taskbar auto-hide. The setting dialog does not work, though, so in order to enable it you need to change the StuckRects2 registry key so that the Settings value has the right bit set to 1 (or import from a Windows installation).

svn path=/branches/shell-experiments/; revision=64089
2014-09-09 14:58:38 +00:00
David Quintana
f14740e5e5 [EXPLORER-NEW]
* CMakeLists.txt: tabs to spaces

svn path=/branches/shell-experiments/; revision=64084
2014-09-08 14:04:49 +00:00
David Quintana
7ba3245a29 [PSDK]
* Make shlwapi_undoc.h compatible with C code.

[EXPLORER-NEW]
* Link with browseui.
* Use SHOpenNewFrame linked from browseui instead of explicitly loaded.
* Make use of SHExplorerParseCmdLine. Does not yet open windows in an existing process when used through commandline.

svn path=/branches/shell-experiments/; revision=64083
2014-09-08 13:09:19 +00:00
David Quintana
34158fc46f [BROWSEUI]
* Initial implementation of the explorer command line parser. Not used by explorer-new, yet.

svn path=/branches/shell-experiments/; revision=64081
2014-09-08 01:59:18 +00:00
David Quintana
4c1828ea4b Sync with trunk r63935.
svn path=/branches/shell-experiments/; revision=63939
2014-08-24 15:10:11 +00:00
David Quintana
2a5013a68f [EXPLORER-NEW]
* Turn a couple DbgPrints into ERR.

svn path=/branches/shell-experiments/; revision=63935
2014-08-24 14:06:41 +00:00
David Quintana
2351bdda50 [RSHELL]
* Add a shell DDE skeleton, based on shell32's DDE stubs.

svn path=/branches/shell-experiments/; revision=63934
2014-08-24 14:04:42 +00:00
David Quintana
6ebc10fb3c [EXPLORER-NEW]
* Make use of the wine debug functions and turn DbgPrints into TRACE/WARN/ERR.

[SHELL32]
* Turn some DbgPrints into TRACEs.

svn path=/branches/shell-experiments/; revision=63912
2014-08-20 16:19:00 +00:00
David Quintana
e9c5285a7c [SHELL32]
* Unbreak context menus.

svn path=/branches/shell-experiments/; revision=63911
2014-08-20 15:39:13 +00:00
David Quintana
117eba9bd5 [SHELL32]
* Another batch of interface pointers converted to CComPtr.

svn path=/branches/shell-experiments/; revision=63909
2014-08-20 12:25:09 +00:00
David Quintana
ef04ff090e [SHELL32]
* Stop using the C defines LPSHELLFOLDER, LPSHELLVIEW and LPUNKNOWN, and use the respective C++ interfaces instead.
* Change one batch of COM interface pointers into CComPtr-based pointers, and remove associated Release calls (including at least one that was not supposed to be there at all).
* Remove a couple (repeated multiple times) pointless casts.

svn path=/branches/shell-experiments/; revision=63908
2014-08-20 00:39:40 +00:00
David Quintana
a5ce7500a1 [SHELL32]
* Giannis found another similar case of double-releasing.

svn path=/branches/shell-experiments/; revision=63907
2014-08-19 22:30:12 +00:00
David Quintana
f7ee35aba7 [SHELL32]
* Fix a CComPtr double-release.

svn path=/branches/shell-experiments/; revision=63906
2014-08-19 22:25:40 +00:00
David Quintana
9ea7e65b5b [BROWSEUI]
[SHELL32]
* Fix accelerator handling.
* Disallow accelerators if renaming.

svn path=/branches/shell-experiments/; revision=63905
2014-08-19 21:30:04 +00:00
David Quintana
8535491b89 [STOBJECT]
* Fix MSVC build (missing newline at end of resource include file).

svn path=/branches/shell-experiments/; revision=63900
2014-08-17 17:08:24 +00:00
David Quintana
1fefb70fd0 [SHELL32]
* Remove an obsolete hack that would only cause leaks now.

svn path=/branches/shell-experiments/; revision=63892
2014-08-15 10:59:23 +00:00
David Quintana
10f8913d70 [STOBJECT]
* Turn some debug prints to traces.
* New resources by Robert Naumann, for future use.

svn path=/branches/shell-experiments/; revision=63891
2014-08-15 10:49:04 +00:00
David Quintana
b77b9b9b7d Sync with trunk r63887.
svn path=/branches/shell-experiments/; revision=63888
2014-08-14 23:55:08 +00:00
David Quintana
810048d98e Sync with trunk r63878.
svn path=/branches/shell-experiments/; revision=63879
2014-08-13 18:16:14 +00:00
David Quintana
6f51eb4048 [SHELL32]
* Make non-desktop shell views always show selections (even while unfocused).

svn path=/branches/shell-experiments/; revision=63869
2014-08-11 22:06:12 +00:00
David Quintana
930d7fff14 [BROWSEUI]
* Fix usage of outdated CMergedFolder to use the proper interface.

svn path=/branches/shell-experiments/; revision=63847
2014-08-09 15:56:05 +00:00
David Quintana
a2cfa8dc58 * Sync to trunk r63845.
svn path=/branches/shell-experiments/; revision=63846
2014-08-09 14:15:16 +00:00
David Quintana
c3558fc84a [SHELL32]
* Populate edit and view menu on first activation. TODO: enable/disable edit menu items in OnInitMenuPopup.
* Add Edit menu to resources (en-US only, other langs TODO)
* Repurpose BuildFileMenu to build the menu for the selection. This needs improvements as it uses all the items from the context menu at the moment.
* Add items to the File menu when shown.

svn path=/branches/shell-experiments/; revision=63836
2014-08-07 15:21:24 +00:00
David Quintana
a4bc6818ab [SHELL32]
* Improve the view menu handler a bit. Now the view menu properly marks the current view as expected.

svn path=/branches/shell-experiments/; revision=63811
2014-08-05 01:15:41 +00:00
David Quintana
d13da089e5 [BROWSEUI]
* Find the menu index so that the forwarded WM_INITMENUPOPUP has all the info shell32 needs.

[SHELL32]
* Begin implementing dynamic menu editing, which is used by the shell views in order to change, add or remove items from the filebrowser menus. Some menu items may be temporarily lost until this is finished.

svn path=/branches/shell-experiments/; revision=63809
2014-08-04 21:19:22 +00:00
David Quintana
7292674928 [STOBJECT]
* Fix DllMain not being called when building with gcc. Apparently msvc makes DllMain extern "C" even if you didn't ask for it, unlike gcc.
* Simplify some code.

svn path=/branches/shell-experiments/; revision=63791
2014-07-31 12:36:40 +00:00
David Quintana
56aab7f365 [STOBJECT]
* Move this shell extension to the shellext folder.

svn path=/branches/shell-experiments/; revision=63790
2014-07-31 11:44:21 +00:00
David Quintana
e18e41c8f5 [STOBJECT]
* Move SSO registration to the rgs file.
* Add more debug prints.

svn path=/branches/shell-experiments/; revision=63789
2014-07-31 11:29:50 +00:00
David Quintana
34a27346de Sync with trunk r63786.
svn path=/branches/shell-experiments/; revision=63788
2014-07-31 00:57:14 +00:00
David Quintana
cd1e4d2911 [STOBJECT]
* Improve code organization. 
* Add some debug prints.
* Fix some nits.

svn path=/branches/shell-experiments/; revision=63787
2014-07-30 22:08:05 +00:00
David Quintana
149d0f17d3 [STOBJECT]
* Nothing happened. No files were missing. Look elsewhere.

svn path=/branches/shell-experiments/; revision=63752
2014-07-28 13:24:56 +00:00
David Quintana
8bef9c148c [HIVESFT.INF]
* Shell service object DLLs expect the ShellServiceObjectDelayLoad key to exist.

[SYSSETUP.INF]
* Mark stobject.dll to be registered during setup.

[STOBJECT]
* Implement icon handling.
* Implement rudimentary volume icon handler.
* Allow the volume icon to show the mute status of the primary audio device.

svn path=/branches/shell-experiments/; revision=63750
2014-07-28 13:18:57 +00:00
David Quintana
e5ac3d04eb [STOBJECT]
* Create skeleton for the SysTray shell service object DLL. No tray icons are created yet.
* Tranks Robert Naumann for providing the icon resources, and some file templates.

svn path=/branches/shell-experiments/; revision=63732
2014-07-23 18:00:36 +00:00
David Quintana
c3479eb2b2 [RSHELL]
* the Programs menu is localized. Obtain it the right way.

svn path=/branches/shell-experiments/; revision=63711
2014-07-12 12:40:50 +00:00
David Quintana
88f0fb5a47 [RSHELL]
* Notify the parent menu popup when the deskbar is closing.

[EXPLORER-NEW]
* Set the button pressed when the start menu gets displayed.
* Set the button released when the start menu notifies it was closed.

svn path=/branches/shell-experiments/; revision=63710
2014-07-12 02:43:06 +00:00
David Quintana
e1b309d6de [RSHELL]
* Really fix GCC build.

svn path=/branches/shell-experiments/; revision=63709
2014-07-10 19:16:21 +00:00
David Quintana
eb28ee17c8 [RSHELL]
* Use the IAugmentedShellFolder methods instead of the old constructor.

[SHELL32]
* Fix gcc compilation.

svn path=/branches/shell-experiments/; revision=63708
2014-07-10 17:17:36 +00:00
David Quintana
791ee3e755 [RSHELL]
* Filter out the Programs item from the top list.

svn path=/branches/shell-experiments/; revision=63704
2014-07-09 23:37:02 +00:00
David Quintana
9804a12eff [RSHELL]
* Now that CMergedFolder works, try to make it more like windows.
* CMergedFolder: Declare and expose the undocumented IAugmentedShellFolder2 (all methods unimplemented yet). It will require major changes to the way I implemented it, but it will be for the best.
* CStartMenu: Make use of the real CMergedFolder in Windows 2003 (does not exist in win7).

svn path=/branches/shell-experiments/; revision=63703
2014-07-09 23:05:37 +00:00
David Quintana
0ffe346179 [RSHELL]
* CFocusManager: Try to fix some weird behaviour.
* CMergedFolder: Downgrade some prints to TRACEs, and implement a couple methods needed by some debugging code.
* Activate merged folders by default. TODO: implement the filtering of the "Programs" submenu, and use it for the real Programs menu item.

[SHELL32]
* defcontextmenu.cpp: Make a copy of the apidl array before storing it for later, since it may be a pointer to the stack which may not be available later. Fixes the merged folders not working on clicks and context menu.
* shlmenu.cpp: While debugging, I made Shell_MergeMenus closer to WINE's.

svn path=/branches/shell-experiments/; revision=63702
2014-07-09 00:42:05 +00:00
David Quintana
2ac4637056 [EXPLORER-NEW]
* Revert debugging change that shouldn't have been commited.
* Implement rudimentary tooltip support for tray icons. Does not yet work exactly like the windows does it.

svn path=/branches/shell-experiments/; revision=63685
2014-07-05 02:13:37 +00:00
David Quintana
ca65a75bf4 [EXPLORER-NEW]
* Fix a typo that broke tray notify icons.
* Implement loading of Shell Service Objects. Works in win2003 but no idea if it works in ros since we don't have any SSO implemented yet ;P

svn path=/branches/shell-experiments/; revision=63684
2014-07-05 00:35:43 +00:00
David Quintana
e362a0da43 [RSHELL]
* Handle SMSET_BOTTOM on SetShellFolder so the shell items show below the static menu.
* Downgrade some DbgPrints to TRACEs (reduces log spam).
* Add some extra debugging messages to CMergedFolder.
* Export the CMergedFolder constructor so it can be used from browseui.

[BROWSEUI]
* Use merged folders for the Favorites menu.

svn path=/branches/shell-experiments/; revision=63683
2014-07-02 14:48:21 +00:00
David Quintana
20a3d5b994 [SHELL32]
* Some start menu icons by Robert Naumann (gonzoMD) in proper size and content.

svn path=/branches/shell-experiments/; revision=63676
2014-06-30 17:04:47 +00:00
David Quintana
fd94119fa8 [RSHELL]
* Change the way the menu items are activated. Now the menubar activates on mouse down, and the other items activate on mouse up. Not everything works perfectly yet, but it will eventually allow proper usage of the shell menus by keeping the mouse button down. I believe this is also the way to go to avoid the "instant reopening" of the menus when trying to close them.

svn path=/branches/shell-experiments/; revision=63671
2014-06-29 15:42:06 +00:00
David Quintana
80c7746313 [RSHELL]
* Added IPersistFolder2 interface to CMergedFolder, per MSDN suggestion.
* Changed the way the pidl info is stored to be more clean and readable.

svn path=/branches/shell-experiments/; revision=63669
2014-06-29 13:54:08 +00:00
David Quintana
dec446e288 [RSHELL]
* Fix a 6am whoops.
* Simplify the FindPidlInList method.

svn path=/branches/shell-experiments/; revision=63659
2014-06-28 18:05:01 +00:00
David Quintana
f03fef66d1 [RSHELL]
* Implement a rudimentary but mostly functional (for start menu purposes) CMergedFolder class. It's still disabled by default because clicking on an item in a merged folder appears to fail to execute it.

svn path=/branches/shell-experiments/; revision=63658
2014-06-28 15:38:25 +00:00
David Quintana
9ebe8b2e4e [BROWSEUI]
* Make use of shell command ID macros for toolbar button IDs.

svn path=/branches/shell-experiments/; revision=63644
2014-06-25 15:56:04 +00:00
David Quintana
73d72624b0 Sync with trunk r63637.
svn path=/branches/shell-experiments/; revision=63640
2014-06-23 23:28:38 +00:00
David Quintana
dd250b33d4 [EXPLORER-NEW]
* Disregard the restricted setting and always remove the Search menu from the start menu. When Search is implemented, it can be reenabled.

svn path=/branches/shell-experiments/; revision=63639
2014-06-23 23:04:55 +00:00
David Quintana
70d0028281 [EXPLORER-NEW]
* Implement a rudimentary "Help and Support" start menu item by launching the default browser with http://reactos.org/ as the URL.

svn path=/branches/shell-experiments/; revision=63638
2014-06-23 22:08:33 +00:00
David Quintana
bcf5de9efc [RSHELL]
* Notify the focus manager that we are about to open a context menu, so that it doesn't mess with the menu popup.

svn path=/branches/shell-experiments/; revision=63634
2014-06-23 17:50:11 +00:00
David Quintana
8b3b02a2ca [EXPLORER-NEW]
* Use a struct like the comment suggested. May not fix anything, but it's one FIXME less in ReactOS.

svn path=/branches/shell-experiments/; revision=63623
2014-06-19 23:38:39 +00:00
David Quintana
fe526a2a66 [FILEBROWSER]
* Copy basic path parsing from explorer-new, so filebrowser.exe can load with a different folder active.

svn path=/branches/shell-experiments/; revision=63622
2014-06-19 23:24:09 +00:00
David Quintana
1eec111b81 [BROWSEUI]
* Process ParseNow on the CBEN_ENDEDIT notification.
* Call SHAutoComplete to ask the edit control to have autocomplete functionality. I need to figure out the flag or whatever is needed to make it show "Search 'string'" when entering something that's not a valid path.

svn path=/branches/shell-experiments/; revision=63621
2014-06-19 23:23:04 +00:00
David Quintana
e33dc4351a [RSHELL]
* Turn off spammy log.
* A small themeing tweak for the menubar.

[BROWSEUI]
* Turn off spammy log.
* A small tweak to a function.

svn path=/branches/shell-experiments/; revision=63620
2014-06-19 23:14:39 +00:00
Hermès Bélusca-Maïto
fb22c97c91 [EXPLORER][EXPLORER_NEW]
[TASKMGR]
Set a proper shutdown level (with SetProcessShutdownParameters) so that explorer and taskmgr are terminated the very last when one shutdowns ReactOS.
See Windows Internals 4th page 286 (section "Shutdown") which gives the values (that I've cross-checked on Windows 2k3 too).

svn path=/branches/shell-experiments/; revision=63601
2014-06-15 20:02:26 +00:00
David Quintana
02bd6eebde [BROWSEUI]
* Fix stack corruption in VS2010 builds. No idea why it doesn't crash with other compilers.

[EXPLORER-NEW]
* Fix a similar bug that does not appear to cause any issue, but is a bug regardless.

svn path=/branches/shell-experiments/; revision=63548
2014-06-07 23:26:35 +00:00
David Quintana
7ddd2648be [RSHELL]
* Use the debugging class to track COM refcounting of the CMenuBand.
* CMenuSite: Remove an useless line.

[BROWSEUI]
* Refactor the CreateMenuBar method in an attempt to figure out a seemingly magic crash with VS2010 (not yet solved).
* Begin fixing some unused-but-set warnings.

[SHELL32]
* Fix some small bugs spotted by Victor.

svn path=/branches/shell-experiments/; revision=63546
2014-06-07 13:54:11 +00:00
David Quintana
9f33eab100 [BROWSEUI]
* Make failure codes print themselves. Helps debug.

svn path=/branches/shell-experiments/; revision=63541
2014-06-04 18:08:35 +00:00
David Quintana
72aa759dd4 [SHELL32]
* Fix gcc compilation.

[BROWSEUI/RSHELL]
* Use virtual destructors and cleanup with delete in the creator functions.
* Try to fix a bit the "close" flow, so that less circular references remain when the filebrowser windows are closed.

svn path=/branches/shell-experiments/; revision=63539
2014-06-04 16:25:48 +00:00
David Quintana
580b89e9b6 [BROWSEUI]
* Plug a few menu leaks. In Windows, it brings down the leaked menus from 20 per navigation, to only 1-2. In ReactOS, from 60 to 20.

[RSHELL,SHELL32]
* Code tweaks that shouldn't change the actual behaviour.

svn path=/branches/shell-experiments/; revision=63537
2014-06-03 01:04:19 +00:00
David Quintana
52fc0bf57d [BROWSEUI]
* Fix gcc build.

svn path=/branches/shell-experiments/; revision=63536
2014-06-02 21:37:26 +00:00
David Quintana
3a54fd538b [BROWSEUI/RSHELL]
* Begin fixing the process of destroying the related objects when closing the window, so that eventually the filebrowser/explorer process will properly exit cleanly when no more windows are open.

svn path=/branches/shell-experiments/; revision=63535
2014-06-02 21:35:32 +00:00
David Quintana
13c7cade20 [BROWSEUI]
* This shouldn't have been commited. The browse windows were freezing because it was trying to use the menu from shell32 instead of rshell.

svn path=/branches/shell-experiments/; revision=63533
2014-06-02 13:23:06 +00:00
David Quintana
9793ab272f [SHELL32]
* The CDefView should not process the backspace key directly. It's already handled by the accelerators.

[BROWSEUI]
* Allow the docked toolbars to translate accelerators.
* CAddressEditBox: Cancel accelerators without modifiers while focused.

[RSHELL]
* Cancel accelerators while a popup is open, and ignore them otherwise.

svn path=/branches/shell-experiments/; revision=63504
2014-05-30 18:00:31 +00:00
David Quintana
acd03fd182 Sync with trunk r63502.
svn path=/branches/shell-experiments/; revision=63503
2014-05-30 17:56:10 +00:00
David Quintana
7411374268 [BROWSEUI]
* Remove a call that shouldn't even be working in Windows, and was completely unnecessary. Fixes explorer-new navigation history in ReactOS.
* Added some debug traces.
CORE-8173

svn path=/branches/shell-experiments/; revision=63479
2014-05-27 17:55:41 +00:00
David Quintana
be04b066aa [RSHELL]
* Close menu on right click too.

[BROWSEUI]
* Check/uncheck the lock toolbar item based on the lock state. The view menu does not update yet.

[SHELL32]
* Destroy the menu when the view window is destroyed.

svn path=/branches/shell-experiments/; revision=63461
2014-05-26 12:26:47 +00:00
David Quintana
340c4e472a These files were on my "ignore-on-commit" list.
svn path=/branches/shell-experiments/; revision=63434
2014-05-24 20:58:13 +00:00
David Quintana
d5e23caf7a Sync with trunk r63430.
svn path=/branches/shell-experiments/; revision=63433
2014-05-24 20:29:19 +00:00
David Quintana
431b80fa6a [SHELL32]
* Add shell browser bitmaps (toolbar, brand icon, go button). Patch by Robert Naumann (gonzoMD).
CORE-8249 #resolve #comment Commited into shell-experiments. Thanks a lot.

svn path=/branches/shell-experiments/; revision=63432
2014-05-24 20:06:03 +00:00
Christoph von Wittich
f83bcc1212 [browseui]
set correct codepage for translations (UTF-8)

svn path=/branches/shell-experiments/; revision=63431
2014-05-24 18:26:15 +00:00
David Quintana
fe43858e1e [SHELL32]
* Reuse the same menu instead of recreating it every time something changes. Fixes the menus not showing, but it's not the right way to do it. A better implementation should come later.

[BROWSEUI]
* Add a german version of the toolbar strings, by Christoph von Wittich.

svn path=/branches/shell-experiments/; revision=63426
2014-05-23 21:22:48 +00:00
David Quintana
baa587134e [BROWSEUI]
* Load the toolbar iten captions from the re

svn path=/branches/shell-experiments/; revision=63422
2014-05-23 13:09:02 +00:00
David Quintana
0acd44c3d7 [BROWSEUI]
* Also load and use the "hot" toolbar bitmap from shell32.dll, not just the normal one.

svn path=/branches/shell-experiments/; revision=63419
2014-05-22 21:35:23 +00:00
David Quintana
d36426f9c0 [BROWSEUI]
* Keep the call to TranslateAcceleratorSB within the shell browser, since it appears the windows CDefView does not call it.
* "Hackplement" the backspace key as being the same as the "go up one level" menu item. This does not seem to be exactly true in Windows, but it does the job.

svn path=/branches/shell-experiments/; revision=63415
2014-05-22 19:13:15 +00:00
David Quintana
2defe4fed2 [BROWSEUI]
* Improve the message loop to allow processing of accelerators.

[SHELL32]
* Return the accelerator to the shell browser if the view doesn't handle it.

svn path=/branches/shell-experiments/; revision=63397
2014-05-21 11:38:29 +00:00
David Quintana
033b716da1 [BROWSEUI]
* Do not swap the big and small imagelist pointers. Fixes the explorer windows not having an icon in the taskbar.
Note: the underlying issue preventing the taskbar from showing a 32x32 icon in the buttons still exists, so other apps with the same behaviour will still fail to draw.

svn path=/branches/shell-experiments/; revision=63383
2014-05-20 12:32:38 +00:00
David Quintana
e8463b3e2e [BROWSEUI]
* Fix a couple typoed function names.

svn path=/branches/shell-experiments/; revision=63382
2014-05-20 10:00:39 +00:00
David Quintana
8c1bafc6f8 [BROWSEUI]
* Fix a couple redundant IFs.
CORE-8248 #resolve #comment Thanks for reporting.

svn path=/branches/shell-experiments/; revision=63381
2014-05-20 09:09:08 +00:00
David Quintana
24010ffd80 [BROWSEUI]
* Moved some code from ParseNow into Execute, pending future improvements to the code flow.

svn path=/branches/shell-experiments/; revision=63378
2014-05-19 21:55:09 +00:00
David Quintana
564f732c7c [BROWSEUI]
* Implement ParseNow to allow navigating to the current address in the editbox.

[SHELL32]
* Set the focus to the listview if the browser is requesting it.

CORE-7330

svn path=/branches/shell-experiments/; revision=63371
2014-05-19 16:08:30 +00:00
David Quintana
9276b066c7 [BROWSEUI]
* Disable the brandband again, since it doesn't look right in ros.
* Fix the browse window styles so that it can properly open with system-provided default size.
* Change the default view mode of the file list to Icons.
CORE-7330

svn path=/branches/shell-experiments/; revision=63370
2014-05-19 12:05:24 +00:00
David Quintana
14c68ccd3f [EXPLORER-NEW]
* Default to always-on-top if the registry setting is not found.
* Reload and apply settings on display change. Fixes taskbar not repositioning on resolution changes.
CORE-7330

svn path=/branches/shell-experiments/; revision=63369
2014-05-19 10:44:33 +00:00
David Quintana
a8667b0ffe [EXPLORER-NEW]
* Fix the fallback for when rshell functions are not exported or rshell is not present.
* While at it, avoid unnecessary calls to LoadLibrary.

svn path=/branches/shell-experiments/; revision=63357
2014-05-18 18:05:16 +00:00
David Quintana
a55f7c589b [RSHELL]
* Turn back some DbgPrints into TRACEs.
* Remove the desktop from the rshell exports, as it works better in ros that way, and it's only needed for debugging in windows 8.

svn path=/branches/shell-experiments/; revision=63352
2014-05-18 14:20:27 +00:00
David Quintana
6600002283 Sync with trunk r63343.
svn path=/branches/shell-experiments/; revision=63351
2014-05-18 12:11:58 +00:00
David Quintana
4242fb21c0 [WIN32K/NTUSER]
* Allow WM_ACTIVATEAPP to be sent to the deactivated windows. Fixes the start menu not closing when clicking outside the taskbar. Patch by Huw (Frontier).
CORE-8235 #resolve #comment Included in shell-experiments branch. Thanks.

svn path=/branches/shell-experiments/; revision=63350
2014-05-18 12:04:25 +00:00
David Quintana
7a09d4a028 [WIN32K/NTUSER]
* HSHELL_WINDOWCREATED should only be sent for visible windows.
CORE-8226 #resolve #comment Fixed in the latest commit. Thanks for reporting.

svn path=/branches/shell-experiments/; revision=63316
2014-05-16 19:13:12 +00:00
David Quintana
1f5d24518e [WIN32k/NTUSER]
* Make the conditions actually check what was intended.

svn path=/branches/shell-experiments/; revision=63313
2014-05-16 11:14:04 +00:00
David Quintana
2caa76f93d [RSHELL]
* Fix shell menus closing when clicking on the frame/banner.
CORE-7586

svn path=/branches/shell-experiments/; revision=63312
2014-05-16 11:12:51 +00:00
David Quintana
389001ca69 [WIN32K/NTUSER]
* Fix gcc compilation.

svn path=/branches/shell-experiments/; revision=63307
2014-05-15 18:30:31 +00:00
David Quintana
c0a40fbfe8 [WIN32K/NTUSER]
* Apply the same filter to HSHELL_WINDOWACTIVATED, that I used for _WINDOWCREATED.

svn path=/branches/shell-experiments/; revision=63306
2014-05-15 18:07:41 +00:00
David Quintana
9d30009eb1 [EXPLORER-NEW]
* Fix handling of taskbar items.
* Filter out the desktop and taskbar from the button list.
* Fixes minimizing from the taskbar in Windows (something else is preventing it from working in ros).

[NTUSER]
* Improve filtering of windows before calling HSHELL_WINDOWCREATED.

[USER32]
* Menus are supposed to be WS_EX_TOOLWINDOW so they don't show up in the taskbar.

[ATL]
[BROWSEUI]
[SHELL32]
* Include ATL aggregation patch by Huw (Frontier) (with Amine's changes).

CORE-8175

svn path=/branches/shell-experiments/; revision=63304
2014-05-15 13:23:06 +00:00
David Quintana
753d2916b8 This file got messed up somehow, and was preventing the branch from booting properly.
svn path=/branches/shell-experiments/; revision=63277
2014-05-13 18:51:03 +00:00
David Quintana
8db8073cbb Sync with trunk r63270.
svn path=/branches/shell-experiments/; revision=63271
2014-05-13 12:11:12 +00:00
David Quintana
a607a23a14 [BROWSEUI]
* AddressBand: Create a combobox item to hold the info of the current folder, and keep it selected. This will in the future be improved to show a pseudo-tree including all the parent folders up to the Desktop, with the Desktop and My Computer expanded.
CORE-8220

svn path=/branches/shell-experiments/; revision=63270
2014-05-13 08:53:26 +00:00
David Quintana
6fc740948a [BROWSEUI]
* Fix gcc build.
* Also, undo a change that wasn't as useful as I first thought it would be.
CORE-8183 #resolve #comment Here you go. Thanks for reporting.

svn path=/branches/shell-experiments/; revision=63196
2014-05-08 20:16:06 +00:00
David Quintana
057a69972f Sync with trunk r63174.
CORE-8176 #resolve #comment Trunk commit r63174 should fix this issue. I merged from trunk to bring it into Shell-experiments.

svn path=/branches/shell-experiments/; revision=63175
2014-05-06 15:51:24 +00:00
David Quintana
6005af09db [BROWSEUI]
* Begin implementing resizing of the rebar.
* Begin implementing the addressbar function. For now, the current folder path is displayed. No icon, no parsing support, no combo dropdown list.
CORE-8173

svn path=/branches/shell-experiments/; revision=63156
2014-05-04 13:57:23 +00:00
David Quintana
8c3a5f9b93 [SHELL32]
* Fix redundant clauses by converting the code to a switch block. Adapted from a patch by Victor Martinez.
CORE-8161 #resolve #comment Fixed in the shell-experiments branch. Thanks.

svn path=/branches/shell-experiments/; revision=63115
2014-05-02 17:27:28 +00:00
David Quintana
62f156f677 [BROWSEUI]
* Do not set the imagelist if the bitmap wasn't loaded.
* Fix the flags that caused the toolbar not to relocate when toggling the lock mode.

svn path=/branches/shell-experiments/; revision=63114
2014-05-02 17:25:19 +00:00
David Quintana
dcc7bb6c0d [RSHELL]
* I forgot a cast and a couple IID_PPV_ARG uncommited.

[BROWSEUI]
* Fixed rebar flags to match windows. Adds the missing border around the toolbars.
* Fix some calculations of the rebar size.
* Fetch the icon of the current folder and assign it to the browse window.

CORE-7330

svn path=/branches/shell-experiments/; revision=63103
2014-05-02 11:58:07 +00:00
David Quintana
fb6dcedf18 [RSHELL]
[SHELL32]
* Move the IID_NULL_PPV_ARG macro to the shobj_undoc header, next to the (also ros-specific) IID_PPV_ARG macro, so that it can be used elsewhere.

[SHELL32]
* Make use of IID_NULL_PPV_ARG in all the calls to GetUIObjectOf, and fix one instance of mismatched riid/pointer.

CORE-7330

svn path=/branches/shell-experiments/; revision=63044
2014-04-29 11:14:29 +00:00
David Quintana
8221f567e0 [BROWSEUI]
[SHELL32]
* Make use of IID_PPV_ARG (part 2).

svn path=/branches/shell-experiments/; revision=63040
2014-04-28 21:59:02 +00:00
David Quintana
0c144205d5 [BROWSEUI]
* Make use of the IID_PPV_ARG for typesafe interface return pointers, and a few other cosmetic changes.
CORE-7330

svn path=/branches/shell-experiments/; revision=63033
2014-04-28 15:29:38 +00:00
Amine Khaldi
3a088d8ec6 * Sync up to trunk HEAD (r62975).
svn path=/branches/shell-experiments/; revision=62976
2014-04-26 11:31:20 +00:00
David Quintana
a418d8b657 [RSHELL]
* Fix compiling with the system classes selected instead of the custom ones.
CORE-7586

svn path=/branches/shell-experiments/; revision=62962
2014-04-25 10:45:28 +00:00
David Quintana
60334b103a [BROWSEUI]
* Reenable the brand box on file browser windows.
* Fix an invalid usage of a null HWND.
* Implement size calculation of the standard toolbar.
CORE-7330

svn path=/branches/shell-experiments/; revision=62961
2014-04-25 10:44:36 +00:00
David Quintana
2f3d0e3e01 [RSHELL]
* Implement selecting the first/last item, and make the menu system choose to select the first item when opening a submenu with the keyboard.

svn path=/branches/shell-experiments/; revision=62959
2014-04-24 17:42:16 +00:00
David Quintana
cfb6a8a36e [RSHELL]
* Fix stack overflow when pressing enter with a menu item selected. Executing with enter now works correctly.
CORE-7586

svn path=/branches/shell-experiments/; revision=62957
2014-04-24 16:17:53 +00:00
David Quintana
663bc1da24 [RSHELL]
* Prevent the focused window from receiving keyboard events while a shell menu is open.
CORE-7586

svn path=/branches/shell-experiments/; revision=62935
2014-04-24 11:25:46 +00:00
David Quintana
78790baf2e [RSHELL]
* Almost working keyboard navigation on horizontal menu bar. It does not yet switch between menus when a submenu of the shell menu is currently open and you press [right].
CORE-7586

svn path=/branches/shell-experiments/; revision=62891
2014-04-22 17:44:19 +00:00
David Quintana
dc8f232870 [RSHELL]
* Implemented horizontal keyboard navigation on the menubar. Does not yet work for the Favorites menu, which is a shell popup and not a tracked popup. Also missing the system menu in the rotation.

svn path=/branches/shell-experiments/; revision=62757
2014-04-16 12:14:02 +00:00
David Quintana
9c589bb131 Sync with trunk r62754.
svn path=/branches/shell-experiments/; revision=62756
2014-04-15 23:01:15 +00:00
David Quintana
18a587e569 [RSHELL]
* Fix gcc build.
* Wip beginning of horizontal menubar keyboard navigation. Not working yet. ;P
CORE-7586

svn path=/branches/shell-experiments/; revision=62755
2014-04-15 22:30:37 +00:00
David Quintana
5e4427d973 [RSHELL]
* Fix keyboard navigation on vertical popup menus. Navigating through the menubar does not work yet.
CORE-7586

svn path=/branches/shell-experiments/; revision=62753
2014-04-15 15:53:17 +00:00
David Quintana
ba203171e1 [RSHELL]
* Fixed the context menu for shell items.
* Some more code style improvements.
* Moved the toggles between using system classes and rshell classes into the constructor functions, so the code is easier to read.
CORE-7586

svn path=/branches/shell-experiments/; revision=62752
2014-04-15 10:08:08 +00:00
David Quintana
9b472f38cb [RSHELL]
* Code cleanups and formatting.
* Remove the logging wrappers. If I need them again I'll bring them back.
* Try to fix a few "glitches" in the hot-tracking.

svn path=/branches/shell-experiments/; revision=62693
2014-04-09 11:45:02 +00:00
David Quintana
c21f759be0 [RSHELL]
* Some code improvements, refactoring, and commenting.
* Using alternative method of handling hot-tracking, which does not break in win2003.
CORE-7586

svn path=/branches/shell-experiments/; revision=62681
2014-04-07 18:41:47 +00:00
David Quintana
c46d671641 [RSHELL]
* Some small fixes to the previous commit. (Clicking still do not work in win2003, though)

svn path=/branches/shell-experiments/; revision=62680
2014-04-07 10:12:41 +00:00
David Quintana
97b02b410b [RSHELL]
* Further improvements. Not working yet. Commiting as backup/history.

svn path=/branches/shell-experiments/; revision=62603
2014-04-03 18:30:25 +00:00
David Quintana
a875dbf317 [RSHELL]
* Improvements on the focus manager. The menus work better, but still not fully. Commiting for backup/history purposes.
CORE-7586

svn path=/branches/shell-experiments/; revision=62601
2014-04-02 17:37:37 +00:00
David Quintana
8676a39ebc [RSHELL]
* Redesigned large portions of the focus manager. All the mouse interactions seem to work now
CORE-7586.

svn path=/branches/shell-experiments/; revision=62567
2014-03-26 11:33:52 +00:00
David Quintana
d2b33acd15 [RSHELL]
* Improve behaviour when hovering and clicking on the menubar. It's still somewhat glitchy though.
CORE-7586

svn path=/branches/shell-experiments/; revision=62539
2014-03-21 10:13:18 +00:00
David Quintana
0216102e0c [RSHELL]
* Improve mouse navigation of the menubar.
* Fix the menus.
* Fix the case for system includes (hopefully fixes).
CORE-7586

svn path=/branches/shell-experiments/; revision=62537
2014-03-20 15:39:25 +00:00
David Quintana
ad40525f61 [RSHELL]
* Implement WH_MSGFILTER hooking to handle the popup menus from the horizontal menubar. Switching between menu items wby moving the mouse now works, but at the moment, the non-menu popups (including the start menu) are somewhat glitchy.
CORE-7586

svn path=/branches/shell-experiments/; revision=62534
2014-03-19 15:33:41 +00:00
David Quintana
64227df624 Sync with trunk r62529.
svn path=/branches/shell-experiments/; revision=62530
2014-03-18 14:39:04 +00:00
David Quintana
eaec85cafe [RSHELL]
* Begin work in improving the behaviour of the horizontal mode menuband. There's still a lot of work to do, and some things are temporarily worse than before, but in other places it has improved already.
CORE-7586

svn path=/branches/shell-experiments/; revision=62520
2014-03-17 12:33:03 +00:00
David Quintana
fb26c9bcd8 [RSHELL]
* Sorry.

svn path=/branches/shell-experiments/; revision=62516
2014-03-16 09:36:28 +00:00
David Quintana
535f0f1c4e [RSHELL]
Whoops. MSVC does not not error with this... ;P

svn path=/branches/shell-experiments/; revision=62515
2014-03-16 09:30:29 +00:00
David Quintana
aa699bf2a9 [RSHELL]
* Fix the hot tracking on the filebrowser menubar. Still does not handle switching menus while hovering, though.
CORE-7586

svn path=/branches/shell-experiments/; revision=62514
2014-03-16 09:28:51 +00:00
David Quintana
ea3e04f67f [RSHELL]
* Use a better way to toggle using TBSTYLE_EX_VERTICAL instead of TBSTATE_WRAP.
CORE-7586

svn path=/branches/shell-experiments/; revision=62511
2014-03-16 01:21:54 +00:00
David Quintana
75f35dbf96 [RSHELL]
* Make this crazy nested conditional mess a bit flatter.

svn path=/branches/shell-experiments/; revision=62510
2014-03-15 21:44:49 +00:00
David Quintana
bacc079c22 [RSHELL]
* Fix keyboard navigation and hottracking behaviour. One glitch remains where quickly moving the mouse to a parent's toolbar item, and returning to the submenu before it closes, won't restore the parent's hot item to the one with the submenu.

svn path=/branches/shell-experiments/; revision=62509
2014-03-15 21:38:15 +00:00
Amine Khaldi
492eebcc0e [EXPLORER_NEW]
* Fix MSVC build.

svn path=/branches/shell-experiments/; revision=62504
2014-03-15 15:02:53 +00:00
Amine Khaldi
f4388e723d * Sync up to trunk HEAD (r62502).
svn path=/branches/shell-experiments/; revision=62503
2014-03-15 14:56:08 +00:00
David Quintana
c3ad2419ea [SHELL32]
* Get rid of those dummy menu items.

svn path=/branches/shell-experiments/; revision=62495
2014-03-14 11:45:30 +00:00
David Quintana
b948aa332c [RSHELL]
* Fix some null dereferences.
* Fix positioning of submenus of an horizontal menu toolbar.

[BROWSEUI]
* Fix some null dereferences.

CORE-7586

svn path=/branches/shell-experiments/; revision=62492
2014-03-13 16:21:56 +00:00
David Quintana
97ff00f312 [SHELL32]
* Added partial implementation of the IShellFolderView interface to CFolderView. Patch by Ivan Rodionov.
CORE-7976 #resolve #comment Applied to shell-experiments branch. Thanks.

svn path=/branches/shell-experiments/; revision=62489
2014-03-13 12:50:26 +00:00
David Quintana
3e2aafdb95 [SHELL32]
* Use the correct icon for the "My Computer" item. Patch by Robert Naumann. 
CORE-7979 #resolve #comment Applied to shell-experiments branch. Thanks.

svn path=/branches/shell-experiments/; revision=62488
2014-03-13 12:36:48 +00:00
David Quintana
487cfe837d [SHELL32]
* SHGetImageList should not return a duplicated ImageList. In Windows the pointers returned by Shell_GetImageLists match the pointers returned by SHGetImageList for SHIL_SMALL and SHIL_LARGE.

[RSHELL]
* Remove two obsolete debug prints.

svn path=/branches/shell-experiments/; revision=62483
2014-03-12 12:34:44 +00:00
David Quintana
905eb2bdce [RSHELL]
* Workaround for the exec issue. Ros currently seems to send a bogus WM_ACTIVATE message when clicking while the window is already active. Proper fix may come later if I can figure out why this happens.

CORE-7586

svn path=/branches/shell-experiments/; revision=62475
2014-03-11 17:40:18 +00:00
David Quintana
683375abdb [RSHELL]
* Fix reusing the same toolbar when SetMenu is called multiple times.
* Avoid some null dereferences.

[BROWSEUI]
* Temporarily (?) disable the logo band.

The browser window's "coolbar" and menubar now display and work properly in both Windows and ReactOS.

CORE-7586

svn path=/branches/shell-experiments/; revision=62472
2014-03-11 10:42:25 +00:00
David Quintana
6f06c27374 [RSHELL]
* Give TrackPopupMenuEx the top-level window. Need to figure out how Windows does this, it probably does not simply use the top-level window that way.
* Give TrackPopupMenuEx better flags and a better exclude rect.
CORE-7586

svn path=/branches/shell-experiments/; revision=62469
2014-03-10 12:01:37 +00:00
David Quintana
2b06cdd40e [FILEBROWSER]
* Svn glitched out when applying a patch

svn path=/branches/shell-experiments/; revision=62450
2014-03-07 23:17:23 +00:00
David Quintana
51b0371f34 [EXPLORER]
* Rename the output to explorer_old

[EXPLORER-NEW]
* Rename the output to explorer
* Launch a browseui window when explorer is run with an existing shell process.

Shell-experiments will now be running the new shell by default.
This allows me to test the shell classes under more accurate conditions, so I was using it locally for a while.
I decided to commit because of two reasons:
1. It was making me temporarily revert some changes done to some files when I wanted to commit, and
2. It lets everyone see the results of the shell-experiments project without having to mess with the task manager.

Keep in mind that, as the branch name implies, it STILL is an experiment.

CORE-7586

svn path=/branches/shell-experiments/; revision=62449
2014-03-07 22:39:49 +00:00
David Quintana
2ca6b95aeb [BROWSEUI]
* Load and use rshell for the menubar.
* Properly forward WM_NOTIFY and WM_COMMAND messages to the toolbars.

[RSHELL]
* Improve behaviour of horizontal menubands.
* Clicking on submenu items does not work yet.

CORE-7586

svn path=/branches/shell-experiments/; revision=62448
2014-03-07 22:28:55 +00:00
David Quintana
a8919a7a3b [NTUSER]
* Revert a change that removed too much. Unbreaks the "New..." menu, and anywhere else that required this, although the code feels like a workaround for a bug elsewhere.

svn path=/branches/shell-experiments/; revision=62436
2014-03-06 03:04:50 +00:00
David Quintana
f3964379b1 [EXPLORER-NEW]
* I don't know what this may fix, but it was wrong. On the upside, now there's less spam in the log.

svn path=/branches/shell-experiments/; revision=62433
2014-03-05 13:57:02 +00:00
David Quintana
64c34d24fd [RSHELL]
* CMenuSite: Reworked the code to avoid SHIsSameObject, since newer versions of windows do not implement that function. The code should be equivalent, and does less unnecessary calls to QueryInterface.
CORE-7879

svn path=/branches/shell-experiments/; revision=62432
2014-03-05 13:14:51 +00:00
David Quintana
7529c9897c [RSHELL]
* CMenuSFToolbar: Keep the m_shellFolder pointer in a CComPtr, so that it doesn't get deleted and possibly reused for something else.
CORE-7586

svn path=/branches/shell-experiments/; revision=62429
2014-03-05 12:34:30 +00:00
David Quintana
42bdf3b30f [COMCTL32]
* Make horizontal separators of vertical toolbars draw.
* Apply the same padding to separators as the rest of the buttons.
* Fixup some tabs into spaces, for consistency.
* Needs to be sent to wine.

svn path=/branches/shell-experiments/; revision=62426
2014-03-05 11:48:55 +00:00
David Quintana
1cfa05918e [SHLWAPI]
* Fix the fix... better. Needs to be sent to Wine. Thanks Thomas.

svn path=/branches/shell-experiments/; revision=62422
2014-03-05 10:20:06 +00:00
David Quintana
d77fcfc8c8 [SHLWAPI]
* Fix the right thing.

svn path=/branches/shell-experiments/; revision=62421
2014-03-05 09:48:32 +00:00
David Quintana
11e4273379 [SHLWAPI]
* SHInvokeDefaultCommand is supposed to invoke the DEFAULT command, so why was bInvokeDefault given FALSE?!

[RSHELL]
* A couple of trivial fixes.

[NTUSER/USER32]
* I missed two bits. See CORE-7966 for more info on the menu issue.

CORE-7586

svn path=/branches/shell-experiments/; revision=62420
2014-03-05 09:12:40 +00:00
David Quintana
d1e5c6a2b9 [RSHELL]
* I was telling AddButton that all the items were the last, except the last. Now the submenus display properly. Some of them at least. Others get an exception, it seems.
CORE-7881

svn path=/branches/shell-experiments/; revision=62416
2014-03-03 17:55:43 +00:00
David Quintana
d21bce9206 [NTUSER]
[USER32]
* Fix what I think is a wrong behaviour of storing MF_POPUP in the fType of the menu. Now it relies on hSubMenu being != NULL as an indicator of the presence of a submenu.
* Resource submenus are not supposed to get the hSubMenu as a wID, as far as I can tell.
* From the user point of view, it matches Windows better. Needs review and testing, as I don't know if I updated everything correctly.

svn path=/branches/shell-experiments/; revision=62415
2014-03-03 16:12:39 +00:00
David Quintana
7fe9315c7e [RSHELL]
* Improve logging in case of unexpected failures, and trace the creation of toolbar (menu) items.
CORE-7586

svn path=/branches/shell-experiments/; revision=62414
2014-03-03 16:11:47 +00:00
David Quintana
612d72cb58 [RSHELL]
* Move the copying back where it belongs. CMake may generate the dependencies the wrong way around (explorer-new should depend on rshell), but at least the copying works as expected, even if I always have to "build solution".
* Allow toggling between TBSTYLE_EX_VERTICAL and the manual TBSTATE_WRAP setting by (un)definiting TBSTYLE_EX_VERTICAL.
CORE-7881

svn path=/branches/shell-experiments/; revision=62412
2014-03-03 11:14:04 +00:00
David Quintana
9304a4e45f [RSHELL]
* Improve encapsulation of the CMenuToolbarBase by avoiding unnecessary usages of the window handle from the derived classes.
CORE-7881

svn path=/branches/shell-experiments/; revision=62411
2014-03-03 10:19:35 +00:00
David Quintana
c3b293c4b2 [RSHELL]
* CMenuToolbarBase: Use TBSTATE_BREAK on every button instead of TBSTYLE_EX_VERTICAL. This allows the vertical alignment to work on ros, although the separators are neither sized nor drawn correctly, and the arrow alignment is wrong.
NOTE: It's still not functional. Second level submenus don't show up, and clicking on items does nothing.
CORE-7881

svn path=/branches/shell-experiments/; revision=62382
2014-03-02 19:35:13 +00:00
David Quintana
28bf05e265 [RSHELL]
* Move dependency copying to the target script, so that the target properly depends on the source and not the other way around.
* Make all the custom constructors WINAPI.
* Add all the custom constructors to the spec file.
CORE-7596

svn path=/branches/shell-experiments/; revision=62365
2014-03-01 11:46:04 +00:00
David Quintana
b35ff38428 [RSHELL]
* Improve hot-tracking behaviour.
CORE-7881

svn path=/branches/shell-experiments/; revision=62347
2014-02-27 11:56:28 +00:00
David Quintana
107ae8ee41 [RSHELL]
* Add a new logging wrapper to record calls from the start menu back to the explorer site.
CORE-7586

svn path=/branches/shell-experiments/; revision=62335
2014-02-26 14:05:55 +00:00
David Quintana
8b06cd6325 [EXPLORER-NEW]
* Show the start menu at the same position and alignment Windows uses.

[RSHELL]
* Use IShellFolder methods instead of SHCreateShellItem.
* Handle toolbar window events from the toolbar class.
* Improve the positioning calculations.
* TODO: How to tell the submenus of the start menu to show towards the left? For when the taskbar is ABE_RIGHT.

CORE-7596

svn path=/branches/shell-experiments/; revision=62334
2014-02-26 11:13:23 +00:00
David Quintana
58931088c3 [RSHELL]
* Some menu style improvements.
* Some code style improvements.
* Added a skeleton CMergedFolder, as a base towards showing items from both the user and the common start menus. It does not work yet.
CORE-7586

svn path=/branches/shell-experiments/; revision=62330
2014-02-25 18:23:02 +00:00
David Quintana
53f74feb2d [RSHELL]
* CStartMenu: Now THESE are the right IDs. The previous ones were icon indices within the file.

svn path=/branches/shell-experiments/; revision=62329
2014-02-25 11:47:29 +00:00
David Quintana
5ee1aff4f5 [RSHELL]
* CStartMenu: Update the icon resource IDs to the IDs with the smaller images. This causes the images not to show. Need help figuring out why.
* Misc changes.
CORE-7586

svn path=/branches/shell-experiments/; revision=62328
2014-02-25 10:44:28 +00:00
David Quintana
2902b1cf0c [RSHELL]
* CMenuBand: Fix the keyboard navigation a bit. Still not fully working yet.
* Show submenus a bit closer to the arrow, as Windows does.
CORE-7881

svn path=/branches/shell-experiments/; revision=62323
2014-02-24 23:10:12 +00:00
David Quintana
9cf711a73f [RSHELL]
* CMenuBand: Fix menu colors.
CORE-7881

svn path=/branches/shell-experiments/; revision=62320
2014-02-24 13:05:24 +00:00
David Quintana
b62a6757ee [RSHELL]
* Move some classes to separate files.
* Move class declarations to .h files.
CORE-7586

svn path=/branches/shell-experiments/; revision=62319
2014-02-24 11:59:34 +00:00
David Quintana
8c18269e39 [RSHELL]
* Undo a test change that shouldn't have reached the commit. ;P

svn path=/branches/shell-experiments/; revision=62318
2014-02-24 11:20:16 +00:00
David Quintana
eee3377ec9 [RSHELL]
* CMenuBand:
  - Use a Pager control on top of the SF Toolbar, like Windows does.
  - Cache the ideal size of the toolbars to reuse it next time the start menu shows.
  - Draw the dropdown arrows on items with dropdowns.
  - Cancel the timer and open a submenu immediately if the item is clicked.
  - Draw the selected background color on the item with a popup if there is no other item being hovered.
  - Add some space for the dropdown arrows in the size calculations (hardcoded).
  - Simplify the size calculation and positioning.
CORE-7881

svn path=/branches/shell-experiments/; revision=62317
2014-02-24 11:07:16 +00:00
Amine Khaldi
56bf9b6dbd * Sync up to trunk HEAD (r62309).
svn path=/branches/shell-experiments/; revision=62310
2014-02-23 18:28:37 +00:00
David Quintana
9877002e5c [CMAKE]
* Actually do what I said.

svn path=/branches/shell-experiments/; revision=62309
2014-02-23 18:15:20 +00:00
David Quintana
b6d033175c [CMAKE]
* Revert change from r62307. Will do a proper merge instead.

[RSHELL]
* CMenuBand: Use SHGetImageList instead of Shell_GetImageLists.
* CMenuBand: Remove minwidth in the size calculation.

svn path=/branches/shell-experiments/; revision=62308
2014-02-23 18:13:43 +00:00
David Quintana
04a3726c09 [CMAKE]
* Take MSVC workaround from trunk.

[RSHELL]
* Fix GCC build.
* Add a couple error checks.

svn path=/branches/shell-experiments/; revision=62307
2014-02-23 16:44:54 +00:00
David Quintana
d0f3e72c8e [RSHELL]
* CMenuBand: Send timer notifications for all items, so we can hide a previous submenu when the user hovers an item without submenu.
* CMenuBand: Avoid a stack overflow in some versions of windows by relying on the stored value instead of asking for it in the middle of a changed event.
CORE-7881

svn path=/branches/shell-experiments/; revision=62303
2014-02-23 15:02:02 +00:00
Timo Kreuzer
7e1f2732e5 [NTOSKRNL]
Implement WmipFastIoDeviceControl, start implementing WmipIoControl

svn path=/branches/kernel-fun/; revision=62302
2014-02-23 14:56:48 +00:00
Timo Kreuzer
3922e0f8ed [NTOSKRNK]
Halfplement WmipSecurityMethod, implement WmipGUIDFromString as a wrapper around RtlGUIDFromString due to different format requirements, fix usage of RtlPrefixUnicodeString.

svn path=/branches/kernel-fun/; revision=62301
2014-02-23 14:22:32 +00:00
David Quintana
dcbd65feca [RSHELL]
* CMenuDeskBar: Actually use the Popup flags to decide on the relative position of the submenus.
CORE-7886

svn path=/branches/shell-experiments/; revision=62296
2014-02-23 00:15:27 +00:00
David Quintana
905ab8ebba [RSHELL]
* Take "DbgPrint" function from explorer-new.
* CMenuBand: Show placeholder if the band gets an empty IShellFolder. Added what I guess is a hack, to allow CMenuDeskBar to get the submenu popup from the band.
* CMenuDeskBar: Use WM_ACTIVATE and WM_ACTIVATEAPP to detect when the menu should be closed. Uses the hack above for the exception of showing a submenu.
CORE-7886

svn path=/branches/shell-experiments/; revision=62295
2014-02-22 22:59:28 +00:00
Timo Kreuzer
d37659d1b7 [NTOSKRNL]
Add basic code for the WMI GUID object

svn path=/branches/kernel-fun/; revision=62294
2014-02-22 20:07:10 +00:00
Timo Kreuzer
d7aa49ecc2 [LSASRV]
Add beginning of the user mode part of the SRM server.

svn path=/branches/kernel-fun/; revision=62293
2014-02-22 20:03:53 +00:00
Timo Kreuzer
c2f355e9b8 [NTOSKRNL]
Add basic implementation of the SRM server

svn path=/branches/kernel-fun/; revision=62292
2014-02-22 19:28:52 +00:00
Timo Kreuzer
3d06212d1b [NTOSKRNL]
Start implementing the built-in WMI driver

svn path=/branches/kernel-fun/; revision=62291
2014-02-22 18:02:10 +00:00
Amine Khaldi
ddb3d908c9 * Sync up to trunk HEAD (r62285). Branch guys deserve the significant speedups too ;)
svn path=/branches/shell-experiments/; revision=62286
2014-02-22 10:31:26 +00:00
David Quintana
07467c9e06 [RSHELL]
* CMenuBand, CMenuDeskBar: Improve the SubMenu hierarchy and OnSelect flow. Now the menu will spread a FullCancel or Execute upwards and close the whole start menu.
CORE-7881

svn path=/branches/shell-experiments/; revision=62280
2014-02-21 10:00:00 +00:00
David Quintana
9f9be3f9bb [RSHELL]
* Improve the layout of the class definitions to make the important details easier to find.
* Rename private (non-COM) class methods to more appropriate names, including a prefix.
* CMenuBand: Make one submenu close before showing another one. This may not be happening in the same exact way windows does it.
CORE-7881

svn path=/branches/shell-experiments/; revision=62263
2014-02-20 16:18:49 +00:00
David Quintana
b1290e6ab0 [RSHELL]
* CMenuBand: Implement rudimentary support for changing the hot item with the keyboard (up/down). The code can probable be simpler, and some corner cases need to be fixed, but it works.
* CMenuDeskBar: Attempt to redesign OnSelect to better match the windows behaviour, which is still mostly unknown.
* Make the log results more readable.
CORE-7881

svn path=/branches/shell-experiments/; revision=62262
2014-02-20 12:12:42 +00:00
David Quintana
e0d383ebd4 [RSHELL]
* CMenuDeskBar: Use the submenu pointer to pass on the cancel events. Windows appears to call this with code=2 (cancellevel).
* CMenuBand: Begin implementing a focus manager for the menu windows. This class will take care of handling mouse and keyboard interactions, including closing the start menu and submenus when the user clicks outside the menu window.
CORE-7881

svn path=/branches/shell-experiments/; revision=62259
2014-02-19 20:35:50 +00:00
David Quintana
b6207043c9 [RSHELL]
* Reduce a few more log differences with windows.
CORE-7586

svn path=/branches/shell-experiments/; revision=62254
2014-02-19 13:58:28 +00:00
David Quintana
3b21639530 [RSHELL]
* Improve the logging system to allow using the same logger for both windows classes and rshell classes.
* Add a wrapper for CMenuSite.
* CMenuDeskBar: Reduce the log differences by keeping a cached copy of the client HWND.
* CMenuBand: Reduce the log differences by keeping a copy of the top level HWND. Will be used later.
CORE-7586

svn path=/branches/shell-experiments/; revision=62253
2014-02-19 12:19:50 +00:00
David Quintana
ea49280564 [RSHELL]
* Separate logger wrappers from the actual implementations.
* Fix some warnings.
CORE-7586

svn path=/branches/shell-experiments/; revision=62252
2014-02-19 00:20:45 +00:00
David Quintana
f1281f1369 [RSHELL]
* Fix some more C-style casts, and misc coding style changes.
* CMenuBand: Create a skeleton of the functions that would handle SMIF_TRACKPOPUP submenus.
* CMenuDeskBar: Fix the redraw issue that prevented submenus from working as expected.
CORE-7886

svn path=/branches/shell-experiments/; revision=62248
2014-02-18 18:18:08 +00:00
David Quintana
7c921822b4 [RSHELL]
* CMenuBand: Improve wrapper logging to get a better picture. Handle more SIDs on QueryService. Send selection messages on hot item changed and on execute.
* CMenuDeskBar: Improve wrapper logging to get a better picture. Handle more SIDs on QueryService. Begin handling more cases in OnSelect.
CORE-7881

svn path=/branches/shell-experiments/; revision=62243
2014-02-18 13:55:57 +00:00
David Quintana
edfdf34624 [RSHELL]
* CMenuBand: Fix display of icons for the static toolbar.
* CMenuDeskBar: Fix positioning of the window not to cross the top edge.
CORE-7881

svn path=/branches/shell-experiments/; revision=62242
2014-02-18 11:17:37 +00:00
David Quintana
662d8363c3 [RSHELL]
* CMenuBand: Fix submenu creation for shell folder menus.
CORE-7881

svn path=/branches/shell-experiments/; revision=62240
2014-02-18 11:05:20 +00:00
David Quintana
2b63295fea [RSHELL]
* Change C-style casts to static_cast where possible, and reinterpret_cast elsewhere.
* Make coding style and formatting more consistent.

svn path=/branches/shell-experiments/; revision=62239
2014-02-18 10:26:50 +00:00
Giannis Adamopoulos
46e9b4d1e3 [rshell]
- CStartMenu: add a test flag that makes the start menu show its submenus using SMIF_TRACKPOPUP in order to show how CMenuBand can use TrackPopupMenu 

svn path=/branches/shell-experiments/; revision=62238
2014-02-18 09:18:16 +00:00
David Quintana
b42655951c [RSHELL]
* CMenuBand: Begin implementing submenus for shell items.
* CMenuBand: Begin implementing context menus.
CORE-7881

svn path=/branches/shell-experiments/; revision=62232
2014-02-17 18:38:31 +00:00
David Quintana
d5f6a80f41 [RSHELL]
* CMenuBand: Improve the code structure.
 * Make the class selection better managed.
Thanks Giannis.
CORE-7881

svn path=/branches/shell-experiments/; revision=62231
2014-02-17 17:16:55 +00:00
David Quintana
3aaf437172 [RSHELL]
* CMenuBand: Implement PopupItem for static menus.
 * CMenuDeskBar: Initialize m_Banner.
 * CStartMenu: Create CSubMenu_Constructor function that creates submenus (needs a better name/location).
 * Misc. code style changes.
CORE-7881

svn path=/branches/shell-experiments/; revision=62228
2014-02-17 16:41:10 +00:00
David Quintana
d28d1bb1df [RSHELL]
* CMenuDeskBar: Use the proper value for style in AdjustWindowRect.
* CMenuBand: Implement submenu hot-tracking timer. Not functional yet (submenu creation not implemented).
CORE-7881

svn path=/branches/shell-experiments/; revision=62227
2014-02-17 15:38:55 +00:00
David Quintana
b71085bcc2 [RSHELL]
* CMenuBand: Handle WM_COMMAND and run SMC_EXEC for static menu items (Run, Shutdown).
CORE-7881

svn path=/branches/shell-experiments/; revision=62226
2014-02-17 11:20:35 +00:00
Giannis Adamopoulos
d29f9dcfef [RSHELL]
- CMenuDeskBar: Implement showing a shadow. Implement closing the menu when it loses focus (this only works with the stock menu band for now)

svn path=/branches/shell-experiments/; revision=62225
2014-02-17 10:42:52 +00:00
Giannis Adamopoulos
dc404583fd [rshell]
- CMenuBand: Fix the size of the separators by setting iBitmap to 0 (which acts as the width of the separator).
- CMenuDeskBar: 
Create the window only in CMenuDeskBar::SetClient and not in SetSite. 
Greatly simplify SetSite. 
Make sure that WS_EX_TOPMOST isn't removed when we call SetWindowPos
Do not forward requests for the SID_SMenuPopup service to the taskbar as this causes the menu band to capture the mouse for the taskbar and not the desk bar

svn path=/branches/shell-experiments/; revision=62223
2014-02-16 21:53:21 +00:00
David Quintana
9a1d783d54 [RSHELL]
* CMenuBand: Bring the style closer to a menu.

svn path=/branches/shell-experiments/; revision=62214
2014-02-16 12:48:41 +00:00
David Quintana
60df5bae60 [RSHELL]
* CMenuDeskBar: Improve code style, and implement some more methods.

svn path=/branches/shell-experiments/; revision=62213
2014-02-16 12:48:29 +00:00
David Quintana
e325d1372e [RSHELL]
* CMenuSite: Improve code style.

svn path=/branches/shell-experiments/; revision=62212
2014-02-16 12:48:09 +00:00
David Quintana
c57c04a7c2 [RSHELL]
* A couple small fixes before I go to bed.
* Add to CD, so explorer_new can be run in ros, with the custom classes.
CORE-7886

svn path=/branches/shell-experiments/; revision=62156
2014-02-13 23:49:19 +00:00
David Quintana
c486aa0a00 [RSHELL]
* Add more missing code. The custom CMenuDeskBand is now able to show the contents of a CMenuSite/CMenuBand in the right size, including the banner (not yet fully functional).
* Organize the method list in CMenuSite by interface.

[EXPLORER-NEW]
* Revert the hacks from r62134.

[PSDK]
* Add IUnknown_QueryServiceExec to shlwapi_undoc.h

svn path=/branches/shell-experiments/; revision=62149
2014-02-13 20:16:30 +00:00
David Quintana
3bb9ee7f77 [RSHELL]
* Port the implementation of CMenuDeskBar to rshell (still disabled by default).
* Begin implementing missing features:
 - Notify the band of the icon size change from SetIconSize.

svn path=/branches/shell-experiments/; revision=62138
2014-02-12 19:46:24 +00:00
David Quintana
edd5a38091 [MPLAY32]
* Remove from build while it hangs VS2013.

[EXPLORER-NEW]
* Hack it to work on Windows 7, even if an existing explorer is already running.
* Move start menu popup to its own function, for easier debugging.
* Maybe-fix a drawing issue if no theme is selected.

[RSHELL]
* Added wrapper for CMenuBand
* The cmake script should not use a hardcoded path
* Better name for the log file.
CORE-7886

svn path=/branches/shell-experiments/; revision=62134
2014-02-12 17:48:49 +00:00
David Quintana
ea6aff329b [RSHELL]
* Separate the wrapper logging code to its own file, to facilitate further debugging in other classes.

svn path=/branches/shell-experiments/; revision=62133
2014-02-12 16:54:58 +00:00
David Quintana
5f6b18cc4d [RSHELL]
* Implemented a class that wraps CMenuBand, for the purpose of logging the calls, with parameters and returned values (disabled, set WRAP_LOG to 1).
* Partial (WIP) implementation of CMenuBand.

[ATL]
* VirtualAlloc can not have a non-zero size while using MEM_RELEASE.

svn path=/branches/shell-experiments/; revision=62132
2014-02-12 16:48:36 +00:00
David Quintana
2dc8375579 [RSHELL]
* Implement CMenuSite
CORE-7879

svn path=/branches/shell-experiments/; revision=62131
2014-02-12 16:35:29 +00:00
Giannis Adamopoulos
372a7f9133 - Improve filebrowser a bit and add some FIXMEs to show what should be done later
svn path=/branches/shell-experiments/; revision=62118
2014-02-11 14:06:26 +00:00
Giannis Adamopoulos
239867bdd1 [browseui]
- Add a tiny hack in browseui that allows it to browse properly when the user tries to open a folder in win8

svn path=/branches/shell-experiments/; revision=62082
2014-02-09 21:32:07 +00:00
Giannis Adamopoulos
f47e7d9c12 [filebrowser]
- Do not embed a manifest in the resources in order to allow three different scenarios that can be accomplished by using two manifests
- In the first scenario we have filebrowser.exe + filebrowser.exe.manifest in the same folder. This should work only in windows xp, 2003 and reactos as it depends on the browseui that exists in windows
- The second scenario is to have filebrowser.exe + filebrowser.exe.manifest + browseui.dll in the same folder. This should also work in the same platforms as above but the core of the file browser will be used from the supplied browseui. However browseui will also request to instantiate some com objects implemented in browse and as a result some objects will be used from the browseui that exists in windows
- The third scenario is to have filebrowser.exe + filebrowser.exe.regfree.manifest + browseui.dll + browseui.sxs.manifest. This scenario should work in windows xp and all later versions. Note that filebrowser.exe.regfree.manifest must be renamed to filebrowser.exe.manifest. In this scenario all the functionality of the file browser window is used from the supplied browseui.dll

svn path=/branches/shell-experiments/; revision=62081
2014-02-09 21:23:07 +00:00
Giannis Adamopoulos
f0aee80fcb [atl]
- Fix atl thunks to be allocated in executable memory and not from the stack in order to run libraries that use atl (such as browseui) in windows with DEP enabled 

svn path=/branches/shell-experiments/; revision=62011
2014-02-06 13:07:37 +00:00
Giannis Adamopoulos
1724ea64fb [explorer_new]
- Implement showing and closing the start menu by pressing the WIN key
- Implement handling WM_KLUDGEMINRECT message that informs the window manager the place of an application in the taskbar in order to show the minimization or maximization animation of a window
- Implement showing taskbar settings when the user selects to show the taskbar settings from the settings menu in start menu
- Implement hiding the Favorites menu in the start menu when needed

svn path=/branches/shell-experiments/; revision=62010
2014-02-06 13:01:54 +00:00
Giannis Adamopoulos
c82da59af8 [undocuser.h]
- add the definition of the undocumented message WM_KLUDGEMINRECT

svn path=/branches/shell-experiments/; revision=62009
2014-02-06 13:00:48 +00:00
Giannis Adamopoulos
310ba0e356 [rshell.dll]
-cleanup the header from the remnants of my countless hacks that I tried with this module

svn path=/branches/shell-experiments/; revision=61979
2014-02-04 12:14:14 +00:00
Giannis Adamopoulos
222f0efde5 [rshell]
- Commit rshell.exe that allows explorer_new to run in windows 8

svn path=/branches/shell-experiments/; revision=61978
2014-02-04 12:11:51 +00:00
Giannis Adamopoulos
0a7da455d3 - Add filebrowser to build
svn path=/branches/shell-experiments/; revision=61976
2014-02-04 10:55:46 +00:00
Giannis Adamopoulos
3408d41c60 [filebrowser]
- Add an experimental module called FileBrowser.exe. This program works standalone in windows xp and windows 2003 and opens a new file browser window in its own process. If our browseui.dll is in the same folder, filebrowser will use the implementation of our file browser in windows. That means that standalone it works only in xp and 2003 but with our own browseui it will work on all windows versions (but doesn't work on all for now). This can be used for both testing the implementation of our file browser in windows and as a host process for new file browser windows for explorer_new.exe + rshell.dll

svn path=/branches/shell-experiments/; revision=61974
2014-02-04 10:49:39 +00:00
Giannis Adamopoulos
f52dad5f15 [explorer_new]
- Commit a great experiment for explorer. Our explorer will try to load a library called rshell.dll which will provide an alternative implementation of some functions that are built in in windows shell. These functions are CStartMenu_Constructor, SHCreateDesktop, SHDesktopMessageLoop, WinList_Init and ShellDDEInit. Providing our own implementation for these functions will allow us to make it run in all windows versions up to windows 8 and also test the implementation of our own components that will be placed temporarily in rshell.dll while they are developed and debugged in windows.

svn path=/branches/shell-experiments/; revision=61971
2014-02-04 10:41:02 +00:00
Amine Khaldi
527f2f9057 [SHELL/EXPERIMENTS]
* Create a branch for some evul shell experiments.

svn path=/branches/shell-experiments/; revision=61927
2014-02-02 19:37:27 +00:00
11582 changed files with 1188139 additions and 579901 deletions

View File

@@ -1,31 +0,0 @@
[patterns]
**.txt = native
**.cmake = native
**.asm = native
**.S = native
**.cxx = native
**.cpp = native
**.hpp = native
**.hxx = native
**.c = native
**.h = native
**.py = native
**.rc = native
**.html = native
**.bat = native
**.cmd = native
**.mak = native
**makefile = native
**.manifest = native
**.properties = native
**.dsp = native
**.sln = native
**.vcproj = native
**.gen = native
**.bmp = BIN
**.cur = BIN
**.ico = BIN
**.jpg = BIN
**.png = BIN
tgzsrc = LF
scripts/ba = LF

View File

@@ -1,11 +1,21 @@
cmake_minimum_required(VERSION 2.6)
cmake_minimum_required(VERSION 2.8.12)
if(POLICY CMP0017)
# Shadow cmake provided modules
cmake_policy(SET CMP0017 OLD)
endif()
if(POLICY CMP0026)
# Allow use of the LOCATION property
cmake_policy(SET CMP0026 OLD)
endif()
if(POLICY CMP0051)
# List TARGET_OBJECTS in SOURCES target property
cmake_policy(SET CMP0051 NEW)
endif()
project(REACTOS)
# Versioning
@@ -27,8 +37,8 @@ set(CMAKE_COLOR_MAKEFILE OFF)
#set_property(GLOBAL PROPERTY RULE_MESSAGES OFF)
set(CMAKE_SKIP_INSTALL_RULES ON)
if(NOT CMAKE_VERSION STREQUAL "2.8.12.1-ReactOS")
set(CMAKE_DISABLE_NINJA_DEPSLOG TRUE)
if(NOT DEFINED NEW_STYLE_BUILD)
set(NEW_STYLE_BUILD TRUE)
endif()
if(NOT ARCH)
@@ -55,8 +65,25 @@ include(cmake/compilerflags.cmake)
add_definitions(-D__REACTOS__)
if(MSVC_IDE)
add_compile_flags("/MP")
endif()
# We don't need CMake importlib handling.
# FIXME: Remove the MSVC_IDE condition when the upcoming RosBE lands.
if(NOT MSVC_IDE)
unset(CMAKE_IMPORT_LIBRARY_SUFFIX)
endif()
# Bison and Flex support
# include(cmake/bison-flex.cmake)
if(NOT CMAKE_CROSSCOMPILING)
if(NEW_STYLE_BUILD)
set(TOOLS_FOLDER ${CMAKE_CURRENT_BINARY_DIR})
endif()
add_definitions(-DTARGET_${ARCH})
if(MSVC)
@@ -79,14 +106,23 @@ if(NOT CMAKE_CROSSCOMPILING)
add_subdirectory(tools)
add_subdirectory(lib)
if(NOT MSVC)
export(TARGETS bin2c widl gendib cabman cdmake mkhive obj2bin spec2def geninc rsym mkshelllink utf16le FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
else()
export(TARGETS bin2c widl gendib cabman cdmake mkhive obj2bin spec2def geninc mkshelllink utf16le FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
if(NOT NEW_STYLE_BUILD)
if(NOT MSVC)
export(TARGETS bin2c widl gendib cabman cdmake fatten hpp mkhive obj2bin spec2def geninc rsym mkshelllink utf16le FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
else()
export(TARGETS bin2c widl gendib cabman cdmake fatten hpp mkhive obj2bin spec2def geninc mkshelllink utf16le FILE ${CMAKE_BINARY_DIR}/ImportExecutables.cmake NAMESPACE native- )
endif()
endif()
else()
if(NEW_STYLE_BUILD)
include(cmake/host-tools.cmake)
endif()
# Print build type
message("-- Build Type: ${CMAKE_BUILD_TYPE}")
# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
# programs in the host environment
@@ -97,15 +133,6 @@ else()
#useful stuff!
include(CMakeParseArguments)
if(ENABLE_CCACHE)
set(CMAKE_C_USE_RESPONSE_FILE_FOR_INCLUDES OFF)
set(CMAKE_CXX_USE_RESPONSE_FILE_FOR_INCLUDES OFF)
endif()
# Default to Debug for the build type
set(CMAKE_BUILD_TYPE "Debug" CACHE STRING
"Choose the type of build, options are: None(CMAKE_CXX_FLAGS or CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel." FORCE)
# Do some cleanup
file(REMOVE
${REACTOS_BINARY_DIR}/dependencies.graphml
@@ -116,13 +143,14 @@ else()
${REACTOS_BINARY_DIR}/boot/ros_cab.txt
${REACTOS_BINARY_DIR}/boot/ros_cab_target.txt)
if(NOT DEFINED REACTOS_BUILD_TOOLS_DIR)
set(REACTOS_BUILD_TOOLS_DIR ${REACTOS_SOURCE_DIR}/build)
if(NOT NEW_STYLE_BUILD)
if(NOT DEFINED REACTOS_BUILD_TOOLS_DIR)
set(REACTOS_BUILD_TOOLS_DIR ${REACTOS_SOURCE_DIR}/build)
endif()
set(IMPORT_EXECUTABLES "${REACTOS_BUILD_TOOLS_DIR}/ImportExecutables.cmake" CACHE FILEPATH "Host executables")
include(${IMPORT_EXECUTABLES})
endif()
set(IMPORT_EXECUTABLES "${REACTOS_BUILD_TOOLS_DIR}/ImportExecutables.cmake" CACHE FILEPATH "Host executables")
include(${IMPORT_EXECUTABLES})
if(DBG)
add_definitions(-DDBG=1 -D_SEH_ENABLE_TRACE)
else()
@@ -137,7 +165,7 @@ else()
add_definitions(-D_WINKD_=1)
endif()
if(CMAKE_VERSION STREQUAL "2.8.12.1-ReactOS")
if(CMAKE_VERSION MATCHES "ReactOS")
set(PCH 1 CACHE BOOL "Whether to use precompiled headers")
else()
set(PCH 0 CACHE BOOL "Whether to use precompiled headers")
@@ -157,7 +185,10 @@ else()
add_definitions(-D_M_AMD64 -D_AMD64_ -D__x86_64__ -D_WIN64)
elseif(ARCH STREQUAL "arm")
# _M_ARM is already defined by toolchain
add_definitions(-D_ARM_ -D__arm__)
add_definitions(-D_ARM_ -D__arm__ -DWIN32)
if(SARCH STREQUAL "omap-zoom2")
add_definitions(-D_ZOOM2_)
endif()
endif()
# Other
@@ -166,7 +197,7 @@ else()
elseif(ARCH STREQUAL "amd64")
add_definitions(-DUSE_COMPILER_EXCEPTIONS -DNO_UNDERSCORE_PREFIX)
elseif(ARCH STREQUAL "arm")
add_definitions(-DUSE_COMPILER_EXCEPTIONS)
add_definitions(-DUSE_COMPILER_EXCEPTIONS -DNO_UNDERSCORE_PREFIX)
endif()
# Activate support for assembly source files
@@ -202,6 +233,7 @@ else()
${REACTOS_BINARY_DIR}/include
${REACTOS_BINARY_DIR}/include/psdk
${REACTOS_BINARY_DIR}/include/dxsdk
${REACTOS_BINARY_DIR}/include/ddk
${REACTOS_BINARY_DIR}/include/reactos
include/crt
include/ddk
@@ -215,6 +247,7 @@ else()
add_dependency_header()
add_subdirectory(include/xdk)
add_subdirectory(include/psdk)
add_subdirectory(include/dxsdk)
add_subdirectory(include/reactos/wine)
@@ -223,6 +256,8 @@ else()
if(NO_ROSSYM)
include(cmake/baseaddress_dwarf.cmake)
elseif(MSVC)
include(cmake/baseaddress_msvc.cmake)
else()
include(cmake/baseaddress.cmake)
endif()
@@ -244,6 +279,9 @@ else()
add_subdirectory(tools/wpp)
add_subdirectory(win32ss)
# Create the registry hives
create_registry_hives()
# Create {bootcd, livecd, bootcdregtest}.lst
create_iso_lists()

View File

@@ -13,6 +13,7 @@ Brian Palmer <brianp@sginet.com>
Cameron M. Gutman <cgutman@reactos.org>
Casper S. Hornstrup <chorns@users.sourceforge.net>
Christoph von Wittich <christoph_vw@reactos.org>
Colin Finck <colin@reactos.org>
Daniel Reimer <reimer.daniel@freenet.de>
David Welch <welch@cwcom.net>
Dmitry Chapyshev <dmitry@reactos.org>
@@ -67,7 +68,7 @@ Robert Dickenson <robd@reactos.org>
Royce Mitchell III <royce3@ev1.net>
Samuel Serapi<70>n <samdwise51@gmail.com>
Saveliy Tretiakov <saveliyt@mail.ru>
Stefan Ginsberg <stefan__100__@hotmail.com>
Stefan Ginsberg <stefan.ginsberg@reactos.org>
Steven Edwards <winehacker@gmail.com>
Thomas Weidenmueller <w3seek@users.sourceforge.net>
Timo Kreuzer <timo.kreuzer@reactos.org>

View File

@@ -1,28 +1,41 @@
1. Build environment
--------------------
To build the system you need either mingw32 installed on Windows or a mingw32
cross compiler running on unix. You may obtain MinGW binaries that build
ReactOS from http://www.reactos.org/.
To build the system it is strongly advised to use the ReactOS Build Environment
(RosBE). Up-to-date versions for Windows and for Unix/GNU-Linux are available
from our download page at: http://www.reactos.org/wiki/Build_Environment/
Alternatively one can use Microsoft Visual C++ (MSVC) version 2010+, together
with separate installations of CMake and the Ninja build utility.
2. Building ReactOS
-------------------
A throughout guide for how to build ReactOS can be found at:
http://www.reactos.org/wiki/Building_ReactOS
In the following we only make a quick overview.
2.1 Building the binaries
To build ReactOS run 'make' (without the quotes) if you are building on Linux
or 'mingw32-make' if you are building on Windows (or ReactOS) from the top
directory. If you are using RosBE, follow on-screen instructions.
To build ReactOS run 'ninja' (without the quotes), or alternatively run
'make' if you are using the Make utility, from the top directory.
NOTE: In the other examples listed in the following, similar modification
holds if you are using the Make utility instead of Ninja.
If you are using RosBE, follow on-screen instructions.
2.2 Building a bootable CD image
To build a bootable CD image run 'make bootcd' (without the quotes) if you are
building on Linux or 'mingw32-make bootcd' if you are building on Windows (or
ReactOS) from the top directory. This will create a CD image with a filename,
ReactOS.iso, in the top directory.
To build a bootable CD image run 'ninja bootcd' (without the quotes) from the
top directory. This will create a CD image with a filename, ReactOS.iso, in
the top directory.
3. Installation
---------------
ReactOS can only be installed on a machine that has a FAT16 or FAT32 partition
as the active (bootable) partition. The partition on which ReactOS is to be
@@ -41,13 +54,13 @@ build a bootable CD as described above. Burn the CD image, boot from it, and
follow the instructions to install ReactOS.
If you have an existing ReactOS installation you want to upgrade, then to
install ReactOS after building it, type 'make install' or
'mingw32-make install'. This will create the directory 'reactos' in the top
directory. Copy the contents of this directory over the existing installation.
install ReactOS after building it, type 'ninja install'. This will create
the directory 'reactos' in the top directory. Copy the contents of this
directory over the existing installation.
If you don't want to copy the files manually every time you run a
'make install' or 'mingw32-make install', then you can specify the directory
where the files are to be copied to during installation.
'ninja install', then you can specify the directory where the files are
to be copied to during installation.
Set the ROS_INSTALL environment variable. If you are on Windows this could be
done by:
@@ -58,8 +71,7 @@ If you are on Linux this could be done by:
export ROS_INSTALL=/mnt/windows/reactos
Now run 'make install' or 'mingw32-make install' to install the files to the
new location.
Now run 'ninja install' to install the files to the new location.
3.2 Installation from bootable CD distribution
@@ -68,12 +80,13 @@ To install ReactOS from the bootable CD distribution, extract the archive
contents. Then burn the CD image, boot from it, and follow instructions.
5. Help
4. Help
-------
If you run into problems or have suggestions for making ReactOS better, please
visit the address below. Mailing lists are available for a variety of topics,
bugs should be submitted to JIRA and general chat takes place in the forums,
or #reactos on freenode
or #reactos on freenode.
http://www.reactos.org/

View File

@@ -1,29 +1,32 @@
========================
ReactOS Version 0.3.x
Updated Dec 16, 2006
ReactOS<EFBFBD> Version 0.4.x
Updated January 5, 2016
========================
1. What is ReactOS?
-------------------
ReactOS is an Open Source effort to develop a quality operating system
that is compatible with Windows NT applications and drivers.
ReactOS<EFBFBD> is an Open Source effort to develop a quality operating system that is
compatible with applications and drivers written for the Microsoft<66> Windows<77> NT
family of operating systems (NT4, 2000, XP, 2003, Vista, Seven).
The ReactOS project, although currently focused on Windows XP/2003
drivers compatibility, is always keeping an eye toward compatibility with
older version of Windows NT family ( NT 4.0, 2000 (NT 5.0)) and new
Windows NT releases (Vista, etc). Applications (Win32 API) compatibility
focus is Windows XP.
The ReactOS project, although currently focused on Windows Server 2003
compatibility, is always keeping an eye toward compatibility with
Windows Vista and future Windows NT releases.
More information is available at http://www.reactos.org/.
More information is available at: http://www.reactos.org
2. Building ReactOS
-------------------
See the INSTALL file for more details.
3. More information
-------------------
See the media\doc subdirectory for some sparse notes.
4. Who is responsible
---------------------
See the CREDITS file.

View File

@@ -3,6 +3,7 @@ add_subdirectory(atactl)
add_subdirectory(cacls)
add_subdirectory(calc)
add_subdirectory(charmap)
add_subdirectory(clipbrd)
add_subdirectory(cmdutils)
add_subdirectory(control)
add_subdirectory(dxdiag)
@@ -18,12 +19,15 @@ add_subdirectory(magnify)
add_subdirectory(mmc)
add_subdirectory(mplay32)
add_subdirectory(msconfig)
add_subdirectory(msconfig_new)
add_subdirectory(mscutils)
add_subdirectory(mspaint)
add_subdirectory(mstsc)
add_subdirectory(network)
add_subdirectory(notepad)
add_subdirectory(mspaint)
add_subdirectory(osk)
add_subdirectory(rapps)
add_subdirectory(rapps_new)
add_subdirectory(regedit)
add_subdirectory(regedt32)
add_subdirectory(sc)

View File

@@ -1,10 +1,8 @@
set_cpp()
add_definitions(-DUSER_MODE)
include_directories(${REACTOS_SOURCE_DIR}/drivers/storage/ide/uniata)
add_executable(atactl atactl.cpp atactl.rc)
set_module_type(atactl win32cui)
add_importlibs(atactl advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET atactl DESTINATION reactos/system32 FOR all)

View File

@@ -19,6 +19,11 @@
#include "precomp.h"
/* command line options */
BOOL OptionT = FALSE, OptionE = FALSE, OptionC = FALSE;
BOOL OptionG = FALSE, OptionR = FALSE, OptionP = FALSE, OptionD = FALSE;
LPCTSTR GUser, GPerm, RUser, PUser, PPerm, DUser;
static GENERIC_MAPPING FileGenericMapping =
{
FILE_GENERIC_READ,
@@ -512,92 +517,500 @@ PrintSpecialAccess:
return Ret;
}
/* add a backslash at end to a path string if necessary */
static VOID
AddBackslash(LPTSTR FilePath)
{
INT len = lstrlen(FilePath);
LPTSTR pch = CharPrev(FilePath, FilePath + len);
if (*pch != _T('\\'))
lstrcat(pch, _T("\\"));
}
static BOOL
GetPathOfFile(LPTSTR FilePath, LPCTSTR pszFiles)
{
TCHAR FullPath[MAX_PATH];
LPTSTR pch;
DWORD attrs;
lstrcpyn(FilePath, pszFiles, MAX_PATH);
pch = _tcsrchr(FilePath, _T('\\'));
if (pch != NULL)
{
*pch = 0;
if (!GetFullPathName(FilePath, MAX_PATH, FullPath, NULL))
{
PrintErrorMessage(GetLastError());
return FALSE;
}
lstrcpyn(FilePath, FullPath, MAX_PATH);
attrs = GetFileAttributes(FilePath);
if (attrs == 0xFFFFFFFF || !(attrs & FILE_ATTRIBUTE_DIRECTORY))
{
PrintErrorMessage(ERROR_DIRECTORY);
return FALSE;
}
}
else
GetCurrentDirectory(MAX_PATH, FilePath);
AddBackslash(FilePath);
return TRUE;
}
static BOOL
PrintDaclsOfFiles(LPCTSTR pszFiles)
{
TCHAR FilePath[MAX_PATH];
WIN32_FIND_DATA FindData;
HANDLE hFind;
DWORD LastError;
/*
* get the file path
*/
if (!GetPathOfFile(FilePath, pszFiles))
return FALSE;
/*
* search for the files
*/
hFind = FindFirstFile(pszFiles, &FindData);
if (hFind == INVALID_HANDLE_VALUE)
return FALSE;
do
{
if (FindData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
continue;
if (!PrintFileDacl(FilePath, FindData.cFileName))
{
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
if (!OptionC)
{
FindClose(hFind);
return FALSE;
}
}
else
break;
}
else
_tprintf(_T("\n"));
} while(FindNextFile(hFind, &FindData));
LastError = GetLastError();
FindClose(hFind);
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
return FALSE;
}
return TRUE;
}
static BOOL
GrantUserAccessRights(LPCTSTR FilePath, LPCTSTR File, LPCTSTR User, TCHAR Perm)
{
/* TODO & FIXME */
switch(Perm)
{
case _T('R'): // Read
break;
case _T('W'): // Write
break;
case _T('C'): // Change (write)
break;
case _T('F'): // Full control
break;
default:
break;
}
return FALSE;
}
static BOOL
ReplaceUserAccessRights(
LPCTSTR FilePath,
LPCTSTR File,
LPCTSTR User,
TCHAR Perm)
{
/* TODO & FIXME */
switch(Perm)
{
case _T('N'): // None
break;
case _T('R'): // Read
break;
case _T('W'): // Write
break;
case _T('C'): // Change (write)
break;
case _T('F'): // Full control
break;
default:
break;
}
return FALSE;
}
static BOOL
EditUserAccessRights(
LPCTSTR FilePath,
LPCTSTR File,
LPCTSTR User,
TCHAR Perm)
{
/* TODO & FIXME */
switch(Perm)
{
case _T('N'): // None
break;
case _T('R'): // Read
break;
case _T('W'): // Write
break;
case _T('C'): // Change (write)
break;
case _T('F'): // Full control
break;
default:
break;
}
return FALSE;
}
static BOOL
DenyUserAccess(LPCTSTR FilePath, LPCTSTR File, LPCTSTR User)
{
/* TODO & FIXME */
return FALSE;
}
static BOOL
RevokeUserAccessRights(LPCTSTR FilePath, LPCTSTR File, LPCTSTR User)
{
/* TODO & FIXME */
return FALSE;
}
static BOOL
ChangeFileACL(LPCTSTR FilePath, LPCTSTR File)
{
if (OptionG)
{
/* Grant specified user access rights. */
GrantUserAccessRights(FilePath, File, GUser, *GPerm);
}
if (OptionP)
{
if (!OptionE)
{
/* Replace specified user's access rights. */
ReplaceUserAccessRights(FilePath, File, PUser, *PPerm);
}
else
{
/* Edit ACL instead of replacing it. */
EditUserAccessRights(FilePath, File, PUser, *PPerm);
}
}
if (OptionD)
{
/* Deny specified user access. */
DenyUserAccess(FilePath, File, DUser);
}
if (OptionR)
{
/* Revoke specified user's access rights. */
RevokeUserAccessRights(FilePath, File, RUser);
}
return TRUE;
}
static BOOL
ChangeACLsOfFiles(LPCTSTR pszFiles)
{
TCHAR FilePath[MAX_PATH];
HANDLE hFind;
WIN32_FIND_DATA FindData;
DWORD LastError;
/*
* get the file path
*/
if (!GetPathOfFile(FilePath, pszFiles))
return FALSE;
/*
* search for files in current directory
*/
hFind = FindFirstFile(pszFiles, &FindData);
if (hFind == INVALID_HANDLE_VALUE)
return FALSE;
do
{
if (FindData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
continue;
if (!ChangeFileACL(FilePath, FindData.cFileName))
{
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
if (!OptionC)
{
FindClose(hFind);
return FALSE;
}
}
else
break;
}
} while(FindNextFile(hFind, &FindData));
LastError = GetLastError();
FindClose(hFind);
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
return FALSE;
}
return TRUE;
}
static BOOL
ChangeACLsOfFilesInCurDir(LPCTSTR pszFiles)
{
HANDLE hFind;
WIN32_FIND_DATA FindData;
TCHAR szCurDir[MAX_PATH];
DWORD LastError;
/*
* get the file path (current directory)
*/
GetCurrentDirectory(MAX_PATH, szCurDir);
AddBackslash(szCurDir);
/*
* search for files in current directory
*/
hFind = FindFirstFile(pszFiles, &FindData);
if (hFind == INVALID_HANDLE_VALUE)
return FALSE;
do
{
if (FindData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
continue;
if (!ChangeFileACL(szCurDir, FindData.cFileName))
{
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
if (!OptionC)
{
FindClose(hFind);
return FALSE;
}
}
else
break;
}
} while(FindNextFile(hFind, &FindData));
LastError = GetLastError();
FindClose(hFind);
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
return FALSE;
}
/*
* search for subdirectory in current directory
*/
hFind = FindFirstFile(_T("*"), &FindData);
if (hFind == INVALID_HANDLE_VALUE)
return FALSE;
do
{
if (_tcscmp(FindData.cFileName, _T(".")) == 0 ||
_tcscmp(FindData.cFileName, _T("..")) == 0)
continue;
if (FindData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
{
GetCurrentDirectory(MAX_PATH, szCurDir);
if (SetCurrentDirectory(FindData.cFileName))
{
ChangeACLsOfFilesInCurDir(pszFiles);
SetCurrentDirectory(szCurDir);
}
else
{
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
if (!OptionC)
{
FindClose(hFind);
return FALSE;
}
}
else
break;
}
}
} while(FindNextFile(hFind, &FindData));
LastError = GetLastError();
FindClose(hFind);
if (LastError != ERROR_NO_MORE_FILES)
{
PrintErrorMessage(LastError);
return FALSE;
}
return TRUE;
}
int
__cdecl
_tmain(int argc, const TCHAR *argv[])
{
if (argc < 2)
INT i;
LPTSTR pch;
BOOL InvalidParameter = FALSE;
if (argc <= 1)
{
PrintHelp();
return 0;
}
/*
* parse command line options
*/
for (i = 2; i < argc; i++)
{
if (lstrcmpi(argv[i], _T("/T")) == 0)
{
OptionT = TRUE;
}
else if (lstrcmpi(argv[i], _T("/E")) == 0)
{
OptionE = TRUE;
}
else if (lstrcmpi(argv[i], _T("/C")) == 0)
{
OptionC = TRUE;
}
else if (lstrcmpi(argv[i], _T("/G")) == 0)
{
if (i + 1 < argc)
{
pch = _tcschr(argv[++i], _T(':'));
if (pch != NULL)
{
OptionG = TRUE;
*pch = 0;
GUser = argv[i];
GPerm = pch + 1;
continue;
}
}
InvalidParameter = TRUE;
break;
}
else if (lstrcmpi(argv[i], _T("/R")) == 0)
{
if (i + 1 < argc)
{
RUser = argv[++i];
OptionR = TRUE;
continue;
}
InvalidParameter = TRUE;
break;
}
else if (lstrcmpi(argv[i], _T("/P")) == 0)
{
if (i + 1 < argc)
{
pch = _tcschr(argv[++i], _T(':'));
if (pch != NULL)
{
OptionP = TRUE;
*pch = 0;
PUser = argv[i];
PPerm = pch + 1;
continue;
}
}
InvalidParameter = TRUE;
break;
}
else if (lstrcmpi(argv[i], _T("/D")) == 0)
{
if (i + 1 < argc)
{
OptionD = TRUE;
DUser = argv[++i];
continue;
}
InvalidParameter = TRUE;
break;
}
else
{
InvalidParameter = TRUE;
break;
}
}
if (InvalidParameter)
{
PrintErrorMessage(ERROR_INVALID_PARAMETER);
PrintHelp();
return 1;
}
/* /R is only valid with /E */
if (OptionR && !OptionE)
{
OptionR = FALSE;
}
PrintDaclsOfFiles(argv[1]);
if (OptionT)
{
ChangeACLsOfFilesInCurDir(argv[1]);
}
else
{
TCHAR FullPath[MAX_PATH + 1];
TCHAR *FilePart = NULL;
WIN32_FIND_DATA FindData;
HANDLE hFind;
DWORD LastError;
if (argc > 2)
{
/* FIXME - parse arguments */
}
/* get the full path of where we're searching in */
if (GetFullPathName(argv[1],
sizeof(FullPath) / sizeof(FullPath[0]),
FullPath,
&FilePart) != 0)
{
if (FilePart != NULL)
*FilePart = _T('\0');
}
else
goto Error;
/* find the file(s) */
hFind = FindFirstFile(argv[1],
&FindData);
if (hFind != INVALID_HANDLE_VALUE)
{
do
{
if (!(FindData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) ||
(_tcscmp(FindData.cFileName,
_T(".")) &&
_tcscmp(FindData.cFileName,
_T(".."))))
{
if (argc > 2)
{
/* FIXME - edit or replace the descriptor */
}
else
{
if (!PrintFileDacl(FullPath,
FindData.cFileName))
{
LastError = GetLastError();
if (LastError == ERROR_ACCESS_DENIED)
{
PrintErrorMessage(LastError);
}
else
break;
}
else
_tprintf(_T("\n"));
}
}
} while (FindNextFile(hFind,
&FindData));
FindClose(hFind);
if (GetLastError() != ERROR_NO_MORE_FILES)
{
goto Error;
}
}
else
{
Error:
PrintErrorMessage(GetLastError());
return 1;
}
ChangeACLsOfFiles(argv[1]);
}
return 0;

View File

@@ -75,6 +75,9 @@
#ifdef LANGUAGE_SQ_AL
#include "lang/sq-AL.rc"
#endif
#ifdef LANGUAGE_TR_TR
#include "lang/tr-TR.rc"
#endif
#ifdef LANGUAGE_UK_UA
#include "lang/uk-UA.rc"
#endif

View File

@@ -1,37 +1,40 @@
/* Spanish Language resource file.
* Translated by: ?? and Ismael Ferreras Morezuelas <2014-11-07> */
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_HELP "Muestra o modifica la lista de control de accesos (ACLs) de los archivos\n\n\
IDS_HELP "Muestra o modifica listas de control de acceso (ACL) de archivos\n\n\
CACLS archivo [/T] [/E] [/C] [/G user:perm [...]] [/R usuario [...]]\n\
[/P user:perm [...]] [/D usuario [...]]\n\
archivo Mostrar ACLs.\n\
/T Cambia ACLs de los archivos especificados en\n\
archivo Mostrar ACL.\n\
/T Cambia ACL de los archivos especificados en\n\
el directorio actual y todos sus subdirectorios.\n\
/E Edita la ACL en lugar de reemplazarla.\n\
/C Continúa en caso de errores de acceso.\n\
/G user:perm Da los derechos de acceso al usuario especificado.\n\
Perm puede ser: R Lectura\n\
W Escritura\n\
C Modificación (Escritura)\n\
Perm puede ser: R Leer\n\
W Escribir\n\
C Cambiar (escribir)\n\
F Control total\n\
/R usuario Revoca los derechos de acceso al usuario especificado (unicamente válido con /E).\n\
/P user:perm Reemplaza los derechos de acceso del usuario especificado.\n\
Perm puede ser: N Nada\n\
R Lectura\n\
W Escritura\n\
C Modificación (Escritura)\n\
Perm puede ser: N Ninguno\n\
R Leer\n\
W Escribir\n\
C Cambiar (escribir)\n\
F Control total\n\
/D usuario Revoca el acceso al usuario especificado.\n\
Es posible usar comodines para especificar más de un archivo por comando.\n\
Se puede especificar más de un usuario por comando.\n\n\
Abreviaciones:\n\
Abreviaturas:\n\
CI - Herencia del contenedor.\n\
ACE se heredado a los directorios.\n\
ACE se heredará por directorios.\n\
OI - Herencia del objeto.\n\
ACE sera heredado a los archivos.\n\
IO - Herencia sola.\n\
ACE no se aplicará al archivo/directorio actual.\n"
ACE se heredará por archivos.\n\
IO - Sólo heredar.\n\
ACE no se aplicará al archivo o directorio actual.\n"
IDS_ABBR_CI "(CI)"
IDS_ABBR_OI "(OI)"
IDS_ABBR_IO "(IO)"

View File

@@ -1,38 +1,39 @@
/* Russian language resource file by Kudratov Olimjon (olim98@bk.ru) */
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_HELP "Отображает или изменяет списки доступа (Access Control Lists, ACLs) к файлам\n\n\
CACLS имя_Файла [/T] [/E] [/C] [/G имя:право [...]] [/R имя [...]]\n\
[/P имя:право[...]] [/D имя [...]]\n\
имя_файла Вывод списков ACL.\n\
/T Замена списков ACL для указанных файлов в текущем каталоге\n\
и всех подкаталогах.\n\
/E Редактирование списка ACL вместо его замены.\n\
/C Продолжать при ошибках отказа доступа.\n\
/G имя:право Предоставление указанному пользователю прав доступа.\n\
Право может быть: R Чтение\n\
W Запись\n\
C Изменение (запись)\n\
F Полный контроль\n\
/R имя Отозвать права доступа для указанного пользователя\n\
(верно только с /E).\n\
/P имя:право Заменить права указанного пользователя.\n\
Право может быть: N Нет доступа\n\
R Чтение\n\
W Запись\n\
C Изменение (запись)\n\
F Полный доступ\n\
/D имя Запретить доступ для указанного пользователя.\n\
В команде можно использовать шаблоны для обработки более одного файла.\n\
IDS_HELP "Просмотр и изменение списков управления доступом (Access Control List, ACL) к файлам\n\n\
CACLS имя_файла [/T] [/E] [/C] [/G имя:доступ [...]] [/R имя [...]]\n\
[/P имя:доступ [...]] [/D имя [...]]\n\
имя_файла Просмотр списков управления доступом.\n\
/T Изменение списков управления доступом для указанных файлов\n\
в текущем и вложенных каталогах.\n\
/E Изменение списка управления доступом вместо его замены.\n\
/C Продолжение при ошибках отказа в доступе.\n\
/G имя:доступ Разрешения для указанных пользователей.\n\
Доступ: R чтение\n\
W запись\n\
C изменение (запись)\n\
F полный доступ\n\
/R имя Отзыв разрешений для пользователя (только вместе с /E).\n\
/P имя:доступ Замена разрешений указанного пользователя.\n\
Доступ: N нет доступа\n\
R чтение\n\
W запись\n\
C изменение (запись)\n\
F полный доступ\n\
/D имя Запрет доступа для указанного пользователя.\n\
Для выбора нескольких файлов используются подстановочные знаки.\n\
В команде можно указывать более одного пользователя.\n\n\
Сокращения:\n\
CI - Наследование контейнерами (Container Inherit).\n\
ACE будет унаследован папками.\n\
OI - Наследование объектами (Object Inherit).\n\
ACE будет унаследован файлами.\n\
IO - Только наследованное (Inherit Only).\n\
ACE не будет применён к данному файлу/папке.\n"
CI - наследование контейнерами.\n\
ACE наследуется каталогами.\n\
OI - наследование объектами.\n\
ACE наследуется файлами.\n\
IO - только наследование.\n\
ACE не применяется к текущему файлу или каталогу.\n"
IDS_ABBR_CI "(CI)"
IDS_ABBR_OI "(OI)"
IDS_ABBR_IO "(IO)"

View File

@@ -0,0 +1,76 @@
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_HELP "Kütüklerin erişim denetim dizelgelerini (ACL'lerini) görüntüler ya da değiştirir.\n\n\
CACLS kütük adı [/T] [/E] [/C] [/G kullanıcı:izin [...]] [/R kullanıcı [...]]\n\
[/P kullanıcı:izin [...]] [/D kullanıcı [...]]\n\
kütük adı ACL'leri görüntüler.\n\
/T Şimdiki dizin ve alt dizinlerin içinde\n\
belirtilen kütülerin ACL'lerini değiştirir.\n\
/E ACL'yi yenisiyle değiştirme yerine onu düzenle.\n\
/C Erişim engellendi yanlışlıklarıyla sürdür.\n\
/G kullanıcı:izin Belirtilen kullanıcı erişim yetkilerini ver.\n\
İzin şu olabilir: R Okuma\n\
W Yazma\n\
C Değiştirme (yazma)\n\
F Tüm denetim\n\
/R kullanıcı Belirtilen kullanıcının erişim yetkilerini geri al\n\
(yalnızca /E ile geçerli).\n\
/P kullanıcı:izin Belirtilen kullanıcının erişim yetkilerini yenileriyle\n\
değiştir.\n\
İzin şu olabilir: N Yok\n\
R Okuma\n\
W Yazma\n\
C Değiştirme (yazma)\n\
F Tüm denetim\n\
/D kullanıcı Belirtilen kullanıcı erişimini verme.\n\
Umûmî arama damgaları, bir komutta birden çok kütük belirtmek için kullanılabilir.\n\
Bir komutta birden çok kullanıcı belirtebilirsiniz.\n\n\
Kısaltmalar:\n\
CI - Kapsayıcı Devral.\n\
ACE dizinlerle devralınacak.\n\
OI - Nesne Devral.\n\
ACE kütüklerle devralınacak.\n\
IO - Yalnızca Devral.\n\
ACE'yi şimdiki kütüğe ya da dizine uygulama.\n"
IDS_ABBR_CI "(CI)"
IDS_ABBR_OI "(OI)"
IDS_ABBR_IO "(IO)"
IDS_ABBR_FULL "F"
IDS_ABBR_READ "R"
IDS_ABBR_WRITE "W"
IDS_ABBR_CHANGE "C"
IDS_ABBR_NONE "N"
IDS_ALLOW ""
IDS_DENY "(VERME)"
IDS_SPECIAL_ACCESS "(husûsî erişim:)"
IDS_GENERIC_READ "GENERIC_READ"
IDS_GENERIC_WRITE "GENERIC_WRITE"
IDS_GENERIC_EXECUTE "GENERIC_EXECUTE"
IDS_GENERIC_ALL "GENERIC_ALL"
IDS_FILE_GENERIC_EXECUTE "FILE_GENERIC_EXECUTE"
IDS_FILE_GENERIC_READ "FILE_GENERIC_READ"
IDS_FILE_GENERIC_WRITE "FILE_GENERIC_WRITE"
IDS_FILE_READ_DATA "FILE_READ_DATA"
IDS_FILE_WRITE_DATA "FILE_WRITE_DATA"
IDS_FILE_APPEND_DATA "FILE_APPEND_DATA"
IDS_FILE_READ_EA "FILE_READ_EA"
IDS_FILE_WRITE_EA "FILE_WRITE_EA"
IDS_FILE_EXECUTE "FILE_EXECUTE"
IDS_FILE_DELETE_CHILD "FILE_DELETE_CHILD"
IDS_FILE_READ_ATTRIBUTES "FILE_READ_ATTRIBUTES"
IDS_FILE_WRITE_ATTRIBUTES "FILE_WRITE_ATTRIBUTES"
IDS_MAXIMUM_ALLOWED "MAXIMUM_ALLOWED"
IDS_ACCESS_SYSTEM_SECURITY "ACCESS_SYSTEM_SECURITY"
IDS_SPECIFIC_RIGHTS_ALL "SPECIFIC_RIGHTS_ALL"
IDS_STANDARD_RIGHTS_REQUIRED "STANDARD_RIGHTS_REQUIRED"
IDS_SYNCHRONIZE "SYNCHRONIZE"
IDS_WRITE_OWNER "WRITE_OWNER"
IDS_WRITE_DAC "WRITE_DAC"
IDS_READ_CONTROL "READ_CONTROL"
IDS_DELETE "DELETE"
IDS_STANDARD_RIGHTS_ALL "STANDARD_RIGHTS_ALL"
END

View File

@@ -10,6 +10,8 @@ list(APPEND SOURCE
winmain.c
calc.h)
file(GLOB calc_rc_deps res/*.*)
add_rc_deps(resource.rc ${calc_rc_deps})
add_executable(calc ${SOURCE} resource.rc)
set_module_type(calc win32gui UNICODE)
add_importlibs(calc advapi32 user32 gdi32 msvcrt kernel32)

View File

@@ -336,8 +336,8 @@ BEGIN
END
POPUP "Изглед"
BEGIN
MENUITEM "Обикновен", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Научен", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Обикновен", IDM_VIEW_STANDARD
MENUITEM "Научен", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразуване", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Шестнaдесетичен\tF5", IDM_VIEW_HEX, CHECKED
@@ -368,8 +368,8 @@ BEGIN
END
POPUP "Изглед"
BEGIN
MENUITEM "Стандартно", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Научен", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Стандартно", IDM_VIEW_STANDARD
MENUITEM "Научен", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразуване", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Шестнaдесетичен\tF5", IDM_VIEW_HEX, CHECKED
@@ -401,8 +401,8 @@ BEGIN
END
POPUP "Изглед"
BEGIN
MENUITEM "Стандартно", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Научен", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Стандартно", IDM_VIEW_STANDARD
MENUITEM "Научен", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразуване", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Разделяне на хилядите", IDM_VIEW_GROUP, CHECKED

View File

@@ -335,8 +335,8 @@ BEGIN
END
POPUP "Zobrazit"
BEGIN
MENUITEM "Standardní", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vědecká", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standardní", IDM_VIEW_STANDARD
MENUITEM "Vědecká", IDM_VIEW_SCIENTIFIC
MENUITEM "Převody", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Šestnáctkově\tF5", IDM_VIEW_HEX, CHECKED
@@ -367,8 +367,8 @@ BEGIN
END
POPUP "Zobrazit"
BEGIN
MENUITEM "Standardní", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vědecká", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standardní", IDM_VIEW_STANDARD
MENUITEM "Vědecká", IDM_VIEW_SCIENTIFIC
MENUITEM "Převody", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Šestnáctkově\tF5", IDM_VIEW_HEX, CHECKED
@@ -400,8 +400,8 @@ BEGIN
END
POPUP "Zobrazit"
BEGIN
MENUITEM "Standardní", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vědecká", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standardní", IDM_VIEW_STANDARD
MENUITEM "Vědecká", IDM_VIEW_SCIENTIFIC
MENUITEM "Převody", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Seskupování číslic", IDM_VIEW_GROUP, CHECKED

View File

@@ -330,8 +330,8 @@ BEGIN
END
POPUP "Ansicht"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Wissenschaftlich", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Wissenschaftlich", IDM_VIEW_SCIENTIFIC
MENUITEM "Konversion", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -362,8 +362,8 @@ BEGIN
END
POPUP "Ansicht"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Wissenschaftlich", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Wissenschaftlich", IDM_VIEW_SCIENTIFIC
MENUITEM "Konversion", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -395,8 +395,8 @@ BEGIN
END
POPUP "Ansicht"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Wissenschaftlich", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Wissenschaftlich", IDM_VIEW_SCIENTIFIC
MENUITEM "Konversion", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Zifferngruppierung", IDM_VIEW_GROUP, CHECKED

View File

@@ -330,8 +330,8 @@ BEGIN
END
POPUP "View"
BEGIN
MENUITEM "Τυπική", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Επιστημονική", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Τυπική", IDM_VIEW_STANDARD
MENUITEM "Επιστημονική", IDM_VIEW_SCIENTIFIC
MENUITEM "Μετατροπή", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -362,8 +362,8 @@ BEGIN
END
POPUP "View"
BEGIN
MENUITEM "Τυπική", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Επιστημονική", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Τυπική", IDM_VIEW_STANDARD
MENUITEM "Επιστημονική", IDM_VIEW_SCIENTIFIC
MENUITEM "Μετατροπή", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Δεκαεξαδικό\tF5", IDM_VIEW_HEX, CHECKED
@@ -395,8 +395,8 @@ BEGIN
END
POPUP "View"
BEGIN
MENUITEM "Τυπική", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Επιστημονική", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Τυπική", IDM_VIEW_STANDARD
MENUITEM "Επιστημονική", IDM_VIEW_SCIENTIFIC
MENUITEM "Μετατροπή", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Ομαδοποίηση ψηφίων", IDM_VIEW_GROUP, CHECKED

View File

@@ -323,89 +323,89 @@ END
IDR_MENU_SCIENTIFIC_1 MENU
BEGIN
POPUP "Edit"
POPUP "&Edit"
BEGIN
MENUITEM "Copy\tCtrl+C", IDM_EDIT_COPY
MENUITEM "Paste\tCtrl+V", IDM_EDIT_PASTE
MENUITEM "&Copy\tCtrl+C", IDM_EDIT_COPY
MENUITEM "&Paste\tCtrl+V", IDM_EDIT_PASTE
END
POPUP "View"
POPUP "&View"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Scientific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Conversion", IDM_VIEW_CONVERSION
MENUITEM "S&tandard", IDM_VIEW_STANDARD
MENUITEM "&Scientific", IDM_VIEW_SCIENTIFIC
MENUITEM "C&onversion", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "Decimal\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "Octal\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "Binary\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM "&Hex\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "&Decimal\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Octal\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "&Binary\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "Degrees\tF2", IDM_VIEW_DEG, CHECKED
MENUITEM "Radians\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "Gradians\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM "D&egrees\tF2", IDM_VIEW_DEG, CHECKED
MENUITEM "&Radians\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "&Gradians\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM SEPARATOR
MENUITEM "Group digits", IDM_VIEW_GROUP, CHECKED
MENUITEM "Group d&igits", IDM_VIEW_GROUP, CHECKED
END
POPUP "Help"
POPUP "&Help"
BEGIN
MENUITEM "Help topics", IDM_HELP_HELP
MENUITEM "&Help topics", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "About ReactOS Calc", IDM_HELP_ABOUT
MENUITEM "&About ReactOS Calc", IDM_HELP_ABOUT
END
END
IDR_MENU_SCIENTIFIC_2 MENU
BEGIN
POPUP "Edit"
POPUP "&Edit"
BEGIN
MENUITEM "Copy\tCtrl+C", IDM_EDIT_COPY
MENUITEM "Paste\tCtrl+V", IDM_EDIT_PASTE
MENUITEM "&Copy\tCtrl+C", IDM_EDIT_COPY
MENUITEM "&Paste\tCtrl+V", IDM_EDIT_PASTE
END
POPUP "View"
POPUP "&View"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Scientific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Conversion", IDM_VIEW_CONVERSION
MENUITEM "S&tandard", IDM_VIEW_STANDARD
MENUITEM "&Scientific", IDM_VIEW_SCIENTIFIC
MENUITEM "C&onversion", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "Decimal\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "Octal\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "Binary\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM "&Hex\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "&Decimal\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Octal\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "&Binary\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "Qword\tF12", IDM_VIEW_QWORD, CHECKED
MENUITEM "Dword\tF2", IDM_VIEW_DWORD, CHECKED
MENUITEM "Word\tF3", IDM_VIEW_WORD, CHECKED
MENUITEM "Byte\tF4", IDM_VIEW_BYTE, CHECKED
MENUITEM "&Qword\tF12", IDM_VIEW_QWORD, CHECKED
MENUITEM "&Dword\tF2", IDM_VIEW_DWORD, CHECKED
MENUITEM "&Word\tF3", IDM_VIEW_WORD, CHECKED
MENUITEM "B&yte\tF4", IDM_VIEW_BYTE, CHECKED
MENUITEM SEPARATOR
MENUITEM "Group digits", IDM_VIEW_GROUP, CHECKED
MENUITEM "Group d&igits", IDM_VIEW_GROUP, CHECKED
END
POPUP "Help"
POPUP "&Help"
BEGIN
MENUITEM "Help topics", IDM_HELP_HELP
MENUITEM "&Help topics", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "About ReactOS Calc", IDM_HELP_ABOUT
MENUITEM "&About ReactOS Calc", IDM_HELP_ABOUT
END
END
IDR_MENU_STANDARD MENU
BEGIN
POPUP "Edit"
POPUP "&Edit"
BEGIN
MENUITEM "Copy\tCtrl+C", IDM_EDIT_COPY
MENUITEM "Paste\tCtrl+V", IDM_EDIT_PASTE
MENUITEM "&Copy\tCtrl+C", IDM_EDIT_COPY
MENUITEM "&Paste\tCtrl+V", IDM_EDIT_PASTE
END
POPUP "View"
POPUP "&View"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Scientific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Conversion", IDM_VIEW_CONVERSION
MENUITEM "S&tandard", IDM_VIEW_STANDARD
MENUITEM "&Scientific", IDM_VIEW_SCIENTIFIC
MENUITEM "C&onversion", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Group digits", IDM_VIEW_GROUP, CHECKED
MENUITEM "Group d&igits", IDM_VIEW_GROUP, CHECKED
END
POPUP "Help"
POPUP "&Help"
BEGIN
MENUITEM "Help topics", IDM_HELP_HELP
MENUITEM "&Help topics", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "About ReactOS Calc", IDM_HELP_ABOUT
MENUITEM "&About ReactOS Calc", IDM_HELP_ABOUT
END
END

View File

@@ -1,6 +1,7 @@
/*
* Spanish Language resource file
* Traducido por: Javier Remacha 2008
* Corregido por: Ismael Ferreras Morezuelas 2014
*/
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
@@ -9,7 +10,7 @@ LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
IDD_DIALOG_SCIENTIFIC DIALOGEX 0, 0, 316, 163
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Calculadora ReactOS"
CAPTION "Calculadora de ReactOS"
MENU IDR_MENU_SCIENTIFIC_1
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
@@ -20,7 +21,7 @@ BEGIN
CONTROL "Bin", IDC_RADIO_BIN, "Button", BS_AUTORADIOBUTTON, 107, 21, 30, 10
GROUPBOX "", IDC_STATIC, 5, 34, 84, 20
CONTROL "Inv", IDC_CHECK_INV, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 8, 41, 26, 10
CONTROL "Hyp", IDC_CHECK_HYP, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 49, 41, 29, 10
CONTROL "Hipotenusa", IDC_CHECK_HYP, "Button", BS_AUTOCHECKBOX | WS_TABSTOP, 37, 41, 48, 10
CTEXT "", IDC_TEXT_PARENT, 93, 38, 18, 16, SS_CENTERIMAGE, WS_EX_CLIENTEDGE
CTEXT "", IDC_TEXT_MEMORY, 126, 38, 18, 16, SS_CENTERIMAGE, WS_EX_CLIENTEDGE
PUSHBUTTON "Sta", IDC_BUTTON_STA, 5, 60, 24, 18, BS_CENTER | BS_VCENTER |
@@ -142,14 +143,14 @@ BEGIN
NOT WS_VISIBLE, 230, 21, 38, 10
CONTROL "Byte", IDC_RADIO_BYTE, "Button", BS_AUTORADIOBUTTON |
NOT WS_VISIBLE, 270, 21, 38, 10
CONTROL "Sexagesimal", IDC_RADIO_DEG, "Button", BS_AUTORADIOBUTTON, 150, 21, 45, 10
CONTROL "Radián", IDC_RADIO_RAD, "Button", BS_AUTORADIOBUTTON, 204, 21, 45, 10
CONTROL "Centesimal", IDC_RADIO_GRAD, "Button", BS_AUTORADIOBUTTON, 258, 21, 45, 10
CONTROL "Grados", IDC_RADIO_DEG, "Button", BS_AUTORADIOBUTTON, 151, 21, 45, 10
CONTROL "Radianes", IDC_RADIO_RAD, "Button", BS_AUTORADIOBUTTON, 198, 21, 45, 10
CONTROL "Gradianes", IDC_RADIO_GRAD, "Button", BS_AUTORADIOBUTTON, 248, 21, 45, 10
PUSHBUTTON "C", IDC_BUTTON_CANC, 267, 38, 43, 18, BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "CE", IDC_BUTTON_CE, 222, 38, 43, 18, BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
PUSHBUTTON "Back", IDC_BUTTON_BACK, 177, 38, 43, 18, BS_CENTER |
PUSHBUTTON "Atrás", IDC_BUTTON_BACK, 177, 38, 43, 18, BS_CENTER |
BS_VCENTER | BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
RTEXT "", IDC_TEXT_OUTPUT, 5, 1, 305, 14, SS_CENTERIMAGE, WS_EX_CLIENTEDGE
DEFPUSHBUTTON "", IDC_BUTTON_FOCUS, 0, 0, 5, 5, NOT WS_VISIBLE
@@ -157,7 +158,7 @@ END
IDD_DIALOG_STANDARD DIALOGEX 0, 0, 169, 128
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Calculadora ReactOS"
CAPTION "Calculadora de ReactOS"
MENU IDR_MENU_STANDARD
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
@@ -222,7 +223,7 @@ END
IDD_DIALOG_CONVERSION DIALOGEX 0, 0, 320, 130
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS Calculator"
CAPTION "Calculadora de ReactOS"
MENU IDR_MENU_STANDARD
FONT 8, "MS Shell Dlg"
BEGIN
@@ -240,7 +241,7 @@ BEGIN
BS_VCENTER | BS_NOTIFY | WS_TABSTOP, 276, 24, 40, 17
CONTROL "CE", IDC_BUTTON_CE, "Button", BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP, 232, 24, 40, 17
CONTROL "Back", IDC_BUTTON_BACK, "Button", BS_OWNERDRAW | BS_CENTER |
CONTROL "Atrás", IDC_BUTTON_BACK, "Button", BS_OWNERDRAW | BS_CENTER |
BS_VCENTER | BS_NOTIFY | WS_TABSTOP, 188, 24, 40,17
RTEXT "", IDC_TEXT_OUTPUT, 5, 1, 312, 14, SS_CENTERIMAGE, WS_EX_CLIENTEDGE
CONTROL "7", IDC_BUTTON_7, "Button", BS_OWNERDRAW | BS_CENTER |
@@ -297,15 +298,15 @@ END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Acerca de Calculadora ReactOS"
CAPTION "Acerca de la Calculadora de ReactOS"
FONT 8, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "Aceptar", IDOK, 105, 148, 52, 16
CONTROL IDB_BITMAP_ROS, IDC_STATIC, "Static", SS_BITMAP | SS_CENTERIMAGE |
SS_REALSIZEIMAGE | WS_BORDER, 4, 4, 104, 48
LTEXT "Calculadora ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Calculadora de ReactOS", IDC_STATIC, 120, 12, 132, 8, SS_CENTERIMAGE
LTEXT "Versión ", IDC_TEXT_VERSION, 120, 20, 132, 8, SS_CENTERIMAGE
LTEXT "Escrita por Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
LTEXT "Creada por Carlo Bramini", IDC_STATIC, 120, 32, 132, 8, SS_CENTERIMAGE
GROUPBOX "", IDC_STATIC, 112, 0, 148, 52
GROUPBOX "", IDC_STATIC, 5, 56, 256, 88
EDITTEXT IDC_EDIT_LICENSE, 12, 68, 240, 68, ES_MULTILINE | ES_READONLY | WS_VSCROLL
@@ -335,8 +336,8 @@ BEGIN
END
POPUP "Ver"
BEGIN
MENUITEM "Estándar", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Estándar", IDM_VIEW_STANDARD
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversión", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hexadecimal\tF5", IDM_VIEW_HEX, CHECKED
@@ -344,17 +345,17 @@ BEGIN
MENUITEM "Octal\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "Binario\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "Sexagesimal\tF2", IDM_VIEW_DEG, CHECKED
MENUITEM "Radián\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "Centesimal\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM "Grados\tF2", IDM_VIEW_DEG, CHECKED
MENUITEM "Radianes\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "Gradianes\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM SEPARATOR
MENUITEM "Número de dígitos en grupo", IDM_VIEW_GROUP, CHECKED
MENUITEM "Agrupar dígitos", IDM_VIEW_GROUP, CHECKED
END
POPUP "Ayuda"
BEGIN
MENUITEM "Temas de ayuda", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "Acerca de Calculadora ReactOS", IDM_HELP_ABOUT
MENUITEM "Acerca de la Calculadora de ReactOS", IDM_HELP_ABOUT
END
END
@@ -367,8 +368,8 @@ BEGIN
END
POPUP "Ver"
BEGIN
MENUITEM "Estándar", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Estándar", IDM_VIEW_STANDARD
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversión", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hexadecimal\tF5", IDM_VIEW_HEX, CHECKED
@@ -381,13 +382,13 @@ BEGIN
MENUITEM "Word\tF3", IDM_VIEW_WORD, CHECKED
MENUITEM "Byte\tF4", IDM_VIEW_BYTE, CHECKED
MENUITEM SEPARATOR
MENUITEM "Número de dígitos en grupo", IDM_VIEW_GROUP, CHECKED
MENUITEM "Agrupar dígitos", IDM_VIEW_GROUP, CHECKED
END
POPUP "Ayuda"
BEGIN
MENUITEM "Temas de ayuda", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "Acerca de Calculadora ReactOS", IDM_HELP_ABOUT
MENUITEM "Acerca de la Calculadora de ReactOS", IDM_HELP_ABOUT
END
END
@@ -400,17 +401,17 @@ BEGIN
END
POPUP "Ver"
BEGIN
MENUITEM "Estándar", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Estándar", IDM_VIEW_STANDARD
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversión", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Número de dígitos en grupo", IDM_VIEW_GROUP, CHECKED
MENUITEM "Agrupar dígitos", IDM_VIEW_GROUP, CHECKED
END
POPUP "Ayuda"
BEGIN
MENUITEM "Temas de ayuda", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "Acerca de Calculadora ReactOS", IDM_HELP_ABOUT
MENUITEM "Acerca de la Calculadora de ReactOS", IDM_HELP_ABOUT
END
END
@@ -418,7 +419,14 @@ END
STRINGTABLE
BEGIN
IDS_STRING_LICENSE "Calculadora ReactOS es software gratuito realizado bajo licencia GNU GPL.\r\n\r\nPuedes coger una copia de la licencia GNU GPL aquí:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nPuedes también coger una traducción de la licencia GNU GPL aquí:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_STRING_LICENSE "La Calculadora de ReactOS es software libre realizado bajo licencia GNU GPL.\r\n\
\r\n\
Puedes obtener una copia de la licencia GNU GPL aquí:\r\n\
http://www.gnu.org/licenses/gpl.html\r\n\
\r\n\
También puedes obtener una traducción de la licencia GNU GPL aquí:\r\n\
http://www.gnu.org/licenses/translations.html"
IDS_MATH_ERROR "Error"
IDS_QUICKHELP "Ayuda rápida"
END
@@ -444,9 +452,9 @@ END
/* Angles */
STRINGTABLE
BEGIN
IDS_ANGLE_DEGREES "Grados sexagesimales"
IDS_ANGLE_GRADIANS "Grados centesimales"
IDS_ANGLE_RADIANS "Radianes"
IDS_ANGLE_DEGREES "Grados"
IDS_ANGLE_GRADIANS "Gradianes"
IDS_ANGLE_RADIANS "Radianes"
END
/* Areas */
@@ -456,7 +464,7 @@ BEGIN
IDS_AREA_ACRES_BRAZIL "Acres (Brasil)"
IDS_AREA_ACRES_FRANCE "Acres (Francia)"
IDS_AREA_ACRES_SCOTS "Acres (Escocia)"
IDS_AREA_ACRES_US "Acres (US)"
IDS_AREA_ACRES_US "Acres (EE.UU.)"
IDS_AREA_ARES "Área"
IDS_AREA_CHOU "Chou"
IDS_AREA_DANBO "Danbo"
@@ -480,10 +488,10 @@ BEGIN
IDS_AREA_SQUARE_METER "Metros cuadrado"
IDS_AREA_SQUARE_MILES "Millas cuadradas"
IDS_AREA_SQUARE_MILLIMETERS "Milímetros cuadrados"
IDS_AREA_SQUARE_SHAKU "Square shaku"
IDS_AREA_SQUARE_TSUEN "Square tsuen"
IDS_AREA_SQUARE_VA "Square va"
IDS_AREA_SQUARE_YARD "Square yard"
IDS_AREA_SQUARE_SHAKU "Shaku cuadrado"
IDS_AREA_SQUARE_TSUEN "Tsuen cuadrados"
IDS_AREA_SQUARE_VA "Va cuadrados" /* ??? (unused in the source code) */
IDS_AREA_SQUARE_YARD "Yarda cuadrada"
IDS_AREA_TAN "Tan"
IDS_AREA_TSUBO "Tsubo"
END
@@ -491,48 +499,48 @@ END
/* Consumptions */
STRINGTABLE
BEGIN
IDS_CONSUMPTION_KM_PER_L "Kilometros/litro"
IDS_CONSUMPTION_L_PER_100_KM "Litros/100 kilometros"
IDS_CONSUMPTION_KM_PER_L "Kilómetros/litro"
IDS_CONSUMPTION_L_PER_100_KM "Litros/100 kilómetros"
IDS_CONSUMPTION_MILES_GALLON_UK "Millas/galón (UK)"
IDS_CONSUMPTION_MILES_GALLON_US "Millas/galón (US)"
IDS_CONSUMPTION_MILES_GALLON_US "Millas/galón (EE.UU.)"
END
/* Currencies */
STRINGTABLE
BEGIN
IDS_CURRENCY_AUSTRIAN_SCHILLING "Schilling Austriaco"
IDS_CURRENCY_BELGIAN_FRANC "Franco Belga"
IDS_CURRENCY_CYPRIOT_POUND "Libra Chipriota"
IDS_CURRENCY_CZECH_KORUNA "Corona Checa"
IDS_CURRENCY_DEUTSCHE_MARK "Marco Alemán"
IDS_CURRENCY_DUTCH_GUILDER "Florín Neerlandés"
IDS_CURRENCY_AUSTRIAN_SCHILLING "Schilling austriaco"
IDS_CURRENCY_BELGIAN_FRANC "Franco belga"
IDS_CURRENCY_CYPRIOT_POUND "Libra chipriota"
IDS_CURRENCY_CZECH_KORUNA "Corona checa"
IDS_CURRENCY_DEUTSCHE_MARK "Marco alemán"
IDS_CURRENCY_DUTCH_GUILDER "Florín neerlandés"
IDS_CURRENCY_EURO "Euro"
IDS_CURRENCY_FINNISH_MARKKA "Marco Finlandés"
IDS_CURRENCY_FRENCH_FRANC "Franco Frances"
IDS_CURRENCY_GREEK_DRACHMA "Drachma Griego"
IDS_CURRENCY_IRISH_POUND "Libra Irlandesa"
IDS_CURRENCY_ITALIAN_LIRA "Lira Italiana"
IDS_CURRENCY_LUXEMBOURG_FRANC "Franco Luxemburgués"
IDS_CURRENCY_MALTESE_LIRA "Lira Maltesa"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Escudo Portugués"
IDS_CURRENCY_SLOVAK_KORUNA "Corona Eslovaca"
IDS_CURRENCY_SLOVENIAN_TOLAR "Tolar Esloveno"
IDS_CURRENCY_SPANISH_PESETA "Peseta Española"
IDS_CURRENCY_FINNISH_MARKKA "Marco finlandés"
IDS_CURRENCY_FRENCH_FRANC "Franco frances"
IDS_CURRENCY_GREEK_DRACHMA "Drachma griego"
IDS_CURRENCY_IRISH_POUND "Libra irlandesa"
IDS_CURRENCY_ITALIAN_LIRA "Lira italiana"
IDS_CURRENCY_LUXEMBOURG_FRANC "Franco luxemburgués"
IDS_CURRENCY_MALTESE_LIRA "Lira maltesa"
IDS_CURRENCY_PORTOGUESE_ESCUDO "Escudo portugués"
IDS_CURRENCY_SLOVAK_KORUNA "Corona eslovaca"
IDS_CURRENCY_SLOVENIAN_TOLAR "Tolar esloveno"
IDS_CURRENCY_SPANISH_PESETA "Peseta española"
END
/* Energies */
STRINGTABLE
BEGIN
IDS_ENERGY_15_C_CALORIES "15 °C calorías"
IDS_ENERGY_15_C_CALORIES "Calorías a 15°C"
IDS_ENERGY_BTUS "BTU"
IDS_ENERGY_ERGS "Ergios"
IDS_ENERGY_EVS "Electronovoltios"
IDS_ENERGY_EVS "Electronvoltio"
IDS_ENERGY_FOOT_POUNDS "Ft·Lbs"
IDS_ENERGY_IT_CALORIES "Tabla internacional de calorías"
IDS_ENERGY_IT_KILOCALORIES "Tabla internacional de kilocalorías"
IDS_ENERGY_JOULES "Julios"
IDS_ENERGY_KILOJOULES "Kilojulios"
IDS_ENERGY_KILOWATT_HOURS "Kilowatios hora"
IDS_ENERGY_KILOWATT_HOURS "Kilovatios hora"
IDS_ENERGY_NUTRITION_CALORIES "Calorías nutricionales"
IDS_ENERGY_TH_CALORIES "Calorías termoquímicas"
END
@@ -541,16 +549,16 @@ END
STRINGTABLE
BEGIN
IDS_LENGTH_ANGSTROMS "Ångströms"
IDS_LENGTH_ASTRONOMICAL_UNITS "Astronomical units"
IDS_LENGTH_BARLEYCORNS "Barleycorns"
IDS_LENGTH_ASTRONOMICAL_UNITS "Unidades astronómicas"
IDS_LENGTH_BARLEYCORNS "Granos de cebada"
IDS_LENGTH_CENTIMETERS "Centímetros"
IDS_LENGTH_CHAINS_UK "Cadenas (UK)"
IDS_LENGTH_CHI "Chi"
IDS_LENGTH_CHOU "Chou"
IDS_LENGTH_CHR "Chr"
IDS_LENGTH_CUN "Cun"
IDS_LENGTH_FATHOMS "Fathoms"
IDS_LENGTH_FATHOMS_HUNGARY "Fathoms (Hungary)"
IDS_LENGTH_FATHOMS "Brazas"
IDS_LENGTH_FATHOMS_HUNGARY "Brazas (Hungría)"
IDS_LENGTH_FEET "Pies"
IDS_LENGTH_FURLONGS "Furlongs"
IDS_LENGTH_GAN "Gan"
@@ -562,7 +570,7 @@ BEGIN
IDS_LENGTH_KABIET "Kabiet"
IDS_LENGTH_KEN "Ken"
IDS_LENGTH_KEUB "Keub"
IDS_LENGTH_KILOMETERS "Kilometros"
IDS_LENGTH_KILOMETERS "Kilómetros"
IDS_LENGTH_LAR "Lar"
IDS_LENGTH_LIGHT_YEARS "Años luz"
IDS_LENGTH_LINKS_UK "Links (UK)"
@@ -570,7 +578,7 @@ BEGIN
IDS_LENGTH_MICRONS "Micrómetros"
IDS_LENGTH_MILES "Millas"
IDS_LENGTH_MILLIMETERS "Milímetros"
IDS_LENGTH_NAUTICAL_MILES "Millas nauticas"
IDS_LENGTH_NAUTICAL_MILES "Millas náuticas"
IDS_LENGTH_NIEU "Nieu"
IDS_LENGTH_PARSECS "Parsecs"
IDS_LENGTH_PICAS "Picas"
@@ -580,11 +588,11 @@ BEGIN
IDS_LENGTH_SAWK "Sawk"
IDS_LENGTH_SEN "Sen"
IDS_LENGTH_SHAKU "Shaku"
IDS_LENGTH_SPAN "Span"
IDS_LENGTH_SPAN "Palmo"
IDS_LENGTH_SUN "Sun"
IDS_LENGTH_TSUEN "Tsuen"
IDS_LENGTH_VA "Va"
IDS_LENGTH_YARDS "Yards"
IDS_LENGTH_YARDS "Yardas"
IDS_LENGTH_YOTE "Yote"
IDS_LENGTH_ZHANG "Zhang"
END
@@ -595,8 +603,8 @@ BEGIN
IDS_POWER_BTUS_PER_MINUTE "BTU/Minuto"
IDS_POWER_FPS_PER_MINUTE "Ft·Lbs/Minuto"
IDS_POWER_HORSEPOWER "Caballos de vapor"
IDS_POWER_KILOWATTS "Kilowatios"
IDS_POWER_MEGAWATTS "Megawatios"
IDS_POWER_KILOWATTS "Kilovatios"
IDS_POWER_MEGAWATTS "Megavatios"
IDS_POWER_WATTS "Watios"
END
@@ -609,7 +617,7 @@ BEGIN
IDS_PRESSURE_KILOPASCALS "Hectopascales"
IDS_PRESSURE_MM_OF_MERCURY "Milímetros de mercurio"
IDS_PRESSURE_PASCALS "Pascales"
IDS_PRESSURE_PSI "Libras fuerza por pulgada cuadrada"
IDS_PRESSURE_PSI "PSI"
END
/* Temperatures */
@@ -626,7 +634,7 @@ STRINGTABLE
BEGIN
IDS_TIME_DAYS "Días"
IDS_TIME_HOURS "Horas"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_NANOSECONDS "Nanosegundos"
IDS_TIME_MICROSECONDS "Microsegundos"
IDS_TIME_MILLISECONDS "Milisegundos"
IDS_TIME_MINUTES "Minutos"
@@ -641,8 +649,8 @@ BEGIN
IDS_VELOCITY_CMS_SECOND "Centímetros/segundo"
IDS_VELOCITY_FEET_HOUR "Pies/hora"
IDS_VELOCITY_FEET_SECOND "Pies/segundo"
IDS_VELOCITY_KILOMETERS_HOUR "Kilometros/hora"
IDS_VELOCITY_KNOTS "Knots"
IDS_VELOCITY_KILOMETERS_HOUR "Kilómetros/hora"
IDS_VELOCITY_KNOTS "Nudos"
IDS_VELOCITY_MACH "Mach"
IDS_VELOCITY_METERS_SECOND "Metros/segundo"
IDS_VELOCITY_MILES_HOUR "Millas/hora"
@@ -652,10 +660,10 @@ END
STRINGTABLE
BEGIN
IDS_VOLUME_BARRELS_UK "Barriles (UK)"
IDS_VOLUME_BARRELS_OIL "Barriles de petroleo"
IDS_VOLUME_BARRELS_OIL "Barriles de petróleo"
IDS_VOLUME_BUN "Bun"
IDS_VOLUME_BUSHELS_UK "Celemín (UK)"
IDS_VOLUME_BUSHELS_US "Celemín (US)"
IDS_VOLUME_BUSHELS_US "Celemín (EE.UU.)"
IDS_VOLUME_CUBIC_CENTIMETERS "Centímetros cúbicos"
IDS_VOLUME_CUBIC_FEET "Píes cúbicos"
IDS_VOLUME_CUBIC_INCHES "Pulgadas cúbicas"
@@ -663,10 +671,10 @@ BEGIN
IDS_VOLUME_CUBIC_YARDS "Yardas cúbicas"
IDS_VOLUME_DOE "Doe"
IDS_VOLUME_FLUID_OUNCES_UK "Onza líquida (UK)"
IDS_VOLUME_FLUID_OUNCES_US "Onza líquida (US)"
IDS_VOLUME_FLUID_OUNCES_US "Onza líquida (EE.UU.)"
IDS_VOLUME_GALLONS_UK "Galones (UK)"
IDS_VOLUME_GALLONS_DRY_US "Galones, dry (US)"
IDS_VOLUME_GALLONS_LIQUID_US "Galones, liquid (US)"
IDS_VOLUME_GALLONS_DRY_US "Galones, secos (EE.UU.)"
IDS_VOLUME_GALLONS_LIQUID_US "Galones, líquidos (EE.UU.)"
IDS_VOLUME_GOU "Gou"
IDS_VOLUME_HOP "Hop"
IDS_VOLUME_ICCE "Icce"
@@ -675,11 +683,11 @@ BEGIN
IDS_VOLUME_MAL "Mal"
IDS_VOLUME_MILLILITERS "Mililitros"
IDS_VOLUME_PINTS_UK "Pintas (UK)"
IDS_VOLUME_PINTS_DRY_US "Pintas, dry (US)"
IDS_VOLUME_PINTS_LIQUID_US "Pintas, liquid (US)"
IDS_VOLUME_PINTS_DRY_US "Pintas, secas (EE.UU.)"
IDS_VOLUME_PINTS_LIQUID_US "Pintas, líquidas (EE.UU.)"
IDS_VOLUME_QUARTS_UK "Cuartos (UK)"
IDS_VOLUME_QUARTS_DRY_US "Cuartos, dry (US)"
IDS_VOLUME_QUARTS_LIQUID_US "Cuartos, liquid (US)"
IDS_VOLUME_QUARTS_DRY_US "Cuartos, secos (EE.UU.)"
IDS_VOLUME_QUARTS_LIQUID_US "Cuartos, líquidos (EE.UU.)"
IDS_VOLUME_SEKI "Seki"
IDS_VOLUME_SYOU "Syou"
IDS_VOLUME_TANANLOUNG "Tananloung"
@@ -709,11 +717,11 @@ BEGIN
IDS_WEIGHT_OUNCES_AVOIRDUPOIS "Onza, avoirdupois"
IDS_WEIGHT_OUNCES_TROY "Onza, troy"
IDS_WEIGHT_POUNDS "Libras"
IDS_WEIGHT_QUINTAL_METRIC "Quintal (metric)"
IDS_WEIGHT_QUINTAL_METRIC "Quintal (métrico)"
IDS_WEIGHT_SALOUNG "Saloung"
IDS_WEIGHT_STONES "Stones"
IDS_WEIGHT_TAMLUNG "Tamlung"
IDS_WEIGHT_TONNES "Toneladas"
IDS_WEIGHT_TONS_UK "Toneladas (UK)"
IDS_WEIGHT_TONS_US "Toneladas (US)"
IDS_WEIGHT_TONS_US "Toneladas (EE.UU.)"
END

View File

@@ -330,8 +330,8 @@ BEGIN
END
POPUP "Affichage"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Scientifique", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Scientifique", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversion", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hexadécimal\tF5", IDM_VIEW_HEX, CHECKED
@@ -362,8 +362,8 @@ BEGIN
END
POPUP "Affichage"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Scientifique", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Scientifique", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversion", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hexadécimal\tF5", IDM_VIEW_HEX, CHECKED
@@ -395,8 +395,8 @@ BEGIN
END
POPUP "Affichage"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Scientifique", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Scientifique", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversion", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Grouper les chiffres", IDM_VIEW_GROUP, CHECKED

View File

@@ -332,8 +332,8 @@ BEGIN
END
POPUP "תצוגה"
BEGIN
MENUITEM "רגילה", IDM_VIEW_STANDARD, CHECKED
MENUITEM "מדעית", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "רגילה", IDM_VIEW_STANDARD
MENUITEM "מדעית", IDM_VIEW_SCIENTIFIC
MENUITEM "המרה", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "הקס\tF5", IDM_VIEW_HEX, CHECKED
@@ -364,8 +364,8 @@ BEGIN
END
POPUP "תצוגה"
BEGIN
MENUITEM "רגילה", IDM_VIEW_STANDARD, CHECKED
MENUITEM "מדעית", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "רגילה", IDM_VIEW_STANDARD
MENUITEM "מדעית", IDM_VIEW_SCIENTIFIC
MENUITEM "המרה", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "הקס\tF5", IDM_VIEW_HEX, CHECKED
@@ -397,8 +397,8 @@ BEGIN
END
POPUP "תצוגה"
BEGIN
MENUITEM "רגילה", IDM_VIEW_STANDARD, CHECKED
MENUITEM "מדעית", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "רגילה", IDM_VIEW_STANDARD
MENUITEM "מדעית", IDM_VIEW_SCIENTIFIC
MENUITEM "המרה", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "קיבוץ ספרות", IDM_VIEW_GROUP, CHECKED

View File

@@ -338,8 +338,8 @@ BEGIN
END
POPUP "&Nézet"
BEGIN
MENUITEM "&Szokásos", IDM_VIEW_STANDARD, CHECKED
MENUITEM "&Tudományos", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "&Szokásos", IDM_VIEW_STANDARD
MENUITEM "&Tudományos", IDM_VIEW_SCIENTIFIC
MENUITEM "Át&váltás", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Hexadecimális\tF5", IDM_VIEW_HEX, CHECKED
@@ -370,8 +370,8 @@ BEGIN
END
POPUP "&Nézet"
BEGIN
MENUITEM "&Szokásos", IDM_VIEW_STANDARD, CHECKED
MENUITEM "&Tudományos", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "&Szokásos", IDM_VIEW_STANDARD
MENUITEM "&Tudományos", IDM_VIEW_SCIENTIFIC
MENUITEM "Át&váltás", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Hexadecimális\tF5", IDM_VIEW_HEX, CHECKED
@@ -403,8 +403,8 @@ BEGIN
END
POPUP "&Nézet"
BEGIN
MENUITEM "&Szokásos", IDM_VIEW_STANDARD, CHECKED
MENUITEM "&Tudományos", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "&Szokásos", IDM_VIEW_STANDARD
MENUITEM "&Tudományos", IDM_VIEW_SCIENTIFIC
MENUITEM "Át&váltás", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Számjegyek &csoportosítása", IDM_VIEW_GROUP, CHECKED

View File

@@ -330,8 +330,8 @@ BEGIN
END
POPUP "Visualizza"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Scientifica", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Scientifica", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversione", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -362,8 +362,8 @@ BEGIN
END
POPUP "Visualizza"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Scientifica", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Scientifica", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversione", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -395,8 +395,8 @@ BEGIN
END
POPUP "Visualizza"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Scientifica", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Scientifica", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversione", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Raggruppamento cifre", IDM_VIEW_GROUP, CHECKED

View File

@@ -330,8 +330,8 @@ BEGIN
END
POPUP "表示(&V)"
BEGIN
MENUITEM "標準(&T)", IDM_VIEW_STANDARD, CHECKED
MENUITEM "関数電卓(&S)", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "標準(&T)", IDM_VIEW_STANDARD
MENUITEM "関数電卓(&S)", IDM_VIEW_SCIENTIFIC
MENUITEM "変換(&C)", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "1&6進\tF5", IDM_VIEW_HEX, CHECKED
@@ -362,8 +362,8 @@ BEGIN
END
POPUP "表示(&V)"
BEGIN
MENUITEM "標準(&T)", IDM_VIEW_STANDARD, CHECKED
MENUITEM "関数電卓(&S)", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "標準(&T)", IDM_VIEW_STANDARD
MENUITEM "関数電卓(&S)", IDM_VIEW_SCIENTIFIC
MENUITEM "変換(&C)", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "1&6進\tF5", IDM_VIEW_HEX, CHECKED
@@ -395,8 +395,8 @@ BEGIN
END
POPUP "表示"
BEGIN
MENUITEM "標準(&T)", IDM_VIEW_STANDARD, CHECKED
MENUITEM "関数電卓(&S)", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "標準(&T)", IDM_VIEW_STANDARD
MENUITEM "関数電卓(&S)", IDM_VIEW_SCIENTIFIC
MENUITEM "変換(&C)", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "桁を区切る(&I)", IDM_VIEW_GROUP, CHECKED

View File

@@ -8,7 +8,7 @@ IDD_DIALOG_SCIENTIFIC DIALOGEX 0, 0, 316, 163
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS 계산기"
MENU IDR_MENU_SCIENTIFIC_1
FONT 8, "MS Shell Dlg", 0, 0, 0x1
FONT 9, "MS Shell Dlg", 0, 0, 0x1
BEGIN
GROUPBOX "", IDC_STATIC, 5 ,14, 141, 20
CONTROL "Hex", IDC_RADIO_HEX, "Button", BS_AUTORADIOBUTTON, 8, 21, 30, 10
@@ -156,7 +156,7 @@ IDD_DIALOG_STANDARD DIALOGEX 0, 0, 169, 128
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS 계산기"
MENU IDR_MENU_STANDARD
FONT 8, "MS Shell Dlg", 0, 0, 0x1
FONT 9, "MS Shell Dlg", 0, 0, 0x1
BEGIN
PUSHBUTTON "C", IDC_BUTTON_CANC, 123, 23, 41, 18, BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
@@ -221,7 +221,7 @@ IDD_DIALOG_CONVERSION DIALOGEX 0, 0, 320, 130
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS 계산기 정보"
MENU IDR_MENU_STANDARD
FONT 8, "MS Shell Dlg"
FONT 9, "MS Shell Dlg"
BEGIN
PUSHBUTTON "Convert", IDC_BUTTON_CONVERT, 35, 105, 76, 17
COMBOBOX IDC_COMBO_CATEGORY, 5, 31, 140, 168, CBS_DROPDOWNLIST | WS_VSCROLL |
@@ -295,7 +295,7 @@ END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS 계산기 정보"
FONT 8, "MS Shell Dlg"
FONT 9, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "OK", IDOK, 105, 148, 52, 16
CONTROL IDB_BITMAP_ROS, IDC_STATIC, "Static", SS_BITMAP | SS_CENTERIMAGE |
@@ -311,7 +311,7 @@ END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "Statistics box"
FONT 8, "MS Shell Dlg"
FONT 9, "MS Shell Dlg"
BEGIN
LISTBOX IDC_LIST_STAT, 4, 4, 156, 40, LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "RET", IDC_BUTTON_RET, 4, 48, 36, 16
@@ -332,8 +332,8 @@ BEGIN
END
POPUP "보기"
BEGIN
MENUITEM "일반", IDM_VIEW_STANDARD, CHECKED
MENUITEM "공학", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "일반", IDM_VIEW_STANDARD
MENUITEM "공학", IDM_VIEW_SCIENTIFIC
MENUITEM "전환", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -364,8 +364,8 @@ BEGIN
END
POPUP "보기"
BEGIN
MENUITEM "일반", IDM_VIEW_STANDARD, CHECKED
MENUITEM "공학", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "일반", IDM_VIEW_STANDARD
MENUITEM "공학", IDM_VIEW_SCIENTIFIC
MENUITEM "전환", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -397,8 +397,8 @@ BEGIN
END
POPUP "보기"
BEGIN
MENUITEM "일반", IDM_VIEW_STANDARD, CHECKED
MENUITEM "공학", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "일반", IDM_VIEW_STANDARD
MENUITEM "공학", IDM_VIEW_SCIENTIFIC
MENUITEM "전환", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "자릿수 구분 단위", IDM_VIEW_GROUP, CHECKED

View File

@@ -330,8 +330,8 @@ BEGIN
END
POPUP "Beeld"
BEGIN
MENUITEM "Standaard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Wetenschappelijk", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standaard", IDM_VIEW_STANDARD
MENUITEM "Wetenschappelijk", IDM_VIEW_SCIENTIFIC
MENUITEM "Converteren", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -362,8 +362,8 @@ BEGIN
END
POPUP "Beeld"
BEGIN
MENUITEM "Standaard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Wetenschappelijk", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standaard", IDM_VIEW_STANDARD
MENUITEM "Wetenschappelijk", IDM_VIEW_SCIENTIFIC
MENUITEM "Converteren", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -395,8 +395,8 @@ BEGIN
END
POPUP "View"
BEGIN
MENUITEM "Standaard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Wetenschappelijk", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standaard", IDM_VIEW_STANDARD
MENUITEM "Wetenschappelijk", IDM_VIEW_SCIENTIFIC
MENUITEM "Converteren", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Cijfergroeperingen", IDM_VIEW_GROUP, CHECKED

View File

@@ -330,8 +330,8 @@ BEGIN
END
POPUP "Vis"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vitenskapelig", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Vitenskapelig", IDM_VIEW_SCIENTIFIC
MENUITEM "Konvertering", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Heksadesimalt\tF5", IDM_VIEW_HEX, CHECKED
@@ -362,8 +362,8 @@ BEGIN
END
POPUP "Vis"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vitenskapelig", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Vitenskapelig", IDM_VIEW_SCIENTIFIC
MENUITEM "konvertering", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Heksadesimalt\tF5", IDM_VIEW_HEX, CHECKED
@@ -395,8 +395,8 @@ BEGIN
END
POPUP "Vis"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vitenskapelig", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Vitenskapelig", IDM_VIEW_SCIENTIFIC
MENUITEM "Konvertering", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Siffergruppering", IDM_VIEW_GROUP, CHECKED
@@ -405,7 +405,7 @@ BEGIN
BEGIN
MENUITEM "Emner i hjelp", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "Om Reactos Kalkulator", IDM_HELP_ABOUT
MENUITEM "Om ReactOS Kalkulator", IDM_HELP_ABOUT
END
END

View File

@@ -339,8 +339,8 @@ BEGIN
END
POPUP "Wygląd"
BEGIN
MENUITEM "Standardowy", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Naukowy", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standardowy", IDM_VIEW_STANDARD
MENUITEM "Naukowy", IDM_VIEW_SCIENTIFIC
MENUITEM "Przeliczanie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Szesnastkowy\tF5", IDM_VIEW_HEX, CHECKED
@@ -371,8 +371,8 @@ BEGIN
END
POPUP "Wygląd"
BEGIN
MENUITEM "Standardowy", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Naukowy", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standardowy", IDM_VIEW_STANDARD
MENUITEM "Naukowy", IDM_VIEW_SCIENTIFIC
MENUITEM "Przeliczanie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Szesnastkowo\tF5", IDM_VIEW_HEX, CHECKED
@@ -404,8 +404,8 @@ BEGIN
END
POPUP "Wygląd"
BEGIN
MENUITEM "Standardowy", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Naukowy", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standardowy", IDM_VIEW_STANDARD
MENUITEM "Naukowy", IDM_VIEW_SCIENTIFIC
MENUITEM "Przeliczanie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Grupowanie cyfr", IDM_VIEW_GROUP, CHECKED

View File

@@ -332,8 +332,8 @@ BEGIN
END
POPUP "Visualizar"
BEGIN
MENUITEM "Padrão", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Padrão", IDM_VIEW_STANDARD
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversão", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -364,8 +364,8 @@ BEGIN
END
POPUP "Visualizar"
BEGIN
MENUITEM "Padrão", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Padrão", IDM_VIEW_STANDARD
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversão", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -397,8 +397,8 @@ BEGIN
END
POPUP "Visualizar"
BEGIN
MENUITEM "Padrão", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Padrão", IDM_VIEW_STANDARD
MENUITEM "Científica", IDM_VIEW_SCIENTIFIC
MENUITEM "Conversão", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Agrupar dígitos", IDM_VIEW_GROUP, CHECKED

View File

@@ -1,4 +1,8 @@
/* Ștefan Fulea (stefan dot fulea at mail dot md) */
/*
* Translators: Petru Dimitriu (petrimetri at gmail dot com)
* Ștefan Fulea (stefan dot fulea at mail dot md)
*/
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
/* Dialogs */
@@ -331,8 +335,8 @@ BEGIN
END
POPUP "&Afișare"
BEGIN
MENUITEM "Mod st&andard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Mod știi&nțific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Mod st&andard", IDM_VIEW_STANDARD
MENUITEM "Mod știi&nțific", IDM_VIEW_SCIENTIFIC
MENUITEM "Con&versie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Hexazecimal\tF5", IDM_VIEW_HEX, CHECKED
@@ -346,7 +350,7 @@ BEGIN
MENUITEM SEPARATOR
MENUITEM "Grupează &cifrele", IDM_VIEW_GROUP, CHECKED
END
POPUP "&?"
POPUP "Aj&utor"
BEGIN
MENUITEM "&Manual…", IDM_HELP_HELP
MENUITEM SEPARATOR
@@ -363,8 +367,8 @@ BEGIN
END
POPUP "&Afișare"
BEGIN
MENUITEM "Mod st&andard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Mod știi&nțific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Mod st&andard", IDM_VIEW_STANDARD
MENUITEM "Mod știi&nțific", IDM_VIEW_SCIENTIFIC
MENUITEM "Con&versie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Hexazecimal\tF5", IDM_VIEW_HEX, CHECKED
@@ -379,7 +383,7 @@ BEGIN
MENUITEM SEPARATOR
MENUITEM "Grupează &cifrele", IDM_VIEW_GROUP, CHECKED
END
POPUP "&?"
POPUP "Aj&utor"
BEGIN
MENUITEM "&Manual…", IDM_HELP_HELP
MENUITEM SEPARATOR
@@ -396,13 +400,13 @@ BEGIN
END
POPUP "&Afișare"
BEGIN
MENUITEM "Mod st&andard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Mod știi&nțific", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Mod st&andard", IDM_VIEW_STANDARD
MENUITEM "Mod știi&nțific", IDM_VIEW_SCIENTIFIC
MENUITEM "Con&versie", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Grupează &cifre", IDM_VIEW_GROUP, CHECKED
END
POPUP "&?"
POPUP "Aj&utor"
BEGIN
MENUITEM "&Manual…", IDM_HELP_HELP
MENUITEM SEPARATOR

View File

@@ -330,8 +330,8 @@ BEGIN
END
POPUP "Вид"
BEGIN
MENUITEM "Обычный", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Обычный", IDM_VIEW_STANDARD
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразование", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Шестнадцатеричный\tF5", IDM_VIEW_HEX, CHECKED
@@ -362,8 +362,8 @@ BEGIN
END
POPUP "Вид"
BEGIN
MENUITEM "Обычный", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Обычный", IDM_VIEW_STANDARD
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразование", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Шестнадцатеричный\tF5", IDM_VIEW_HEX, CHECKED
@@ -395,8 +395,8 @@ BEGIN
END
POPUP "Вид"
BEGIN
MENUITEM "Обычный", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Обычный", IDM_VIEW_STANDARD
MENUITEM "Научный", IDM_VIEW_SCIENTIFIC
MENUITEM "Преобразование", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Количество цифр в группе", IDM_VIEW_GROUP, CHECKED
@@ -536,7 +536,7 @@ END
STRINGTABLE
BEGIN
IDS_LENGTH_ANGSTROMS "ангстрем"
IDS_LENGTH_ASTRONOMICAL_UNITS "астрономическая еденица"
IDS_LENGTH_ASTRONOMICAL_UNITS "астрономическая единица"
IDS_LENGTH_BARLEYCORNS "барлейкорн"
IDS_LENGTH_CENTIMETERS "сантиметр"
IDS_LENGTH_CHAINS_UK "чейн (британский)"
@@ -621,7 +621,7 @@ STRINGTABLE
BEGIN
IDS_TIME_DAYS "день"
IDS_TIME_HOURS "час"
IDS_TIME_NANOSECONDS "Nanoseconds"
IDS_TIME_NANOSECONDS "наносекунда"
IDS_TIME_MICROSECONDS "микросекунда"
IDS_TIME_MILLISECONDS "миллисекунда"
IDS_TIME_MINUTES "минута"

View File

@@ -337,8 +337,8 @@ BEGIN
END
POPUP "Zobraziť"
BEGIN
MENUITEM "Štandardná", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vedecká", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Štandardná", IDM_VIEW_STANDARD
MENUITEM "Vedecká", IDM_VIEW_SCIENTIFIC
MENUITEM "Prevody", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Šestnástková\tF5", IDM_VIEW_HEX, CHECKED
@@ -369,8 +369,8 @@ BEGIN
END
POPUP "Zobraziť"
BEGIN
MENUITEM "Štandardná", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vedecká", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Štandardná", IDM_VIEW_STANDARD
MENUITEM "Vedecká", IDM_VIEW_SCIENTIFIC
MENUITEM "Prevody", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Šestnástková\tF5", IDM_VIEW_HEX, CHECKED
@@ -402,8 +402,8 @@ BEGIN
END
POPUP "Zobraziť"
BEGIN
MENUITEM "Štandardná", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vedecká", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Štandardná", IDM_VIEW_STANDARD
MENUITEM "Vedecká", IDM_VIEW_SCIENTIFIC
MENUITEM "Prevody", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Zoskupovať číslice", IDM_VIEW_GROUP, CHECKED

View File

@@ -334,8 +334,8 @@ BEGIN
END
POPUP "Modifko"
BEGIN
MENUITEM "Standart", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Shkencor", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standart", IDM_VIEW_STANDARD
MENUITEM "Shkencor", IDM_VIEW_SCIENTIFIC
MENUITEM "Konvertim", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -366,8 +366,8 @@ BEGIN
END
POPUP "Vëzhgo"
BEGIN
MENUITEM "Standart", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Shkencor", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standart", IDM_VIEW_STANDARD
MENUITEM "Shkencor", IDM_VIEW_SCIENTIFIC
MENUITEM "Konverto", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hex\tF5", IDM_VIEW_HEX, CHECKED
@@ -399,8 +399,8 @@ BEGIN
END
POPUP "Vëzhgo"
BEGIN
MENUITEM "Standar", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Shkencor", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standar", IDM_VIEW_STANDARD
MENUITEM "Shkencor", IDM_VIEW_SCIENTIFIC
MENUITEM "Konverto", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Grupim numeror", IDM_VIEW_GROUP, CHECKED

View File

@@ -1,6 +1,6 @@
/*
* PROJECT: ReactOS CALC
* FILE: base\applications\calc\lang\sv-SE.rc
* FILE: base/applications/calc/lang/sv-SE.rc
* PURPOSE: Swedish resource file
* Translation: Jaix Bly
*/
@@ -337,8 +337,8 @@ BEGIN
END
POPUP "Visa"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vetenskaplig", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Vetenskaplig", IDM_VIEW_SCIENTIFIC
MENUITEM "Konvertering", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hexadecimal\tF5", IDM_VIEW_HEX, CHECKED
@@ -369,8 +369,8 @@ BEGIN
END
POPUP "Vis"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vetenskaplig", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Vetenskaplig", IDM_VIEW_SCIENTIFIC
MENUITEM "Konvertering", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Hexadecimal\tF5", IDM_VIEW_HEX, CHECKED
@@ -402,8 +402,8 @@ BEGIN
END
POPUP "Visa"
BEGIN
MENUITEM "Standard", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Vetenskapelig", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Standard", IDM_VIEW_STANDARD
MENUITEM "Vetenskapelig", IDM_VIEW_SCIENTIFIC
MENUITEM "Konvertering", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Siffergruppering", IDM_VIEW_GROUP, CHECKED
@@ -412,7 +412,7 @@ BEGIN
BEGIN
MENUITEM "Visa hjälp", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "Om Reactos Kalkylator", IDM_HELP_ABOUT
MENUITEM "Om ReactOS Kalkylator", IDM_HELP_ABOUT
END
END

View File

@@ -330,8 +330,8 @@ BEGIN
END
POPUP "&มุมมอง"
BEGIN
MENUITEM "แบบมาตรฐาน", IDM_VIEW_STANDARD, CHECKED
MENUITEM "แบบวิทยาศาสตร์", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "แบบมาตรฐาน", IDM_VIEW_STANDARD
MENUITEM "แบบวิทยาศาสตร์", IDM_VIEW_SCIENTIFIC
MENUITEM "ความเปลี่ยนแปลง", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "ฐานสิบหก\tF5", IDM_VIEW_HEX, CHECKED
@@ -362,8 +362,8 @@ BEGIN
END
POPUP "&มุมมอง"
BEGIN
MENUITEM "แบบมาตรฐาน", IDM_VIEW_STANDARD, CHECKED
MENUITEM "แบบวิทยาศาสตร์", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "แบบมาตรฐาน", IDM_VIEW_STANDARD
MENUITEM "แบบวิทยาศาสตร์", IDM_VIEW_SCIENTIFIC
MENUITEM "ความเปลี่ยนแปลง", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "ฐานสิบหก\tF5", IDM_VIEW_HEX, CHECKED
@@ -395,8 +395,8 @@ BEGIN
END
POPUP "&มุมมอง"
BEGIN
MENUITEM "แบบมาตรฐาน", IDM_VIEW_STANDARD, CHECKED
MENUITEM "แบบวิทยาศาสตร์", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "แบบมาตรฐาน", IDM_VIEW_STANDARD
MENUITEM "แบบวิทยาศาสตร์", IDM_VIEW_SCIENTIFIC
MENUITEM "ความเปลี่ยนแปลง", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "แสดงหลักตัวเลข", IDM_VIEW_GROUP, CHECKED

View File

@@ -1,4 +1,4 @@
/* TRANSLATOR: 2013, 2014 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
/* TRANSLATOR: 2013, 2014, 2016 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
@@ -327,23 +327,23 @@ IDR_MENU_SCIENTIFIC_1 MENU
BEGIN
POPUP "&Düzen"
BEGIN
MENUITEM "&Çoğalt\tCtrl+C", IDM_EDIT_COPY
MENUITEM "&Yapıştır\tCtrl+V", IDM_EDIT_PASTE
MENUITEM "&Çoğalt\tDenetim+C", IDM_EDIT_COPY
MENUITEM "&Yapıştır\tDenetim+V", IDM_EDIT_PASTE
END
POPUP "&Görünüm"
BEGIN
MENUITEM "&Ölçünlü", IDM_VIEW_STANDARD, CHECKED
MENUITEM "&Bilimlik", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "&Ölçünlü", IDM_VIEW_STANDARD
MENUITEM "&Bilimlik", IDM_VIEW_SCIENTIFIC
MENUITEM "&Dönüştürme", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Onaltılık\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM "&Onaltılık\tİ5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tİ6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tİ7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tİ8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "D&erece\tF2", IDM_VIEW_DEG, CHECKED
MENUITEM "&Radyan\tF3", IDM_VIEW_RAD, CHECKED
MENUITEM "&Gradyan\tF4", IDM_VIEW_GRAD, CHECKED
MENUITEM "D&erece\tİ2", IDM_VIEW_DEG, CHECKED
MENUITEM "&Radyan\tİ3", IDM_VIEW_RAD, CHECKED
MENUITEM "&Gradyan\tİ4", IDM_VIEW_GRAD, CHECKED
MENUITEM SEPARATOR
MENUITEM "B&asamakları Takımla", IDM_VIEW_GROUP, CHECKED
END
@@ -351,7 +351,7 @@ BEGIN
BEGIN
MENUITEM "&Yardım Konuları", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "&Üzerine...", IDM_HELP_ABOUT
MENUITEM "&ReactOS Hesap Makinesi Üzerine...", IDM_HELP_ABOUT
END
END
@@ -359,24 +359,24 @@ IDR_MENU_SCIENTIFIC_2 MENU
BEGIN
POPUP "&Düzen"
BEGIN
MENUITEM "&Çoğalt\tCtrl+C", IDM_EDIT_COPY
MENUITEM "&Yapıştır\tCtrl+V", IDM_EDIT_PASTE
MENUITEM "&Çoğalt\tDenetim+C", IDM_EDIT_COPY
MENUITEM "&Yapıştır\tDenetim+V", IDM_EDIT_PASTE
END
POPUP "&Görünüm"
BEGIN
MENUITEM "&Ölçünlü", IDM_VIEW_STANDARD, CHECKED
MENUITEM "&Bilimlik", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "&Ölçünlü", IDM_VIEW_STANDARD
MENUITEM "&Bilimlik", IDM_VIEW_SCIENTIFIC
MENUITEM "&Dönüştürme", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "&Onaltılık\tF5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tF6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tF7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tF8", IDM_VIEW_BIN, CHECKED
MENUITEM "&Onaltılık\tİ5", IDM_VIEW_HEX, CHECKED
MENUITEM "O&nluk\tİ6", IDM_VIEW_DEC, CHECKED
MENUITEM "&Sekizlik\tİ7", IDM_VIEW_OCT, CHECKED
MENUITEM "&İkilik\tİ8", IDM_VIEW_BIN, CHECKED
MENUITEM SEPARATOR
MENUITEM "Dö&rtlü Sözcük\tF12", IDM_VIEW_QWORD, CHECKED
MENUITEM "İ&kili Sözcük\tF2", IDM_VIEW_DWORD, CHECKED
MENUITEM "Sö&zcük\tF3", IDM_VIEW_WORD, CHECKED
MENUITEM "&Çoklu\tF4", IDM_VIEW_BYTE, CHECKED
MENUITEM "Dö&rtlü Sözcük\tİ12", IDM_VIEW_QWORD, CHECKED
MENUITEM "İ&kili Sözcük\tİ2", IDM_VIEW_DWORD, CHECKED
MENUITEM "Sö&zcük\tİ3", IDM_VIEW_WORD, CHECKED
MENUITEM "&Çoklu\tİ4", IDM_VIEW_BYTE, CHECKED
MENUITEM SEPARATOR
MENUITEM "B&asamakları Takımla", IDM_VIEW_GROUP, CHECKED
END
@@ -384,7 +384,7 @@ BEGIN
BEGIN
MENUITEM "&Yardım Konuları", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "&Üzerine...", IDM_HELP_ABOUT
MENUITEM "&ReactOS Hesap Makinesi Üzerine...", IDM_HELP_ABOUT
END
END
@@ -392,13 +392,13 @@ IDR_MENU_STANDARD MENU
BEGIN
POPUP "&Düzen"
BEGIN
MENUITEM "&Çoğalt\tCtrl+C", IDM_EDIT_COPY
MENUITEM "&Yapıştır\tCtrl+V", IDM_EDIT_PASTE
MENUITEM "&Çoğalt\tDenetim+C", IDM_EDIT_COPY
MENUITEM "&Yapıştır\tDenetim+V", IDM_EDIT_PASTE
END
POPUP "&Görünüm"
BEGIN
MENUITEM "&Ölçünlü", IDM_VIEW_STANDARD, CHECKED
MENUITEM "&Bilimlik", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "&Ölçünlü", IDM_VIEW_STANDARD
MENUITEM "&Bilimlik", IDM_VIEW_SCIENTIFIC
MENUITEM "&Dönüştürme", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "B&asamakları Takımla", IDM_VIEW_GROUP, CHECKED
@@ -407,7 +407,7 @@ BEGIN
BEGIN
MENUITEM "&Yardım Konuları", IDM_HELP_HELP
MENUITEM SEPARATOR
MENUITEM "&Üzerine...", IDM_HELP_ABOUT
MENUITEM "&ReactOS Hesap Makinesi Üzerine...", IDM_HELP_ABOUT
END
END

View File

@@ -338,8 +338,8 @@ BEGIN
END
POPUP "Вигляд"
BEGIN
MENUITEM "Звичайний", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Науковий", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Звичайний", IDM_VIEW_STANDARD
MENUITEM "Науковий", IDM_VIEW_SCIENTIFIC
MENUITEM "Перетворення", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Шістнадцятковий\tF5", IDM_VIEW_HEX, CHECKED
@@ -370,8 +370,8 @@ BEGIN
END
POPUP "Вигляд"
BEGIN
MENUITEM "Звичайний", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Науковий", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Звичайний", IDM_VIEW_STANDARD
MENUITEM "Науковий", IDM_VIEW_SCIENTIFIC
MENUITEM "Перетворення", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Шістнадцятковий\tF5", IDM_VIEW_HEX, CHECKED
@@ -403,8 +403,8 @@ BEGIN
END
POPUP "Вигляд"
BEGIN
MENUITEM "Звичайний", IDM_VIEW_STANDARD, CHECKED
MENUITEM "Науковий", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "Звичайний", IDM_VIEW_STANDARD
MENUITEM "Науковий", IDM_VIEW_SCIENTIFIC
MENUITEM "Перетворення", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "Кількість цифр у групі", IDM_VIEW_GROUP, CHECKED

View File

@@ -8,7 +8,7 @@ IDD_DIALOG_SCIENTIFIC DIALOGEX 0, 0, 316, 163
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS 计算器"
MENU IDR_MENU_SCIENTIFIC_1
FONT 8, "MS Shell Dlg", 0, 0, 0x1
FONT 9, "MS Shell Dlg", 0, 0, 0x1
BEGIN
GROUPBOX "", IDC_STATIC, 5 ,14, 141, 20
CONTROL "Hex", IDC_RADIO_HEX, "Button", BS_AUTORADIOBUTTON, 8, 21, 30, 10
@@ -156,7 +156,7 @@ IDD_DIALOG_STANDARD DIALOGEX 0, 0, 169, 128
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS 计算器"
MENU IDR_MENU_STANDARD
FONT 8, "MS Shell Dlg", 0, 0, 0x1
FONT 9, "MS Shell Dlg", 0, 0, 0x1
BEGIN
PUSHBUTTON "C", IDC_BUTTON_CANC, 123, 23, 41, 18, BS_CENTER | BS_VCENTER |
BS_NOTIFY | BS_OWNERDRAW | WS_TABSTOP
@@ -221,7 +221,7 @@ IDD_DIALOG_CONVERSION DIALOGEX 0, 0, 320, 130
STYLE DS_SHELLFONT | WS_MINIMIZEBOX | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "ReactOS 计算器"
MENU IDR_MENU_STANDARD
FONT 8, "MS Shell Dlg"
FONT 9, "MS Shell Dlg"
BEGIN
PUSHBUTTON "转换", IDC_BUTTON_CONVERT, 35, 105, 76, 17
COMBOBOX IDC_COMBO_CATEGORY, 5, 31, 140, 168, CBS_DROPDOWNLIST | WS_VSCROLL |
@@ -295,7 +295,7 @@ END
IDD_DIALOG_ABOUT DIALOGEX 0, 0, 264, 169
STYLE DS_SHELLFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "关于 ReactOS 计算器"
FONT 8, "MS Shell Dlg"
FONT 9, "MS Shell Dlg"
BEGIN
DEFPUSHBUTTON "确定", IDOK, 105, 148, 52, 16
CONTROL IDB_BITMAP_ROS, IDC_STATIC, "Static", SS_BITMAP | SS_CENTERIMAGE |
@@ -311,7 +311,7 @@ END
IDD_DIALOG_STAT DIALOGEX 0, 0, 163, 85
STYLE DS_SHELLFONT | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
CAPTION "统计框"
FONT 8, "MS Shell Dlg"
FONT 9, "MS Shell Dlg"
BEGIN
LISTBOX IDC_LIST_STAT, 4, 4, 156, 40, LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "返回", IDC_BUTTON_RET, 4, 48, 36, 16
@@ -332,8 +332,8 @@ BEGIN
END
POPUP "查看"
BEGIN
MENUITEM "标准型", IDM_VIEW_STANDARD, CHECKED
MENUITEM "科学型", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "标准型", IDM_VIEW_STANDARD
MENUITEM "科学型", IDM_VIEW_SCIENTIFIC
MENUITEM "转换", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "十六进制\tF5", IDM_VIEW_HEX, CHECKED
@@ -364,8 +364,8 @@ BEGIN
END
POPUP "查看"
BEGIN
MENUITEM "标准型", IDM_VIEW_STANDARD, CHECKED
MENUITEM "科学型", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "标准型", IDM_VIEW_STANDARD
MENUITEM "科学型", IDM_VIEW_SCIENTIFIC
MENUITEM "转换", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "十六进制\tF5", IDM_VIEW_HEX, CHECKED
@@ -397,8 +397,8 @@ BEGIN
END
POPUP "查看"
BEGIN
MENUITEM "标准型", IDM_VIEW_STANDARD, CHECKED
MENUITEM "科学型", IDM_VIEW_SCIENTIFIC, CHECKED
MENUITEM "标准型", IDM_VIEW_STANDARD
MENUITEM "科学型", IDM_VIEW_SCIENTIFIC
MENUITEM "转换", IDM_VIEW_CONVERSION
MENUITEM SEPARATOR
MENUITEM "数字分组", IDM_VIEW_GROUP, CHECKED

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -1,7 +1,7 @@
/*
* PROJECT: ReactOS Calc
* LICENSE: LGPL - See COPYING.LIB in the top level directory
* FILE: base/applications/calcs/resource.rc
* FILE: base/applications/calc/resource.rc
* PURPOSE: Global resource file
*/
@@ -14,10 +14,6 @@
#define IDC_STATIC -1
#endif
#ifndef DS_SHELLFONT
#define DS_SHELLFONT DS_SETFONT|DS_FIXEDSYS
#endif
/* Common resources */
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL

View File

@@ -225,38 +225,40 @@ calc_t calc;
static void load_config(void)
{
TCHAR buf[32];
DWORD tmp;
#if _WIN32_WINNT >= 0x0500
HKEY hKey;
#endif
/* If no settings are found in the registry, then use the default options */
calc.layout = CALC_LAYOUT_STANDARD;
calc.usesep = FALSE;
/* Try to load last selected layout */
GetProfileString(TEXT("SciCalc"), TEXT("layout"), TEXT("0"), buf, SIZEOF(buf));
if (_stscanf(buf, TEXT("%lu"), &calc.layout) != 1)
calc.layout = CALC_LAYOUT_STANDARD;
/* Get the configuration based on what version of Windows that's being used */
if (RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("SOFTWARE\\Microsoft\\Calc"), 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS)
{
/* Try to load last selected layout */
tmp = sizeof(calc.layout);
if (RegQueryValueEx(hKey, TEXT("layout"), NULL, NULL, (LPBYTE)&calc.layout, &tmp) != ERROR_SUCCESS)
calc.layout = CALC_LAYOUT_STANDARD;
/* Try to load last selected formatting option */
GetProfileString(TEXT("SciCalc"), TEXT("UseSep"), TEXT("0"), buf, SIZEOF(buf));
if (_stscanf(buf, TEXT("%lu"), &tmp) != 1)
calc.usesep = FALSE;
else
calc.usesep = (tmp == 1) ? TRUE : FALSE;
/* Try to load last selected formatting option */
tmp = sizeof(calc.usesep);
if (RegQueryValueEx(hKey, TEXT("UseSep"), NULL, NULL, (LPBYTE)&calc.usesep, &tmp) != ERROR_SUCCESS)
calc.usesep = FALSE;
/* close the key */
RegCloseKey(hKey);
}
/* memory is empty at startup */
calc.is_memory = FALSE;
#if _WIN32_WINNT >= 0x0500
/* empty these values */
calc.sDecimal[0] = TEXT('\0');
calc.sThousand[0] = TEXT('\0');
/* try to open the registry */
if (RegOpenKeyEx(HKEY_CURRENT_USER,
TEXT("Control Panel\\International"),
0,
KEY_QUERY_VALUE,
&hKey) == ERROR_SUCCESS) {
if (RegOpenKeyEx(HKEY_CURRENT_USER, TEXT("Control Panel\\International"), 0, KEY_QUERY_VALUE, &hKey) == ERROR_SUCCESS)
{
/* get these values (ignore errors) */
tmp = sizeof(calc.sDecimal);
RegQueryValueEx(hKey, TEXT("sDecimal"), NULL, NULL, (LPBYTE)calc.sDecimal, &tmp);
@@ -277,20 +279,24 @@ static void load_config(void)
/* get the string lengths */
calc.sDecimal_len = _tcslen(calc.sDecimal);
calc.sThousand_len = _tcslen(calc.sThousand);
#else
/* acquire regional settings */
calc.sDecimal_len = GetProfileString(TEXT("intl"), TEXT("sDecimal"), TEXT("."), calc.sDecimal, SIZEOF(calc.sDecimal));
calc.sThousand_len = GetProfileString(TEXT("intl"), TEXT("sThousand"), TEXT(","), calc.sThousand, SIZEOF(calc.sThousand));
#endif
}
static void save_config(void)
{
TCHAR buf[32];
HKEY hKey;
DWORD sepValue;
_stprintf(buf, TEXT("%lu"), calc.layout);
WriteProfileString(TEXT("SciCalc"), TEXT("layout"), buf);
WriteProfileString(TEXT("SciCalc"), TEXT("UseSep"), (calc.usesep==TRUE) ? TEXT("1") : TEXT("0"));
if (RegCreateKeyEx(HKEY_CURRENT_USER, TEXT("SOFTWARE\\Microsoft\\Calc"), 0, NULL, REG_OPTION_NON_VOLATILE, KEY_SET_VALUE, NULL, &hKey, NULL) != ERROR_SUCCESS)
{
return;
}
sepValue = (calc.usesep) ? 1 : 0;
RegSetValueEx(hKey, TEXT("layout"), 0, REG_DWORD, (const BYTE*)&calc.layout, sizeof(calc.layout));
RegSetValueEx(hKey, TEXT("UseSep"), 0, REG_DWORD, (const BYTE*)&sepValue, sizeof(sepValue));
RegCloseKey(hKey);
}
static LRESULT post_key_press(LPARAM lParam, WORD idc)
@@ -657,7 +663,33 @@ static void update_menu(HWND hwnd)
HMENU hMenu = GetSubMenu(GetMenu(hwnd), 1);
unsigned int x;
for (x=0; x<SIZEOF(upd); x++) {
/* Sets the state of the layout in the menu based on the configuration file */
if (calc.layout == CALC_LAYOUT_SCIENTIFIC)
{
CheckMenuRadioItem(GetMenu(hwnd),
IDM_VIEW_STANDARD,
IDM_VIEW_CONVERSION,
IDM_VIEW_SCIENTIFIC,
MF_BYCOMMAND);
}
else if (calc.layout == CALC_LAYOUT_CONVERSION)
{
CheckMenuRadioItem(GetMenu(hwnd),
IDM_VIEW_STANDARD,
IDM_VIEW_CONVERSION,
IDM_VIEW_CONVERSION,
MF_BYCOMMAND);
}
else
{
CheckMenuRadioItem(GetMenu(hwnd),
IDM_VIEW_STANDARD,
IDM_VIEW_CONVERSION,
IDM_VIEW_STANDARD,
MF_BYCOMMAND);
}
for (x=3; x<SIZEOF(upd); x++) {
if (*(upd[x].sel) != upd[x].idc) {
CheckMenuItem(hMenu, upd[x].idm, MF_BYCOMMAND|MF_UNCHECKED);
SendMessage((HWND)GetDlgItem(hwnd,upd[x].idc),BM_SETCHECK,FALSE,0L);
@@ -1225,6 +1257,7 @@ static INT_PTR CALLBACK DlgMainProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
{
unsigned int x;
RECT rc;
HMENU hMenu;
switch (msg) {
case WM_DRAWITEM:
@@ -1258,6 +1291,11 @@ static INT_PTR CALLBACK DlgMainProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
/* set our calc icon */
SendMessage(hWnd, WM_SETICON, ICON_BIG, (LPARAM)LoadIcon(calc.hInstance, MAKEINTRESOURCE(IDI_CALC_BIG)));
SendMessage(hWnd, WM_SETICON, ICON_SMALL, (LPARAM)LoadIcon(calc.hInstance, MAKEINTRESOURCE(IDI_CALC_SMALL)));
/* Sets the state of the option to group digits */
hMenu = GetSubMenu(GetMenu(hWnd), 1);
CheckMenuItem(hMenu, IDM_VIEW_GROUP, (calc.usesep ? MF_CHECKED : MF_UNCHECKED));
/* update text for decimal button */
SendDlgItemMessage(hWnd, IDC_BUTTON_DOT, WM_SETTEXT, (WPARAM)0, (LPARAM)calc.sDecimal);
/* Fill combo box for conversion */
@@ -1308,22 +1346,49 @@ static INT_PTR CALLBACK DlgMainProc(HWND hWnd, UINT msg, WPARAM wp, LPARAM lp)
#endif
return TRUE;
case IDM_VIEW_STANDARD:
calc.layout = CALC_LAYOUT_STANDARD;
calc.action = IDM_VIEW_STANDARD;
DestroyWindow(hWnd);
save_config();
if (calc.layout != CALC_LAYOUT_STANDARD)
{
calc.layout = CALC_LAYOUT_STANDARD;
calc.action = IDM_VIEW_STANDARD;
DestroyWindow(hWnd);
save_config();
CheckMenuRadioItem(GetMenu(hWnd),
IDM_VIEW_STANDARD,
IDM_VIEW_CONVERSION,
IDM_VIEW_STANDARD,
MF_BYCOMMAND);
}
return TRUE;
case IDM_VIEW_SCIENTIFIC:
calc.layout = CALC_LAYOUT_SCIENTIFIC;
calc.action = IDM_VIEW_SCIENTIFIC;
DestroyWindow(hWnd);
save_config();
if (calc.layout != CALC_LAYOUT_SCIENTIFIC)
{
calc.layout = CALC_LAYOUT_SCIENTIFIC;
calc.action = IDM_VIEW_SCIENTIFIC;
DestroyWindow(hWnd);
save_config();
CheckMenuRadioItem(GetMenu(hWnd),
IDM_VIEW_STANDARD,
IDM_VIEW_CONVERSION,
IDM_VIEW_SCIENTIFIC,
MF_BYCOMMAND);
}
return TRUE;
case IDM_VIEW_CONVERSION:
calc.layout = CALC_LAYOUT_CONVERSION;
calc.action = IDM_VIEW_CONVERSION;
DestroyWindow(hWnd);
save_config();
if (calc.layout != CALC_LAYOUT_CONVERSION)
{
calc.layout = CALC_LAYOUT_CONVERSION;
calc.action = IDM_VIEW_CONVERSION;
DestroyWindow(hWnd);
save_config();
CheckMenuRadioItem(GetMenu(hWnd),
IDM_VIEW_STANDARD,
IDM_VIEW_CONVERSION,
IDM_VIEW_CONVERSION,
MF_BYCOMMAND);
}
return TRUE;
case IDM_VIEW_HEX:
case IDM_VIEW_DEC:
@@ -1715,8 +1780,7 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdL
/* ignore hwnd: dialogs are already visible! */
if (calc.layout == CALC_LAYOUT_SCIENTIFIC)
dwLayout = IDD_DIALOG_SCIENTIFIC;
else
if (calc.layout == CALC_LAYOUT_CONVERSION)
else if (calc.layout == CALC_LAYOUT_CONVERSION)
dwLayout = IDD_DIALOG_CONVERSION;
else
dwLayout = IDD_DIALOG_STANDARD;

View File

@@ -7,6 +7,7 @@ list(APPEND SOURCE
settings.c
precomp.h)
add_rc_deps(charmap.rc ${CMAKE_CURRENT_SOURCE_DIR}/res/charmap.ico)
add_executable(charmap ${SOURCE} charmap.rc)
set_module_type(charmap win32gui UNICODE)
add_importlibs(charmap advapi32 user32 gdi32 comctl32 msvcrt kernel32)

View File

@@ -12,6 +12,8 @@
#include <commctrl.h>
#include <richedit.h>
#define REMOVE_ADVANCED
#define ID_ABOUT 0x1
HINSTANCE hInstance;
@@ -34,6 +36,9 @@ EnumFontNames(ENUMLOGFONTEXW *lpelfe,
HWND hwndCombo = (HWND)lParam;
LPWSTR pszName = lpelfe->elfLogFont.lfFaceName;
/* Skip rotated font */
if(pszName[0] == L'@') return 1;
/* make sure font doesn't already exist in our list */
if(SendMessageW(hwndCombo,
CB_FINDSTRINGEXACT,
@@ -234,7 +239,7 @@ AddCharToSelection(HWND hDlg, WCHAR ch)
SendMessage(hText, WM_CHAR, (WPARAM)ch, 0);
}
#ifndef REMOVE_ADVANCED
static
void
UpdateSettings(HWND hDlg)
@@ -242,20 +247,24 @@ UpdateSettings(HWND hDlg)
if (hDlg == hCharmapDlg)
{
Settings.IsAdvancedView =
SendDlgItemMessage(hDlg, IDC_CHECK_ADVANCED, BM_GETCHECK, 0, 0);
SendDlgItemMessage(hDlg, IDC_CHECK_ADVANCED, BM_GETCHECK, 0, 0);
}
if (hDlg == hAdvancedDlg)
{
}
}
#endif
static
void
ChangeView(HWND hWnd)
{
RECT rcCharmap;
#ifndef REMOVE_ADVANCED
RECT rcAdvanced;
#endif
RECT rcPanelExt;
RECT rcPanelInt;
RECT rcStatus;
@@ -265,7 +274,9 @@ ChangeView(HWND hWnd)
UINT DeskTopWidth, DeskTopHeight;
GetClientRect(hCharmapDlg, &rcCharmap);
#ifndef REMOVE_ADVANCED
GetClientRect(hAdvancedDlg, &rcAdvanced);
#endif
GetWindowRect(hWnd, &rcPanelExt);
GetClientRect(hWnd, &rcPanelInt);
GetClientRect(hStatusWnd, &rcStatus);
@@ -277,19 +288,19 @@ ChangeView(HWND hWnd)
DeY = (rcPanelExt.bottom - rcPanelExt.top) - rcPanelInt.bottom;
MoveWindow(hCharmapDlg, 0, 0, rcCharmap.right, rcCharmap.bottom, FALSE);
#ifndef REMOVE_ADVANCED
MoveWindow(hAdvancedDlg, 0, rcCharmap.bottom, rcAdvanced.right, rcAdvanced.bottom, FALSE);
ShowWindow(hAdvancedDlg, (Settings.IsAdvancedView) ? SW_SHOW : SW_HIDE);
#endif
xPos = rcPanelExt.left;
yPos = rcPanelExt.top;
Width = DeX + rcCharmap.right;
Height = DeY + rcCharmap.bottom + rcStatus.bottom;
#ifndef REMOVE_ADVANCED
if (Settings.IsAdvancedView)
Height += rcAdvanced.bottom;
#endif
if ((xPos + Width) > DeskTopWidth)
xPos += DeskTopWidth - (xPos + Width);
@@ -315,17 +326,23 @@ CharMapDlgProc(HWND hDlg,
case WM_INITDIALOG:
{
DWORD evMask;
#ifdef REMOVE_ADVANCED
HWND hAdv;
#endif
FillFontStyleComboList(GetDlgItem(hDlg,
IDC_FONTCOMBO));
ChangeMapFont(hDlg);
// Configure Richedi control for sending notification changes.
// Configure Richedit control for sending notification changes.
evMask = SendDlgItemMessage(hDlg, IDC_TEXTBOX, EM_GETEVENTMASK, 0, 0);
evMask |= ENM_CHANGE;
SendDlgItemMessage(hDlg, IDC_TEXTBOX, EM_SETEVENTMASK, 0, (LPARAM)evMask);
#ifdef REMOVE_ADVANCED
hAdv = GetDlgItem(hDlg, IDC_CHECK_ADVANCED);
ShowWindow(hAdv, SW_HIDE);
#endif
return TRUE;
}
@@ -367,11 +384,12 @@ CharMapDlgProc(HWND hDlg,
case IDC_COPY:
CopyCharacters(hDlg);
break;
#ifndef REMOVE_ADVANCED
case IDC_CHECK_ADVANCED:
UpdateSettings(hDlg);
ChangeView(GetParent(hDlg));
break;
#endif
}
}
break;
@@ -382,7 +400,7 @@ CharMapDlgProc(HWND hDlg,
return FALSE;
}
#ifndef REMOVE_ADVANCED
static
INT_PTR
CALLBACK
@@ -402,7 +420,7 @@ AdvancedDlgProc(HWND hDlg,
return FALSE;
}
#endif
static int
OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam)
{
@@ -413,12 +431,12 @@ OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam)
MAKEINTRESOURCE(IDD_CHARMAP),
hWnd,
CharMapDlgProc);
#ifndef REMOVE_ADVANCED
hAdvancedDlg = CreateDialog(hInstance,
MAKEINTRESOURCE(IDD_ADVANCED),
hWnd,
AdvancedDlgProc);
MAKEINTRESOURCE(IDD_ADVANCED),
hWnd,
AdvancedDlgProc);
#endif
hStatusWnd = CreateWindow(STATUSCLASSNAME,
NULL,
WS_CHILD | WS_VISIBLE,

View File

@@ -1,21 +1,24 @@
/* Spanish Language resource file.
* Translated by: ?? and Ismael Ferreras Morezuelas <2014-11-07> */
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
IDD_CHARMAP DIALOGEX 6, 6, 292, 224
FONT 8, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_CHILD | WS_VISIBLE
BEGIN
LTEXT "Fuente :", IDC_STATIC, 6, 7, 24, 9
LTEXT "Fuente:", IDC_STATIC, 6, 7, 24, 9
COMBOBOX IDC_FONTCOMBO, 36, 5, 210, 210, WS_CHILD | WS_VISIBLE |
WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT | CBS_HASSTRINGS
PUSHBUTTON "Ayuda", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP |
WS_VSCROLL, 20, 22, 266, 156
LTEXT "Caracteres a copiar :", IDC_STATIC, 6, 188, 66, 9
LTEXT "Caracteres a copiar:", IDC_STATIC, 6, 188, 66, 9
CONTROL "", IDC_TEXTBOX, RICHEDIT_CLASS, ES_AUTOHSCROLL | WS_BORDER |
WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Seleccionar", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Copiar", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
CONTROL "Advanced view", IDC_CHECK_ADVANCED, "Button", BS_AUTOCHECKBOX |
CONTROL "Vista avanzada", IDC_CHECK_ADVANCED, "Button", BS_AUTOCHECKBOX |
WS_TABSTOP, 8, 208, 95, 10
END
@@ -23,23 +26,23 @@ IDD_ADVANCED DIALOGEX 0, 0, 292, 64
STYLE DS_SHELLFONT | WS_CHILD
FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "Charset:", IDC_STATIC, 8, 8, 48, 8
COMBOBOX IDC_COMBO_CHARSET, 72, 4, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
LTEXT "Group by:", IDC_STATIC, 8, 28, 50, 8
COMBOBOX IDC_COMBO_GROUPBY, 72, 24, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Search", IDC_BUTTON_SEARCH, 200, 44, 50, 14
EDITTEXT IDC_EDIT_SEARCH, 72, 44, 116, 14, ES_AUTOHSCROLL
LTEXT "Search for:", IDC_STATIC, 8, 48, 42, 8
LTEXT "Juego de caracteres:", IDC_STATIC, 2, 7, 68, 8, SS_RIGHT
COMBOBOX IDC_COMBO_CHARSET, 74, 4, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
LTEXT "Agrupar:", IDC_STATIC, 2, 26, 68, 8, SS_RIGHT
COMBOBOX IDC_COMBO_GROUPBY, 74, 24, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Buscar", IDC_BUTTON_SEARCH, 200, 44, 50, 14
EDITTEXT IDC_EDIT_SEARCH, 74, 44, 116, 14, ES_AUTOHSCROLL
LTEXT "Buscar por:", IDC_STATIC, 2, 47, 68, 8, SS_RIGHT
LTEXT "Unicode:", IDC_STATIC, 200, 8, 30, 8
EDITTEXT IDC_EDIT_UNICODE, 236, 4, 28, 12, ES_AUTOHSCROLL
END
IDD_ABOUTBOX DIALOGEX 22, 16, 210, 182
CAPTION "Acerca de Character Map"
CAPTION "Acerca del Mapa de caracteres"
FONT 8, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "Character Map v0.1\nCopyright (C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36
LTEXT "Mapa de caracteres v0.1\nCopyright (C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36
PUSHBUTTON "Cerrar", IDOK, 75, 162, 44, 15
ICON IDI_ICON, IDC_STATIC, 10, 10, 7, 30
EDITTEXT IDC_LICENSE_EDIT, 8, 44, 194, 107, WS_VISIBLE | WS_VSCROLL |
@@ -48,7 +51,7 @@ END
STRINGTABLE
BEGIN
IDS_LICENSE "This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_LICENSE "Este programa es software libre; puedes redistribuirlo y/o modificarlo bajo los términos de la GNU General Public License tal y como se publica por la Free Software Foundation; ya sea la versión 2 de la Licencia, o (bajo tu discreción) cualquier versión posterior.\r\n\r\nEste programa se distribuye con el fin de ser útil, pero viene SIN NINGUNA GARANTÍA; sin tan siquiera la garantía implícita de COMERCIALIZACIÓN o la de IDONEIDAD PARA UN PROPÓSITO CONCRETO. Para más información lee la GNU General Public License.\r\n\r\nDeberías de haber recibido una copia de la GNU General Public License con el programa; si no, puedes escribir a la Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 EE.UU."
IDS_ABOUT "&Acerca de ..."
IDS_TITLE "Character Map"
IDS_TITLE "Mapa de caracteres"
END

View File

@@ -21,7 +21,7 @@ END
IDD_ADVANCED DIALOGEX 0, 0, 292, 64
STYLE DS_SHELLFONT | WS_CHILD
FONT 8, "MS Shell Dlg"
FONT 9, "MS UI Gothic"
BEGIN
LTEXT "Charset:", IDC_STATIC, 8, 8, 48, 8
COMBOBOX IDC_COMBO_CHARSET, 72, 4, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP

View File

@@ -5,7 +5,7 @@
LANGUAGE LANG_KOREAN, SUBLANG_DEFAULT
IDD_CHARMAP DIALOGEX 6, 6, 292, 224
FONT 8, "MS Shell Dlg", 0, 0
FONT 9, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_CHILD | WS_VISIBLE
BEGIN
LTEXT "글꼴:", IDC_STATIC, 6, 7, 24, 9
@@ -25,7 +25,7 @@ END
IDD_ADVANCED DIALOGEX 0, 0, 292, 64
STYLE DS_SHELLFONT | WS_CHILD
FONT 8, "MS Shell Dlg"
FONT 9, "MS Shell Dlg"
BEGIN
LTEXT "Charset:", IDC_STATIC, 8, 8, 48, 8
COMBOBOX IDC_COMBO_CHARSET, 72, 4, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
@@ -40,7 +40,7 @@ END
IDD_ABOUTBOX DIALOGEX 22, 16, 210, 182
CAPTION "문자표에 대하여"
FONT 8, "MS Shell Dlg", 0, 0
FONT 9, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "Character Map v0.1\nCopyright (C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36

View File

@@ -19,7 +19,7 @@ BEGIN
LTEXT "C&aractere de copiat:", IDC_STATIC, 6, 188, 66, 9
CONTROL "", IDC_TEXTBOX, RICHEDIT_CLASS, ES_AUTOHSCROLL | WS_BORDER |
WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "&Selectează", IDC_SELECT, 194, 186, 44, 13
DEFPUSHBUTTON "S&electează", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "&Copiază", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
CONTROL "Mod a&vansat", IDC_CHECK_ADVANCED, "Button", BS_AUTOCHECKBOX |
WS_TABSTOP, 8, 208, 95, 10
@@ -33,7 +33,7 @@ BEGIN
COMBOBOX IDC_COMBO_CHARSET, 72, 4, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
LTEXT "&Grupare după:", IDC_STATIC, 8, 28, 50, 8
COMBOBOX IDC_COMBO_GROUPBY, 72, 24, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Cau&tă", IDC_BUTTON_SEARCH, 200, 44, 50, 14
PUSHBUTTON "&Caută", IDC_BUTTON_SEARCH, 200, 44, 50, 14
EDITTEXT IDC_EDIT_SEARCH, 72, 44, 116, 14, ES_AUTOHSCROLL
LTEXT "Căuta&re:", IDC_STATIC, 8, 48, 42, 8
LTEXT "&Unicode:", IDC_STATIC, 200, 8, 30, 8
@@ -45,7 +45,7 @@ CAPTION "Despre"
FONT 8, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "Hartă a caracterelor v0.1\nDrept de autor (C) 2007 Ged Murphy (gedmurphy@reactos.org)\nTraducere de Ștefan Fulea (stefan.fulea@mail.md)", IDC_STATIC, 48, 7, 210, 36
LTEXT "Hartă de caractere v0.1\nDrept de autor (C) 2007 Ged Murphy (gedmurphy@reactos.org)\nTraducere de Ștefan Fulea (stefan.fulea@mail.md)", IDC_STATIC, 48, 7, 210, 36
PUSHBUTTON "Î&nchide", IDOK, 105, 162, 44, 15
ICON IDI_ICON, IDC_STATIC, 10, 10, 7, 30
EDITTEXT IDC_LICENSE_EDIT, 8, 44, 254, 107, WS_VISIBLE | WS_VSCROLL |
@@ -56,5 +56,5 @@ STRINGTABLE
BEGIN
IDS_LICENSE "Această aplicație este publică; fiind permisă modificarea și/sau (re)distribuția sa în termenii Licenței Publice Generale GNU publicată de Free Software Foundation; sau versiunea 2 a Licenței, sau (la alegere) a oricărei versiuni ulterioare.\r\n\r\nAceastă aplicație este distribuită doar în speranța de a fi utilă, FĂRĂ însă NICI O GARANȚIE; nici măcar cu garanția implicită a VANDABILITĂȚII sau a UTILITĂȚII ÎNTR-UN SCOP ANUME. Pentru mai multe detalii consultați Licența Publică Generală GNU.\r\n\r\nPuteți vedea această licență aici:\r\nhttp://www.gnu.org/licenses/gpl.html\r\n\r\nDe asemenea puteți consulta traduceri neoficiale ale acestei licențe aici:\r\nhttp://www.gnu.org/licenses/translations.html"
IDS_ABOUT "&Despre…"
IDS_TITLE "Hartă a caracterelor"
IDS_TITLE "Hartă de caractere"
END

View File

@@ -1,4 +1,4 @@
/* Russian language resource file (Dmitry Chapyshev, 2007-06-10) */
/* Russian language resource file by Dmitry Chapyshev, 2007-06-10,Kudratov Olimjon (olim98@bk.ru) */
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
@@ -12,13 +12,13 @@ BEGIN
PUSHBUTTON "Справка", IDC_CMHELP, 249, 5, 35, 13
CONTROL "", IDC_FONTMAP, "FontMapWnd", WS_CHILD | WS_VISIBLE | WS_TABSTOP |
WS_VSCROLL, 20, 22, 266, 156
LTEXT "Копировать символ:", IDC_STATIC, 6, 188, 95, 9
LTEXT "Для копирования:", IDC_STATIC, 6, 188, 95, 9
CONTROL "", IDC_TEXTBOX, RICHEDIT_CLASS, ES_AUTOHSCROLL | WS_BORDER |
WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Выбрать", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Копировать", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
CONTROL "Расширенный вид", IDC_CHECK_ADVANCED, "Button", BS_AUTOCHECKBOX |
WS_TABSTOP, 8, 208, 95, 10
CONTROL "Дополнительные параметры", IDC_CHECK_ADVANCED, "Button", BS_AUTOCHECKBOX |
WS_TABSTOP, 8, 208, 110, 10
END
IDD_ADVANCED DIALOGEX 0, 0, 292, 64
@@ -27,11 +27,11 @@ FONT 8, "MS Shell Dlg"
BEGIN
LTEXT "Набор символов:", IDC_STATIC, 8, 8, 55, 8
COMBOBOX IDC_COMBO_CHARSET, 72, 4, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
LTEXT "Группировать за:", IDC_STATIC, 8, 28, 50, 8
LTEXT "Группировка:", IDC_STATIC, 8, 28, 50, 8
COMBOBOX IDC_COMBO_GROUPBY, 72, 24, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Найти", IDC_BUTTON_SEARCH, 200, 44, 50, 14
EDITTEXT IDC_EDIT_SEARCH, 72, 44, 116, 14, ES_AUTOHSCROLL
LTEXT "Искать:", IDC_STATIC, 8, 48, 42, 8
LTEXT "Поиск:", IDC_STATIC, 8, 48, 42, 8
LTEXT "Юникод:", IDC_STATIC, 200, 8, 30, 8
EDITTEXT IDC_EDIT_UNICODE, 236, 4, 28, 12, ES_AUTOHSCROLL
END

View File

@@ -50,7 +50,7 @@ END
STRINGTABLE
BEGIN
IDS_LICENSE "ÖNEMLİ: Aşağıdaki metin, özgün metnin resmî olmayan çevirisidir. Çeviri metniyle özgün metin arasında ayrım olabilir. Özgün metin, çeviri metninin altındadır.\r\n\r\n***\r\n\r\nBu izlence özgür yazılımdır; bunu, Özgür Yazılım Vakfı'nın yayımladığı GNU Umûmî Kamu Ruhsatı'nın, 2. sürümünün ya da daha sonraki bir sürümünün (Orası size bağlı.) koşulları altında yeniden dağıtabilir veyâ değiştirebilirsiniz.\r\n\r\nBu izlence, kullanışlı olabileceği beklentisiyle dağıtılmıştır ancak bu izlencenin HİÇBİR GÜVENCESİ YOKTUR, SATILABİLİRLİĞİN ve BELİRLİ BİR AMACA UYGUNLUĞUN demek istenilen güvencesi bile. Daha çok bilgi için GNU Umûmî Kamu Ruhsatı'na bakınız.\r\n\r\nBu izlenceyle birlikte GNU Umûmî Kamu Ruhsatı'nın bir kopyasını almış olmalısınız, eğer yoksa Özgür Yazılım Vakfı AŞ'ye (51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 ABD) yazınız.\r\n\r\n***\r\n\r\nThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_LICENSE "ÖNEMLİ: Aşağıdaki metin, özgün metnin resmî olmayan çevirisidir. Çeviri metniyle özgün metin arasında ayrım olabilir. Özgün metin, çeviri metninin altındadır.\r\n\r\n***\r\n\r\nBu izlence özgür yazılımdır; bunu, Özgür Yazılım Vakfı'nın yayımladığı GNU Umûmî Kamu Ruhsatı'nın, 2. sürümünün ya da daha sonraki bir sürümünün (Orası size bağlı.) şartları altında yeniden dağıtabilir veyâ değiştirebilirsiniz.\r\n\r\nBu izlence, kullanışlı olabileceği beklentisiyle dağıtılmıştır ancak bu izlencenin HİÇBİR GÜVENCESİ YOKTUR, SATILABİLİRLİĞİN ve BELİRLİ BİR AMACA UYGUNLUĞUN demek istenilen güvencesi bile. Daha çok bilgi için GNU Umûmî Kamu Ruhsatı'na bakınız.\r\n\r\nBu izlenceyle birlikte GNU Umûmî Kamu Ruhsatı'nın bir kopyasını almış olmalısınız, eğer yoksa Özgür Yazılım Vakfı AŞ'ye (51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 ABD) yazınız.\r\n\r\n***\r\n\r\nThis program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\r\n\r\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.\r\n\r\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
IDS_ABOUT "&Üzerine..."
IDS_TITLE "Damga Eşlemi"
END

View File

@@ -9,7 +9,7 @@
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
IDD_CHARMAP DIALOGEX 6, 6, 292, 224
FONT 8, "MS Shell Dlg", 0, 0
FONT 9, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_CHILD | WS_VISIBLE
BEGIN
LTEXT "字体:", IDC_STATIC, 6, 7, 24, 9
@@ -29,7 +29,7 @@ END
IDD_ADVANCED DIALOGEX 0, 0, 292, 64
STYLE DS_SHELLFONT | WS_CHILD
FONT 8, "MS Shell Dlg"
FONT 9, "MS Shell Dlg"
BEGIN
LTEXT "字符集:", IDC_STATIC, 8, 8, 48, 8
COMBOBOX IDC_COMBO_CHARSET, 72, 4, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
@@ -44,7 +44,7 @@ END
IDD_ABOUTBOX DIALOGEX 22, 16, 210, 182
CAPTION "关于字符映射表"
FONT 8, "MS Shell Dlg", 0, 0
FONT 9, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "字符映射表 v0.1\nCopyright (C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36

View File

@@ -9,7 +9,7 @@
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
IDD_CHARMAP DIALOGEX 6, 6, 292, 224
FONT 8, "MS Shell Dlg", 0, 0
FONT 9, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_CHILD | WS_VISIBLE
BEGIN
LTEXT "字體:", IDC_STATIC, 6, 7, 24, 9
@@ -29,7 +29,7 @@ END
IDD_ADVANCED DIALOGEX 0, 0, 292, 64
STYLE DS_SHELLFONT | WS_CHILD
FONT 8, "MS Shell Dlg"
FONT 9, "MS Shell Dlg"
BEGIN
LTEXT "字元集:", IDC_STATIC, 8, 8, 48, 8
COMBOBOX IDC_COMBO_CHARSET, 72, 4, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
@@ -44,7 +44,7 @@ END
IDD_ABOUTBOX DIALOGEX 22, 16, 210, 182
CAPTION "關於字元對應表"
FONT 8, "MS Shell Dlg", 0, 0
FONT 9, "MS Shell Dlg", 0, 0
STYLE DS_SHELLFONT | WS_BORDER | WS_DLGFRAME | WS_SYSMENU | DS_MODALFRAME
BEGIN
LTEXT "字元對應表 v0.1\nCopyright (C) 2007 Ged Murphy (gedmurphy@reactos.org)", IDC_STATIC, 48, 7, 150, 36

View File

@@ -35,7 +35,7 @@ SetLrgFont(PMAP infoPtr)
{
SendMessageW(hCombo,
WM_GETTEXT,
31,
Len + 1,
(LPARAM)lpFontName);
ZeroMemory(&lf,

View File

@@ -14,13 +14,7 @@
static const WCHAR szMapWndClass[] = L"FontMapWnd";
static const WCHAR szLrgCellWndClass[] = L"LrgCellWnd";
static
VOID
TagFontToCell(PCELL pCell,
WCHAR ch)
{
pCell->ch = ch;
}
#define MAX_ROWS (0xFFFF / XCELLS) + 1 - YCELLS
static
@@ -105,33 +99,47 @@ FillGrid(PMAP infoPtr,
INT x, y;
RECT rc;
PCELL Cell;
INT i, added;
hOldFont = SelectObject(ps->hdc,
infoPtr->hFont);
for (y = 0; y < YCELLS; y++)
for (x = 0; x < XCELLS; x++)
i = XCELLS * infoPtr->iYStart;
added = 0;
x = y = 0;
while ((y <= YCELLS) && (x <= XCELLS))
{
ch = (WCHAR)infoPtr->ValidGlyphs[i];
Cell = &infoPtr->Cells[y][x];
if (!IntersectRect(&rc,
&ps->rcPaint,
&Cell->CellExt))
if (IntersectRect(&rc,
&ps->rcPaint,
&Cell->CellExt))
{
continue;
Cell->ch = ch;
DrawTextW(ps->hdc,
&ch,
1,
&Cell->CellInt,
DT_CENTER | DT_VCENTER | DT_SINGLELINE);
added++;
}
ch = (WCHAR)((XCELLS * (y + infoPtr->iYStart)) + x);
i++;
ch = (WCHAR)i;
TagFontToCell(Cell, ch);
DrawTextW(ps->hdc,
&ch,
1,
&Cell->CellInt,
DT_CENTER | DT_VCENTER | DT_SINGLELINE);
// move to the next cell
x++;
if (x > XCELLS - 1)
{
x = 0;
y++;
}
}
SelectObject(ps->hdc,
hOldFont);
}
@@ -211,6 +219,9 @@ SetFont(PMAP infoPtr,
LPWSTR lpFontName)
{
HDC hdc;
WCHAR ch[MAX_GLYPHS];
WORD out[MAX_GLYPHS];
DWORD i, j;
/* Destroy Zoom window, since it was created with older font */
DestroyWindow(infoPtr->hLrgWnd);
@@ -223,9 +234,7 @@ SetFont(PMAP infoPtr,
sizeof(LOGFONTW));
hdc = GetDC(infoPtr->hMapWnd);
infoPtr->CurrentFont.lfHeight = GetDeviceCaps(hdc,
LOGPIXELSY) / 5;
ReleaseDC(infoPtr->hMapWnd, hdc);
infoPtr->CurrentFont.lfHeight = GetDeviceCaps(hdc, LOGPIXELSY) / 5;
infoPtr->CurrentFont.lfCharSet = DEFAULT_CHARSET;
wcsncpy(infoPtr->CurrentFont.lfFaceName,
@@ -238,12 +247,43 @@ SetFont(PMAP infoPtr,
NULL,
TRUE);
/* Test if zoom window must be reopened */
if (infoPtr->pActiveCell != NULL &&
infoPtr->pActiveCell->bLarge)
infoPtr->pActiveCell = &infoPtr->Cells[0][0];
// Get all the valid glyphs in this font
SelectObject(hdc, infoPtr->hFont);
for (i = 0; i < MAX_GLYPHS; i++)
ch[i] = (WCHAR)i;
if (GetGlyphIndicesW(hdc,
ch,
MAX_GLYPHS,
out,
GGI_MARK_NONEXISTING_GLYPHS) != GDI_ERROR)
{
CreateLargeCell(infoPtr);
j = 0;
for (i = 0; i < MAX_GLYPHS; i++)
{
if (out[i] != 0xffff)
{
infoPtr->ValidGlyphs[j] = ch[i];
j++;
}
}
infoPtr->NumValidGlyphs = j;
}
ReleaseDC(infoPtr->hMapWnd, hdc);
infoPtr->NumRows = infoPtr->NumValidGlyphs / XCELLS;
if (infoPtr->NumValidGlyphs % XCELLS)
infoPtr->NumRows += 1;
infoPtr->NumRows = (infoPtr->NumRows > YCELLS) ? infoPtr->NumRows - YCELLS : 0;
SetScrollRange(infoPtr->hMapWnd, SB_VERT, 0, infoPtr->NumRows, FALSE);
SetScrollPos(infoPtr->hMapWnd, SB_VERT, 0, TRUE);
infoPtr->iYStart = 0;
}
@@ -377,8 +417,7 @@ OnCreate(PMAP infoPtr,
SetGrid(infoPtr);
SetScrollRange(hwnd, SB_VERT, 0, 255, FALSE);
SetScrollPos(hwnd, SB_VERT, 0, TRUE);
SetScrollPos(infoPtr->hParent, SB_VERT, 0, TRUE);
Ret = TRUE;
}
@@ -422,8 +461,8 @@ OnVScroll(PMAP infoPtr,
break;
}
infoPtr->iYStart = max(0,
min(infoPtr->iYStart, 255*16));
infoPtr->iYStart = max(0, infoPtr->iYStart);
infoPtr->iYStart = min(infoPtr->iYStart, infoPtr->NumRows);
iYDiff = iOldYStart - infoPtr->iYStart;
if (iYDiff)
@@ -485,7 +524,7 @@ OnPaint(PMAP infoPtr,
{
return;
}
hdc = (HDC)wParam;
ps.hdc = (HDC)wParam;
}
else
{

View File

@@ -7,10 +7,13 @@
#include <winuser.h>
#include <wingdi.h>
#include "resource.h"
#define SIZEOF(_v) (sizeof(_v) / sizeof(*_v))
#define MAX_GLYPHS 65536
#define XCELLS 20
#define YCELLS 10
#define XLARGE 45
@@ -44,6 +47,11 @@ typedef struct _MAP
HFONT hFont;
LOGFONTW CurrentFont;
INT iYStart;
INT NumRows;
USHORT ValidGlyphs[MAX_GLYPHS];
USHORT NumValidGlyphs;
} MAP, *PMAP;
typedef struct {

Binary file not shown.

Before

Width:  |  Height:  |  Size: 39 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -114,27 +114,24 @@ extern void SaveSettings(void)
{
HKEY hKey = NULL;
if (RegCreateKey(HKEY_CURRENT_USER, g_szGeneralRegKey, &hKey) == ERROR_SUCCESS)
if (RegCreateKeyEx(HKEY_CURRENT_USER, g_szGeneralRegKey, 0, NULL, REG_OPTION_NON_VOLATILE, KEY_SET_VALUE, NULL, &hKey, NULL) == ERROR_SUCCESS)
{
if (RegOpenKeyEx(HKEY_CURRENT_USER, g_szGeneralRegKey, 0, KEY_SET_VALUE, &hKey) == ERROR_SUCCESS)
{
TCHAR szBuffer[MAX_PATH];
TCHAR szBuffer[MAX_PATH];
hWnd = GetDlgItem(hCharmapDlg, IDC_FONTCOMBO);
ComboBox_GetText(hWnd, szBuffer, MAX_PATH);
hWnd = GetDlgItem(hCharmapDlg, IDC_FONTCOMBO);
ComboBox_GetText(hWnd, szBuffer, MAX_PATH);
if(*szBuffer != '\0')
RegSetValueEx(hKey, _T("Font"), 0, REG_SZ, (LPBYTE) szBuffer, (DWORD) MAX_PATH);
if(*szBuffer != '\0')
RegSetValueEx(hKey, _T("Font"), 0, REG_SZ, (LPBYTE) szBuffer, (DWORD) MAX_PATH);
hWnd = GetDlgItem(hCharmapDlg, IDC_COMBO_CHARSET);
ComboBox_GetText(hWnd, szBuffer, MAX_PATH);
hWnd = GetDlgItem(hCharmapDlg, IDC_COMBO_CHARSET);
ComboBox_GetText(hWnd, szBuffer, MAX_PATH);
if(*szBuffer != '\0')
RegSetValueEx(hKey, _T("CodePage"), 0, REG_SZ, (LPBYTE) szBuffer, (DWORD) MAX_PATH);
if(*szBuffer != '\0')
RegSetValueEx(hKey, _T("CodePage"), 0, REG_SZ, (LPBYTE) szBuffer, (DWORD) MAX_PATH);
RegSetValueEx(hKey, _T("Advanced"), 0, REG_DWORD, (LPBYTE)&Settings.IsAdvancedView, (DWORD) sizeof(DWORD));
RegSetValueEx(hKey, _T("Advanced"), 0, REG_DWORD, (LPBYTE)&Settings.IsAdvancedView, (DWORD) sizeof(DWORD));
RegCloseKey(hKey);
}
RegCloseKey(hKey);
}
}

View File

@@ -0,0 +1,27 @@
PROJECT(CHARMAP)
set_cpp(WITH_RTTI WITH_RUNTIME WITH_EXCEPTIONS)
if(NOT MSVC)
# HACK: this should be enabled globally!
add_compile_flags_language("-std=c++11" "CXX")
endif()
include_directories(
${REACTOS_SOURCE_DIR}/lib/atl
includes)
list(APPEND SOURCE
precomp.h
MainWindow.cpp
)
add_library(charmap SHARED
${SOURCE}
charmap.rc)
set_module_type(charmap win32gui UNICODE)
target_link_libraries(charmap uuid atlnew wine)
add_importlibs(charmap advapi32 user32 gdi32 comctl32 version msvcrt kernel32 ole32 uxtheme ntdll)
add_pch(charmap precomp.h SOURCE)
add_cd_file(TARGET charmap DESTINATION reactos/system32 FOR all)

View File

@@ -0,0 +1,94 @@
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/cell.cpp
* PURPOSE: Class for each individual cell
* COPYRIGHT: Copyright 2015 Ged Murphy <gedmurphy@reactos.org>
*/
#include "precomp.h"
#include "Cell.h"
/* DATA *****************************************************/
/* PUBLIC METHODS **********************************************/
CCell::CCell(
_In_ HWND hParent
) :
CCell(hParent, RECT{0})
{
}
CCell::CCell(
_In_ HWND hParent,
_In_ RECT& CellCoordinates
) :
m_hParent(hParent),
m_CellCoordinates(CellCoordinates),
m_Char(L'*'),
m_bHasFocus(false),
m_bIsLarge(false)
{
}
CCell::~CCell()
{
}
bool
CCell::OnPaint(_In_ PAINTSTRUCT &PaintStruct)
{
// Check if this cell is in our paint region
BOOL NeedsPaint; RECT rect;
NeedsPaint = IntersectRect(&rect,
&PaintStruct.rcPaint,
&m_CellCoordinates);
if (NeedsPaint == FALSE)
return false;
// Draw the cell border
BOOL b = Rectangle(PaintStruct.hdc,
m_CellCoordinates.left,
m_CellCoordinates.top,
m_CellCoordinates.right,
m_CellCoordinates.bottom);
// Calculate an internal drawing canvas for the cell
RECT Internal;
CopyRect(&Internal, &m_CellCoordinates);
InflateRect(&Internal, -1, -1);
// Check if this cell has focus
if (m_bHasFocus)
{
// Draw the smaller cell to make it look selected
Rectangle(PaintStruct.hdc,
Internal.left,
Internal.top,
Internal.right,
Internal.bottom);
}
int Success;
Success = DrawTextW(PaintStruct.hdc,
&m_Char,
1,
&Internal,
DT_CENTER | DT_VCENTER | DT_SINGLELINE);
return (Success != 0);
}
void
CCell::SetCellCoordinates(
_In_ RECT& Coordinates
)
{
m_CellCoordinates = Coordinates;
}

View File

@@ -0,0 +1,37 @@
#pragma once
class CCell
{
private:
HWND m_hParent;
RECT m_CellCoordinates;
bool m_bHasFocus;
bool m_bIsLarge;
WCHAR m_Char;
public:
CCell(
_In_ HWND hParent
);
CCell(
_In_ HWND hParent,
_In_ RECT& CellLocation
);
~CCell();
LPRECT GetCellCoordinates() { return &m_CellCoordinates; }
void SetFocus(_In_ bool HasFocus) { m_bHasFocus = HasFocus; }
WCHAR GetChar() { return m_Char; }
void SetChar(_In_ WCHAR ch) { m_Char = ch; }
bool OnPaint(
_In_ PAINTSTRUCT &PaintStruct
);
void SetCellCoordinates(
_In_ RECT& Coordinates
);
};

View File

@@ -0,0 +1,523 @@
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/GridView.cpp
* PURPOSE: Class for for the window which contains the font matrix
* COPYRIGHT: Copyright 2015 Ged Murphy <gedmurphy@reactos.org>
*/
#include "precomp.h"
#include "GridView.h"
#include "Cell.h"
/* DATA *****************************************************/
extern HINSTANCE g_hInstance;
/* PUBLIC METHODS **********************************************/
CGridView::CGridView() :
m_xNumCells(20),
m_yNumCells(10),
m_ScrollPosition(0),
m_NumRows(0)
{
m_szMapWndClass = L"CharGridWClass";
}
CGridView::~CGridView()
{
}
bool
CGridView::Create(
_In_ HWND hParent
)
{
WNDCLASSW wc = { 0 };
wc.style = CS_DBLCLKS;
wc.lpfnWndProc = MapWndProc;
wc.cbWndExtra = sizeof(CGridView *);
wc.hInstance = g_hInstance;
wc.hCursor = LoadCursorW(NULL, (LPWSTR)IDC_ARROW);
wc.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
wc.lpszClassName = m_szMapWndClass;
if (RegisterClassW(&wc))
{
m_hwnd = CreateWindowExW(0,
m_szMapWndClass,
NULL,
WS_CHILD | WS_VISIBLE | WS_TABSTOP | WS_VSCROLL,
0,0,0,0,
hParent,
NULL,
g_hInstance,
this);
}
return !!(m_hwnd != NULL);
}
bool
CGridView::SetFont(
_In_ CAtlString& FontName
)
{
// Create a temperary container for the new font
CurrentFont NewFont = { 0 };
NewFont.FontName = FontName;
// Get the DC for the full grid window
HDC hdc;
hdc = GetDC(m_hwnd);
if (hdc == NULL) return false;
// Setup the logfont structure
NewFont.Font.lfHeight = 0; // This is set in WM_SIZE
NewFont.Font.lfCharSet = DEFAULT_CHARSET;
StringCchCopyW(NewFont.Font.lfFaceName, LF_FACESIZE, FontName);
// Get a handle to the new font
NewFont.hFont = CreateFontIndirectW(&NewFont.Font);
if (NewFont.hFont == NULL)
{
ReleaseDC(m_hwnd, hdc);
return false;
}
// Setup an array of all possible non-BMP indices
WCHAR ch[MAX_GLYPHS];
for (int i = 0; i < MAX_GLYPHS; i++)
ch[i] = (WCHAR)i;
HFONT hOldFont;
hOldFont = (HFONT)SelectObject(hdc, NewFont.hFont);
// Translate all the indices into glyphs
WORD out[MAX_GLYPHS];
DWORD Status;
Status = GetGlyphIndicesW(hdc,
ch,
MAX_GLYPHS,
out,
GGI_MARK_NONEXISTING_GLYPHS);
ReleaseDC(m_hwnd, hdc);
if (Status == GDI_ERROR)
{
SelectObject(hdc, hOldFont);
return false;
}
// Loop all the glyphs looking for valid ones
// and store those in our font data
int j = 0;
for (int i = 0; i < MAX_GLYPHS; i++)
{
if (out[i] != 0xffff)
{
NewFont.ValidGlyphs[j] = ch[i];
j++;
}
}
NewFont.NumValidGlyphs = j;
// Calculate the number of rows required to hold all glyphs
m_NumRows = NewFont.NumValidGlyphs / m_xNumCells;
if (NewFont.NumValidGlyphs % m_xNumCells)
m_NumRows += 1;
// Set the scrollbar in relation to the rows
SetScrollRange(m_hwnd, SB_VERT, 0, m_NumRows - m_yNumCells, FALSE);
// We're done, update the current font
m_CurrentFont = NewFont;
// We changed the font, we'll need to repaint the whole window
InvalidateRect(m_hwnd,
NULL,
TRUE);
return true;
}
/* PRIVATE METHODS **********************************************/
bool
CGridView::UpdateCellCoordinates(
)
{
// Go through all the cells and calculate
// their coordinates within the grid
for (int y = 0; y < m_yNumCells; y++)
for (int x = 0; x < m_xNumCells; x++)
{
RECT CellCoordinates;
CellCoordinates.left = x * m_CellSize.cx;
CellCoordinates.top = y * m_CellSize.cy;
CellCoordinates.right = (x + 1) * m_CellSize.cx + 1;
CellCoordinates.bottom = (y + 1) * m_CellSize.cy + 1;
m_Cells[y][x]->SetCellCoordinates(CellCoordinates);
}
return true;
}
LRESULT
CGridView::OnCreate(
_In_ HWND hwnd,
_In_ HWND hParent
)
{
m_hwnd = hwnd;
m_hParent = hParent;
// C++ doesn't allow : "CCells ***C = new CCell***[x * y]"
// so we have to build the 2d array up manually
m_Cells = new CCell**[m_yNumCells]; // rows
for (int i = 0; i < m_yNumCells; i++)
m_Cells[i] = new CCell*[m_xNumCells]; // columns
for (int y = 0; y < m_yNumCells; y++)
for (int x = 0; x < m_xNumCells; x++)
{
m_Cells[y][x] = new CCell(m_hwnd);
}
// Give the first cell focus
SetCellFocus(m_Cells[0][0]);
return 0;
}
LRESULT
CGridView::OnSize(
_In_ INT Width,
_In_ INT Height
)
{
// Get the client area of the main dialog
RECT ParentRect;
GetClientRect(m_hParent, &ParentRect);
// Calculate the grid size using the parent
m_ClientCoordinates.left = ParentRect.left + 25;
m_ClientCoordinates.top = ParentRect.top + 50;
m_ClientCoordinates.right = ParentRect.right - m_ClientCoordinates.left - 10;
m_ClientCoordinates.bottom = ParentRect.bottom - m_ClientCoordinates.top - 70;
// Resize the grid window
SetWindowPos(m_hwnd,
NULL,
m_ClientCoordinates.left,
m_ClientCoordinates.top,
m_ClientCoordinates.right,
m_ClientCoordinates.bottom,
SWP_NOZORDER | SWP_SHOWWINDOW);
// Get the client area we can draw on. The position we set above includes
// a scrollbar which we obvioulsy can't draw on. GetClientRect gives us
// the size without the scroll, and it's more efficient than getting the
// scroll metrics and calculating the size from that
RECT ClientRect;
GetClientRect(m_hwnd, &ClientRect);
m_CellSize.cx = ClientRect.right / m_xNumCells;
m_CellSize.cy = ClientRect.bottom / m_yNumCells;
// Let all the cells know about their new coords
UpdateCellCoordinates();
// We scale the font size up or down depending on the cell size
if (m_CurrentFont.hFont)
{
// Delete the existing font
DeleteObject(m_CurrentFont.hFont);
HDC hdc;
hdc = GetDC(m_hwnd);
if (hdc)
{
// Update the font size with respect to the cell size
m_CurrentFont.Font.lfHeight = (m_CellSize.cy - 5);
m_CurrentFont.hFont = CreateFontIndirectW(&m_CurrentFont.Font);
ReleaseDC(m_hwnd, hdc);
}
}
// Redraw the whole grid
InvalidateRect(m_hwnd, &ClientRect, TRUE);
return 0;
}
VOID
CGridView::OnVScroll(_In_ INT Value,
_In_ INT Pos)
{
INT PrevScrollPosition = m_ScrollPosition;
switch (Value)
{
case SB_LINEUP:
m_ScrollPosition -= 1;
break;
case SB_LINEDOWN:
m_ScrollPosition += 1;
break;
case SB_PAGEUP:
m_ScrollPosition -= m_yNumCells;
break;
case SB_PAGEDOWN:
m_ScrollPosition += m_yNumCells;
break;
case SB_THUMBTRACK:
m_ScrollPosition = Pos;
break;
default:
break;
}
// Make sure we don't scroll past row 0 or max rows
m_ScrollPosition = max(0, m_ScrollPosition);
m_ScrollPosition = min(m_ScrollPosition, m_NumRows);
// Check if there's a difference from the previous position
INT ScrollDiff;
ScrollDiff = PrevScrollPosition - m_ScrollPosition;
if (ScrollDiff)
{
// Set the new scrollbar position in the scroll box
SetScrollPos(m_hwnd,
SB_VERT,
m_ScrollPosition,
TRUE);
// Check if the scrollbar has moved more than the
// number of visible rows (draged or paged)
if (abs(ScrollDiff) < m_yNumCells)
{
RECT rect;
GetClientRect(m_hwnd, &rect);
// Scroll the visible cells which remain within the grid
// and invalidate any new ones which appear from the top / bottom
ScrollWindowEx(m_hwnd,
0,
ScrollDiff * m_CellSize.cy,
&rect,
&rect,
NULL,
NULL,
SW_INVALIDATE);
}
else
{
// All the cells need to be redrawn
InvalidateRect(m_hwnd,
NULL,
TRUE);
}
}
}
LRESULT
CGridView::OnPaint(
_In_opt_ HDC hdc
)
{
PAINTSTRUCT PaintStruct = { 0 };
HDC LocalHdc = NULL;
BOOL bSuccess = FALSE;
// Check if we were passed a DC
if (hdc == NULL)
{
// We weren't, let's get one
LocalHdc = BeginPaint(m_hwnd, &PaintStruct);
if (LocalHdc) bSuccess = TRUE;
}
else
{
// Use the existing DC and just get the region to paint
bSuccess = GetUpdateRect(m_hwnd,
&PaintStruct.rcPaint,
TRUE);
if (bSuccess)
{
// Update the struct with the DC we were passed
PaintStruct.hdc = (HDC)hdc;
}
}
// Make sure we have a valid DC
if (bSuccess)
{
// Paint the grid and chars
DrawGrid(&PaintStruct);
if (LocalHdc)
{
EndPaint(m_hwnd, &PaintStruct);
}
}
return 0;
}
LRESULT
CALLBACK
CGridView::MapWndProc(
HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam
)
{
CGridView *This;
LRESULT RetCode = 0;
// Get the object pointer from window context
This = (CGridView *)GetWindowLongPtr(hwnd, GWLP_USERDATA);
if (This == NULL)
{
// Check that this isn't a create message
if (uMsg != WM_CREATE)
{
// Don't handle null info pointer
goto HandleDefaultMessage;
}
}
switch (uMsg)
{
case WM_CREATE:
{
// Get the object pointer from the create param
This = (CGridView *)((LPCREATESTRUCT)lParam)->lpCreateParams;
// Store the pointer in the window's global user data
SetWindowLongPtr(hwnd, GWLP_USERDATA, (LONG_PTR)This);
This->OnCreate(hwnd, ((LPCREATESTRUCTW)lParam)->hwndParent);
break;
}
case WM_SIZE:
{
INT Width, Height;
Width = LOWORD(lParam);
Height = HIWORD(lParam);
This->OnSize(Width, Height);
break;
}
case WM_VSCROLL:
{
INT Value, Pos;
Value = LOWORD(wParam);
Pos = HIWORD(wParam);
This->OnVScroll(Value, Pos);
break;
}
case WM_PAINT:
{
This->OnPaint((HDC)wParam);
break;
}
case WM_DESTROY:
{
This->DeleteCells();
break;
}
default:
{
HandleDefaultMessage:
RetCode = DefWindowProcW(hwnd, uMsg, wParam, lParam);
break;
}
}
return RetCode;
}
void
CGridView::DrawGrid(
_In_ LPPAINTSTRUCT PaintStruct
)
{
// Calculate which glyph to start at based on scroll position
int i;
i = m_xNumCells * m_ScrollPosition;
// Make sure we have the correct font on the DC
HFONT hOldFont;
hOldFont = (HFONT)SelectFont(PaintStruct->hdc,
m_CurrentFont.hFont);
// Traverse all the cells
for (int y = 0; y < m_yNumCells; y++)
for (int x = 0; x < m_xNumCells; x++)
{
// Update the glyph for this cell
WCHAR ch = (WCHAR)m_CurrentFont.ValidGlyphs[i];
m_Cells[y][x]->SetChar(ch);
// Tell it to paint itself
m_Cells[y][x]->OnPaint(*PaintStruct);
i++;
}
SelectObject(PaintStruct->hdc, hOldFont);
}
void
CGridView::DeleteCells()
{
if (m_Cells == nullptr)
return;
// Free cells withing the 2d array
for (int i = 0; i < m_yNumCells; i++)
delete[] m_Cells[i];
delete[] m_Cells;
m_Cells = nullptr;
}
void
CGridView::SetCellFocus(
_In_ CCell* NewActiveCell
)
{
if (m_ActiveCell)
{
// Remove focus from any existing cell
m_ActiveCell->SetFocus(false);
InvalidateRect(m_hwnd, m_ActiveCell->GetCellCoordinates(), TRUE);
}
// Set the new active cell and give it focus
m_ActiveCell = NewActiveCell;
m_ActiveCell->SetFocus(true);
}

View File

@@ -0,0 +1,92 @@
#pragma once
#include "Cell.h"
#define MAX_GLYPHS 0xFFFF
struct CurrentFont
{
CAtlStringW FontName;
LOGFONTW Font;
HFONT hFont;
USHORT ValidGlyphs[MAX_GLYPHS];
USHORT NumValidGlyphs;
};
class CGridView
{
private:
CAtlStringW m_szMapWndClass;
HWND m_hwnd;
HWND m_hParent;
int m_xNumCells;
int m_yNumCells;
RECT m_ClientCoordinates;
SIZE m_CellSize;
CCell*** m_Cells; // *m_Cells[][];
CCell *m_ActiveCell;
INT m_ScrollPosition;
int m_NumRows;
CurrentFont m_CurrentFont;
public:
CGridView();
~CGridView();
bool Create(
_In_ HWND hParent
);
bool SetFont(
_In_ CAtlString& FontName
);
HWND GetHwnd() { return m_hwnd; }
private:
static LRESULT
CALLBACK
MapWndProc(HWND hwnd,
UINT uMsg,
WPARAM wParam,
LPARAM lParam);
LRESULT OnCreate(
_In_ HWND hwnd,
_In_ HWND hParent
);
LRESULT OnSize(
_In_ INT Width,
_In_ INT Height
);
VOID OnVScroll(
_In_ INT Value,
_In_ INT Pos
);
LRESULT OnPaint(
_In_opt_ HDC hdc
);
bool UpdateCellCoordinates(
);
void DrawGrid(
_In_ LPPAINTSTRUCT PaintStruct
);
void DeleteCells();
void SetCellFocus(
_In_ CCell* NewActiveCell
);
};

View File

@@ -0,0 +1,537 @@
/*
* PROJECT: ReactOS Character Map
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/charmap/MainWindow.cpp
* PURPOSE: Implements the main dialog window
* COPYRIGHT: Copyright 2015 Ged Murphy <gedmurphy@reactos.org>
*/
#include "precomp.h"
#include "MainWindow.h"
/* DATA *****************************************************/
#define ID_ABOUT 0x1
HINSTANCE g_hInstance = NULL;
/* PUBLIC METHODS **********************************************/
CCharMapWindow::CCharMapWindow(void) :
m_hMainWnd(NULL),
m_hStatusBar(NULL),
m_CmdShow(0),
m_hRichEd(NULL),
m_GridView(nullptr)
{
m_GridView = new CGridView();
}
CCharMapWindow::~CCharMapWindow(void)
{
}
bool
CCharMapWindow::Create(_In_ HINSTANCE hInst,
_In_ int nCmdShow)
{
INITCOMMONCONTROLSEX icex;
CAtlStringW szAppName;
int Ret = 1;
// Store the instance
g_hInstance = hInst;
m_CmdShow = nCmdShow;
// Initialize common controls
icex.dwSize = sizeof(INITCOMMONCONTROLSEX);
icex.dwICC = ICC_BAR_CLASSES | ICC_COOL_CLASSES;
InitCommonControlsEx(&icex);
// Load the application name
if (szAppName.LoadStringW(g_hInstance, IDS_TITLE))
{
// Initialize the main window
if (Initialize(szAppName, nCmdShow))
{
// Run the application
Ret = Run();
// Uninitialize the main window
Uninitialize();
}
}
return (Ret == 0);
}
/* PRIVATE METHODS **********************************************/
bool
CCharMapWindow::Initialize(_In_z_ LPCTSTR lpCaption,
_In_ int nCmdShow)
{
// The dialog has a rich edit text box
m_hRichEd = LoadLibraryW(L"riched20.DLL");
if (m_hRichEd == NULL) return false;
return !!(CreateDialogParamW(g_hInstance,
MAKEINTRESOURCE(IDD_CHARMAP),
NULL,
DialogProc,
(LPARAM)this));
}
void
CCharMapWindow::Uninitialize(void)
{
if (m_hRichEd)
FreeLibrary(m_hRichEd);
}
int
CCharMapWindow::Run(void)
{
MSG Msg;
// Pump the message queue
while (GetMessageW(&Msg, NULL, 0, 0) != 0)
{
TranslateMessage(&Msg);
DispatchMessageW(&Msg);
}
return 0;
}
void
CCharMapWindow::UpdateStatusBar(_In_ bool InMenuLoop)
{
SendMessageW(m_hStatusBar,
SB_SIMPLE,
(WPARAM)InMenuLoop,
0);
}
bool
CCharMapWindow::CreateStatusBar(void)
{
int StatWidths[] = { 110, -1 }; // widths of status bar
bool bRet = FALSE;
// Create the status bar
m_hStatusBar = CreateWindowExW(0,
STATUSCLASSNAME,
NULL,
WS_CHILD | WS_VISIBLE | SBARS_SIZEGRIP,
0, 0, 0, 0,
m_hMainWnd,
(HMENU)IDD_STATUSBAR,
g_hInstance,
NULL);
if (m_hStatusBar)
{
// Create the sections
bRet = (SendMessageW(m_hStatusBar,
SB_SETPARTS,
sizeof(StatWidths) / sizeof(int),
(LPARAM)StatWidths) != 0);
// Set the status bar for multiple parts output
SendMessage(m_hStatusBar, SB_SIMPLE, (WPARAM)FALSE, (LPARAM)0);
}
return bRet;
}
bool
CCharMapWindow::StatusBarLoadString(_In_ HWND hStatusBar,
_In_ INT PartId,
_In_ HINSTANCE hInstance,
_In_ UINT uID)
{
CAtlStringW szMessage;
bool bRet = false;
// Load the string from the resource
if (szMessage.LoadStringW(hInstance, uID))
{
// Display it on the status bar
bRet = (SendMessageW(hStatusBar,
SB_SETTEXT,
(WPARAM)PartId,
(LPARAM)szMessage.GetBuffer()) != 0);
}
return bRet;
}
BOOL
CCharMapWindow::OnCreate(_In_ HWND hDlg)
{
m_hMainWnd = hDlg;
if (!CreateStatusBar())
return FALSE;
if (!m_GridView->Create(hDlg))
return FALSE;
// Load an 'about' option into the system menu
HMENU hSysMenu;
hSysMenu = GetSystemMenu(m_hMainWnd, FALSE);
if (hSysMenu != NULL)
{
CAtlStringW AboutText;
if (AboutText.LoadStringW(IDS_ABOUT))
{
AppendMenuW(hSysMenu, MF_SEPARATOR, 0, NULL);
AppendMenuW(hSysMenu, MF_STRING, ID_ABOUT, AboutText);
}
}
// Add all the fonts to the
if (!CreateFontComboBox())
return FALSE;
ChangeMapFont();
// Configure Richedit control for sending notification changes.
DWORD evMask;
evMask = SendDlgItemMessage(hDlg, IDC_TEXTBOX, EM_GETEVENTMASK, 0, 0);
evMask |= ENM_CHANGE;
SendDlgItemMessage(hDlg, IDC_TEXTBOX, EM_SETEVENTMASK, 0, (LPARAM)evMask);
// Display the window according to the user request
ShowWindow(m_hMainWnd, m_CmdShow);
return TRUE;
}
BOOL
CCharMapWindow::OnSize(
_In_ WPARAM wParam
)
{
RECT rcClient, rcStatus;
INT lvHeight, iStatusHeight;
// Resize the status bar
SendMessage(m_hStatusBar, WM_SIZE, 0, 0);
// Get the statusbar rect and save the height
GetWindowRect(m_hStatusBar, &rcStatus);
iStatusHeight = rcStatus.bottom - rcStatus.top;
// Get the full client rect
GetClientRect(m_hMainWnd, &rcClient);
// Calculate the remaining height for the gridview
lvHeight = rcClient.bottom - iStatusHeight;
// Resize the grid view
SendMessageW(m_GridView->GetHwnd(), WM_SIZE, wParam, 0);
return TRUE;
}
BOOL
CCharMapWindow::OnNotify(_In_ LPARAM lParam)
{
LPNMHDR NmHdr = (LPNMHDR)lParam;
LRESULT Ret = 0;
switch (NmHdr->code)
{
case NM_RCLICK:
{
break;
}
case NM_DBLCLK:
case NM_RETURN:
{
break;
}
}
return Ret;
}
BOOL
CCharMapWindow::OnContext(_In_ LPARAM lParam)
{
return 0;// m_GridView->OnContextMenu(lParam);
}
BOOL
CCharMapWindow::OnCommand(_In_ WPARAM wParam,
_In_ LPARAM /*lParam*/)
{
LRESULT RetCode = 0;
WORD Msg;
// Get the message
Msg = LOWORD(wParam);
switch (Msg)
{
case IDC_CHECK_ADVANCED:
break;
case IDC_FONTCOMBO:
if (HIWORD(wParam) == CBN_SELCHANGE)
{
ChangeMapFont();
}
break;
default:
// We didn't handle it
RetCode = -1;
break;
}
return RetCode;
}
BOOL
CCharMapWindow::OnDestroy(void)
{
// Clear the user data pointer
SetWindowLongPtr(m_hMainWnd, GWLP_USERDATA, 0);
// Break the message loop
PostQuitMessage(0);
return TRUE;
}
INT_PTR CALLBACK
CCharMapWindow::DialogProc(
_In_ HWND hwndDlg,
_In_ UINT Msg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
)
{
CCharMapWindow *This;
LRESULT RetCode = 0;
// Get the object pointer from window context
This = (CCharMapWindow *)GetWindowLongPtr(hwndDlg, GWLP_USERDATA);
if (This == NULL)
{
// Check that this isn't a create message
if (Msg != WM_INITDIALOG)
{
// Don't handle null info pointer
return FALSE;
}
}
switch (Msg)
{
case WM_INITDIALOG:
{
// Get the object pointer from the create param
This = (CCharMapWindow *)lParam;
// Store the pointer in the window's global user data
SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)This);
// Call the create handler
return This->OnCreate(hwndDlg);
}
case WM_SIZE:
{
return This->OnSize(wParam);
}
case WM_NOTIFY:
{
return This->OnNotify(lParam);
}
case WM_CONTEXTMENU:
{
return This->OnContext(lParam);
}
case WM_COMMAND:
{
return This->OnCommand(wParam, lParam);
}
case WM_SYSCOMMAND:
switch (wParam)
{
case ID_ABOUT:
// Apportion blame
MessageBoxW(This->m_hMainWnd,
L"ReactOS Character Map\r\nCopyright Ged Murphy 2015",
L"About",
MB_OK | MB_APPLMODAL);
break;
}
break;
case WM_ENTERMENULOOP:
{
This->UpdateStatusBar(true);
return TRUE;
}
case WM_EXITMENULOOP:
{
This->UpdateStatusBar(false);
return TRUE;
}
case WM_CLOSE:
{
// Destroy the main window
return DestroyWindow(hwndDlg);
}
case WM_DESTROY:
{
// Call the destroy handler
return This->OnDestroy();
}
}
return FALSE;
}
struct EnumFontParams
{
CCharMapWindow *This;
HWND hCombo;
};
int
CALLBACK
CCharMapWindow::EnumDisplayFont(ENUMLOGFONTEXW *lpelfe,
NEWTEXTMETRICEXW *lpntme,
DWORD FontType,
LPARAM lParam)
{
EnumFontParams *Params = (EnumFontParams *)lParam;
LPWSTR pszName = lpelfe->elfLogFont.lfFaceName;
/* Skip rotated font */
if (pszName[0] == L'@') return 1;
/* make sure font doesn't already exist in our list */
if (SendMessageW(Params->hCombo,
CB_FINDSTRINGEXACT,
0,
(LPARAM)pszName) == CB_ERR)
{
INT idx;
idx = (INT)SendMessageW(Params->hCombo,
CB_ADDSTRING,
0,
(LPARAM)pszName);
/* record the font's attributes (Fixedwidth and Truetype) */
BOOL fFixed = (lpelfe->elfLogFont.lfPitchAndFamily & FIXED_PITCH) ? TRUE : FALSE;
BOOL fTrueType = (lpelfe->elfLogFont.lfOutPrecision == OUT_STROKE_PRECIS) ? TRUE : FALSE;
/* store this information in the list-item's userdata area */
SendMessageW(Params->hCombo,
CB_SETITEMDATA,
idx,
MAKEWPARAM(fFixed, fTrueType));
}
return 1;
}
bool
CCharMapWindow::CreateFontComboBox()
{
HWND hCombo;
hCombo = GetDlgItem(m_hMainWnd, IDC_FONTCOMBO);
NONCLIENTMETRICSW NonClientMetrics;
NonClientMetrics.cbSize = sizeof(NONCLIENTMETRICSW);
SystemParametersInfoW(SPI_GETNONCLIENTMETRICS,
sizeof(NONCLIENTMETRICSW),
&NonClientMetrics,
0);
// Get a handle to the font
HFONT GuiFont;
GuiFont = CreateFontIndirectW(&NonClientMetrics.lfMessageFont);
// Set the font used in the combo box
SendMessageW(hCombo,
WM_SETFONT,
(WPARAM)GuiFont,
0);
// Set the fonts which we want to enumerate
LOGFONTW FontsToEnum;
ZeroMemory(&FontsToEnum, sizeof(LOGFONTW));
FontsToEnum.lfCharSet = DEFAULT_CHARSET;
// Set the params we want to pass to the callback
EnumFontParams Params;
Params.This = this;
Params.hCombo = hCombo;
// Get a DC for combo box
HDC hdc;
hdc = GetDC(hCombo);
// Enumerate all the fonts
int ret;
ret = EnumFontFamiliesExW(hdc,
&FontsToEnum,
(FONTENUMPROCW)EnumDisplayFont,
(LPARAM)&Params,
0);
ReleaseDC(hCombo, hdc);
DeleteObject(GuiFont);
// Select the first item in the list
SendMessageW(hCombo,
CB_SETCURSEL,
0,
0);
return (ret == 1);
}
bool
CCharMapWindow::ChangeMapFont(
)
{
HWND hCombo;
hCombo = GetDlgItem(m_hMainWnd, IDC_FONTCOMBO);
INT Length;
Length = GetWindowTextLengthW(hCombo);
if (!Length) return false;
CAtlStringW FontName;
FontName.Preallocate(Length);
SendMessageW(hCombo,
WM_GETTEXT,
FontName.GetAllocLength(),
(LPARAM)FontName.GetBuffer());
return m_GridView->SetFont(FontName);
}

View File

@@ -0,0 +1,84 @@
#pragma once
#include "GridView.h"
class CCharMapWindow
{
HWND m_hMainWnd;
HWND m_hStatusBar;
int m_CmdShow;
HMODULE m_hRichEd;
CGridView *m_GridView;
public:
CCharMapWindow(void);
~CCharMapWindow(void);
bool Create(
_In_ HINSTANCE hInst,
_In_ int nCmdShow
);
private:
static INT_PTR CALLBACK DialogProc(
_In_ HWND hwndDlg,
_In_ UINT uMsg,
_In_ WPARAM wParam,
_In_ LPARAM lParam
);
bool Initialize(
_In_z_ LPCTSTR lpCaption,
_In_ int nCmdShow
);
int Run();
void Uninitialize(void);
BOOL OnCreate(
_In_ HWND hwnd
);
BOOL OnDestroy(void);
BOOL OnSize(void);
BOOL OnNotify(
_In_ LPARAM lParam
);
BOOL OnContext(
_In_ LPARAM lParam
);
BOOL OnCommand(
_In_ WPARAM wParam,
LPARAM lParam
);
bool CreateStatusBar(void);
bool StatusBarLoadString(
_In_ HWND hStatusBar,
_In_ INT PartId,
_In_ HINSTANCE hInstance,
_In_ UINT uID
);
void UpdateStatusBar(
_In_ bool InMenuLoop
);
static int CALLBACK
EnumDisplayFont(
ENUMLOGFONTEXW *lpelfe,
NEWTEXTMETRICEXW *lpntme,
DWORD FontType,
LPARAM lParam
);
bool CreateFontComboBox(
);
bool ChangeMapFont(
);
};

View File

@@ -0,0 +1,20 @@
/*
* PROJECT: ReactOS Device Managment
* LICENSE: GPL - See COPYING in the top level directory
* FILE: base/applications/mscutils/devmgmt/devmgmt.c
* PURPOSE: Bootstrap for the device manager
* COPYRIGHT: Copyright 2006 Ged Murphy <gedmurphy@gmail.com>
*/
#include "precomp.h"
#include "MainWindow.h"
int WINAPI
wWinMain(HINSTANCE hThisInstance,
HINSTANCE hPrevInstance,
LPWSTR lpCmdLine,
int nCmdShow)
{
CCharMapWindow CharMap;
return CharMap.Create(hThisInstance, nCmdShow);
}

View File

@@ -0,0 +1,101 @@
#include <windef.h>
#include <winuser.h>
#include <richedit.h>
#include "resource.h"
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
IDI_ICON ICON "res/charmap.ico"
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Character Map"
#define REACTOS_STR_INTERNAL_NAME "charmap"
#define REACTOS_STR_ORIGINAL_FILENAME "charmap.exe"
//#include <reactos/version.rc>
//#include <reactos/manifest_exe.rc>
/* UTF-8 */
#pragma code_page(65001)
#ifdef LANGUAGE_BG_BG
#include "lang/bg-BG.rc"
#endif
#ifdef LANGUAGE_CA_ES
#include "lang/ca-ES.rc"
#endif
#ifdef LANGUAGE_CS_CZ
#include "lang/cs-CZ.rc"
#endif
#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
#ifdef LANGUAGE_EN_US
#include "lang/en-US.rc"
#endif
#ifdef LANGUAGE_EL_GR
#include "lang/el-GR.rc"
#endif
#ifdef LANGUAGE_ES_ES
#include "lang/es-ES.rc"
#endif
#ifdef LANGUAGE_FR_FR
#include "lang/fr-FR.rc"
#endif
#ifdef LANGUAGE_HE_IL
#include "lang/he-IL.rc"
#endif
#ifdef LANGUAGE_ID_ID
#include "lang/id-ID.rc"
#endif
#ifdef LANGUAGE_IT_IT
#include "lang/it-IT.rc"
#endif
#ifdef LANGUAGE_JA_JP
#include "lang/ja-JP.rc"
#endif
#ifdef LANGUAGE_KO_KR
#include "lang/ko-KR.rc"
#endif
#ifdef LANGUAGE_LT_LT
#include "lang/lt-LT.rc"
#endif
#ifdef LANGUAGE_NL_NL
#include "lang/nl-NL.rc"
#endif
#ifdef LANGUAGE_NB_NO
#include "lang/no-NO.rc"
#endif
#ifdef LANGUAGE_PL_PL
#include "lang/pl-PL.rc"
#endif
#ifdef LANGUAGE_PT_BR
#include "lang/pt-BR.rc"
#endif
#ifdef LANGUAGE_RO_RO
#include "lang/ro-RO.rc"
#endif
#ifdef LANGUAGE_RU_RU
#include "lang/ru-RU.rc"
#endif
#ifdef LANGUAGE_SK_SK
#include "lang/sk-SK.rc"
#endif
#ifdef LANGUAGE_SQ_AL
#include "lang/sq-AL.rc"
#endif
#ifdef LANGUAGE_SV_SE
#include "lang/sv-SE.rc"
#endif
#ifdef LANGUAGE_TR_TR
#include "lang/tr-TR.rc"
#endif
#ifdef LANGUAGE_UK_UA
#include "lang/uk-UA.rc"
#endif
#ifdef LANGUAGE_ZH_CN
#include "lang/zh-CN.rc"
#endif
#ifdef LANGUAGE_ZH_TW
#include "lang/zh-TW.rc"
#endif

View File

@@ -0,0 +1,22 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
IDD_CHARMAP DIALOGEX 6, 6, 290, 224
FONT 8, "MS Shell Dlg", 0, 0
STYLE WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_SIZEBOX
CAPTION "ReactOS Character Map"
BEGIN
LTEXT "Font:", IDC_STATIC, 6, 7, 24, 9
COMBOBOX IDC_FONTCOMBO, 28, 5, 150, 210, WS_CHILD | WS_VISIBLE |
WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT | CBS_HASSTRINGS
LTEXT "Characters to copy:", IDC_STATIC, 6, 188, 66, 9
CONTROL "", IDC_TEXTBOX, RICHEDIT_CLASS, ES_AUTOHSCROLL | WS_BORDER |
WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Select", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Copy", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
END
STRINGTABLE
BEGIN
IDS_ABOUT "A&bout..."
IDS_TITLE "Character Map"
END

View File

@@ -0,0 +1,35 @@
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
IDD_CHARMAP DIALOGEX 6, 6, 292, 224
FONT 8, "MS Shell Dlg", 0, 0
STYLE WS_OVERLAPPED | WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX
CAPTION "ReactOS Damga Eşlemi"
BEGIN
LTEXT "Yazı Tipi:", IDC_STATIC, 6, 7, 24, 9
COMBOBOX IDC_FONTCOMBO, 36, 5, 210, 210, WS_CHILD | WS_VISIBLE |
WS_VSCROLL | CBS_DROPDOWNLIST | CBS_SORT | CBS_HASSTRINGS
LTEXT "Çoğaltılacak Damgalar:", IDC_STATIC, 6, 188, 66, 9
CONTROL "", IDC_TEXTBOX, RICHEDIT_CLASS, ES_AUTOHSCROLL | WS_BORDER |
WS_CHILD | WS_VISIBLE | WS_TABSTOP, 74, 186, 114, 13
DEFPUSHBUTTON "Seç", IDC_SELECT, 194, 186, 44, 13
PUSHBUTTON "Çoğalt", IDC_COPY, 242, 186, 44, 13, WS_DISABLED
//CONTROL "Gelişmiş Görünüm", IDC_CHECK_ADVANCED, "Button", BS_AUTOCHECKBOX |
// WS_TABSTOP, 8, 208, 95, 10
//LTEXT "Damga Öbeği:", IDC_STATIC, 8, 8, 48, 8
//COMBOBOX IDC_COMBO_CHARSET, 72, 4, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
//LTEXT "Takımla:", IDC_STATIC, 8, 28, 50, 8
//COMBOBOX IDC_COMBO_GROUPBY, 72, 24, 116, 80, CBS_DROPDOWNLIST | WS_VSCROLL | WS_TABSTOP
//PUSHBUTTON "Ara", IDC_BUTTON_SEARCH, 200, 44, 50, 14
//EDITTEXT IDC_EDIT_SEARCH, 72, 44, 116, 14, ES_AUTOHSCROLL
//LTEXT "Ada Göre Ara:", IDC_STATIC, 8, 48, 42, 8
//LTEXT "Evrenlik Kod:", IDC_STATIC, 200, 8, 30, 8
//EDITTEXT IDC_EDIT_UNICODE, 236, 4, 28, 12, ES_AUTOHSCROLL
END
STRINGTABLE
BEGIN
IDS_ABOUT "&Üzerine..."
IDS_TITLE "Damga Eşlemi"
END

View File

@@ -0,0 +1,54 @@
//#pragma once
#ifndef __REACTOS__
#define WIN32_LEAN_AND_MEAN
#include <Windows.h>
#include <windowsx.h>
#include <setupapi.h>
#include <cfgmgr32.h>
#include <commctrl.h>
#include <Uxtheme.h>
#include <richedit.h>
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit
#include <tchar.h>
#include <atlbase.h>
#include <atlstr.h>
#include <atlcoll.h>
#include <strsafe.h>
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#include "resource.h"
#else
#include <string.h>
#include <wchar.h>
#include <tchar.h>
#include <windef.h>
#include <winbase.h>
#include <winreg.h>
#include <wingdi.h>
#include <winnls.h>
#include <wincon.h>
#include <shlobj.h>
#include <shlwapi.h>
#include <strsafe.h>
#include <commctrl.h>
#include <cfgmgr32.h>
#include <uxtheme.h>
#include <atlbase.h>
#include <atlstr.h>
#include <atlcoll.h>
//WINE_DEFAULT_DEBUG_CHANNEL(charmap);
#endif

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@@ -0,0 +1,30 @@
#pragma once
#define IDC_STATIC -1
#define IDI_ICON 100
#define IDD_CHARMAP 200
#define IDD_ABOUTBOX 201
#define IDD_STATUSBAR 202
#define IDD_ADVANCED 203
#define IDC_FONTCOMBO 1001
#define IDC_CMHELP 1002
#define IDC_FONTMAP 1003
#define IDC_TEXTBOX 1004
#define IDC_SELECT 1005
#define IDC_COPY 1006
#define IDC_ADVVIEW 1007
#define IDC_DISPLAY 1008
#define IDC_LICENSE_EDIT 1009
#define IDC_COMBO_CHARSET 1010
#define IDC_COMBO_GROUPBY 1011
#define IDC_BUTTON_SEARCH 1012
#define IDC_EDIT_SEARCH 1013
#define IDC_EDIT_UNICODE 1014
#define IDC_CHECK_ADVANCED 1017
#define IDS_LICENSE 2010
#define IDS_ABOUT 2011
#define IDS_TITLE 2012

View File

@@ -0,0 +1,14 @@
list(APPEND SOURCE
clipbrd.c
cliputils.c
winutils.c
fileutils.c
scrollutils.c
precomp.h)
add_executable(clipbrd ${SOURCE} clipbrd.rc)
add_pch(clipbrd precomp.h SOURCE)
set_module_type(clipbrd win32gui UNICODE)
add_importlibs(clipbrd hhctrl user32 gdi32 comdlg32 shell32 msvcrt kernel32)
add_cd_file(TARGET clipbrd DESTINATION reactos/system32 FOR all)

View File

@@ -0,0 +1,594 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/clipbrd.c
* PURPOSE: Provides a view of the contents of the ReactOS clipboard.
* PROGRAMMERS: Ricardo Hanke
*/
#include "precomp.h"
static const WCHAR szClassName[] = L"ClipBookWClass";
CLIPBOARD_GLOBALS Globals;
SCROLLSTATE Scrollstate;
static void UpdateLinesToScroll(void)
{
UINT uLinesToScroll;
if (!SystemParametersInfo(SPI_GETWHEELSCROLLLINES, 0, &uLinesToScroll, 0))
{
Globals.uLinesToScroll = 3;
}
else
{
Globals.uLinesToScroll = uLinesToScroll;
}
}
static void SaveClipboardToFile(void)
{
OPENFILENAMEW sfn;
WCHAR szFileName[MAX_PATH];
WCHAR szFilterMask[MAX_STRING_LEN + 10];
LPWSTR c;
ZeroMemory(&szFilterMask, sizeof(szFilterMask));
c = szFilterMask + LoadStringW(Globals.hInstance, STRING_FORMAT_NT, szFilterMask, MAX_STRING_LEN) + 1;
wcscpy(c, L"*.clp");
ZeroMemory(&szFileName, sizeof(szFileName));
ZeroMemory(&sfn, sizeof(sfn));
sfn.lStructSize = sizeof(sfn);
sfn.hwndOwner = Globals.hMainWnd;
sfn.hInstance = Globals.hInstance;
sfn.lpstrFilter = szFilterMask;
sfn.lpstrFile = szFileName;
sfn.nMaxFile = ARRAYSIZE(szFileName);
sfn.Flags = OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_OVERWRITEPROMPT;
sfn.lpstrDefExt = L"clp";
if (!GetSaveFileNameW(&sfn))
return;
if (!OpenClipboard(Globals.hMainWnd))
{
ShowLastWin32Error(Globals.hMainWnd);
return;
}
WriteClipboardFile(szFileName);
CloseClipboard();
}
static void LoadClipboardFromFile(void)
{
OPENFILENAMEW ofn;
WCHAR szFileName[MAX_PATH];
WCHAR szFilterMask[MAX_STRING_LEN + 10];
LPWSTR c;
ZeroMemory(&szFilterMask, sizeof(szFilterMask));
c = szFilterMask + LoadStringW(Globals.hInstance, STRING_FORMAT_GEN, szFilterMask, MAX_STRING_LEN) + 1;
wcscpy(c, L"*.clp");
ZeroMemory(&szFileName, sizeof(szFileName));
ZeroMemory(&ofn, sizeof(ofn));
ofn.lStructSize = sizeof(ofn);
ofn.hwndOwner = Globals.hMainWnd;
ofn.hInstance = Globals.hInstance;
ofn.lpstrFilter = szFilterMask;
ofn.lpstrFile = szFileName;
ofn.nMaxFile = ARRAYSIZE(szFileName);
ofn.Flags = OFN_PATHMUSTEXIST | OFN_HIDEREADONLY | OFN_FILEMUSTEXIST;
if (!GetOpenFileNameW(&ofn))
return;
if (!OpenClipboard(Globals.hMainWnd))
{
ShowLastWin32Error(Globals.hMainWnd);
return;
}
if (MessageBoxRes(Globals.hMainWnd, Globals.hInstance, STRING_DELETE_MSG, STRING_DELETE_TITLE, MB_ICONWARNING | MB_YESNO) == IDYES)
{
EmptyClipboard();
ReadClipboardFile(szFileName);
}
CloseClipboard();
}
static void LoadClipboardFromDrop(HDROP hDrop)
{
WCHAR szFileName[MAX_PATH];
DragQueryFileW(hDrop, 0, szFileName, ARRAYSIZE(szFileName));
DragFinish(hDrop);
if (!OpenClipboard(Globals.hMainWnd))
{
ShowLastWin32Error(Globals.hMainWnd);
return;
}
if (MessageBoxRes(Globals.hMainWnd, Globals.hInstance, STRING_DELETE_MSG, STRING_DELETE_TITLE, MB_ICONWARNING | MB_YESNO) == IDYES)
{
EmptyClipboard();
ReadClipboardFile(szFileName);
}
CloseClipboard();
}
static void SetDisplayFormat(UINT uFormat)
{
CheckMenuItem(Globals.hMenu, Globals.uCheckedItem, MF_BYCOMMAND | MF_UNCHECKED);
Globals.uCheckedItem = uFormat + CMD_AUTOMATIC;
CheckMenuItem(Globals.hMenu, Globals.uCheckedItem, MF_BYCOMMAND | MF_CHECKED);
if (uFormat == 0)
{
Globals.uDisplayFormat = GetAutomaticClipboardFormat();
}
else
{
Globals.uDisplayFormat = uFormat;
}
if (Globals.hDspBmp)
{
DeleteObject(Globals.hDspBmp);
}
ZeroMemory(&Scrollstate, sizeof(Scrollstate));
UpdateWindowScrollState(Globals.hMainWnd, Globals.hDspBmp, &Scrollstate);
InvalidateRect(Globals.hMainWnd, NULL, TRUE);
}
static void InitMenuPopup(HMENU hMenu, LPARAM index)
{
if ((GetMenuItemID(hMenu, 0) == CMD_DELETE) || (GetMenuItemID(hMenu, 1) == CMD_SAVE_AS))
{
if (CountClipboardFormats() == 0)
{
EnableMenuItem(hMenu, CMD_DELETE, MF_GRAYED);
EnableMenuItem(hMenu, CMD_SAVE_AS, MF_GRAYED);
}
else
{
EnableMenuItem(hMenu, CMD_DELETE, MF_ENABLED);
EnableMenuItem(hMenu, CMD_SAVE_AS, MF_ENABLED);
}
}
DrawMenuBar(Globals.hMainWnd);
}
void UpdateDisplayMenu(void)
{
UINT uFormat;
WCHAR szFormatName[MAX_FMT_NAME_LEN + 1];
HMENU hMenu;
hMenu = GetSubMenu(Globals.hMenu, DISPLAY_MENU_POS);
while (GetMenuItemCount(hMenu) > 1)
{
DeleteMenu(hMenu, 1, MF_BYPOSITION);
}
if (CountClipboardFormats() == 0)
return;
if (!OpenClipboard(Globals.hMainWnd))
return;
AppendMenuW(hMenu, MF_SEPARATOR, 0, NULL);
uFormat = EnumClipboardFormats(0);
while (uFormat)
{
RetrieveClipboardFormatName(Globals.hInstance, uFormat, szFormatName, ARRAYSIZE(szFormatName));
if (!IsClipboardFormatSupported(uFormat))
{
AppendMenuW(hMenu, MF_STRING | MF_GRAYED, 0, szFormatName);
}
else
{
AppendMenuW(hMenu, MF_STRING, CMD_AUTOMATIC + uFormat, szFormatName);
}
uFormat = EnumClipboardFormats(uFormat);
}
CloseClipboard();
}
static int ClipboardCommandHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (LOWORD(wParam))
{
case CMD_OPEN:
{
LoadClipboardFromFile();
break;
}
case CMD_SAVE_AS:
{
SaveClipboardToFile();
break;
}
case CMD_EXIT:
{
PostMessageW(Globals.hMainWnd, WM_CLOSE, 0, 0);
break;
}
case CMD_DELETE:
{
if (MessageBoxRes(Globals.hMainWnd, Globals.hInstance, STRING_DELETE_MSG, STRING_DELETE_TITLE, MB_ICONWARNING | MB_YESNO) == IDYES)
{
DeleteClipboardContent();
}
break;
}
case CMD_AUTOMATIC:
{
SetDisplayFormat(0);
break;
}
case CMD_HELP:
{
HtmlHelpW(Globals.hMainWnd, L"clipbrd.chm", 0, 0);
break;
}
case CMD_ABOUT:
{
WCHAR szTitle[MAX_STRING_LEN];
HICON hIcon;
hIcon = LoadIconW(Globals.hInstance, MAKEINTRESOURCE(CLIP_ICON));
LoadStringW(Globals.hInstance, STRING_CLIPBOARD, szTitle, ARRAYSIZE(szTitle));
ShellAboutW(Globals.hMainWnd, szTitle, 0, hIcon);
DeleteObject(hIcon);
break;
}
default:
{
break;
}
}
return 0;
}
static void ClipboardPaintHandler(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
HDC hdc;
PAINTSTRUCT ps;
RECT rc;
if (!OpenClipboard(NULL))
{
return;
}
hdc = BeginPaint(hWnd, &ps);
GetClientRect(hWnd, &rc);
switch (Globals.uDisplayFormat)
{
case CF_NONE:
{
break;
}
case CF_UNICODETEXT:
{
DrawTextFromClipboard(hdc, &rc, DT_LEFT | DT_NOPREFIX);
break;
}
case CF_BITMAP:
{
BitBltFromClipboard(hdc, rc.left, rc.top, rc.right, rc.bottom, 0, 0, SRCCOPY);
break;
}
case CF_DIB:
{
SetDIBitsToDeviceFromClipboard(CF_DIB, hdc, rc.left, rc.top, 0, 0, 0, DIB_RGB_COLORS);
break;
}
case CF_DIBV5:
{
SetDIBitsToDeviceFromClipboard(CF_DIBV5, hdc, rc.left, rc.top, 0, 0, 0, DIB_RGB_COLORS);
break;
}
case CF_ENHMETAFILE:
{
PlayEnhMetaFileFromClipboard(hdc, &rc);
break;
}
case CF_METAFILEPICT:
{
PlayMetaFileFromClipboard(hdc, &rc);
break;
}
default:
{
DrawTextFromResource(Globals.hInstance, ERROR_UNSUPPORTED_FORMAT, hdc, &rc, DT_CENTER | DT_WORDBREAK | DT_NOPREFIX);
break;
}
}
EndPaint(hWnd, &ps);
CloseClipboard();
}
static LRESULT WINAPI MainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
case WM_PAINT:
{
ClipboardPaintHandler(hWnd, uMsg, wParam, lParam);
break;
}
case WM_KEYDOWN:
{
HandleKeyboardScrollEvents(hWnd, uMsg, wParam, lParam);
break;
}
case WM_MOUSEWHEEL:
{
HandleMouseScrollEvents(hWnd, uMsg, wParam, lParam, &Scrollstate);
break;
}
case WM_HSCROLL:
{
HandleHorizontalScrollEvents(hWnd, uMsg, wParam, lParam, &Scrollstate);
break;
}
case WM_VSCROLL:
{
HandleVerticalScrollEvents(hWnd, uMsg, wParam, lParam, &Scrollstate);
break;
}
case WM_SIZE:
{
UpdateWindowScrollState(hWnd, Globals.hDspBmp, &Scrollstate);
if ((Globals.uDisplayFormat == CF_METAFILEPICT) ||
(Globals.uDisplayFormat == CF_ENHMETAFILE) ||
(Globals.uDisplayFormat == CF_DSPENHMETAFILE) ||
(Globals.uDisplayFormat == CF_DSPMETAFILEPICT))
{
InvalidateRect(Globals.hMainWnd, NULL, FALSE);
}
else if (!IsClipboardFormatSupported(Globals.uDisplayFormat))
{
InvalidateRect(Globals.hMainWnd, NULL, TRUE);
}
break;
}
case WM_CREATE:
{
Globals.hMenu = GetMenu(hWnd);
Globals.hWndNext = SetClipboardViewer(hWnd);
UpdateDisplayMenu();
SetDisplayFormat(0);
break;
}
case WM_CLOSE:
{
DestroyWindow(hWnd);
break;
}
case WM_DESTROY:
{
ChangeClipboardChain(hWnd, Globals.hWndNext);
PostQuitMessage(0);
break;
}
case WM_CHANGECBCHAIN:
{
if ((HWND)wParam == Globals.hWndNext)
{
Globals.hWndNext = (HWND)lParam;
}
else if (Globals.hWndNext != NULL)
{
SendMessageW(Globals.hWndNext, uMsg, wParam, lParam);
}
break;
}
case WM_DRAWCLIPBOARD:
{
UpdateDisplayMenu();
SetDisplayFormat(0);
SendMessageW(Globals.hWndNext, uMsg, wParam, lParam);
break;
}
case WM_COMMAND:
{
if ((LOWORD(wParam) > CMD_AUTOMATIC))
{
SetDisplayFormat(LOWORD(wParam) - CMD_AUTOMATIC);
}
else
{
ClipboardCommandHandler(hWnd, uMsg, wParam, lParam);
}
break;
}
case WM_INITMENUPOPUP:
{
InitMenuPopup((HMENU)wParam, lParam);
break;
}
case WM_DROPFILES:
{
LoadClipboardFromDrop((HDROP)wParam);
break;
}
case WM_QUERYNEWPALETTE:
{
if (RealizeClipboardPalette(hWnd) != GDI_ERROR)
{
InvalidateRect(hWnd, NULL, TRUE);
UpdateWindow(hWnd);
return TRUE;
}
return FALSE;
}
case WM_PALETTECHANGED:
{
if ((HWND)wParam != hWnd)
{
if (RealizeClipboardPalette(hWnd) != GDI_ERROR)
{
InvalidateRect(hWnd, NULL, TRUE);
UpdateWindow(hWnd);
}
}
break;
}
case WM_SYSCOLORCHANGE:
{
SetDisplayFormat(Globals.uDisplayFormat);
break;
}
case WM_SETTINGCHANGE:
{
if (wParam == SPI_SETWHEELSCROLLLINES)
{
UpdateLinesToScroll();
}
break;
}
default:
{
return DefWindowProc(hWnd, uMsg, wParam, lParam);
}
}
return 0;
}
int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLine, int nCmdShow)
{
MSG msg;
HACCEL hAccel;
HWND hPrevWindow;
WNDCLASSEXW wndclass;
WCHAR szBuffer[MAX_STRING_LEN];
hPrevWindow = FindWindowW(szClassName, NULL);
if (hPrevWindow)
{
BringWindowToFront(hPrevWindow);
return 0;
}
ZeroMemory(&Globals, sizeof(Globals));
Globals.hInstance = hInstance;
ZeroMemory(&wndclass, sizeof(wndclass));
wndclass.cbSize = sizeof(wndclass);
wndclass.lpfnWndProc = MainWndProc;
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIconW(hInstance, MAKEINTRESOURCEW(CLIP_ICON));
wndclass.hCursor = LoadCursorW(0, IDC_ARROW);
wndclass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
wndclass.lpszMenuName = MAKEINTRESOURCEW(MAIN_MENU);
wndclass.lpszClassName = szClassName;
if (!RegisterClassExW(&wndclass))
{
ShowLastWin32Error(NULL);
return 0;
}
LoadStringW(hInstance, STRING_CLIPBOARD, szBuffer, ARRAYSIZE(szBuffer));
Globals.hMainWnd = CreateWindowExW(WS_EX_CLIENTEDGE | WS_EX_ACCEPTFILES,
szClassName,
szBuffer,
WS_OVERLAPPEDWINDOW | WS_HSCROLL | WS_VSCROLL,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
CW_USEDEFAULT,
NULL,
NULL,
Globals.hInstance,
NULL);
if (!Globals.hMainWnd)
{
ShowLastWin32Error(NULL);
return 0;
}
ShowWindow(Globals.hMainWnd, nCmdShow);
UpdateWindow(Globals.hMainWnd);
hAccel = LoadAcceleratorsW(Globals.hInstance, MAKEINTRESOURCEW(ID_ACCEL));
if (!hAccel)
{
ShowLastWin32Error(Globals.hMainWnd);
}
UpdateLinesToScroll();
while (GetMessageW(&msg, 0, 0, 0))
{
if (!TranslateAcceleratorW(Globals.hMainWnd, hAccel, &msg))
{
TranslateMessage(&msg);
DispatchMessageW(&msg);
}
}
if (Globals.hDspBmp)
{
DeleteObject(Globals.hDspBmp);
}
return (int)msg.wParam;
}

View File

@@ -0,0 +1,41 @@
#include <windef.h>
#include <winuser.h>
#include "resources.h"
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Clipboard Viewer"
#define REACTOS_STR_INTERNAL_NAME "clipbrd"
#define REACTOS_STR_ORIGINAL_FILENAME "clipbrd.exe"
#include <reactos/version.rc>
CLIP_ICON ICON "res/clipbrd.ico"
#include <reactos/manifest_exe.rc>
/* UTF-8 */
#pragma code_page(65001)
#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
#ifdef LANGUAGE_EN_US
#include "lang/en-US.rc"
#endif
#ifdef LANGUAGE_ES_ES
#include "lang/es-ES.rc"
#endif
#ifdef LANGUAGE_FR_FR
#include "lang/fr-FR.rc"
#endif
#ifdef LANGUAGE_RO_RO
#include "lang/ro-RO.rc"
#endif
#ifdef LANGUAGE_TR_TR
#include "lang/tr-TR.rc"
#endif
#ifdef LANGUAGE_ZH_CN
#include "lang/zh-CN.rc"
#endif
#ifdef LANGUAGE_ZH_TW
#include "lang/zh-TW.rc"
#endif

View File

@@ -0,0 +1,147 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/cliputils.c
* PURPOSE: Clipboard helper functions.
* PROGRAMMERS: Ricardo Hanke
*/
#include "precomp.h"
int GetPredefinedClipboardFormatName(HINSTANCE hInstance, UINT uFormat, LPWSTR lpszFormat, UINT cch)
{
switch (uFormat)
{
case CF_TEXT:
{
return LoadStringW(hInstance, STRING_CF_TEXT, lpszFormat, cch);
}
case CF_BITMAP:
{
return LoadStringW(hInstance, STRING_CF_BITMAP, lpszFormat, cch);
}
case CF_OEMTEXT:
{
return LoadStringW(hInstance, STRING_CF_OEMTEXT, lpszFormat, cch);
}
case CF_UNICODETEXT:
{
return LoadStringW(hInstance, STRING_CF_UNICODETEXT, lpszFormat, cch);
}
case CF_DIB:
{
return LoadStringW(hInstance, STRING_CF_DIB, lpszFormat, cch);
}
case CF_LOCALE:
{
return LoadStringW(hInstance, STRING_CF_LOCALE, lpszFormat, cch);
}
case CF_ENHMETAFILE:
{
return LoadStringW(hInstance, STRING_CF_ENHMETAFILE, lpszFormat, cch);
}
case CF_METAFILEPICT:
{
return LoadStringW(hInstance, STRING_CF_METAFILEPICT, lpszFormat, cch);
}
case CF_PALETTE:
{
return LoadStringW(hInstance, STRING_CF_PALETTE, lpszFormat, cch);
}
case CF_DIBV5:
{
return LoadStringW(hInstance, STRING_CF_DIBV5, lpszFormat, cch);
}
case CF_SYLK:
{
return LoadStringW(hInstance, STRING_CF_SYLK, lpszFormat, cch);
}
case CF_DIF:
{
return LoadStringW(hInstance, STRING_CF_DIF, lpszFormat, cch);
}
case CF_HDROP:
{
return LoadStringW(hInstance, STRING_CF_HDROP, lpszFormat, cch);
}
default:
{
return 0;
}
}
}
void RetrieveClipboardFormatName(HINSTANCE hInstance, UINT uFormat, LPWSTR lpszFormat, UINT cch)
{
if (!GetPredefinedClipboardFormatName(hInstance, uFormat, lpszFormat, cch))
{
if (!GetClipboardFormatName(uFormat, lpszFormat, cch))
{
LoadStringW(hInstance, STRING_CF_UNKNOWN, lpszFormat, cch);
}
}
}
void DeleteClipboardContent(void)
{
if (!OpenClipboard(Globals.hMainWnd))
{
ShowLastWin32Error(Globals.hMainWnd);
return;
}
if (!EmptyClipboard())
{
ShowLastWin32Error(Globals.hMainWnd);
}
CloseClipboard();
}
UINT GetAutomaticClipboardFormat(void)
{
static UINT uFormatList[] = {
CF_UNICODETEXT,
CF_ENHMETAFILE,
CF_METAFILEPICT,
CF_DIBV5,
CF_DIB,
CF_BITMAP
};
return GetPriorityClipboardFormat(uFormatList, ARRAYSIZE(uFormatList));
}
BOOL IsClipboardFormatSupported(UINT uFormat)
{
switch (uFormat)
{
case CF_UNICODETEXT:
case CF_BITMAP:
case CF_ENHMETAFILE:
case CF_METAFILEPICT:
case CF_DIB:
case CF_DIBV5:
{
return TRUE;
}
default:
{
return FALSE;
}
}
}

View File

@@ -0,0 +1,13 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/cliputils.h
* PURPOSE: Clipboard helper functions.
* PROGRAMMERS: Ricardo Hanke
*/
int GetPredefinedClipboardFormatName(HINSTANCE hInstance, UINT uFormat, LPWSTR lpszFormat, UINT cch);
void RetrieveClipboardFormatName(HINSTANCE hInstance, UINT uFormat, LPWSTR lpszFormat, UINT cch);
void DeleteClipboardContent(void);
UINT GetAutomaticClipboardFormat(void);
BOOL IsClipboardFormatSupported(UINT uFormat);

View File

@@ -0,0 +1,310 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/fileutils.c
* PURPOSE: Clipboard file format helper functions.
* PROGRAMMERS: Ricardo Hanke
*/
#include "precomp.h"
static HGLOBAL ClipboardReadMemoryBlock(HANDLE hFile, DWORD dwOffset, DWORD dwLength)
{
HGLOBAL hData;
LPVOID lpData;
DWORD dwBytesRead;
hData = GlobalAlloc(GHND, dwLength);
if (!hData)
{
return NULL;
}
lpData = GlobalLock(hData);
if (!lpData)
{
GlobalFree(hData);
return NULL;
}
if (SetFilePointer(hFile, dwOffset, NULL, FILE_BEGIN) == INVALID_SET_FILE_POINTER)
{
GlobalUnlock(hData);
GlobalFree(hData);
return NULL;
}
if (!ReadFile(hFile, lpData, dwLength, &dwBytesRead, NULL))
{
GlobalUnlock(hData);
GlobalFree(hData);
return NULL;
}
GlobalUnlock(hData);
return hData;
}
static BOOL ClipboardReadMemory(HANDLE hFile, DWORD dwFormat, DWORD dwOffset, DWORD dwLength, LPCWSTR lpFormatName)
{
HGLOBAL hData;
DWORD dwTemp;
hData = ClipboardReadMemoryBlock(hFile, dwOffset, dwLength);
if (!hData)
{
return FALSE;
}
if ((dwFormat >= 0xC000) && (dwFormat <= 0xFFFF))
{
dwTemp = RegisterClipboardFormatW(lpFormatName);
if (!dwTemp)
{
GlobalFree(hData);
return FALSE;
}
}
else
{
dwTemp = dwFormat;
}
if (!SetClipboardData(dwTemp, hData))
{
GlobalFree(hData);
return FALSE;
}
return TRUE;
}
static BOOL ClipboardReadPalette(HANDLE hFile, DWORD dwOffset, DWORD dwLength)
{
LPLOGPALETTE lpPalette;
HPALETTE hPalette;
HGLOBAL hData;
hData = ClipboardReadMemoryBlock(hFile, dwOffset, dwLength);
if (!hData)
{
return FALSE;
}
lpPalette = GlobalLock(hData);
if (!lpPalette)
{
GlobalFree(hData);
return FALSE;
}
hPalette = CreatePalette(lpPalette);
if (!hPalette)
{
GlobalUnlock(hData);
GlobalFree(hData);
SetLastError(ERROR_OUTOFMEMORY);
return FALSE;
}
GlobalUnlock(hData);
GlobalFree(hData);
if (!SetClipboardData(CF_PALETTE, hPalette))
{
DeleteObject(hPalette);
return FALSE;
}
return TRUE;
}
static BOOL ClipboardReadEnhMetafile(HANDLE hFile, DWORD dwOffset, DWORD dwLength)
{
HENHMETAFILE hEmf;
HGLOBAL hData;
LPVOID lpData;
hData = ClipboardReadMemoryBlock(hFile, dwOffset, dwLength);
if (!hData)
{
return FALSE;
}
lpData = GlobalLock(hData);
if (!lpData)
{
GlobalFree(hData);
return FALSE;
}
hEmf = SetEnhMetaFileBits(dwLength, lpData);
GlobalUnlock(hData);
GlobalFree(hData);
if (!hEmf)
{
SetLastError(ERROR_OUTOFMEMORY);
return FALSE;
}
if (!SetClipboardData(CF_ENHMETAFILE, hEmf))
{
DeleteEnhMetaFile(hEmf);
return FALSE;
}
return TRUE;
}
static BOOL ClipboardReadBitmap(HANDLE hFile, DWORD dwOffset, DWORD dwLength)
{
HGLOBAL hData;
HBITMAP hBitmap;
LPBITMAP lpBitmap;
hData = ClipboardReadMemoryBlock(hFile, dwOffset, dwLength);
if (!hData)
{
return FALSE;
}
lpBitmap = GlobalLock(hData);
if (!lpBitmap)
{
GlobalFree(hData);
return FALSE;
}
lpBitmap->bmBits = lpBitmap + sizeof(BITMAP) + 1;
hBitmap = CreateBitmapIndirect(lpBitmap);
GlobalUnlock(hData);
GlobalFree(hData);
if (!hBitmap)
{
SetLastError(ERROR_OUTOFMEMORY);
return FALSE;
}
if (!SetClipboardData(CF_BITMAP, hBitmap))
{
DeleteObject(hBitmap);
return FALSE;
}
return TRUE;
}
void ReadClipboardFile(LPCWSTR lpFileName)
{
CLIPBOARDFILEHEADER cfhFileHeader;
CLIPBOARDFORMATHEADER *cfhFormatArray = NULL;
HANDLE hFile;
DWORD dwBytesRead;
BOOL bResult;
int i;
hFile = CreateFileW(lpFileName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_ALWAYS, FILE_ATTRIBUTE_NORMAL, NULL);
if (hFile == INVALID_HANDLE_VALUE)
{
ShowLastWin32Error(Globals.hMainWnd);
goto done;
}
if (!ReadFile(hFile, &cfhFileHeader, sizeof(cfhFileHeader), &dwBytesRead, NULL))
{
ShowLastWin32Error(Globals.hMainWnd);
goto done;
}
if ((cfhFileHeader.wFileIdentifier != CLIPBOARD_FORMAT_NT) && (cfhFileHeader.wFileIdentifier != CLIPBOARD_FORMAT_BK))
{
MessageBoxRes(Globals.hMainWnd, Globals.hInstance, ERROR_INVALID_FILE_FORMAT, 0, MB_ICONSTOP | MB_OK);
goto done;
}
cfhFormatArray = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, cfhFileHeader.wFormatCount * sizeof(CLIPBOARDFORMATHEADER));
if (!cfhFormatArray)
{
SetLastError(ERROR_OUTOFMEMORY);
ShowLastWin32Error(Globals.hMainWnd);
goto done;
}
if (!ReadFile(hFile, cfhFormatArray, cfhFileHeader.wFormatCount * sizeof(CLIPBOARDFORMATHEADER), &dwBytesRead, NULL))
{
ShowLastWin32Error(Globals.hMainWnd);
goto done;
}
for (i = 0; i < cfhFileHeader.wFormatCount; i++)
{
switch (cfhFormatArray[i].dwFormatID)
{
case CF_OWNERDISPLAY:
case CF_DSPMETAFILEPICT:
case CF_METAFILEPICT:
{
break;
}
case CF_BITMAP:
case CF_DSPBITMAP:
{
bResult = ClipboardReadBitmap(hFile, cfhFormatArray[i].dwOffData, cfhFormatArray[i].dwLenData);
break;
}
case CF_DSPENHMETAFILE:
case CF_ENHMETAFILE:
{
bResult = ClipboardReadEnhMetafile(hFile, cfhFormatArray[i].dwOffData, cfhFormatArray[i].dwLenData);
break;
}
case CF_PALETTE:
{
bResult = ClipboardReadPalette(hFile, cfhFormatArray[i].dwOffData, cfhFormatArray[i].dwLenData);
break;
}
default:
{
if ((cfhFormatArray[i].dwFormatID < CF_PRIVATEFIRST) || (cfhFormatArray[i].dwFormatID > CF_PRIVATELAST))
{
bResult = ClipboardReadMemory(hFile, cfhFormatArray[i].dwFormatID, cfhFormatArray[i].dwOffData, cfhFormatArray[i].dwLenData, cfhFormatArray[i].szName);
}
break;
}
}
if (!bResult)
{
ShowLastWin32Error(Globals.hMainWnd);
}
}
done:
if (hFile != INVALID_HANDLE_VALUE)
{
CloseHandle(hFile);
}
if (cfhFormatArray)
{
HeapFree(GetProcessHeap(), 0, cfhFormatArray);
}
return;
}
void WriteClipboardFile(LPCWSTR lpFileName)
{
MessageBoxW(Globals.hMainWnd, L"This function is currently not implemented.", L"Clipboard", MB_OK | MB_ICONINFORMATION);
return;
}

View File

@@ -0,0 +1,29 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/fileutils.h
* PURPOSE: Clipboard file format helper functions.
* PROGRAMMERS: Ricardo Hanke
*/
#define CLIPBOARD_FORMAT_31 0xC350
#define CLIPBOARD_FORMAT_NT 0xC351
#define CLIPBOARD_FORMAT_BK 0xC352
#define MAX_FMT_NAME_LEN 79
typedef struct _CLIPBOARDFILEHEADER
{
WORD wFileIdentifier;
WORD wFormatCount;
} CLIPBOARDFILEHEADER;
typedef struct _CLIPBOARDFORMATHEADER
{
DWORD dwFormatID;
DWORD dwLenData;
DWORD dwOffData;
WCHAR szName[MAX_FMT_NAME_LEN];
} CLIPBOARDFORMATHEADER;
void ReadClipboardFile(LPCWSTR lpFileName);
void WriteClipboardFile(LPCWSTR lpFileName);

View File

@@ -0,0 +1,64 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
ID_ACCEL ACCELERATORS
BEGIN
VK_DELETE, CMD_DELETE, VIRTKEY
END
MAIN_MENU MENU
BEGIN
POPUP "&Datei"
BEGIN
MENUITEM "Ö&ffnen...", CMD_OPEN
MENUITEM "Speichern &unter...", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "&Beenden", CMD_EXIT
END
POPUP "&Bearbeiten"
BEGIN
MENUITEM "&Löschen\tEntf", CMD_DELETE
END
POPUP "&Anzeige"
BEGIN
MENUITEM "&Automatisch", CMD_AUTOMATIC
END
POPUP "&Hilfe"
BEGIN
MENUITEM "&Hilfethemen", CMD_HELP
MENUITEM SEPARATOR
MENUITEM "Inf&o", CMD_ABOUT
END
END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "Zwischenablage"
STRING_DELETE_MSG "Soll der Inhalt der Zwischenablage gelöscht werden?"
STRING_DELETE_TITLE "Zwischenablage löschen"
STRING_FORMAT_NT "Zwischenablagedateien für ReactOS (*.clp)"
STRING_FORMAT_GEN "Zwischenablagedateien (*.clp)"
END
STRINGTABLE
BEGIN
STRING_CF_UNKNOWN "Unbekanntes Format"
STRING_CF_TEXT "Text"
STRING_CF_BITMAP "Bitmap"
STRING_CF_OEMTEXT "OEM-Text"
STRING_CF_UNICODETEXT "Unicodetext"
STRING_CF_DIB "DIB-Bitmap"
STRING_CF_LOCALE "Gebietsschema"
STRING_CF_ENHMETAFILE "Erweiterte Metadatei"
STRING_CF_METAFILEPICT "Metadatei"
STRING_CF_PALETTE "Farbpalette"
STRING_CF_DIBV5 "DIB-Bitmap (Version 5)"
STRING_CF_SYLK "Symbolic Link Format"
STRING_CF_DIF "Data Interchange Format"
STRING_CF_HDROP "Drop-Daten"
END
STRINGTABLE
BEGIN
ERROR_UNSUPPORTED_FORMAT "Die Daten in der Zwischenablage liegen in einem Format vor, welches nicht angezeigt werden kann."
ERROR_INVALID_FILE_FORMAT "Die ausgewählte Datei ist keine gültige Zwischenablagedatei."
END

View File

@@ -0,0 +1,64 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
ID_ACCEL ACCELERATORS
BEGIN
VK_DELETE, CMD_DELETE, VIRTKEY
END
MAIN_MENU MENU
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Open...", CMD_OPEN
MENUITEM "Save &as...", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "E&xit", CMD_EXIT
END
POPUP "&Edit"
BEGIN
MENUITEM "&Delete\tDel", CMD_DELETE
END
POPUP "&Display"
BEGIN
MENUITEM "&Automatic", CMD_AUTOMATIC
END
POPUP "&Help"
BEGIN
MENUITEM "&Help Topics", CMD_HELP
MENUITEM SEPARATOR
MENUITEM "&About", CMD_ABOUT
END
END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "Clipboard"
STRING_DELETE_MSG "Clear contents of the Clipboard?"
STRING_DELETE_TITLE "Clear Clipboard"
STRING_FORMAT_NT "Clipboard files for ReactOS (*.clp)"
STRING_FORMAT_GEN "Clipboard files (*.clp)"
END
STRINGTABLE
BEGIN
STRING_CF_UNKNOWN "Unknown Format"
STRING_CF_TEXT "Text"
STRING_CF_BITMAP "Bitmap"
STRING_CF_OEMTEXT "OEM Text"
STRING_CF_UNICODETEXT "Unicode Text"
STRING_CF_DIB "DIB Bitmap"
STRING_CF_LOCALE "Locale Data"
STRING_CF_ENHMETAFILE "Enhanced Metafile"
STRING_CF_METAFILEPICT "Metafile"
STRING_CF_PALETTE "Color Palette"
STRING_CF_DIBV5 "DIB Bitmap (Version 5)"
STRING_CF_SYLK "Symbolic Link Format"
STRING_CF_DIF "Data Interchange Format"
STRING_CF_HDROP "Drop Data"
END
STRINGTABLE
BEGIN
ERROR_UNSUPPORTED_FORMAT "The Clipboard contains data in a format, that cannot be displayed."
ERROR_INVALID_FILE_FORMAT "The selected file is not a valid clipboard file."
END

View File

@@ -0,0 +1,66 @@
/* Spanish translation by Ismael Ferreras Morezuelas (Swyter) */
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
ID_ACCEL ACCELERATORS
BEGIN
VK_DELETE, CMD_DELETE, VIRTKEY
END
MAIN_MENU MENU
BEGIN
POPUP "&Archivo"
BEGIN
MENUITEM "&Abrir...", CMD_OPEN
MENUITEM "Guardar &como...", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "S&alir", CMD_EXIT
END
POPUP "&Edición"
BEGIN
MENUITEM "&Borrar\tDel", CMD_DELETE
END
POPUP "&Visualización"
BEGIN
MENUITEM "&Automática", CMD_AUTOMATIC
END
POPUP "A&yuda"
BEGIN
MENUITEM "&Temas de ayuda", CMD_HELP
MENUITEM SEPARATOR
MENUITEM "&Acerca de", CMD_ABOUT
END
END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "Portapapeles"
STRING_DELETE_MSG "¿Borrar contenidos del Portapapeles?"
STRING_DELETE_TITLE "Vaciar Portapapeles"
STRING_FORMAT_NT "Archivos de Portapapeles de ReactOS (*.clp)"
STRING_FORMAT_GEN "Archivos de Portapapeles (*.clp)"
END
STRINGTABLE
BEGIN
STRING_CF_UNKNOWN "Formato desconocido"
STRING_CF_TEXT "Texto"
STRING_CF_BITMAP "Mapa de bits"
STRING_CF_OEMTEXT "Texto OEM"
STRING_CF_UNICODETEXT "Texto Unicode"
STRING_CF_DIB "Mapa de bits DIB"
STRING_CF_LOCALE "Dato de idiomas"
STRING_CF_ENHMETAFILE "Metarchivo mejorado"
STRING_CF_METAFILEPICT "Metarchivo"
STRING_CF_PALETTE "Paleta de color"
STRING_CF_DIBV5 "Mapa de bits DIB (versión 5)"
STRING_CF_SYLK "Formato de enlace simbólico"
STRING_CF_DIF "Formato de intercambio de datos"
STRING_CF_HDROP "Datos de arrastrar y soltar"
END
STRINGTABLE
BEGIN
ERROR_UNSUPPORTED_FORMAT "El Portapapeles contiene datos en un formato que no es posible mostrar."
ERROR_INVALID_FILE_FORMAT "El archivo seleccionado no es un archivo del Portapapeles válido."
END

View File

@@ -0,0 +1,64 @@
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
ID_ACCEL ACCELERATORS
BEGIN
VK_DELETE, CMD_DELETE, VIRTKEY
END
MAIN_MENU MENU
BEGIN
POPUP "&Fichier"
BEGIN
MENUITEM "&Ouvrir...", CMD_OPEN
MENUITEM "&Enregistrer sous...", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "&Quitter", CMD_EXIT
END
POPUP "&Edition"
BEGIN
MENUITEM "&Supprimer\tSuppr", CMD_DELETE
END
POPUP "&Affichage"
BEGIN
MENUITEM "&Automatique", CMD_AUTOMATIC
END
POPUP "&Aide"
BEGIN
MENUITEM "&Rubriques d'aide", CMD_HELP
MENUITEM SEPARATOR
MENUITEM "&À propos...", CMD_ABOUT
END
END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "Presse-papiers"
STRING_DELETE_MSG "Voulez-vous effacer le contenu du Presse-papiers ?"
STRING_DELETE_TITLE "Effacer le Presse-papiers"
STRING_FORMAT_NT "Fichiers du Presse-papiers ReactOS (*.clp)"
STRING_FORMAT_GEN "Fichiers du Presse-papiers (*.clp)"
END
STRINGTABLE
BEGIN
STRING_CF_UNKNOWN "Format inconnu"
STRING_CF_TEXT "Texte"
STRING_CF_BITMAP "Bitmap"
STRING_CF_OEMTEXT "Texte OEM"
STRING_CF_UNICODETEXT "Texte Unicode"
STRING_CF_DIB "DIB Bitmap"
STRING_CF_LOCALE "Locale Data"
STRING_CF_ENHMETAFILE "Enhanced Metafile"
STRING_CF_METAFILEPICT "Metafile"
STRING_CF_PALETTE "Color Palette"
STRING_CF_DIBV5 "DIB Bitmap (Version 5)"
STRING_CF_SYLK "Symbolic Link Format"
STRING_CF_DIF "Data Interchange Format"
STRING_CF_HDROP "Drop Data"
END
STRINGTABLE
BEGIN
ERROR_UNSUPPORTED_FORMAT "Le Presse-papiers contient des données dans un format qui ne peut être affiché."
ERROR_INVALID_FILE_FORMAT "Le fichier sélectionné n'est pas un fichier valide du presse-papiers."
END

View File

@@ -0,0 +1,65 @@
/* Ștefan Fulea (stefan dot fulea at mail dot md) */
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
ID_ACCEL ACCELERATORS
BEGIN
VK_DELETE, CMD_DELETE, VIRTKEY
END
MAIN_MENU MENU
BEGIN
POPUP "&Fișier"
BEGIN
MENUITEM "&Deschidere…", CMD_OPEN
MENUITEM "Păst&rare ca…", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "I&eșire", CMD_EXIT
END
POPUP "&Editare"
BEGIN
MENUITEM "Șt&erge\tDel", CMD_DELETE
END
POPUP "&Afișare"
BEGIN
MENUITEM "&Automată", CMD_AUTOMATIC
END
POPUP "Aj&utor"
BEGIN
MENUITEM "&Manual…", CMD_HELP
MENUITEM SEPARATOR
MENUITEM "&Despre…", CMD_ABOUT
END
END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "Clipboard"
STRING_DELETE_MSG "Elimină conținutul din Clipboard?"
STRING_DELETE_TITLE "Curăță Clipboard"
STRING_FORMAT_NT "Fișiere clipboard pentru ReactOS (*.clp)"
STRING_FORMAT_GEN "Fișiere clipboard (*.clp)"
END
STRINGTABLE
BEGIN
STRING_CF_UNKNOWN "Format nespecificat"
STRING_CF_TEXT "Text"
STRING_CF_BITMAP "Bitmap"
STRING_CF_OEMTEXT "Text OEM"
STRING_CF_UNICODETEXT "Text unicode"
STRING_CF_DIB "Bitmap DIB"
STRING_CF_LOCALE "Date locale"
STRING_CF_ENHMETAFILE "Metafișier îmbunătățit"
STRING_CF_METAFILEPICT "Metafișier"
STRING_CF_PALETTE "Paletă de culori"
STRING_CF_DIBV5 "Bitmap DIB (versiune 5)"
STRING_CF_SYLK "Format de legătură simbolică"
STRING_CF_DIF "Format de transfer al datelor"
STRING_CF_HDROP "Abandon date"
END
STRINGTABLE
BEGIN
ERROR_UNSUPPORTED_FORMAT "În clipboard sunt date într-un format care nu poate fi afișat."
ERROR_INVALID_FILE_FORMAT "Fișierul selectat nu e un fișier clipboard valid."
END

View File

@@ -0,0 +1,66 @@
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
ID_ACCEL ACCELERATORS
BEGIN
VK_DELETE, CMD_DELETE, VIRTKEY
END
MAIN_MENU MENU
BEGIN
POPUP "&Kütük"
BEGIN
MENUITEM "&Aç...", CMD_OPEN
MENUITEM "A&yrı Sakla...", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "&Çıkış", CMD_EXIT
END
POPUP "&Düzen"
BEGIN
MENUITEM "&Sil\tDel", CMD_DELETE
END
POPUP "&Görüntü"
BEGIN
MENUITEM "&Kendiliğinden", CMD_AUTOMATIC
END
POPUP "&Yardım"
BEGIN
MENUITEM "&Yardım Konuları", CMD_HELP
MENUITEM SEPARATOR
MENUITEM "&Üzerine", CMD_ABOUT
END
END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "Pano"
STRING_DELETE_MSG "Pano içeriğini sil?"
STRING_DELETE_TITLE "Pano Sil"
STRING_FORMAT_NT "ReactOS İçin Pano Kütükleri (*.clp)"
STRING_FORMAT_GEN "Pano Kütükleri (*.clp)"
END
STRINGTABLE
BEGIN
STRING_CF_UNKNOWN "Bilinmeyen Biçim"
STRING_CF_TEXT "Metin"
STRING_CF_BITMAP "Bit Eşlem"
STRING_CF_OEMTEXT "OEM Metin"
STRING_CF_UNICODETEXT "Evrenlik Kodlu Metin"
STRING_CF_DIB "DIB Bit Eşlem"
STRING_CF_LOCALE "Yerli Veri"
STRING_CF_ENHMETAFILE "Geliştirilmiş Metafile"
STRING_CF_METAFILEPICT "Metafile"
STRING_CF_PALETTE "Renklik"
STRING_CF_DIBV5 "DIB Bit Eşlem (Sürüm 5)"
STRING_CF_SYLK "Simgelik Bağlantı Biçimi"
STRING_CF_DIF "Veri Değiş Tokuş Biçimi"
STRING_CF_HDROP "Bırakma Verisi"
END
STRINGTABLE
BEGIN
ERROR_UNSUPPORTED_FORMAT "Pano görüntülenemeyen bir biçimdeki veri içeriyor."
ERROR_INVALID_FILE_FORMAT "Seçili kütük geçerli bir pano kütüğü değil."
END

View File

@@ -0,0 +1,66 @@
/* Simplified Chinese translation by Henry Tang Ih 2016 (henrytang2@hotmail.com) */
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
ID_ACCEL ACCELERATORS
BEGIN
VK_DELETE, CMD_DELETE, VIRTKEY
END
MAIN_MENU MENU
BEGIN
POPUP "文件(&F)"
BEGIN
MENUITEM "打开...(&O)", CMD_OPEN
MENUITEM "另存为...(&A)", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "退出(&X)", CMD_EXIT
END
POPUP "编辑(&E)"
BEGIN
MENUITEM "删除(&D)\tDel", CMD_DELETE
END
POPUP "显示(&D)"
BEGIN
MENUITEM "自动(&A)", CMD_AUTOMATIC
END
POPUP "帮助(&H)"
BEGIN
MENUITEM "帮助主题(&H)", CMD_HELP
MENUITEM SEPARATOR
MENUITEM "关于(&A)", CMD_ABOUT
END
END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "剪贴板"
STRING_DELETE_MSG "清除剪贴板的内容吗?"
STRING_DELETE_TITLE "清除剪贴板"
STRING_FORMAT_NT "ReactOS 的剪贴板文件 (*.clp)"
STRING_FORMAT_GEN "剪贴板文件 (*.clp)"
END
STRINGTABLE
BEGIN
STRING_CF_UNKNOWN "未知的格式"
STRING_CF_TEXT "文本"
STRING_CF_BITMAP "位图"
STRING_CF_OEMTEXT "OEM 文本"
STRING_CF_UNICODETEXT "Unicode 文本"
STRING_CF_DIB "DIB 位图"
STRING_CF_LOCALE "本地日期"
STRING_CF_ENHMETAFILE "增强型图元文件"
STRING_CF_METAFILEPICT "图元文件"
STRING_CF_PALETTE "调色板"
STRING_CF_DIBV5 "DIB 位图 (第 5 版)"
STRING_CF_SYLK "符号链接格式"
STRING_CF_DIF "数据交换格式"
STRING_CF_HDROP "删除数据"
END
STRINGTABLE
BEGIN
ERROR_UNSUPPORTED_FORMAT "剪贴板中包含格式,不能显示的数据。"
ERROR_INVALID_FILE_FORMAT "所选的文件不是一个有效的剪贴板文件。"
END

View File

@@ -0,0 +1,66 @@
/* Traditional Chinese translation by Henry Tang Ih 2016 (henrytang2@hotmail.com) */
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
ID_ACCEL ACCELERATORS
BEGIN
VK_DELETE, CMD_DELETE, VIRTKEY
END
MAIN_MENU MENU
BEGIN
POPUP "檔案(&F)"
BEGIN
MENUITEM "開啟...(&O)", CMD_OPEN
MENUITEM "另存為...(&A)", CMD_SAVE_AS
MENUITEM SEPARATOR
MENUITEM "退出(&X)", CMD_EXIT
END
POPUP "編輯(&E)"
BEGIN
MENUITEM "刪除(&D)\tDel", CMD_DELETE
END
POPUP "顯示(&D)"
BEGIN
MENUITEM "自動(&A)", CMD_AUTOMATIC
END
POPUP "幫助(&H)"
BEGIN
MENUITEM "幫助主題(&H)", CMD_HELP
MENUITEM SEPARATOR
MENUITEM "關於(&A)", CMD_ABOUT
END
END
STRINGTABLE
BEGIN
STRING_CLIPBOARD "剪貼簿"
STRING_DELETE_MSG "清除剪貼簿的內容嗎?"
STRING_DELETE_TITLE "清除剪貼簿"
STRING_FORMAT_NT "ReactOS 的剪貼簿檔案 (*.clp)"
STRING_FORMAT_GEN "剪貼簿檔案 (*.clp)"
END
STRINGTABLE
BEGIN
STRING_CF_UNKNOWN "未知的格式"
STRING_CF_TEXT "文字"
STRING_CF_BITMAP "點陣圖"
STRING_CF_OEMTEXT "OEM 文字"
STRING_CF_UNICODETEXT "Unicode 文字"
STRING_CF_DIB "DIB 點陣圖"
STRING_CF_LOCALE "本地日期"
STRING_CF_ENHMETAFILE "增強型圖元檔案"
STRING_CF_METAFILEPICT "圖元檔案"
STRING_CF_PALETTE "調色盤"
STRING_CF_DIBV5 "DIB 點陣圖 (第 5 版)"
STRING_CF_SYLK "符號連結格式"
STRING_CF_DIF "資料交換格式"
STRING_CF_HDROP "刪除資料"
END
STRINGTABLE
BEGIN
ERROR_UNSUPPORTED_FORMAT "剪貼簿中包含格式,不能顯示的資料。"
ERROR_INVALID_FILE_FORMAT "所選的檔案不是一個有效的剪貼簿檔案。"
END

View File

@@ -0,0 +1,40 @@
#ifndef _CLIPBRD_PCH_
#define _CLIPBRD_PCH_
// #pragma once
#include <limits.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <wingdi.h>
#include <shellapi.h>
#include <htmlhelp.h>
#include <commdlg.h>
#include "resources.h"
#include "cliputils.h"
#include "fileutils.h"
#include "winutils.h"
#include "scrollutils.h"
#define MAX_STRING_LEN 255
#define DISPLAY_MENU_POS 2
#define CF_NONE 0
typedef struct _CLIPBOARD_GLOBALS
{
HINSTANCE hInstance;
HWND hMainWnd;
HWND hWndNext;
HMENU hMenu;
UINT uDisplayFormat;
UINT uCheckedItem;
UINT uLinesToScroll;
HBITMAP hDspBmp;
} CLIPBOARD_GLOBALS;
extern CLIPBOARD_GLOBALS Globals;
#endif /* _CLIPBRD_PCH_ */

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -0,0 +1,38 @@
#pragma once
#define MAIN_MENU 100
#define CLIP_ICON 101
#define ID_ACCEL 102
#define CMD_OPEN 100
#define CMD_SAVE_AS 101
#define CMD_EXIT 102
#define CMD_DELETE 103
#define CMD_HELP 105
#define CMD_ABOUT 106
#define CMD_AUTOMATIC 1000
#define STRING_CLIPBOARD 100
#define STRING_DELETE_MSG 101
#define STRING_DELETE_TITLE 102
#define STRING_FORMAT_NT 103
#define STRING_FORMAT_GEN 104
#define STRING_CF_UNKNOWN 200
#define STRING_CF_TEXT 201
#define STRING_CF_BITMAP 202
#define STRING_CF_OEMTEXT 203
#define STRING_CF_UNICODETEXT 204
#define STRING_CF_DIB 205
#define STRING_CF_LOCALE 206
#define STRING_CF_ENHMETAFILE 207
#define STRING_CF_METAFILEPICT 208
#define STRING_CF_PALETTE 209
#define STRING_CF_DIBV5 210
#define STRING_CF_SYLK 211
#define STRING_CF_DIF 212
#define STRING_CF_HDROP 213
#define ERROR_UNSUPPORTED_FORMAT 300
#define ERROR_INVALID_FILE_FORMAT 301

View File

@@ -0,0 +1,314 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/scrollutils.c
* PURPOSE: Scrolling releated helper functions.
* PROGRAMMERS: Ricardo Hanke
*/
#include "precomp.h"
static int InternalSetScrollInfo(HWND hWnd, int nMin, int nMax, UINT nPage, int nPos, int fnBar)
{
SCROLLINFO si;
ZeroMemory(&si, sizeof(si));
si.cbSize = sizeof(si);
si.fMask = SIF_RANGE | SIF_PAGE | SIF_POS | SIF_DISABLENOSCROLL;
si.nMin = nMin;
si.nMax = nMax;
si.nPage = nPage;
si.nPos = nPos;
return SetScrollInfo(hWnd, fnBar, &si, TRUE);
}
void HandleKeyboardScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch (wParam)
{
case VK_UP:
{
SendMessage(hWnd, WM_VSCROLL, MAKELONG(SB_LINEUP, 0), 0);
break;
}
case VK_DOWN:
{
SendMessage(hWnd, WM_VSCROLL, MAKELONG(SB_LINEDOWN, 0), 0);
break;
}
case VK_LEFT:
{
SendMessage(hWnd, WM_HSCROLL, MAKELONG(SB_LINEUP, 0), 0);
break;
}
case VK_RIGHT:
{
SendMessage(hWnd, WM_HSCROLL, MAKELONG(SB_LINEDOWN, 0), 0);
break;
}
case VK_PRIOR:
{
SendMessage(hWnd, WM_VSCROLL, MAKELONG(SB_PAGEUP, 0), 0);
break;
}
case VK_NEXT:
{
SendMessage(hWnd, WM_VSCROLL, MAKELONG(SB_PAGEDOWN, 0), 0);
break;
}
default:
{
break;
}
}
}
void HandleMouseScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state)
{
SCROLLINFO si;
int Delta;
int NewPos;
si.cbSize = sizeof(si);
si.fMask = SIF_PAGE;
GetScrollInfo(hWnd, SB_VERT, &si);
if (Globals.uLinesToScroll == WHEEL_PAGESCROLL)
{
NewPos = si.nPage;
}
else
{
NewPos = Globals.uLinesToScroll * 5;
}
if (GET_WHEEL_DELTA_WPARAM(wParam) > 0)
{
NewPos = state->CurrentY - NewPos;
}
else
{
NewPos = state->CurrentY + NewPos;
}
NewPos = min(state->MaxY, max(0, NewPos));
if (NewPos == state->CurrentY)
{
return;
}
Delta = NewPos - state->CurrentY;
state->CurrentY = NewPos;
ScrollWindowEx(hWnd, 0, -Delta, NULL, NULL, NULL, NULL, SW_INVALIDATE);
si.cbSize = sizeof(si);
si.fMask = SIF_POS;
si.nPos = state->CurrentY;
SetScrollInfo(hWnd, SB_VERT, &si, TRUE);
}
void HandleHorizontalScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state)
{
SCROLLINFO si;
int Delta;
int NewPos;
ZeroMemory(&si, sizeof(si));
si.cbSize = sizeof(si);
si.fMask = SIF_PAGE | SIF_TRACKPOS;
GetScrollInfo(hWnd, SB_HORZ, &si);
switch (LOWORD(wParam))
{
case SB_THUMBPOSITION:
case SB_THUMBTRACK:
{
NewPos = si.nTrackPos;
break;
}
case SB_LINELEFT:
{
NewPos = state->CurrentX - 5;
break;
}
case SB_LINERIGHT:
{
NewPos = state->CurrentX + 5;
break;
}
case SB_PAGELEFT:
{
NewPos = state->CurrentX - si.nPage;
break;
}
case SB_PAGERIGHT:
{
NewPos = state->CurrentX + si.nPage;
break;
}
default:
{
NewPos = state->CurrentX;
break;
}
}
NewPos = min(state->MaxX, max(0, NewPos));
if (NewPos == state->CurrentX)
{
return;
}
Delta = NewPos - state->CurrentX;
state->CurrentX = NewPos;
ScrollWindowEx(hWnd, -Delta, 0, NULL, NULL, NULL, NULL, SW_INVALIDATE);
si.cbSize = sizeof(si);
si.fMask = SIF_POS;
si.nPos = state->CurrentX;
SetScrollInfo(hWnd, SB_HORZ, &si, TRUE);
}
void HandleVerticalScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state)
{
SCROLLINFO si;
int Delta;
int NewPos;
ZeroMemory(&si, sizeof(si));
si.cbSize = sizeof(si);
si.fMask = SIF_PAGE | SIF_TRACKPOS;
GetScrollInfo(hWnd, SB_VERT, &si);
switch (LOWORD(wParam))
{
case SB_THUMBPOSITION:
case SB_THUMBTRACK:
{
NewPos = si.nTrackPos;
break;
}
case SB_LINEUP:
{
NewPos = state->CurrentY - 5;
break;
}
case SB_LINEDOWN:
{
NewPos = state->CurrentY + 5;
break;
}
case SB_PAGEUP:
{
NewPos = state->CurrentY - si.nPage;
break;
}
case SB_PAGEDOWN:
{
NewPos = state->CurrentY + si.nPage;
break;
}
default:
{
NewPos = state->CurrentY;
break;
}
}
NewPos = min(state->MaxY, max(0, NewPos));
if (NewPos == state->CurrentY)
{
return;
}
Delta = NewPos - state->CurrentY;
state->CurrentY = NewPos;
ScrollWindowEx(hWnd, 0, -Delta, NULL, NULL, NULL, NULL, SW_INVALIDATE);
si.cbSize = sizeof(si);
si.fMask = SIF_POS;
si.nPos = state->CurrentY;
SetScrollInfo(hWnd, SB_VERT, &si, TRUE);
}
void UpdateWindowScrollState(HWND hWnd, HBITMAP hBitmap, LPSCROLLSTATE lpState)
{
BITMAP bmp;
RECT rc;
if (!GetObject(hBitmap, sizeof(BITMAP), &bmp))
{
bmp.bmWidth = 0;
bmp.bmHeight = 0;
}
if (!GetClientRect(hWnd, &rc))
{
SetRectEmpty(&rc);
}
lpState->MaxX = max(bmp.bmWidth - rc.right, 0);
lpState->CurrentX = min(lpState->CurrentX, lpState->MaxX);
InternalSetScrollInfo(hWnd, 0, bmp.bmWidth, rc.right, lpState->CurrentX, SB_HORZ);
lpState->MaxY = max(bmp.bmHeight - rc.bottom, 0);
lpState->CurrentY = min(lpState->CurrentY, lpState->MaxY);
InternalSetScrollInfo(hWnd, 0, bmp.bmHeight, rc.bottom, lpState->CurrentY, SB_VERT);
}
BOOL ScrollBlt(PAINTSTRUCT ps, HBITMAP hBmp, SCROLLSTATE state)
{
RECT rect;
BOOL ret;
HDC hdc;
int xpos;
int ypos;
rect.left = ps.rcPaint.left;
rect.top = ps.rcPaint.top;
rect.right = (ps.rcPaint.right - ps.rcPaint.left);
rect.bottom = (ps.rcPaint.bottom - ps.rcPaint.top);
xpos = ps.rcPaint.left + state.CurrentX;
ypos = ps.rcPaint.top + state.CurrentY;
ret = FALSE;
hdc = CreateCompatibleDC(ps.hdc);
if (hdc)
{
if (SelectObject(hdc, hBmp))
{
ret = BitBlt(ps.hdc, rect.left, rect.top, rect.right, rect.bottom, hdc, xpos, ypos, SRCCOPY);
}
DeleteDC(hdc);
}
return ret;
}

View File

@@ -0,0 +1,22 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/scrollutils.h
* PURPOSE: Scrolling releated helper functions.
* PROGRAMMERS: Ricardo Hanke
*/
typedef struct _SCROLLSTATE
{
int CurrentX;
int CurrentY;
int MaxX;
int MaxY;
} SCROLLSTATE, *LPSCROLLSTATE;
void HandleKeyboardScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
void HandleMouseScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state);
void HandleHorizontalScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state);
void HandleVerticalScrollEvents(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam, LPSCROLLSTATE state);
void UpdateWindowScrollState(HWND hWnd, HBITMAP hBmp, LPSCROLLSTATE lpState);
BOOL ScrollBlt(PAINTSTRUCT ps, HBITMAP hBmp, SCROLLSTATE state);

View File

@@ -0,0 +1,287 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/winutils.c
* PURPOSE: Miscellaneous helper functions.
* PROGRAMMERS: Ricardo Hanke
*/
#include "precomp.h"
void ShowLastWin32Error(HWND hwndParent)
{
DWORD dwError;
LPWSTR lpMsgBuf = NULL;
dwError = GetLastError();
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, 0, (LPWSTR)&lpMsgBuf, 0, NULL);
MessageBoxW(hwndParent, lpMsgBuf, NULL, MB_OK | MB_ICONERROR);
LocalFree(lpMsgBuf);
}
void BringWindowToFront(HWND hWnd)
{
if (IsIconic(hWnd))
{
ShowWindow(hWnd, SW_RESTORE);
SetForegroundWindow(hWnd);
}
else
{
SetForegroundWindow(hWnd);
}
}
int DrawTextFromResource(HINSTANCE hInstance, UINT uID, HDC hDC, LPRECT lpRect, UINT uFormat)
{
LPWSTR lpBuffer;
int nCount;
nCount = LoadStringW(hInstance, uID, (LPWSTR)&lpBuffer, 0);
if (nCount)
{
return DrawTextW(hDC, lpBuffer, nCount, lpRect, uFormat);
}
else
{
return 0;
}
}
int MessageBoxRes(HWND hWnd, HINSTANCE hInstance, UINT uText, UINT uCaption, UINT uType)
{
MSGBOXPARAMSW mb;
ZeroMemory(&mb, sizeof(mb));
mb.cbSize = sizeof(mb);
mb.hwndOwner = hWnd;
mb.hInstance = hInstance;
mb.lpszText = MAKEINTRESOURCEW(uText);
mb.lpszCaption = MAKEINTRESOURCEW(uCaption);
mb.dwStyle = uType;
mb.dwLanguageId = MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT);
return MessageBoxIndirectW(&mb);
}
void DrawTextFromClipboard(HDC hDC, LPRECT lpRect, UINT uFormat)
{
HGLOBAL hGlobal;
LPWSTR lpchText;
hGlobal = GetClipboardData(CF_UNICODETEXT);
if (!hGlobal)
return;
lpchText = GlobalLock(hGlobal);
if (!lpchText)
return;
DrawTextW(hDC, lpchText, -1, lpRect, uFormat);
GlobalUnlock(hGlobal);
}
void BitBltFromClipboard(HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, int nXSrc, int nYSrc, DWORD dwRop)
{
HDC hdcMem;
HBITMAP hbm;
hdcMem = CreateCompatibleDC(hdcDest);
if (hdcMem)
{
hbm = (HBITMAP)GetClipboardData(CF_BITMAP);
SelectObject(hdcMem, hbm);
BitBlt(hdcDest, nXDest, nYDest, nWidth, nHeight, hdcMem, nXSrc, nYSrc, dwRop);
DeleteDC(hdcMem);
}
}
void SetDIBitsToDeviceFromClipboard(UINT uFormat, HDC hdc, int XDest, int YDest, int XSrc, int YSrc, UINT uStartScan, UINT fuColorUse)
{
LPBITMAPINFOHEADER lpInfoHeader;
LPBYTE lpBits;
LONG bmWidth, bmHeight;
DWORD dwPalSize = 0;
HGLOBAL hGlobal;
hGlobal = GetClipboardData(uFormat);
if (!hGlobal)
return;
lpInfoHeader = GlobalLock(hGlobal);
if (!lpInfoHeader)
return;
if (lpInfoHeader->biSize == sizeof(BITMAPCOREHEADER))
{
LPBITMAPCOREHEADER lpCoreHeader = (LPBITMAPCOREHEADER)lpInfoHeader;
dwPalSize = 0;
if (lpCoreHeader->bcBitCount <= 8)
{
dwPalSize = (1 << lpCoreHeader->bcBitCount);
if (fuColorUse == DIB_RGB_COLORS)
dwPalSize *= sizeof(RGBTRIPLE);
else
dwPalSize *= sizeof(WORD);
}
bmWidth = lpCoreHeader->bcWidth;
bmHeight = lpCoreHeader->bcHeight;
}
else if ((lpInfoHeader->biSize == sizeof(BITMAPINFOHEADER)) ||
(lpInfoHeader->biSize == sizeof(BITMAPV4HEADER)) ||
(lpInfoHeader->biSize == sizeof(BITMAPV5HEADER)))
{
dwPalSize = lpInfoHeader->biClrUsed;
if ((dwPalSize == 0) && (lpInfoHeader->biBitCount <= 8))
dwPalSize = (1 << lpInfoHeader->biBitCount);
if (fuColorUse == DIB_RGB_COLORS)
dwPalSize *= sizeof(RGBQUAD);
else
dwPalSize *= sizeof(WORD);
if (/*(lpInfoHeader->biSize == sizeof(BITMAPINFOHEADER)) &&*/
(lpInfoHeader->biCompression == BI_BITFIELDS))
{
dwPalSize += 3 * sizeof(DWORD);
}
/*
* This is a (disabled) hack for Windows, when uFormat == CF_DIB
* it needs yet another extra 3 DWORDs, in addition to the
* ones already taken into account in via the compression.
* This problem doesn't happen when uFormat == CF_DIBV5
* (in that case, when compression is taken into account,
* everything is nice).
*
* NOTE 1: This fix is only for us, because when one pastes DIBs
* directly in apps, the bitmap offset problem is still present.
*
* NOTE 2: The problem can be seen with Windows' clipbrd.exe if
* one copies a CF_DIB image in the clipboard. By default Windows'
* clipbrd.exe works with CF_DIBV5 and CF_BITMAP, so the problem
* is unseen, and the clipboard doesn't have to convert to CF_DIB.
*
* FIXME: investigate!!
* ANSWER: this is a Windows bug; part of the answer is there:
* http://go4answers.webhost4life.com/Help/bug-clipboard-format-conversions-28724.aspx
* May be related:
* http://blog.talosintel.com/2015/10/dangerous-clipboard.html
*/
#if 0
if ((lpInfoHeader->biSize == sizeof(BITMAPINFOHEADER)) &&
(lpInfoHeader->biCompression == BI_BITFIELDS))
{
dwPalSize += 3 * sizeof(DWORD);
}
#endif
bmWidth = lpInfoHeader->biWidth;
bmHeight = lpInfoHeader->biHeight;
}
else
{
/* Invalid format */
GlobalUnlock(hGlobal);
return;
}
lpBits = (LPBYTE)lpInfoHeader + lpInfoHeader->biSize + dwPalSize;
SetDIBitsToDevice(hdc,
XDest, YDest,
bmWidth, bmHeight,
XSrc, YSrc,
uStartScan,
bmHeight,
lpBits,
(LPBITMAPINFO)lpInfoHeader,
fuColorUse);
GlobalUnlock(hGlobal);
}
void PlayMetaFileFromClipboard(HDC hdc, const RECT *lpRect)
{
LPMETAFILEPICT mp;
HGLOBAL hGlobal;
hGlobal = GetClipboardData(CF_METAFILEPICT);
if (!hGlobal)
return;
mp = (LPMETAFILEPICT)GlobalLock(hGlobal);
if (!mp)
return;
SetMapMode(hdc, mp->mm);
SetViewportExtEx(hdc, lpRect->right, lpRect->bottom, NULL);
SetViewportOrgEx(hdc, lpRect->left, lpRect->top, NULL);
PlayMetaFile(hdc, mp->hMF);
GlobalUnlock(hGlobal);
}
void PlayEnhMetaFileFromClipboard(HDC hdc, const RECT *lpRect)
{
HENHMETAFILE hEmf;
hEmf = GetClipboardData(CF_ENHMETAFILE);
PlayEnhMetaFile(hdc, hEmf, lpRect);
}
UINT RealizeClipboardPalette(HWND hWnd)
{
HPALETTE hPalette;
HPALETTE hOldPalette;
UINT uResult;
HDC hDevContext;
if (!OpenClipboard(NULL))
{
return GDI_ERROR;
}
if (!IsClipboardFormatAvailable(CF_PALETTE))
{
CloseClipboard();
return GDI_ERROR;
}
hPalette = GetClipboardData(CF_PALETTE);
if (!hPalette)
{
CloseClipboard();
return GDI_ERROR;
}
hDevContext = GetDC(hWnd);
if (!hDevContext)
{
CloseClipboard();
return GDI_ERROR;
}
hOldPalette = SelectPalette(hDevContext, hPalette, FALSE);
if (!hOldPalette)
{
ReleaseDC(hWnd, hDevContext);
CloseClipboard();
return GDI_ERROR;
}
uResult = RealizePalette(hDevContext);
SelectPalette(hDevContext, hOldPalette, FALSE);
ReleaseDC(hWnd, hDevContext);
CloseClipboard();
return uResult;
}

View File

@@ -0,0 +1,18 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clipboard Viewer
* FILE: base/applications/clipbrd/winutils.h
* PURPOSE: Miscellaneous helper functions.
* PROGRAMMERS: Ricardo Hanke
*/
void ShowLastWin32Error(HWND hwndParent);
void BringWindowToFront(HWND hWnd);
int DrawTextFromResource(HINSTANCE hInstance, UINT uID, HDC hDC, LPRECT lpRect, UINT uFormat);
int MessageBoxRes(HWND hWnd, HINSTANCE hInstance, UINT uText, UINT uCaption, UINT uType);
void DrawTextFromClipboard(HDC hDC, LPRECT lpRect, UINT uFormat);
void BitBltFromClipboard(HDC hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, int nXSrc, int nYSrc, DWORD dwRop);
void SetDIBitsToDeviceFromClipboard(UINT uFormat, HDC hdc, int XDest, int YDest, int XSrc, int YSrc, UINT uStartScan, UINT fuColorUse);
void PlayMetaFileFromClipboard(HDC hdc, const RECT *lpRect);
void PlayEnhMetaFileFromClipboard(HDC hdc, const RECT *lpRect);
UINT RealizeClipboardPalette(HWND hWnd);

View File

@@ -1,4 +1,6 @@
add_subdirectory(clip)
add_subdirectory(comp)
add_subdirectory(cscript)
add_subdirectory(dbgprint)
add_subdirectory(doskey)
add_subdirectory(find)
@@ -10,5 +12,8 @@ add_subdirectory(more)
add_subdirectory(reg)
add_subdirectory(sort)
add_subdirectory(taskkill)
add_subdirectory(tree)
add_subdirectory(whoami)
add_subdirectory(wmic)
add_subdirectory(wscript)
add_subdirectory(xcopy)

View File

@@ -0,0 +1,5 @@
add_executable(clip clip.c clip.rc)
set_module_type(clip win32cui UNICODE)
add_importlibs(clip user32 msvcrt kernel32 advapi32)
add_cd_file(TARGET clip DESTINATION reactos/system32 FOR all)

View File

@@ -0,0 +1,145 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS Clip Command
* FILE: base/applications/cmdutils/clip/clip.c
* PURPOSE: Provides clipboard management for command-line programs.
* PROGRAMMERS: Ricardo Hanke
*/
#include <stdio.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include "resource.h"
static void PrintError(void)
{
DWORD dwError;
LPWSTR lpMsgBuf = NULL;
dwError = GetLastError();
if (dwError == NO_ERROR)
return;
FormatMessageW(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL, dwError, 0, (LPWSTR)&lpMsgBuf, 0, NULL);
wprintf(L"%s", lpMsgBuf);
LocalFree(lpMsgBuf);
}
static void PrintResourceString(UINT uID)
{
WCHAR buff[500];
if (LoadStringW(GetModuleHandle(NULL), uID, buff, ARRAYSIZE(buff)))
{
wprintf(L"%s", buff);
}
}
static BOOL IsDataUnicode(HGLOBAL hGlobal)
{
BOOL bReturn;
LPVOID lpBuffer;
lpBuffer = GlobalLock(hGlobal);
bReturn = IsTextUnicode(lpBuffer, GlobalSize(hGlobal), NULL);
GlobalUnlock(hGlobal);
return bReturn;
}
int wmain(int argc, wchar_t** argv)
{
HANDLE hInput;
DWORD dwBytesRead;
BOOL bStatus;
HGLOBAL hBuffer;
HGLOBAL hTemp;
LPBYTE lpBuffer;
SIZE_T dwSize = 0;
hInput = GetStdHandle(STD_INPUT_HANDLE);
/* Check for usage */
if (argc > 1 && wcsncmp(argv[1], L"/?", 2) == 0)
{
PrintResourceString(IDS_HELP);
return 0;
}
if (GetFileType(hInput) == FILE_TYPE_CHAR)
{
PrintResourceString(IDS_USAGE);
return 0;
}
/* Initialize a growable buffer for holding clipboard data */
hBuffer = GlobalAlloc(GMEM_MOVEABLE | GMEM_ZEROINIT, 4096);
if (!hBuffer)
{
PrintError();
return -1;
}
/*
* Read data from the input stream by chunks of 4096 bytes
* and resize the buffer each time when needed.
*/
do
{
lpBuffer = GlobalLock(hBuffer);
if (!lpBuffer)
goto cleanup;
bStatus = ReadFile(hInput, lpBuffer + dwSize, 4096, &dwBytesRead, NULL);
dwSize += dwBytesRead;
GlobalUnlock(hBuffer);
hTemp = GlobalReAlloc(hBuffer, GlobalSize(hBuffer) + 4096, GMEM_ZEROINIT);
if (!hTemp)
goto cleanup;
hBuffer = hTemp;
}
while (dwBytesRead > 0 && bStatus);
/*
* Resize the buffer to the total size of data read.
* Note that, if the call fails, we still have the old buffer valid.
* The old buffer would be larger than the actual size of data it contains,
* but this is not a problem for us.
*/
hTemp = GlobalReAlloc(hBuffer, dwSize + sizeof(WCHAR), GMEM_ZEROINIT);
if (hTemp)
hBuffer = hTemp;
/* Attempt to open the clipboard */
if (!OpenClipboard(NULL))
goto cleanup;
/* Empty it, copy our data, then close it */
EmptyClipboard();
if (IsDataUnicode(hBuffer))
{
SetClipboardData(CF_UNICODETEXT, hBuffer);
}
else
{
// TODO: Convert text from current console page to standard ANSI.
// Alternatively one can use CF_OEMTEXT as done here.
SetClipboardData(CF_OEMTEXT, hBuffer);
}
CloseClipboard();
return 0;
cleanup:
GlobalFree(hBuffer);
PrintError();
return -1;
}

View File

@@ -0,0 +1,39 @@
#include <windef.h>
#include "resource.h"
#define REACTOS_STR_FILE_DESCRIPTION "ReactOS Clip Command"
#define REACTOS_STR_INTERNAL_NAME "clip"
#define REACTOS_STR_ORIGINAL_FILENAME "clip.exe"
#include <reactos/version.rc>
/* UTF-8 */
#pragma code_page(65001)
#ifdef LANGUAGE_DE_DE
#include "lang/de-DE.rc"
#endif
#ifdef LANGUAGE_EN_US
#include "lang/en-US.rc"
#endif
#ifdef LANGUAGE_ES_ES
#include "lang/es-ES.rc"
#endif
#ifdef LANGUAGE_FR_FR
#include "lang/fr-FR.rc"
#endif
#ifdef LANGUAGE_RO_RO
#include "lang/ro-RO.rc"
#endif
#ifdef LANGUAGE_RU_RU
#include "lang/ru-RU.rc"
#endif
#ifdef LANGUAGE_TR_TR
#include "lang/tr-TR.rc"
#endif
#ifdef LANGUAGE_ZH_CN
#include "lang/zh-CN.rc"
#endif
#ifdef LANGUAGE_ZH_TW
#include "lang/zh-TW.rc"
#endif

View File

@@ -0,0 +1,9 @@
LANGUAGE LANG_GERMAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nGeben Sie ""CLIP /?"" ein, um die Syntax anzuzeigen.\n"
IDS_HELP "\nLeitet die Ausgabe von Befehlszeilenprogrammen in die Zwischenablage um.\n\n\
CLIP [/?]\n\n\
/? Zeigt diese Hilfe an.\n"
END

View File

@@ -0,0 +1,9 @@
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
STRINGTABLE
BEGIN
IDS_USAGE "\nType ""CLIP /?"" for usage information.\n"
IDS_HELP "\nRedirects the output of command-line programs to the clipboard.\n\n\
CLIP [/?]\n\n\
/? Show this help message.\n"
END

View File

@@ -0,0 +1,11 @@
/* Spanish translation by Ismael Ferreras Morezuelas (Swyter) */
LANGUAGE LANG_SPANISH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nPara ver los argumentos y opciones de uso escribe ""CLIP /?"".\n"
IDS_HELP "\nRedirije la salida de programas de línea de comandos al portapapeles.\n\n\
CLIP [/?]\n\n\
/? Muestra este mensaje de ayuda.\n"
END

View File

@@ -0,0 +1,9 @@
LANGUAGE LANG_FRENCH, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nEntrez ""CLIP /?"" pour afficher la syntaxe.\n"
IDS_HELP "\nRedirige la sortie des programmes en ligne de commande vers le Presse-Papiers.\n\n\
CLIP [/?]\n\n\
/? Affiche ce message d'aide.\n"
END

Some files were not shown because too many files have changed in this diff Show More