Commit graph

46912 commits

Author SHA1 Message Date
Jérôme Gardou da1b81d04f [CMAKE]
- do not use half supported precompiled header wrongly for rosautotests

svn path=/trunk/; revision=52483
2011-06-27 17:20:02 +00:00
Timo Kreuzer 0f06493485 [KDCOM]
Use KeStallExecutionProcessor, once its ready (after KdDebuggerInitialize1 was called) for the receive timeout. Repeat 100 times with 1 ms wait. This seems to work quite well, but might be tuned for better values.

svn path=/trunk/; revision=52482
2011-06-27 16:51:00 +00:00
Timo Kreuzer 2f7cf157d8 [CRT]
On amd64 builds, where we don't have underscored symbols, create an alias fabs for the function _fabs, since we cannot create fabs as a label directly

svn path=/trunk/; revision=52481
2011-06-27 10:50:09 +00:00
Timo Kreuzer 0d984ab4e1 [NTOSKRNL]
Use KeRainseIrql and KeLowerIrql instead of the fastcall versions. Fixes amd64 build

svn path=/trunk/; revision=52479
2011-06-27 00:20:47 +00:00
Timo Kreuzer 157023269f [CRT]
- comment out gcc specific code on MSVC builds
- add some files for amd64 to msvcrtex

svn path=/trunk/; revision=52478
2011-06-26 22:57:12 +00:00
Timo Kreuzer e304414af7 [WINE]
- demote an #error to a #pragma warning for amd64 MSVC builds

svn path=/trunk/; revision=52477
2011-06-26 22:26:42 +00:00
Timo Kreuzer 5074cf8d1e [SPEC2DEF]
change the way import libs are created for MSVC. Since we don't use underscores in symbols on other architectures than x86, its not possible to create labels like "div", since it conflicts with the opcode. Therefore add a prefix and redirect all exports to the prefixed version when building an importlib

svn path=/trunk/; revision=52476
2011-06-26 22:23:08 +00:00
Timo Kreuzer b32da944f7 [CABMAN/CDMAKE]
check for _WIN32 instead of WIN32, fixes compilation with amd64 toolchain

svn path=/trunk/; revision=52475
2011-06-26 22:17:01 +00:00
Timo Kreuzer c83e44a670 [CMAKE]
Patch by Samuel Serapion:
Fix configure script and add support for CodeBlocks and Eclipse

svn path=/trunk/; revision=52474
2011-06-26 22:05:31 +00:00
Timo Kreuzer 871ee92c7b [CMAKE]
revert r52460, r52463, r52468 on behalf of Jerome
it wrongly gave name decorations to export

svn path=/trunk/; revision=52473
2011-06-26 21:29:55 +00:00
Timo Kreuzer a7f4dd2344 [FREELDR]
Fix amd64 build of setupldr as well.

svn path=/trunk/; revision=52472
2011-06-26 18:06:19 +00:00
Eric Kohl 39384c9a3f [REGEDIT]
Add ability to parse and display REG_RESOURCE_LIST values.

svn path=/trunk/; revision=52471
2011-06-26 16:19:33 +00:00
Eric Kohl 9a3e62efb6 [NDK]
Add missing interrupt resource descriptor flags.

svn path=/trunk/; revision=52470
2011-06-26 11:29:17 +00:00
Timo Kreuzer 62b74e4696 [FREELDR]
Fix amd64 build. It doesn't work yet

svn path=/trunk/; revision=52469
2011-06-26 10:49:22 +00:00
Jérôme Gardou 76c6c9e3e4 [CMAKE]
- add back add_importlib_target for def files, w32kdll relies on it.

svn path=/trunk/; revision=52468
2011-06-26 10:21:57 +00:00
Rafal Harabien 28157f42c1 [MSTSC][USETUP]
- Fix MSVC warnings
- Remove duplicated code in usetup progress bar

svn path=/trunk/; revision=52467
2011-06-26 10:08:31 +00:00
Timo Kreuzer 6641b0995e [PSDK]
Samuel Serapion:
Fix duplicate definitions on amd64 build

svn path=/trunk/; revision=52466
2011-06-26 09:37:59 +00:00
Timo Kreuzer f8c949daa5 [CMAKE]
Patch by Samuel Serapion:
Make configure.cmd check for presence of cmake and detect jom

svn path=/trunk/; revision=52465
2011-06-26 09:19:24 +00:00
Alex Ionescu 2672d225f9 [WINE/INCLUDE]: Fix build on OS X, which uses a slightly different version of fnctl.h that doesn't use HAVE_XXX but just _XXX.
svn path=/trunk/; revision=52464
2011-06-25 19:25:54 +00:00
Jérôme Gardou b9288855a2 [CMAKE]
- fix typo

