Commit graph

67897 commits

Author SHA1 Message Date
Giannis Adamopoulos 47ee20b4ab [USER32_APITEST]: Add more tests for RegisterClassEx.
svn path=/trunk/; revision=73747
2017-02-07 12:11:26 +00:00
Mark Jansen 21dd348b8e [GDI32_APITEST] Add tests for font creation. Patch by Katayama Hirofumi MZ. CORE-6621
svn path=/trunk/; revision=73746
2017-02-07 11:37:36 +00:00
Mark Jansen f605f83671 [CRT_APITEST] Add additional test for __getmainargs
svn path=/trunk/; revision=73745
2017-02-07 10:35:35 +00:00
Mark Jansen b926d3c9a4 [WIN32SS] Mute a major spammer in AHK tests.
svn path=/trunk/; revision=73744
2017-02-07 10:33:42 +00:00
Mark Jansen 9607bedb48 [BOOTLIB] Additional EfiPrintf conversion like r73736 for MSVC 2013
svn path=/trunk/; revision=73743
2017-02-07 10:32:20 +00:00
Alex Ionescu 49216293a4 [BOOTLIB]: Implement MmFwGetMemoryMap when virtual memory is being enabled.
[BOOTLIB]: Implement MmPapAllocatePagesInRange when virtual memory is being enabled.
What's left now is implementing extension for the PA allocator when VM is enabled.

svn path=/trunk/; revision=73742
2017-02-07 04:26:21 +00:00
Alex Ionescu 3c9397513f [BOOTLIB]: Finish implementing Mmx86pMapMemoryRegions.
svn path=/trunk/; revision=73741
2017-02-07 03:34:49 +00:00
Alex Ionescu 6e9b30c86a [BOOTLIB]: Implement most of Mmx86pMapMemoryRegions. Just missing the UEFI mappings now.
svn path=/trunk/; revision=73740
2017-02-07 01:52:57 +00:00
Alex Ionescu 58f2a22a11 [BOOTLIB]: Don't use PTE_BASE/PDE_BASE in bootlib. Use MmPteBase and MmPdeBase instead.
[BOOTLIB]: Implement MmDefpMapPhysicalAddress, MmDefpTranslateVirtualAddress. Fix definition of Mmx86MapPhysicalAddress.

svn path=/trunk/; revision=73739
2017-02-07 01:35:11 +00:00
Alex Ionescu 036af3b730 [BOOTLIB]: Implement BlMmIsTranslationEnabled and MmMapPhysicalAddress. MmDefpMapPhysicalAddress is missing at this point.
svn path=/trunk/; revision=73738
2017-02-06 23:13:47 +00:00
Hermès Bélusca-Maïto 6050891f74 [USERENV]
- Fix some DPRINTs;
- Add parameter validation in CreateUserProfileExW;
- Return the directory path of the created profile in CreateUserProfileExW, if the user wants it;
- Add value type validation for RegQueryValueExW calls;
- Use ARRAYSIZE where needed;
- Add parameter validation in GetAllUsersProfileDirectoryA, GetDefaultUserProfileDirectoryA;
- Correctly return error code in GetAllUsersProfileDirectoryW, GetDefaultUserProfileDirectoryW, GetProfilesDirectoryW and GetUserProfileDirectoryW. Should fix the userenv_apitest:GetProfileDirs tests.

