Compare commits

...

3361 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
8450 changed files with 751689 additions and 246720 deletions

View File

@@ -11,6 +11,11 @@ if(POLICY CMP0026)
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
@@ -32,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)
@@ -60,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)
@@ -84,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
@@ -102,10 +133,6 @@ else()
#useful stuff!
include(CMakeParseArguments)
# 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()
@@ -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()

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,6 +19,7 @@ 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)
@@ -25,6 +27,7 @@ add_subdirectory(network)
add_subdirectory(notepad)
add_subdirectory(osk)
add_subdirectory(rapps)
add_subdirectory(rapps_new)
add_subdirectory(regedit)
add_subdirectory(regedt32)
add_subdirectory(sc)

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

@@ -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

@@ -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
MENUITEM "Scientific", IDM_VIEW_SCIENTIFIC
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
MENUITEM "Scientific", IDM_VIEW_SCIENTIFIC
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
MENUITEM "Scientific", IDM_VIEW_SCIENTIFIC
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

@@ -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

View File

@@ -1,7 +1,7 @@
/*
Translators: Petru Dumitriu (petrimetri at gmail dot com)
Ș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

View File

@@ -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

@@ -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
*/

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,8 +327,8 @@ 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
@@ -336,14 +336,14 @@ BEGIN
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,8 +359,8 @@ 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
@@ -368,15 +368,15 @@ BEGIN
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,8 +392,8 @@ 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
@@ -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

@@ -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

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

@@ -1346,40 +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);
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);
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);
CheckMenuRadioItem(GetMenu(hWnd),
IDM_VIEW_STANDARD,
IDM_VIEW_CONVERSION,
IDM_VIEW_CONVERSION,
MF_BYCOMMAND);
}
return TRUE;
case IDM_VIEW_HEX:
case IDM_VIEW_DEC:

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;
@@ -237,7 +239,7 @@ AddCharToSelection(HWND hDlg, WCHAR ch)
SendMessage(hText, WM_CHAR, (WPARAM)ch, 0);
}
#ifndef REMOVE_ADVANCED
static
void
UpdateSettings(HWND hDlg)
@@ -245,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;
@@ -268,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);
@@ -280,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);
@@ -318,6 +326,9 @@ CharMapDlgProc(HWND hDlg,
case WM_INITDIALOG:
{
DWORD evMask;
#ifdef REMOVE_ADVANCED
HWND hAdv;
#endif
FillFontStyleComboList(GetDlgItem(hDlg,
IDC_FONTCOMBO));
@@ -328,7 +339,10 @@ CharMapDlgProc(HWND hDlg,
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;
}
@@ -370,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;
@@ -385,7 +400,7 @@ CharMapDlgProc(HWND hDlg,
return FALSE;
}
#ifndef REMOVE_ADVANCED
static
INT_PTR
CALLBACK
@@ -405,7 +420,7 @@ AdvancedDlgProc(HWND hDlg,
return FALSE;
}
#endif
static int
OnCreate(HWND hWnd, WPARAM wParam, LPARAM lParam)
{
@@ -416,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

@@ -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

@@ -18,7 +18,7 @@ BEGIN
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
WS_TABSTOP, 8, 208, 110, 10
END
IDD_ADVANCED DIALOGEX 0, 0, 292, 64

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

@@ -16,14 +16,6 @@ static const WCHAR szLrgCellWndClass[] = L"LrgCellWnd";
#define MAX_ROWS (0xFFFF / XCELLS) + 1 - YCELLS
static
VOID
TagFontToCell(PCELL pCell,
WCHAR ch)
{
pCell->ch = ch;
}
static
VOID
@@ -107,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);
}
@@ -213,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);
@@ -225,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,
@@ -240,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;
}
@@ -379,8 +417,7 @@ OnCreate(PMAP infoPtr,
SetGrid(infoPtr);
SetScrollRange(hwnd, SB_VERT, 0, MAX_ROWS, FALSE);
SetScrollPos(hwnd, SB_VERT, 0, TRUE);
SetScrollPos(infoPtr->hParent, SB_VERT, 0, TRUE);
Ret = TRUE;
}
@@ -424,8 +461,8 @@ OnVScroll(PMAP infoPtr,
break;
}
infoPtr->iYStart = max(0,
min(infoPtr->iYStart, MAX_ROWS));
infoPtr->iYStart = max(0, infoPtr->iYStart);
infoPtr->iYStart = min(infoPtr->iYStart, infoPtr->NumRows);
iYDiff = iOldYStart - infoPtr->iYStart;
if (iYDiff)
@@ -487,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,3 +1,4 @@
add_subdirectory(clip)
add_subdirectory(comp)
add_subdirectory(cscript)
add_subdirectory(dbgprint)

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

