Commit graph

68422 commits

Author SHA1 Message Date
Hermès Bélusca-Maïto b6f13160b2 [CONSOLE.CPL]: Addendum to r74397: Fix a cast.
svn path=/trunk/; revision=74398
2017-04-24 00:32:10 +00:00
Hermès Bélusca-Maïto 34a71f27fc [CONSOLE.CPL]: Add a list of available code pages in the console properties dialog.
Display a list of available code pages, as done on Windows (NT/2k/2k3/Vista/7/8, when a CJK language is selected, and as always done on Windows 10 for all languages).
But contrary to Windows, do not limit this list to only CJK + CP-437 codepages, but list *all* the available CPs, retrieved from the registry. These CPs are also those available when using the "chcp" or "mode con cp" commands.
And contrary to Windows (where this is done only for the general console properties), always allow the user to view or change the code page even from the console properties dialog.

[CONSRV]: Support changing the current code page from the console properties dialog.

CORE-12451

svn path=/trunk/; revision=74397
2017-04-24 00:24:34 +00:00
Eric Kohl d1ad859a6e [SYSETUP]
Update the shown date and time on the Date and Time page until the user changes the date or time.
CORE-11896

svn path=/trunk/; revision=74396
2017-04-23 21:56:36 +00:00
Thomas Faber 20689dba23 [CRYPTNET]
- Fix ROS-Diff. Spotted by CRLF.
CORE-13117 #resolve

svn path=/trunk/; revision=74395
2017-04-23 17:59:25 +00:00
Eric Kohl f83d61cce0 [SERVMAN]
- Make a copy of the service list where service and display name strings are separately allocated. We need this to update the service names rather than reload the list when the display name is changed.
- Write the display name, description or binary path to the registry when the user changed them.
- Disable the Edit button after it has been clicked.
- Do not add the service name to the argument vector in the call to StartServiceW. Services.exe already add the service name to the vector.
CORE-12743

svn path=/trunk/; revision=74394
2017-04-23 17:39:26 +00:00
Colin Finck ceaed9f1ec [LOCALSPL]
Implement all corner cases of handling the Name parameter in EnumPrinters. This can be done in a common way for all levels.
Fixes more tests.

svn path=/trunk/; revision=74393
2017-04-23 15:00:26 +00:00
Giannis Adamopoulos 4414132a97 [NTOSKRNL] CcPurgeCacheSection: Check if SharedCacheMap is NULL. Change suggested by ThFabba. CORE-13115
svn path=/trunk/; revision=74392
2017-04-23 11:12:48 +00:00
Thomas Faber 1f03a83d50 [NTOS:MM]
- In NtMapViewOfSection, check for address alignment after validating the handles. This fixes the tests from the previous commit, but is also necessary because information about the section object is necessary to avoid the alignment checks for physical memory sections.
CORE-13113

svn path=/trunk/; revision=74391
2017-04-23 09:38:45 +00:00
Thomas Faber 6e74416198 [KMTESTS:MM]
- Show that NtMapViewOfSection validates section and process handles before checking base address alignment
CORE-13113

svn path=/trunk/; revision=74390
2017-04-23 08:10:46 +00:00
Thomas Faber e570b43842 [NTOS:MM]
- Check for ROS section object before accessing the AllocationAttributes member in NtMapViewOfSection, since ARM3 sections use a different structure.
CORE-13113

svn path=/trunk/; revision=74389
2017-04-23 07:24:44 +00:00
Mark Jansen 20756892b7 [ACPPAGE] Implement custom compatibility mode selection + Expand paths CORE-10375
svn path=/trunk/; revision=74388
2017-04-22 17:11:52 +00:00
Mark Jansen 7edfd6a3a9 [ACPPAGE] Update translations based on slayer. CORE-10375
Translators, please check your language, some text was changed!

svn path=/trunk/; revision=74387
2017-04-22 15:20:25 +00:00
Thomas Faber a8b7dd40e2 [KMTESTS:MM]
- Enable MEM_RESERVED test in SimpleErrorChecks() since it no longer asserts. Patch by Serge Gautherie.
ROSTESTS-109 #resolve

svn path=/trunk/; revision=74386
2017-04-21 08:08:57 +00:00
Hermès Bélusca-Maïto e21e3e4e03 [INPUT.CPL]
- Remove an unneeded header inclusion;
- Fix a sizeof invocation;
- RegEnumKeyExW and RegEnumValueW take their fourth parameter (size of key / value name, resp.) as a size in number of *characters* (and not in number of bytes);
- Add a missing RegCloseKey call in LocaleList_Create.

svn path=/trunk/; revision=74385
2017-04-21 00:22:39 +00:00
Thomas Faber 1836858f0a [NTOS:KE]
- Reset DebugDpcTime before calling timer DPC routines. Avoids spurious "DPC routine > 1 sec" break-ins.

