Commit graph

63650 commits

Author SHA1 Message Date
James Tabor a2fc6201e1 [UxTheme]
- Fix user side GetScrollBarInfo. See CORE-9225.

svn path=/trunk/; revision=69253
2015-09-16 08:12:52 +00:00
James Tabor ef8a077e12 - Real fix MSVC build?
svn path=/trunk/; revision=69252
2015-09-16 08:06:26 +00:00
James Tabor 7d88148632 - Fix MSVC build?
svn path=/trunk/; revision=69251
2015-09-16 07:55:42 +00:00
James Tabor 22a02b7d74 [User32]
- Fix return for SCROLLBARINFO RECT to use screen coordinates. See CORE-9225.

svn path=/trunk/; revision=69250
2015-09-16 07:13:03 +00:00
James Tabor f21871fbb8 [User32]
- Fix wine sync, Notify parent after capture is released, see CORE-10194.

svn path=/trunk/; revision=69249
2015-09-16 04:15:35 +00:00
Stefan Ginsberg e50245329b [HAL] Get rid off REGISTERCALL ("regparm(3)" for GCC) and replace with good old NTAPI (stdcall). Such an obsession with avoiding stack usage is not healthy nor makes much sense today (or even a long time before today) with processors that have a decent L1 cache, whose "cost of access" is basically the same as to that of a register, and with processors being capable of recognising basic access patterns to ensure frequently used memory (read: stack) is in the cache. Slapping FASTCALL/regparm on frequently used code does not ensure it actually operates faster. You want to know what really hurts performance (and cache)? Slapping FORCEINLINE on everything like if it was some kind of asm macro, making code needlessly bloated.
svn path=/trunk/; revision=69248
2015-09-15 23:03:42 +00:00
Robert Naumann 8c9ca5b5e6 [SHELL33] fix a typo and the icon id's in recyclebin reg script. Now the icons are correct again. CORE-10193
svn path=/trunk/; revision=69247
2015-09-15 21:26:08 +00:00
Hermès Bélusca-Maïto bd86e6260e [NTVDM]
Correctly call the device strategy/interrupt routines. Should fix a bunch of weird errors. This also fixes the NTVDM crash when Command&Conquer terminates, however it doesn't fix the DOS/4GW exception it encounters.
CORE-9678

svn path=/trunk/; revision=69246
2015-09-15 20:09:11 +00:00
Robert Naumann 080c3d0357 use the same file as 33.ico for 142.ico. should fix CORE-10193
svn path=/trunk/; revision=69245
2015-09-15 19:56:53 +00:00
Stefan Ginsberg d2608984c9 Completely disable the debug register assertions in the trap exit code for KDBG as it sets them improperly. These checks should not have been added for KDBG to begin with and would have made any usage of address breakpoints inside KDBG end up in a trap exit breakpoint. Whoever knows KDBG better than I do please investigate. However, enable the DR7 debug check for KD as it handles the debug registers just fine. The likelihood of loading a driver that modifies a debug register (which would be the only other thing triggering this) is pretty slim.
svn path=/trunk/; revision=69244
2015-09-15 17:55:14 +00:00
Thomas Faber ad06f5118a [KMTESTS:MM]
- Keep the number of tests constant in MmMdl because Testman

svn path=/trunk/; revision=69243
2015-09-15 16:46:28 +00:00
Stefan Ginsberg 6b5b096ee2 Fix a load of assumptions about default calling convention, a lot more remain.
svn path=/trunk/; revision=69242
2015-09-15 13:15:28 +00:00
Pierre Schweitzer b987b1571e [CMD]
- Fix a broken check
- Plug a memory leak

svn path=/trunk/; revision=69241
2015-09-15 11:14:58 +00:00
Stefan Ginsberg 520dcf77b7 [FREELDR] Fix a whole bunch of assumptions about default calling convention being cdecl, mostly in code called from/to assembly. Freeldr now links with /Gz (standard calling convention as stdcall), which is what this is all about
svn path=/trunk/; revision=69240
2015-09-15 11:07:28 +00:00
Stefan Ginsberg 266fe632e9 Fix unexpected side-effect of properly defining CDECL for CRT (how is gcc fine with this?)
svn path=/trunk/; revision=69239
2015-09-15 10:48:39 +00:00
Stefan Ginsberg 2d55091cc2 Sprinkle cdecl declarations liberally all around to make a bunch of the base components compile (freeldr compiles but does not link yet). Some of these should really be NTAPI, working on that.
svn path=/trunk/; revision=69238
2015-09-15 10:35:49 +00:00
Robert Naumann 823e30d4bc [SHELL32] Add missing icons. Patch by Jared Smudde CORE-9938
svn path=/trunk/; revision=69237
2015-09-15 10:28:01 +00:00
Thomas Faber eb834cf62f [MSFS]
- Use a NULL timeout for infinite waits instead of waiting for 100 ns. CORE-10188 #resolve
- Wait for available read data in user mode to handle thread termination
- Return STATUS_IO_TIMEOUT also for a zero-length timeout. Fixes Wine tests
- Avoid MmGetSystemAddressForMdl
- Acquiring a mutex is not a UserRequest