View File

@@ -0,0 +1,9 @@
LANGUAGE LANG_ROMANIAN, SUBLANG_NEUTRAL
STRINGTABLE
BEGIN
IDS_USAGE "\nTastați ""CLIP /?"" pentru informațiile de utilizare.\n"
IDS_HELP "\nRedirecționează în clipboard ieșirea programelor linie-de-comandă.\n\n\
CLIP [/?]\n\n\
/? Afișează acest mesaj.\n"
END

View File

@@ -0,0 +1,11 @@
/* Russian language resource file by Kudratov Olimjon (olim98@bk.ru) */
LANGUAGE LANG_RUSSIAN, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "\nВведите ""CLIP /?"" для получения справки по использованию.\n"
IDS_HELP "\nПеренаправляет вывод от утилит командной строки в буфер обмена.\n\n\
CLIP [/?]\n\n\
/? Вывод справки по использованию..\n"
END

View File

@@ -0,0 +1,11 @@
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "\nKullanım bilgisi için ""CLIP /?"" yazınız.\n"
IDS_HELP "\nKomut yatacı izlencelerinin çıktısını panoya yönlendirir.\n\n\
CLIP [/?]\n\n\
/? Bu yardım iletisini göster.\n"
END

View File

@@ -0,0 +1,11 @@
/* Simplified Chinese translation by Henry Tang Ih 2016 (henrytang2@hotmail.com) */
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
STRINGTABLE
BEGIN
IDS_USAGE "\n输入 ""CLIP /?"" 知道用法信息。\n"
IDS_HELP "\n将命令行程序的输出重定向到剪贴板。\n\n\
CLIP [/?]\n\n\
/? 显示此帮助消息。\n"
END

View File

@@ -0,0 +1,11 @@
/* Traditional Chinese translation by Henry Tang Ih 2016 (henrytang2@hotmail.com) */
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
STRINGTABLE
BEGIN
IDS_USAGE "\n輸入 ""CLIP /?"" 知道用法資訊。\n"
IDS_HELP "\n將命令列程式的輸出重定向到剪貼簿。\n\n\
CLIP [/?]\n\n\
/? 顯示此説明消息。\n"
END

View File

@@ -0,0 +1,4 @@
#pragma once
#define IDS_USAGE 100
#define IDS_HELP 101

View File

@@ -19,7 +19,7 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS comp utility
* FILE: comp.c
* FILE: base/applications/cmdutils/comp/comp.c
* PURPOSE: Compares the contents of two files
* PROGRAMMERS: Ged Murphy (gedmurphy@gmail.com)
* REVISIONS:

View File