svn path=/trunk/; revision=74384
2017-04-20 17:36:40 +00:00
Thomas Faber ec2dddf4cb [NTOS:MM]
- Avoid reference leaks in failure cases of MmCreateCacheSection
CORE-6931

svn path=/trunk/; revision=74383
2017-04-20 08:58:45 +00:00
Thomas Faber 599c80f8f2 [VGADDI]
- Fix buffer overflow in DIB_BltFromVGA. A byte fits two pixels.

svn path=/trunk/; revision=74382
2017-04-20 07:30:01 +00:00
Eric Kohl e9940a928b [TRANSLATION]
Romanian resources maintenance
Patch by Ștefan Fulea.
CORE-13099

svn path=/trunk/; revision=74381
2017-04-19 22:10:00 +00:00
Mark Jansen fd91fe3337 [SHELL32] Fix for BuildPathsList, this solves some problems showing while copying folders. Patch by 'Gleb'. CORE-8434
svn path=/trunk/; revision=74380
2017-04-19 18:45:33 +00:00
Giannis Adamopoulos 5db681f766 [SHELL32] -CDesktopBrowser: Clone the pidl passed to SHOpenNewFrame as it will later free it itself. This was masked by a hacky cast.
svn path=/trunk/; revision=74379
2017-04-19 16:24:59 +00:00
Thomas Faber ef27450876 [NTOS:MM]
- Never use special pool for prototype PTEs. Avoids "(PointerPte >= (PMMPTE)MmPagedPoolStart) && (PointerPte <= (PMMPTE)MmPagedPoolEnd)" assertion failure in MiDecrementShareCount.
CORE-11474

svn path=/trunk/; revision=74378
2017-04-19 14:40:53 +00:00
Thomas Faber a909a0807a [KERNEL32_WINETEST]
- Improve the test_GetVolumePathNamesForVolumeNameW hack to avoid a stack buffer underrun.
CORE-11474

svn path=/trunk/; revision=74377
2017-04-19 14:08:51 +00:00
Thomas Faber 85f31b899e [OPENGL32]
- Fix uninitialized variable use in IntGetIcdData
CORE-11474

svn path=/trunk/; revision=74376
2017-04-19 13:16:30 +00:00
Thomas Faber 424bbf064b [KMTESTS:OB]
- After ObCreateObject+ObInsertObject a handle close is enough to destroy the object, so do not dereference it in addition. Fixes use after free.
CORE-11474

svn path=/trunk/; revision=74375
2017-04-19 12:21:57 +00:00
Thomas Faber eff26a3a92 [KMTESTS:NPFS]
- Remove tests that cause pool buffer overflows. NtQueryVolumeInformationFile does not validate buffer length for kernel mode callers, so passing an invalid length is not a good test.
CORE-11474

svn path=/trunk/; revision=74374
2017-04-19 11:46:34 +00:00
Thomas Faber 497a20b8a0 [WS2_32][DNSAPI]
- Avoid stack buffer overflow in ParseV4Address
CORE-11474

svn path=/trunk/; revision=74373
2017-04-19 11:14:18 +00:00
Thomas Faber 77ec221feb [GDI32]
- Use the number of WCHARs, not the number of ANSI chars in GetCharABCWidthsA. Fixes stack corruption when running gdi32_winetest:font
CORE-11474

svn path=/trunk/; revision=74372
2017-04-19 10:33:58 +00:00
Eric Kohl ae3886b65f [VARIOUS]
Updating Turkish Translation
Patch by Erdem Ersoy.
CORE-12362

svn path=/trunk/; revision=74371
2017-04-18 17:47:08 +00:00
Thomas Faber 202ae322fb [USER32]
- In RealSystemParametersInfoA/SPI_GETDESKWALLPAPER, write the ansi wallpaper path directly into the user's buffer instead of using an allocation (and overrunning it). Fixes crash when running user32_winetest:sysparams with DPH.
Tangential to CORE-13097

svn path=/trunk/; revision=74370
2017-04-18 14:31:33 +00:00
Giannis Adamopoulos fc00a030f4 [USER32] -CallWindowProc: Call PreWndProc and PostWndProc hooks for dialog messages if the message is not hooked for PreDefDlgProc and PostDefDlgProc.
svn path=/trunk/; revision=74369
2017-04-18 12:35:57 +00:00
Hermès Bélusca-Maïto 3d8292ede6 [CONCFG]: Addendum for r74366: Initialize the console settings information codepage with the current OEM codepage, and read the optional console "CodePage" DWORD registry setting.
CORE-12451

svn path=/trunk/; revision=74368
2017-04-17 23:31:48 +00:00
Hermès Bélusca-Maïto aac777cc7f [CONCFG]: Use 'Success' boolean variable instead of an obscure 'RetVal'.
svn path=/trunk/; revision=74367
2017-04-17 23:28:41 +00:00
Hermès Bélusca-Maïto 417e293fac [CONSOLE.CPL]: Paint the text samples using the correct character set (derived from the current code page).
This e.g. fixes display for the backslash symbol in CJK languages (that should appear as the Chinese "yuan" / Japanese "yen" currency symbol ¥, or the Korean "won" currency symbol ₩).
CORE-12451