svn path=/trunk/; revision=69236
2015-09-15 09:40:30 +00:00
Robert Naumann 6f03428919 [NOTEPAD] Use the correct class name for Notepad. Now we use the same as Wine and Windows. Patch by Ricardo Hanke CORE-5629
svn path=/trunk/; revision=69235
2015-09-15 07:26:09 +00:00
Hermès Bélusca-Maïto 0a920bbf3b [ASM]
Fix the file header description. Consistently use .endm for closing a macro started with .macro.

[NTVDM]
- Add "_clean" targets to generated asm16 targets.
- Fix CMake dependency generation in a somewhat hackish way: I don't know how to cleanly specify the location of generated files for custom targets. And it is also hackish because in a CMake custom command which depends on the COMMAND.COM target, I also need to explicitely say that the command depends on the output file created by the COMMAND.COM target...
- Add COMMAND.COM to the CD files, even if NTVDM doesn't use an external command.com for now. CORE-5221

svn path=/trunk/; revision=69234
2015-09-15 01:59:14 +00:00
James Tabor 3b7e00591f [User32]
- Patch by Alex Henrie : Send BM_SETCHECK before WM_CAPTURECHANGED and add tests.

svn path=/trunk/; revision=69233
2015-09-15 00:15:16 +00:00
Pierre Schweitzer 8c0d5e2546 [MOUNTMGR]
Implement the IOCTL IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_DELETED:
- Implement MountMgrVolumeMountPointDeleteed()
- Rename a struct var to reflect its real usage

svn path=/trunk/; revision=69232
2015-09-14 22:30:13 +00:00
Pierre Schweitzer 7e81961504 [MEH]
Meh.

svn path=/trunk/; revision=69231
2015-09-14 22:10:47 +00:00
Pierre Schweitzer 6f8109e6e1 [MOUNTMGR]
MountMgrVolumeMountPointCreated() returns success if databases are already performing a sync

svn path=/trunk/; revision=69230
2015-09-14 21:52:16 +00:00
Thomas Faber b93363c81c [SHELL32]
- Arch, don't leave unused variables
CORE-9867

svn path=/trunk/; revision=69229
2015-09-14 19:20:55 +00:00
Thomas Faber 94c98733e6 [SHELL32]
- Stop asserting 'ref == 0' in CComCreatorCentralInstance::Term. It's caught enough reference leaks and is mostly just annoying now.
CORE-9867 #resolve

svn path=/trunk/; revision=69228
2015-09-14 19:14:48 +00:00
Thomas Faber e6b660bdce [NTOS:PNP]
- Fix memory leak in IopDetectResourceConflict. While we're at it use pool tagging, kernel handles and avoid INVALID_HANDLE_VALUE.

svn path=/trunk/; revision=69227
2015-09-14 18:58:58 +00:00
Robert Naumann b4dfdfb097 [USETUP] Addendum to r69121 CORE-10058
svn path=/trunk/; revision=69226
2015-09-14 10:40:44 +00:00
Amine Khaldi 3dd1f95aeb [UNIATA] Get back a ros diff spotted by Thomas and use our debug checks in some more places. CORE-10185
svn path=/trunk/; revision=69225
2015-09-14 10:33:09 +00:00
Amine Khaldi 116b6a6b6d [UNIATA] Sync to 0.45h1. CORE-10185
svn path=/trunk/; revision=69224
2015-09-14 10:24:48 +00:00
Amine Khaldi 234897f37a [ACLEDIT] Order the exports, add missing one and make sure the list matches our target (Windows Server 2003 Sp2). By Radek Liška, confirmed and slightly changed by me. CORE-8174
svn path=/trunk/; revision=69223
2015-09-14 09:51:11 +00:00
Amine Khaldi 0e960cab93 [NOTEPAD] Calculate the border around the printing area based on the margins the user has selected in the page setup dialog, instead of using a fixed size one. Brought to you by Ricardo Hanke with minor changes by me. CORE-10184
svn path=/trunk/; revision=69222
2015-09-14 09:32:57 +00:00
Pierre Schweitzer 06cad138ea [MOUNTMGR]
Implement the IOCTL IOCTL_MOUNTMGR_VOLUME_MOUNT_POINT_CREATED:
- Implement WriteRemoteDatabaseEntry() 
- Implement MountMgrVolumeMountPointCreated()