@@ -1,7 +1,7 @@
/*
* PROJECT: ReactOS DbgPrint Utility
* LICENSE: GPL - See COPYING in the top level directory
* FILE: tools/dbgprint/dbgprint.c
* FILE: base/applications/cmdutils/dbgprint/dbgprint.c
* PURPOSE: outputs a text via DbgPrint API
* PROGRAMMERS: Johannes Anderwald (johannes.anderwald@reactos.org)
* Christoph von Wittich (Christoph_vW@ReactOS.org)

View File

@@ -43,9 +43,15 @@
#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
#ifdef LANGUAGE_ZH_CN
#include "lang/zh-CN.rc"
#endif
#ifdef LANGUAGE_ZH_TW
#include "lang/zh-TW.rc"
#endif

View File

@@ -1,6 +1,6 @@
/*
* PROJECT: ReactOS DOSKey
* FILE: base\applications\cmdutils\doskey\lang\sv-SE.rc
* FILE: base/applications/cmdutils/doskey/lang/sv-SE.rc
* PURPOSE: Swedish resource file
* Translation: Jaix Bly
*/

View File

@@ -0,0 +1,26 @@
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_HELP "Komut yatacı düzenleme ayarlarını, geçmişi ve makroları yönetir.\n\
\n\
DOSKEY [/INSERT | /OVERSTRIKE] [/EXENAME=exe] [/HISTORY] [/LISTSIZE=boyut]\n\
[/REINSTALL] [/MACROS[:exe | :ALL]] [/MACROFILE=kütük] [makro adı=[metin]]\n\
\n\
/INSERT Ekleme kipini etkinleştirir.\n\
/OVERSTRIKE Ekleme kipini edilginleştirir.\n\
/EXENAME=exe adı İlgili geçmişi ve makroları görüntülemek ya da değiştirmek\n\
için izlencenin adını ayarlar. Ön tanımlı cmd.exe'dir.\n\
/HISTORY Komut geçmişini görüntüler.\n\
/LISTSIZE=boyut Geçmiş arabelleği başına komut sayısını ayarlar.\n\
/REINSTALL Komut geçmişini siler.\n\
/MACROS Makro tanımlarını görüntüler.\n\
/MACROS:exe adı Belirli bir izlence için makro tanımlarını görüntüler.\n\
/MACROS:ALL Tüm izlenceler için makro tanımlarını görüntüler.\n\
/MACROFILE=kütük Bir kütükten makro tanımlarını yükler.\n\
makro adı Oluşturmak için bir makro adını belirtir.\n\
metin Makro için yerine geçme metnini belirtir.\n"
IDS_INVALID_MACRO_DEF "Geçersiz makro tanımı: %s\n"
END

View File

@@ -0,0 +1,26 @@
/* Traditional Chinese translation by Henry Tang Ih 2016 (henrytang2@hotmail.com) */
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
STRINGTABLE
BEGIN
IDS_HELP "管理命令列編輯設置、歷史記錄和宏。\n\
\n\
DOSKEY [/INSERT | /OVERSTRIKE] [/EXENAME=exe] [/HISTORY] [/LISTSIZE=大小]\n\
[/REINSTALL] [/MACROS[:exe | :ALL]] [/MACROFILE=文件] [宏名=[文本]]\n\
\n\
/INSERT 開啟插入模式。\n\
/OVERSTRIKE \n\
/EXENAME=exename 設置要查看或改變歷史記錄和宏的程式名。\n\
預設為 cmd.exe。\n\
/HISTORY 顯示命令歷史。\n\
/LISTSIZE=size 設置每個歷史記錄緩存記錄的命令數。\n\
/REINSTALL 清空命令歷史記錄。\n\
/MACROS 顯示定義的宏。\n\
/MACROS:exename 顯示為指定程式定義的宏。\n\
/MACROS:ALL 顯示為所有程式定義的宏。\n\
/MACROFILE=file 從檔載入巨集定義。\n\
宏名 指定要創建的宏名。\n\
文本 指定要替換該宏的文本。\n"
IDS_INVALID_MACRO_DEF "不正確巨集定義:%s\n"
END

View File