svn path=/trunk/; revision=52463
2011-06-25 19:16:08 +00:00
Timo Kreuzer cfb6386b45 [SETUPLDR]
Display a message box and bail out if loading imported dlls failed

svn path=/trunk/; revision=52462
2011-06-25 18:52:38 +00:00
Amine Khaldi 579adc153a [CMAKE]
* Add rapps, ftp and dwnl to msvc build.

svn path=/trunk/; revision=52461
2011-06-25 18:48:38 +00:00
Jérôme Gardou 01a4049405 [CMAKE]
- unify spec2def and add_importlib_target, thanks to cmake_parse_arguments.
  - also generate stub files only when necessary.
  - better precompiled header support, commented out as it wasn't tested on any other machine than mine, and it depends on cmake features which don't exist yet.
For now only for gcc toolchain

svn path=/trunk/; revision=52460
2011-06-25 18:34:03 +00:00
Timo Kreuzer efd8902582 [BOOTSECTOR]
Fix a typo in a comment

svn path=/trunk/; revision=52459
2011-06-25 17:58:47 +00:00
Timo Kreuzer 54d5d9924b [CMAKE]
Remove _DEBUG definition.

svn path=/trunk/; revision=52458
2011-06-25 17:56:17 +00:00
Timo Kreuzer 395f4ffea6 [ASM]
- Fix Zw-systemcall stubs on MSVC
- Fix systemcall return stubs on MSVC
-> MSVC kernel boots and usetup works!
Didn't test anymore, because there is a massive atapi debug spam

svn path=/trunk/; revision=52457
2011-06-25 16:48:44 +00:00
Rafal Harabien 4504d4c686 [MSPAINT]
- Select selection tool after pasting from clipboard

svn path=/trunk/; revision=52456
2011-06-25 14:42:24 +00:00
Rafal Harabien fa74282a41 [MSPAINT]
- Fix MSVC warnings

svn path=/trunk/; revision=52455
2011-06-25 14:34:52 +00:00
Sylvain Petreolle b55c5995a4 [OLE32]
Fix comcat build, DllGetClassObject has to remain public.

svn path=/trunk/; revision=52454
2011-06-25 14:30:54 +00:00
Rafal Harabien 352fd948b1 [VIDEOPRT]
- Fix MSVC warnings

svn path=/trunk/; revision=52453
2011-06-25 14:10:19 +00:00
Timo Kreuzer 6d9cf47ce2 [FEELDR]
- Don't try to load referenced dlls in any other dir than system32. A second attempt would fail on the first dll that was already loaded and the function would bail out before any missing dll could be loaded. This worked only by chance on gcc builds, because the 1st import was bootvid, which was always loaded in the 2nd attempt from system32, and the function failed after that, since hal and kdcom were already loaded.

svn path=/trunk/; revision=52452
2011-06-25 13:52:47 +00:00
Rafal Harabien de4cc449db [OLE32][SYSDM][DESK]
- Fix MSVC warnings

svn path=/trunk/; revision=52451
2011-06-25 13:49:48 +00:00
Rafal Harabien a40188b18a [NTOSKRNL]
- Fix some MSVC warnings
- Fix typo in IoReleaseRemoveLockEx

svn path=/trunk/; revision=52450
2011-06-25 10:26:59 +00:00
Timo Kreuzer 5dd7ba690b [HAL]
- Use pushfd instead of pushf in asm code
- Don't mix UCHARs and enums in bitfields, MSVC really doesn't like that

svn path=/trunk/; revision=52449
2011-06-24 23:04:13 +00:00
Amine Khaldi 454d9856e3 [CMAKE]
* Add winkd kdcom to the ISOs.

svn path=/trunk/; revision=52448
2011-06-24 22:46:55 +00:00
Cameron Gutman a77b5fde2c [IP]
- Set address length in the TDI address struct
- Simplify copying the address
- Zero the sin_zero member