svn path=/trunk/; revision=74366
2017-04-17 23:26:07 +00:00
Hermès Bélusca-Maïto 35fae98753 [CONSOLE.CPL]: Add support for Asian fonts & CJK codepage in the console properties dialog.
Based on a patch by Katayama Hirofumi MZ.
CORE-12451

svn path=/trunk/; revision=74365
2017-04-17 23:21:13 +00:00
Eric Kohl de6836080a [AT]
Applied hotfix for russian translation.
Patch by Sergey Stopkin.
CORE-12961

svn path=/trunk/; revision=74364
2017-04-17 22:28:42 +00:00
Eric Kohl ad372d31e3 [NEWDEV]
When the driver installation fails, set the CONFIGFLAG_FAILEDINSTALL flag only if the user checked the 'Do not show this dialog anymore' checkbox.
CORE-13095

svn path=/trunk/; revision=74363
2017-04-17 22:20:44 +00:00
Eric Kohl f7928467e7 [NETID]
Load, display and store the computer description.
Patch by Grzegorz Araminowicz.
- Moved most of the code into separate functions and got rid of its deeply nested structure.
- Added some notification code, so that the Apply button gets enabled when the user changes the description.
CORE-12337

svn path=/trunk/; revision=74362
2017-04-17 21:05:02 +00:00
Thomas Faber 97a27e2c87 [KMTESTS:MM]
- Add some missing newlines and skip()s

svn path=/trunk/; revision=74361
2017-04-17 20:37:26 +00:00
Thomas Faber 602f37c6ae [WIN32K]
Fix automatic resolution change when resizing the VirtualBox window. Based on a patch by Ismael Ferreras Morezuelas.
- Provide a function, PDEVOBJ_vRefreshModeList, to reload the list of display modes
- Call PDEVOBJ_vRefreshModeList from UserEnumDisplaySettings to get an updated list of modes each time
CORE-6742 #resolve

svn path=/trunk/; revision=74360
2017-04-17 20:25:55 +00:00
Thomas Faber 670ebb242c [WIN32K:ENG]
- Split populating the display mode list out from EngpRegisterGraphicsDevice, into its own function, EngpPopulateDeviceModeList. Based on a patch by Ismael Ferreras Morezuelas.
CORE-6742

svn path=/trunk/; revision=74359
2017-04-17 19:44:32 +00:00
Thomas Faber 4677d6bfe0 [NTOS:CC]
- Respect the TruncateSize parameter in CcUninitializeCacheMap. Avoids "freeing dirty VACB" messages for cache views beyond the end of the file.
CORE-12893 #resolve

svn path=/trunk/; revision=74358
2017-04-17 18:37:12 +00:00
Thomas Faber 25db42d246 [NTOS:CC]
- Simplify CcSetFileSizes by using CcPurgeCacheSection
CORE-12893

svn path=/trunk/; revision=74357
2017-04-17 18:13:17 +00:00
Hermès Bélusca-Maïto ef88fe7a1a [CONSOLE.CPL]: Code formatting only (in preparation of a subsequent commit).
svn path=/trunk/; revision=74356
2017-04-17 17:45:18 +00:00
Thomas Faber 73e2aff9c5 [NTOS:CC]
- Implement CcPurgeCacheSection
CORE-12893

svn path=/trunk/; revision=74355
2017-04-17 17:29:10 +00:00
Thomas Faber 880f06c728 [FASTFAT]
- On rename/move, flush parent directory data from cache instead of purging it.
CORE-12893

svn path=/trunk/; revision=74354
2017-04-17 16:54:28 +00:00
Mark Jansen 4923220ed0 [WIN32SS] Add full name support in FontFamilyFillInfo. Patch by Katayama Hirofumi MZ. CORE-10876
svn path=/trunk/; revision=74353
2017-04-17 16:08:38 +00:00
Mark Jansen 7a5cfecf02 [WIN32SS] Add extra logging to failed SURFACE_AllocSurface calls. CORE-13036
svn path=/trunk/; revision=74352
2017-04-17 15:48:56 +00:00
Colin Finck 8c0a8b2873 [ISOHYBRID]
Don't include inttypes.h, which isn't available on MSVC < 2013. Add the 4 needed typedefs to reactos_support_code.h instead.
Fixes CORE-13031

svn path=/trunk/; revision=74351
2017-04-17 13:49:46 +00:00
Colin Finck daf94f98b0 [WINSPOOL]
Added tests for some more basic and newly discovered corner cases of EnumPrintersW.

svn path=/trunk/; revision=74350
2017-04-17 13:40:51 +00:00
Eric Kohl 60f3172c4f [SERVMAN]
Track changes to the general and and recovery pages.
CORE-12743

svn path=/trunk/; revision=74349
2017-04-17 12:48:51 +00:00