@@ -63,9 +63,15 @@
#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
#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,15 @@
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "FIND: Bir dizgi içeren bir kütüğün tüm yataçlarını yazdırır.\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""dizgi"" [ kütük... ]\n\
/C Dizgi içeren yataç sayısını say\n\
/I Büyük-küçük harfliği yok say\n\
/N 1'den başlayan, görüntülenen yataç sayısı\n\
/V Dizgi içermeyen yataçları yazdır"
IDS_NO_SUCH_FILE "FIND: %s: Böyle dosya yok\n"
IDS_CANNOT_OPEN "FIND: %s: Kütük açılamıyor\n"
END

View File

@@ -0,0 +1,15 @@
/* Traditional Chinese translation by Henry Tang Ih 2016 (henrytang2@hotmail.com) */
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
STRINGTABLE
BEGIN
IDS_USAGE "FIND: 輸出某檔中包含指定字串的所有行。\n\n\
FIND [ /C ] [ /I ] [ /N ] [ /V ] ""字串"" [ 文件... ]\n\
/C 計算包含該字串的行數\n\
/I 忽略大小寫\n\
/N 從 1 開始為顯示的行編號\n\
/V 輸出不包含該指定字串的行"
IDS_NO_SUCH_FILE "FIND: %s: 沒有這個檔\n"
IDS_CANNOT_OPEN "FIND: %s: 無法打開檔\n"
END

View File

@@ -60,9 +60,15 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#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
#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,77 @@
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_NO_ENTRY "Bu komut yardım aracı eliyle desteklenmiyor.\n""%s /?"" deneyiniz.\n"
END
STRINGTABLE
BEGIN
IDS_USAGE "ReactOS komutları için yardım bilgisini sağlar.\n\n\
HELP [komut]\n\n\
komut - Bu komut için yardım bilgisini görüntüler.\n"
IDS_HELP1 "Tüm kullanılabilir komutların (ve tanımların) dizelgesi:\n\n\
help komut\n\
komut /? Belirtilen bir komut üzerine daha çok bilgi için\n\n\
? Tüm kullanılabilir komutları dizelgele (tanımlar olmadan).\n\
ALIAS Başka adları ayarlar, siler ya da gösterir.\n\
ATTRIB Kütük öz niteliklerini görüntüler ya da değiştirir.\n\
BEEP Hoparlörden ""biip"" sesi çıkart.\n\
CALL Bir toplu iş izlencesini bir başkasından çağırır.\n\
CD Şimdiki dizinin adını görüntüler ya da şimdiki dizini değiştirir.\n\
CHCP Etkin kod sayfası numarasını görüntüler ya da ayarlar.\n\
CHOICE Bir seçim takımından birini seçmeye kullanıcıyı bekler.\n\
CLS Görüntülüğü siler.\n\
CMD ReactOS komut yorumcusunun yeni bir örneğini başlatır.\n\
COLOR Ön tanımlı konsol ön plan ve arka plan renklerini ayarlar.\n\
COPY Bir ya da daha çok kütüğü başka bir konuma çoğaltır.\n\
DATE Târihi görüntüler ya da ayarlar.\n\
DELETE Bir ya da daha çok kütük siler.\n\
DIR Bir dizindeki kütüklerin ve alt dizinlerin bir dizelgesini görüntüler.\n\
ECHO İletileri görüntüler ya da komut yankılanmasını açar ya da kapatır.\n\
ERASE Bir ya da daha çok kütük siler.\n\
EXIT CMD.EXE izlencesinden (komut yorumcusundan) çıkar.\n\
FOR Bir kütük takımı içinde tüm kütükler için belirtilen bir komut\n\
çalıştırır.\n\
FREE (boş) disk alanı.\n\
GOTO Bir toplu iş izlencesinde ReactOS komut yorumcusunu etiketlenmiş bir\n\
yataca yönlendirir.\n\
HELP ReactOS komutları için yardım bilgisini sağlar.\n\
HISTORY Kullanılan tüm komutları dizelgele.\n\
IF Toplu iş izlencelerinde şartlı işlemeyi gerçekleştirir.\n\
LABEL Bir diskin birim etiketini oluşturur, değiştirir ya da siler.\n\
MD Bir dizin oluşturur.\n\
MKDIR Bir dizin oluşturur.\n\
MKLINK Bir kütük dizgesi bağlantı nesnesi oluşturur.\n\
MOVE Bir dizinden bir ya da daha çok kütüğü başka bir dizine taşır.\n\
PATH Çalıştırılailir kütükler için bir arama yolu görüntüler ya da\n\
oluşturur.\n\
PAUSE Bir toplu iş kütüğünde işlemeyi askıya alır ve bir ileti görüntüler.\n\
POPD PUSHD ile kaydedilen şimdiki dizinin bir önceki değerini \n\
yeniden yükler.\n\
PROMPT Komut istemini değiştirir.\n\
PUSHD Şimdiki dizini kaydeder, sonra onu değiştirir.\n\
RD Bir dizin siler.\n\
REM Toplu iş kütüklerinde yorumları (sözleri) kaydeder.\n\
REN Bir kütüğün ya da kütüklerin adını değiştirir.\n\
RENAME Bir kütüğün ya da kütüklerin adını değiştirir.\n\
REPLACE Kütüklerin yerlerini değiştirir.\n\
RMDIR Bir dizin siler.\n\
SCREEN İmleci taşı ve seçimlik olarak metin yazdır.\n\
SET ReactOS ortam değişkenlerini görüntüler, ayarlar ya da kaldırır.\n\
SHIFT Toplu iş kütüklerindeki yerine konulabilir değişkenlerin konumunu\n\
değiştirir.\n"
IDS_HELP2 "START Belirtilen bir izlenceyi ya da komutu çalıştırmak için ayrı bir\n\
pencere başlatır.\n\
Komut çalıştırır.\n\
TIME Dizge saatini görüntüler ya da ayarlar.\n\
TIMER On süreölçeri kullanmaya izin verir.\n\
TITLE Bir CMD.EXE oturumu için pencere başlığını ayarlar.\n\
TYPE Bir metin kütüğünün içeriğini görüntüler.\n\
VER ReactOS sürümünü görüntüler.\n\
VERIFY ReactOS'a kütüklerinizin bir diske doğru yazıldığını doğrulayıp\n\
doğrulamayacağını söyler.\n\
VOL Bir disk birim etiketi ve dizilik numarasını görüntüler.\n"
END

