Commit Graph
3455 Commits
Author SHA1 Message Date
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
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
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
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
Daniel Reimer 70452865a7 [NTVDM]
Update German translation

svn path=/trunk/; revision=69853
2015-11-08 16:27:39 +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
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
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 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
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
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
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
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 3128be5640 [TRANSLATIONS] Spanish translation update by Ismael Ferreras Morezuelas. CORE-10325
svn path=/trunk/; revision=69560
2015-10-17 14:07:04 +00:00
Amine Khaldi 04cf45ec29 [NTVDM] Revert r69435.
svn path=/trunk/; revision=69438
2015-10-04 11:49:28 +00:00
Amine Khaldi f24e24d07c [NTVDM] Improve the PCH situation.
svn path=/trunk/; revision=69435
2015-10-03 21:47:46 +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 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
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
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
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
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
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 c405397385 [NTVDM] Update German translation
svn path=/trunk/; revision=69378
2015-09-27 16:28:27 +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
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
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
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 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
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
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
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