svn path=/trunk/; revision=73737
2017-02-06 22:58:20 +00:00
Hermès Bélusca-Maïto e324a62898 [BOOTLIB]: Make the EfiPrintf with __FUNCTION__ work also on GCC. Also, on MSVC (2010 at least), concatenating without converting __FUNCTION__ to unicode and adding 'L' for the "\r\n" returned error C2308.
svn path=/trunk/; revision=73736
2017-02-06 22:46:57 +00:00
Hermès Bélusca-Maïto 3f2554487e [USERENV_APITEST]: Add some simple tests for Get[AllUsers|DefaultUser|User]Profile[s]Directory APIs (checking return values & last errors).
svn path=/trunk/; revision=73735
2017-02-06 22:14:50 +00:00
Alex Ionescu 4578326e06 [BOOTLIB]: Finish implementation of MmMdRemoveRegionFromMdlEx for other straddling scenarios.
[BOOTLIB]: Implement Mmx86MapInitStructure and most of Mmx86InitializeMemoryMap.
[BOOTLIB]: Continue implementation of MmDefInitializeTranslation.
[BOOTLIB]: More explicitly mark paths which are not yet implemented for paging mode yet (but only on compilers that don't give compiler errors when trying to use __FUNCTION__.

svn path=/trunk/; revision=73734
2017-02-06 22:11:21 +00:00
Pierre Schweitzer 6e89272bef [FASTFAT]
Take the volume label into account when comparing the FAT volumes in case of a verify.
This helps avoiding remounting every removable device on verify. Current hack is only kept for FATX volumes for now.

svn path=/trunk/; revision=73733
2017-02-06 19:43:48 +00:00
Alex Ionescu 1566f90e46 [BOOTLIB]: Don't use __getcallerseflags() in Archx86IsCpuidSupported -- __readeflags should be good enough.
svn path=/trunk/; revision=73732
2017-02-06 19:34:15 +00:00
Eric Kohl 61c4b92f67 [ACCESS]
Get rid of the calculated control positions and sizes.

svn path=/trunk/; revision=73731
2017-02-06 19:22:48 +00:00
Alex Ionescu d934f98c23 Cleanly compiles with both VS/GCC on my system even though bcd.h is not included. I have no idea how. Evidence in IRC channel.
svn path=/trunk/; revision=73730
2017-02-06 19:21:01 +00:00
Alex Ionescu 8cee5635e7 [BOOTLIB]: Implement MmPaReserveSelfMapPages, MmPaReleaseSelfMapPages
[BOOTLIB]: Stub MmDefMoveVirtualAddressRange, MmDefZeroVirtualAddressRange, MmDefRelocateSelfMap, MmDefpDestroySelfMap, MmDefpUnmapVirtualAddress, MmDefpRemapVirtualAddress, MmDefpMapPhysicalAddress, MmDefpTranslateVirtualAddress, 
[BOOTLIB]: Implement MmDefpFlushTlbEntry, MmDefpFlushTlb
[BOOTLIB]: Implement MmPaReleaseSelfMapPages, MmPaReserveSelfMapPages.
[BOOTLIB]: Implement Archx86IsCpuidSupported, BlArchIsCpuIdFunctionSupported, BlArchCpuId, BlArchGetPerformanceCounter.
[BOOTLIB]: Implement MmArchInitialize.
[BOOTLIB]: Implement most of MmDefInitializeTranslation. Almost ready to turn on paging.

svn path=/trunk/; revision=73729
2017-02-06 19:07:17 +00:00
Hermès Bélusca-Maïto 5267b02c28 [USERENV]
- Remove old file comment header (the code license is already present in COPYING in the main directory);
- Fix DPRINT;
- Use new-style annotations for exported APIs.

svn path=/trunk/; revision=73728
2017-02-06 18:57:57 +00:00
Pierre Schweitzer 9869fa33f8 [FASTFAT]
Optimize the FAT mount process: there is no need to recognize the FS twice on mounting.

svn path=/trunk/; revision=73727
2017-02-06 18:14:01 +00:00
Hermès Bélusca-Maïto 826536350c [RPCSS][THMSVC]: Perform the internal cleanup tasks before calling SetServiceStatus with 'dwCurrentState = SERVICE_STOPPED', because otherwise (if internal cleanup is done after calling SetServiceStatus) the SCM could kill the service in the middle of its cleanup tasks.
[SVCHOST][WINLOGON][LSASRV][SAMSRV]: Use the SDK-defined constant RPC_C_PROTSEQ_MAX_REQS_DEFAULT instead of hardcoding its value in the RpcServerUseProtseqEpW calls.

svn path=/trunk/; revision=73726
2017-02-06 16:56:32 +00:00
Giannis Adamopoulos 0b7e31082f [USER32_APITEST] -Add tests for global classes and versioned classes for RegisterClassEx.
svn path=/trunk/; revision=73725
2017-02-06 16:33:25 +00:00
Hermès Bélusca-Maïto 772d8095c2 The 'UNIMPLEMENTED' macro call should be followed explicitely by a semicolon.
svn path=/trunk/; revision=73724
2017-02-06 15:49:23 +00:00
Hermès Bélusca-Maïto e96ee73cba [EXPLORER]: One indentation and one return value fix.
svn path=/trunk/; revision=73723
2017-02-06 15:18:33 +00:00
Alex Ionescu 27f761d0a3 [BOOTLIB]: Clarify that BlMemoryReserved == BlMemoryBelow1MB
[BOOTLIB]: Implement EfiAllocatePages, EfiFreePages for Protected Mode.
[BOOTLIB]: Fix a "Todo" in MmFwGetMemoryMap: We now free the EFI buffer used for the memory map itself, and unmap it from the memory map (which would show it as 'in-use' while we're dumping it).

svn path=/trunk/; revision=73722
2017-02-06 03:14:14 +00:00
Alex Ionescu 88dcf31856 [BOOTLIB]: Implement MmArchTranslateVirtualAddress for non-paging mode. Stub Mmx86TranslateVirtualAddress.
[BOOTLIB]: Support EfiPrintf in Protected mode.
[BOOTLIB]: Support EfiGetMemoryMap in Protected Mode.

svn path=/trunk/; revision=73721
2017-02-05 22:34:47 +00:00
Alex Ionescu 0348b64178 [BOOTMGR]: Fix more gcc warnings. Maybe we should stop building GCC with /Wall but MSVC with /Wnothing?
[BOOTLIB]: Hack EfiPrintf temporarily so we can get print outs even in "Protected mode".
[ROSLOAD]: Begin implementation. First, many bootlib fixes needed.

svn path=/trunk/; revision=73720
2017-02-05 22:17:07 +00:00
Alex Ionescu 968d02e55c [BOOTLIB]: Fix bug in MmPapFreePhysicalPages.
svn path=/trunk/; revision=73719
2017-02-05 22:03:27 +00:00
Alex Ionescu 481f7c440a [BOOTMGR]: Finish alloc/free test. It shows that it seems? to be working ok? :-)
[BOOTLIB]: Wrap-up implementation of MmPapFreePhysicalPages. We no longer leak RAM.

svn path=/trunk/; revision=73718
2017-02-05 22:02:24 +00:00
Eric Kohl bcb2480c3c [VARIOUS]
- Complete and updated translation for: runonce, winlogon, deskadp, deskmon, slayer, user32 and winsrv.
- Added right-to-left extended style for all dialogs.
Patch by Baruch Rutman.
CORE-6904 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=73717
2017-02-05 21:52:49 +00:00
Alex Ionescu 16fa7d18c5 [BOOTMGR]: Fix bug in test.
[BOOTLIB]: Fix bug in MmMdFindDescriptorFromMdl.
[BOOTLIB]: Implement MmFwFreePages.
[BOOTLIB]: Implement most of MmPapFreePhysicalPages. The rest is coming next.
[BOOTMGR]: Add test for alloc/free.

svn path=/trunk/; revision=73716
2017-02-05 21:50:14 +00:00
Eric Kohl b5f0b7d584 [APPWIZ]
Replace resource metrics by fixed sizes.

svn path=/trunk/; revision=73715
2017-02-05 21:46:51 +00:00
Eric Kohl 12a284e9eb [CPL]
Remove unused resource metrics.

svn path=/trunk/; revision=73714
2017-02-05 21:15:25 +00:00
Alex Ionescu 0cf270e3ca [BOOTLIB]: Fix GCC build. Maybe I should stop using MSVC.
svn path=/trunk/; revision=73713
2017-02-05 20:52:00 +00:00
Alex Ionescu 6eb6728488 [BOOTMGR]: Add the basics of some memory allocator/descriptor tests.
[BOOTLIB]: Implement MmMdFindDescriptorFromMdl (broken?)
[BOOTLIB]: Implement MmMdFindDescriptor.
[BOOTLIB]: Implement BlMmFreePhysicalPages.
[BOOTLIB]: Implement MmPapFreePages for physical memory translation scenario only.

svn path=/trunk/; revision=73712
2017-02-05 19:55:49 +00:00
Kamil Hornicek b4bf1a0c92 [SPIDER]
- Add a null pointer check. CID 500248
- Check for a memory allocation failure.
- Improve Czech resources.

svn path=/trunk/; revision=73711
2017-02-05 18:17:27 +00:00
Pierre Schweitzer 95415c2f28 [FASTFAT]
Addendum to r73709:
- Also apply the override to FATX partitions

CORE-9988

svn path=/trunk/; revision=73710
2017-02-05 17:14:42 +00:00
Pierre Schweitzer 8987f5fa46 [FASTFAT]
- Modify the VfatHasFileSystem() so that it allows a DO_VERIFY_VOLUME override, when required
- Fix the implementation of VfatVerify() so that it actually really does the job it's supposed to do:
  - it will now use the appropriate DO for verification (lower DO and not volume DO)
  - it will properly clear the DO_VERIFY_VOLUME flag
- Introduce a hack in VfatVerify() so that in case of removal media, if FATInfo is the same, it forces a dismount

Effects of this commit:
- It properly fixes CORE-9988. That means if a FAT media changes, now FastFAT properly handles it, and does not go to a code path producing (expected!) BSODs
- The hack introduces a hacky way to make ReactOS remount FAT floppies when changed

In short, changing FAT floppy in ReactOS doesn't make it BSOD any longer.

CORE-9988

svn path=/trunk/; revision=73709
2017-02-05 17:07:31 +00:00
Kamil Hornicek 73bb103c3c [KBSWITCH]
- Don't fall through to the default label. CID 515166

[NTUSER]
- Fix a copypasta.

[USER32]
- Fix computing of HKL for layouts with Layout id.
- Don't call NtUserLoadKeyboardLayoutEx with bogus keyboard layout id.
- Ideally LoadKeyboardLayout should return the default system layout on failure - to be continued.

svn path=/trunk/; revision=73708
2017-02-05 15:42:23 +00:00
Alex Ionescu 66a30f987b [BOOTLIB]: Stub MmPapFreePages
[BOOTLIB]: Implement BlImgUnallocateImageBuffer
[BOOTLIB]: Stub BlMmTranslateVirtualAddress

svn path=/trunk/; revision=73707
2017-02-05 15:14:44 +00:00
Giannis Adamopoulos 1b634b38ec [BROWSEUI]
-CExplorerBand: Commit the last part of the work submitted by Sylvain Deverre. Sorry for not committing all this time. Unfortunately some parts were changed and some parts don't work well and we need to debug it a bit.
CORE-10838

svn path=/trunk/; revision=73706
2017-02-05 13:41:45 +00:00
Giannis Adamopoulos 2ee2be0a07 [SHELL32] -CDesktopBrowser: Implement handling FCIDM_DESKBROWSER_REFRESH.
svn path=/trunk/; revision=73705
2017-02-05 12:35:47 +00:00
Giannis Adamopoulos 5e63cb55f0 [SHELL32] -The only change I did in the previous patch was buggy.
svn path=/trunk/; revision=73704
2017-02-05 12:27:53 +00:00
Giannis Adamopoulos 029cc4a9a1 [SHELL32]
- Implement View tab in Folder options dialog.
CORE-12540
Patch by Katayama Hirofumi MZ with a tiny improvement by me to refresh explorer in a better way.

svn path=/trunk/; revision=73703
2017-02-05 12:15:59 +00:00
Giannis Adamopoulos af6491bc87 [BROWSEUI] - CShellBrowser: Implement Refresh menu item in the View menu.
svn path=/trunk/; revision=73702
2017-02-05 11:01:24 +00:00
Thomas Faber 25382c0600 [FATTEN][KBDTOOL][RSYM]
- Fix clang warnings

svn path=/trunk/; revision=73701
2017-02-05 10:46:29 +00:00
Thomas Faber 3f11bbbaf1 [BOOTLIB]
- Add missing asm dependency

svn path=/trunk/; revision=73700
2017-02-05 10:45:50 +00:00
Kamil Hornicek 4b762458f9 [CONTROL]
- Use strsafe functions. CID 515200

svn path=/trunk/; revision=73699
2017-02-05 10:28:42 +00:00
Thomas Faber 82fdf83109 [ZLIB]
- Update to 1.2.11
CORE-12753 #resolve

svn path=/trunk/; revision=73698
2017-02-05 10:28:40 +00:00