View File

@@ -0,0 +1,70 @@
/* Traditional Chinese translation by Henry Tang Ih 2016 (henrytang2@hotmail.com) */
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
STRINGTABLE
BEGIN
IDS_NO_ENTRY "通過説明實用程式不支援此命令。 \n試 ""%s /?""\n。"
END
STRINGTABLE
BEGIN
IDS_USAGE "提供ReactOS命令的説明資訊。\n\n\
HELP [command]\n\n\
command - 顯示此命令的説明資訊。\n"
IDS_HELP1 "列出所有可用命令 (+ 它們的描述)\n\n\
help 命令\n\
命令 /? 得到特定命令的更多資訊\n\n\
? 列出所有可用命令 (沒有描述)。\n\
ALIAS 設置、刪除或顯示別名。\n\
ATTRIB 顯示或改變檔案屬性。\n\
BEEP 使揚聲器發聲。\n\
CALL 從一個批次程式中調用另一個。\n\
CD 顯示目前的目錄的名稱或更改目前的目錄。\n\
CHCP 顯示或設置活動字碼頁。\n\
CHOICE 等待使用者在一組選項中做出選擇。\n\
CLS 清除螢幕。\n\
CMD 啟動 ReactOS 命令列解譯器的一個新實例。\n\
COLOR 設置主控台預設的前景和背景顏色。\n\
COPY 將一個或多個檔案複製到另一個位置。\n\
DATE 顯示或設置日期。\n\
DELETE 刪除一個或多個檔。\n\
DIR 顯示一個目錄中的檔案清單和子目錄。\n\
ECHO 顯示消息,或打開/關閉命令回顯。\n\
ERASE 刪除一個或多個檔。\n\
EXIT 退出 CMD.EXE 程式 (命令直譯器)。\n\
FOR 為一組檔中的每一個檔執行指定命令。\n\
FREE (空閒的) 磁碟空間。\n\
GOTO 在批次程式中指示 ReactOS 命令直譯器跳轉到被標記的行繼續執行。\n\
HELP 為 ReactOS 命令提供説明資訊。\n\
HISTORY 列出所有曾被使用的命令。\n\
IF 在批次程式中執行條件控制。\n\
LABEL 創建、更改或刪除磁片標籤。\n\
MD 創建一個目錄。\n\
MKDIR 創建一個目錄。\n\
MKLINK 創建一個檔案系統連結化物件。\n\
MOVE 將一個或多個檔從一個資料夾移動到另一個資料夾。\n\
PATH 顯示或設置可執行檔的搜索路徑。\n\
PAUSE 掛起批次檔的執行並顯示一條消息。\n\
POPD 恢復由 PUSHD 存儲的前一個目前的目錄的值。\n\
PROMPT 更改命令提示符。\n\
PUSHD 保存目前的目錄然後更改。\n\
RD 刪除一個目錄。\n\
REM 在批次檔中記錄注釋 (評論)。\n\
REN 重命名一個或多個檔。\n\
RENAME 重命名一個或多個檔。\n\
REPLACE 替換檔。\n\
RMDIR 刪除一個目錄。\n\
SCREEN 移動游標並可選地輸出文本。\n\
SET 顯示、設置或刪除 ReactOS 環境變數。\n\
SHIFT 在批次檔中移動可替換參數的位置。\n"
IDS_HELP2 "START 啟動一個分隔的視窗來運行指定的程式或命令。\n\
執行命令。\n\
TIME 顯示或設置系統時間。\n\
TIMER 允許使用至多十個停錶。\n\
TITLE 設置一個 CMD.EXE 會話的視窗標題。\n\
TYPE 顯示一個文字檔的內容。\n\
VER 顯示 ReactOS 版本。\n\
VERIFY 決定 ReactOS 是否檢驗您的檔已被正確地寫入磁片。\n\
VOL 顯示磁片標籤和序號。\n"
END

