Commit graph

62745 commits

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