Commit graph

63454 commits

Author SHA1 Message Date
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