View File

@@ -39,3 +39,12 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
#ifdef LANGUAGE_SQ_AL
#include "lang/sq-AL.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,10 @@
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "Şimdiki anabilgisayarın adını yazdır.\n\nhostname"
IDS_NOSET "hostname -s desteklenmiyor."
IDS_ERROR "Win32 yanlışlığı"
END

View File

@@ -0,0 +1,10 @@
/* Simplified Chinese translation by Henry Tang Ih 2015 (henrytang2@hotmail.com) */
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_SIMPLIFIED
STRINGTABLE
BEGIN
IDS_USAGE "打印当前主机的名称。\n\nhostname"
IDS_NOSET "hostname -s 不受支持。"
IDS_ERROR "Win32 错误"
END

View File

@@ -0,0 +1,10 @@
/* Traditional Chinese translation by Henry Tang Ih 2016 (henrytang2@hotmail.com) */
LANGUAGE LANG_CHINESE, SUBLANG_CHINESE_TRADITIONAL
STRINGTABLE
BEGIN
IDS_USAGE "列印當前主機的名稱。\n\nhostname"
IDS_NOSET "hostname -s 不受支援。"
IDS_ERROR "Win32 錯誤"
END

View File

@@ -20,14 +20,16 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include <windows.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <wincon.h>
#include <stdio.h>
#define MAX_PORTNAME_LEN 20
#define MAX_COMPORT_NUM 10
#define MAX_COMPARAM_LEN 20
#define NUM_ELEMENTS(a) (sizeof(a)/sizeof(a[0]))
#define ASSERT(a)
const WCHAR* const usage_strings[] =
@@ -63,7 +65,7 @@ int Usage()
int i;
wprintf(L"\nConfigures system devices.\n\n");
for (i = 0; i < NUM_ELEMENTS(usage_strings); i++)
for (i = 0; i < ARRAYSIZE(usage_strings); i++)
{
wprintf(L"%s\n", usage_strings[i]);
}
@@ -78,7 +80,7 @@ int QueryDevices()
WCHAR* ptr = buffer;
*ptr = L'\0';
if (QueryDosDeviceW(NULL, buffer, NUM_ELEMENTS(buffer)))
if (QueryDosDeviceW(NULL, buffer, ARRAYSIZE(buffer)))
{
while (*ptr != L'\0')
{
@@ -117,7 +119,7 @@ int ShowParallelStatus(int nPortNum)
swprintf(szPortName, L"LPT%d", nPortNum);
wprintf(L"\nStatus for device LPT%d:\n", nPortNum);
wprintf(L"-----------------------\n");
if (QueryDosDeviceW(szPortName, buffer, NUM_ELEMENTS(buffer)))
if (QueryDosDeviceW(szPortName, buffer, ARRAYSIZE(buffer)))
{
WCHAR* ptr = wcsrchr(buffer, L'\\');
if (ptr != NULL)
@@ -226,12 +228,12 @@ int ShowSerialStatus(int nPortNum)
{
return 1;
}
if (dcb.Parity > NUM_ELEMENTS(parity_strings))
if (dcb.Parity >= ARRAYSIZE(parity_strings))
{
wprintf(L"ERROR: Invalid value for Parity Bits %d:\n", dcb.Parity);
dcb.Parity = 0;
}
if (dcb.StopBits > NUM_ELEMENTS(stopbit_strings))
if (dcb.StopBits >= ARRAYSIZE(stopbit_strings))
{
wprintf(L"ERROR: Invalid value for Stop Bits %d:\n", dcb.StopBits);
dcb.StopBits = 0;

View File

@@ -1,7 +1,7 @@
/*
* PROJECT: ReactOS Console Command More
* LICENSE: GPL - See COPYING in the top level directory
* FILE: /base/applications/cmdutils/more/lang/ru-RU.rc
* FILE: base/applications/cmdutils/more/lang/ru-RU.rc
* PURPOSE: Russian Language File for ReactOS Console Command More
* PROGRAMMERS: towerr & Lentin
*/

View File

@@ -1,6 +1,6 @@
/*
* PROJECT: ReactOS RAPPS
* FILE: base\applications\cmdutils\more\lang\sv-SE.rc
* FILE: base/applications/cmdutils/more/lang/sv-SE.rc
* PURPOSE: Swedish resource file
* Translation: Jaix Bly
*/

View File

@@ -0,0 +1,16 @@
/* TRANSLATOR: 2015 Erdem Ersoy (eersoy93) (erdemersoy@live.com) */
LANGUAGE LANG_TURKISH, SUBLANG_DEFAULT
STRINGTABLE
BEGIN
IDS_USAGE "Görüntülükte veriyi sayfa sayfa görüntüler.\n\n\
MORE < [Sürücü:][Yol]Kütük adı\n\
Komut | MORE \n\
MORE [Sürücü:][Yol]Kütük adı\n\n\
[Sürücü:][Yol]Kütük adı İçeriği görüntülenecek bir kütük.\n\
Komut\t\t Çıkışı görüntülenecek bir komut.\n\n\
İstemde ""-- Sürdür --"" ile bir sonraki sayfayı göstermek için rastgele bir düğmeye basabilirsiniz.\n"
IDS_CONTINUE " -- Sürdür (%100) -- "
IDS_FILE_ACCESS "%s kütüğüne erişilemiyor."
END

Some files were not shown because too many files have changed in this diff Show More