svn path=/trunk/; revision=52447
2011-06-24 22:35:29 +00:00
Aleksey Bragin 2d89dd3da3 [NTDLL/LDR]
- The long awaited LDR rewrite, a commit for testing the new implementation. In case of serious problems it may be reverted (revert should be approved by me).
- Its features include:
* A proper ...everything. Process, thread initialization codes, DLL loading (including compatible path lookup, and compatible/proper loading order of the dependent DLLs, including their initialization) and mapping and section creation, reference counting, relocations, good and understandable PE code for walking import descriptor, snapping, etc etc. Hacks--; GoodCode++;
* Activation contexts operations are now being performed compatible to how Windows performs them (though the actual actctx implementation is still Wine's, it was modified to be compatible). Previously, actctx stuff was added to the ldr code like a pepper is added to the soup: in different places until it starts to work.
* Partial DLL redirection implementation.
* Possibility to support Shim engine and app compat stuff in future.
* More cool stuff, just browse the code.
- I fixed all regressions I could find but one (hang during shutdown of the 3rd stage). The purpose of this commit is to seek and destroy the regressions I couldn't find (if there are any).
- Some of the old rarely called ldr code still remains in startup.c and utils.c. They are subject to be rewritten/removed soon, and every remaining old function is marked with a respective DPRINT1 to see when it's being called.

svn path=/trunk/; revision=52446
2011-06-24 21:30:09 +00:00
Amine Khaldi 39b4073643 [CMAKE]
* Disable kdbg and enable _WINKD_ by default for msvc builds.

svn path=/trunk/; revision=52445
2011-06-24 21:28:43 +00:00
Timo Kreuzer 3412182c8e [NTOSKRNL]
Fix MSVC warnings

svn path=/trunk/; revision=52444
2011-06-24 15:52:19 +00:00
Cameron Gutman f6485fab90 [AFD]
- Queue the user-mode connect IRP before calling TdiConnect to avoid a race if the TDI_CONNECT IRP is completed before we get a chance to queue the user-mode IRP to accept the connection
- Change the non-blocking TDI helper functions to always return STATUS_PENDING if the completion function will be called to avoid duplicate handling of IRPs

svn path=/trunk/; revision=52441
2011-06-24 14:06:48 +00:00
Amine Khaldi b1bcc80fd3 [CMAKE]
* Fix psdk and dxsdk in the USER_WDK_HEADERS mode.

svn path=/trunk/; revision=52440
2011-06-24 12:12:27 +00:00
Amine Khaldi 9622e8516f [CMAKE]
* Add a way to use WDK headers (psdk, crt and ddk) instead of ours. To use it, just alter USE_WDK_HEADERS in configure.cmd to be 1 instead of 0.

svn path=/trunk/; revision=52439
2011-06-24 12:08:57 +00:00
Cameron Gutman 0710002caa [MSAFD]
- Fail SIO_GET_EXTENSION_FUNCTION_POINTER
- Fixes the crash during ws2_32_winetest sock
- In my testing, "sock: 4374916 tests executed (0 marked as todo, 93 failures), 6 skipped."

svn path=/trunk/; revision=52438
2011-06-24 04:31:31 +00:00
Cameron Gutman f581e4cb37 [IP]
- Fix copying of the remote address when satisfying an accept request
- accept() and WSAAccept() no longer report strange peer addresses
- Fixes a few ws2_32_winetest sock tests

svn path=/trunk/; revision=52437
2011-06-24 03:35:30 +00:00
Cameron Gutman f16fa41fb2 [VFATLIB]
- Don't overwrite format status with lock status

svn path=/trunk/; revision=52436
2011-06-24 01:36:32 +00:00
Cameron Gutman a3b61053bc [VFATLIB]
- Lock the volume before formatting to prevent concurrent access during formatting
- This should (in theory) fix our formatting issue on mounted devices but currently we don't support FSCTL_LOCK_VOLUME in our FS drivers

svn path=/trunk/; revision=52435
2011-06-23 22:34:03 +00:00
James Tabor a50aff948b - Fix debug build.
svn path=/trunk/; revision=52434
2011-06-23 22:25:50 +00:00
Sylvain Petreolle a4e05ed476 [CMAKE]
Fix mshtml.tlb build with Visual Studio.
With mshtml_tlb and mshtml.tlb targets, the solution contained 2 mshtml_tlb targets.

svn path=/trunk/; revision=52433
2011-06-23 09:41:36 +00:00
Timo Kreuzer b4e4d6e5c4 [NTOSKRNL]
Optimize KiSystemCallTrampoline inline assembly for MSVC. save one register, use eax for the handler address and don't assign to an intermediate variable before returning (hint by Alex)

svn path=/trunk/; revision=52430
2011-06-22 20:15:58 +00:00
Timo Kreuzer 590a071060 [NTOSKRNL/HAL]
- Fix a bug is MSVC inline assembly
- use iretd instead of iret
the msvc compiled kernel boots a bit further now

svn path=/trunk/; revision=52429
2011-06-22 19:04:28 +00:00