svn path=/trunk/; revision=69221
2015-09-13 22:52:07 +00:00
Stefan Ginsberg d320870f3f Stop using ATTRIB_NORETURN in hal and kernel, replace with the UNREACHABLE macro that both compilers can understand. Also fix up the UNREACHABLE def a bit.
svn path=/trunk/; revision=69220
2015-09-13 20:37:28 +00:00
Amine Khaldi 344dd926a5 [RPCRT4] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69219
2015-09-13 17:01:55 +00:00
Amine Khaldi 2added2367 [SETUP][USETUP][WELCOME] Improve the FILE header section. Brought to you by Adam Stachowicz. CORE-10114
svn path=/trunk/; revision=69218
2015-09-13 16:40:36 +00:00
Amine Khaldi 828c1b5961 [NTDLL] Order the exports and make sure the list matches our target (Windows Server 2003 Sp2). CORE-8174
svn path=/trunk/; revision=69217
2015-09-13 16:38:17 +00:00
Stefan Ginsberg c86151ca6b Hepp didn't work
svn path=/trunk/; revision=69216
2015-09-13 11:46:15 +00:00
Stefan Ginsberg eca683dd62 Give kernel32 a little bit of extra space to see if it makes the hybrid server not crash.
svn path=/trunk/; revision=69215
2015-09-13 11:40:12 +00:00
Stefan Ginsberg 967f47e576 Define __RELFILE__ the same for an -O0 build so the tests don't get edgy when comparing it to our optimized builds.
svn path=/trunk/; revision=69214
2015-09-13 11:08:16 +00:00
Thomas Faber ce9619abe7 [RAPPS][RAPPS_NEW]
- Don't redefine the default "Application" facility in the .mc file. Fixes MSVC warning

svn path=/trunk/; revision=69213
2015-09-13 06:34:23 +00:00
Thomas Faber a5ec9a07aa [MSVC]
- Silence warning LNK4104 (Export of symbol 'X' should be PRIVATE) where appropriate

svn path=/trunk/; revision=69212
2015-09-13 06:22:58 +00:00
Hermès Bélusca-Maïto f4d255aec6 [COMMAND]
- Fix the GCC macro for structure declaration, so that referencing an offset to the structure doesn't fail anymore (ie. doing "mov dx, offset MyStruct" doesn't assemble to "mov dx, 0x100").
This fixes NTVDM not being able to start any DOS app. Reported by Aleksander Rechitskiy.
CORE-9677 CORE-9679 #resolve
CORE-9678

[NTVDM]
- Fix newline in DPRINT.

svn path=/trunk/; revision=69211
2015-09-13 01:18:50 +00:00
Stefan Ginsberg 427c11919f [KDBG] Don't bring down the kernel either when int2c-ing from user mode
svn path=/trunk/; revision=69210
2015-09-12 22:01:10 +00:00
Stefan Ginsberg 2c81e1e2b1 - Make KDBG handle assertion failures/int2C the same way as breakpoints/int3 (that is, ignore them from user-mode by default) for the time being until an internal prompt-routine is implemented.
svn path=/trunk/; revision=69209
2015-09-12 21:44:48 +00:00
Hermès Bélusca-Maïto 0b875af84a [NTVDM]: Reenable the mouse driver that I disabled by error in my previous commit.
svn path=/trunk/; revision=69208
2015-09-12 20:25:45 +00:00
Eric Kohl 8a0491589a [INTL]
Set the system default language and codepages.
CORE-10075

svn path=/trunk/; revision=69207
2015-09-12 20:24:10 +00:00
Hermès Bélusca-Maïto a7e5f0c49e [NTVDM]: Fix parentheses. Thanks GCC.
svn path=/trunk/; revision=69206
2015-09-12 20:13:22 +00:00
Stefan Ginsberg 3cdcabd3c9 [KDBG]: Add new command "reboot" that does exactly what it says.
svn path=/trunk/; revision=69205
2015-09-12 20:10:43 +00:00
Hermès Bélusca-Maïto 1c51b39201 [NTVDM]
- Add support for DOS VDM reentry, i.e. the fact that a DOS app can start a 32-bit app, which in turn can start another DOS app, ad infinitum...
CORE-9711 CORE-9773 #resolve
- Add a small COMMAND.COM which is, for now, completely included in NTVDM. This COMMAND.COM is needed in order to support reentrancy. The fact that I chose to put it inside NTVDM is that any user can use instead his/her own COMMAND.COM, while retaining the possibility to perform VDM reentrancy (on Windows, if you remove the COMMAND.COM in windows\system32 and replace it with your own, you will break VDM reentrancy on windows' ntvdm).
CORE-5221 #resolve #comment I choose for the moment an internal COMMAND.COM, but you can recompile NTVDM to use it externally instead.

Global remarks:
- Quite a few DPRINTs were added for diagnostic purposes (since DOS reentrancy is a new feature), to be sure everything behaves as expected when being used with a large panel of applications. They will be removed when everything is OK.
- Support for current directories and 16/32-bit environment translation (in ntvdm + basevdm-side) remain to be implemented.

Other changes:
- Improve a bit the VDM shutdown code by gathering it at one place (there's still room for other improvements).
- Add suppport for properly pausing/resuming NTVDM.
- Bufferize some console events before dispatching.

Have fun ;^)

svn path=/trunk/; revision=69204
2015-09-12 20:09:25 +00:00