Commit graph

38316 commits

Author SHA1 Message Date
Gregor Schneider 7dc02145d2 [Temp] add some checkpoints to narrow the mysterious buildserver msvcrt test crash position
svn path=/trunk/; revision=42427
2009-08-06 14:23:40 +00:00
Gregor Schneider 44007e0af4 -Increase array size to allow proper string termination (MSVC warning #C4045)
-The code correctly copies only the first TCHAR4 value being the string itself

svn path=/trunk/; revision=42426
2009-08-06 12:45:11 +00:00
Stefan Ginsberg 740e3ee947 - MSVC fix: static __inline__ -> FORCEINLINE
svn path=/trunk/; revision=42425
2009-08-06 11:59:20 +00:00
Gregor Schneider f5a461d8bf Switch from time to time_new 2/2:
-Rename time_new to time

svn path=/trunk/; revision=42423
2009-08-06 11:38:09 +00:00
Gregor Schneider bb36c210f0 Switch from time to time_new 1/2:
-Get updated headers into place, prepare rbuild file, delete old dir

svn path=/trunk/; revision=42422
2009-08-06 11:37:09 +00:00
Aleksey Bragin c2b61c7b42 - Add PsGetThreadId declaration.
svn path=/trunk/; revision=42419
2009-08-06 11:16:42 +00:00
Stefan Ginsberg c63b98f537 - crt: Use ANSI C types
- math.h: Move nonstandard inline using nonstandard function into nonstandard group
- crtdefs.h: Don't disable non-ANSI C definitions for MSVC only -- the behaviour should be the same for all compilers, so always disable them -- fixes various msvc build errors introduced by 42369.

svn path=/trunk/; revision=42418
2009-08-06 11:03:08 +00:00
Gregor Schneider 760207bad2 -Merge license change from AMD64 branch (r42414)
-Adjust the return value of mktime by the chosen timezone after normalizing

svn path=/trunk/; revision=42417
2009-08-06 11:01:44 +00:00
Gregor Schneider de5d448389 -Deactivate _invalid_parameter for now, depends on the strsafe crt implementation also in AMD64 branch
-Fix the weekday offset in gmtime
-Offset the year in *ctime by 1900, fix obvious typos
-Set structure packing to char level: without it the 26 character array is 32 characters wide and the string can't be constructed properly because of alignment characters in between (shouldn't be a problem when _UNICODE is defined)
-Test results: awesome, will be integrated soon

svn path=/trunk/; revision=42413
2009-08-06 00:26:23 +00:00
Stefan Ginsberg 2591c586a2 - Fix msvc build of win32k -- reported by Amine.
svn path=/trunk/; revision=42412
2009-08-05 22:01:21 +00:00
Gregor Schneider 8b24ebb671 -Import tkreuzer's time implementation from AMD64 branch
svn path=/trunk/; revision=42411
2009-08-05 19:30:37 +00:00
Christoph von Wittich 0c4008a938 brouser -> browser
svn path=/trunk/; revision=42410
2009-08-05 19:19:52 +00:00
Gregor Schneider cb0fe726e8 -Add a crt regression test suite, extending the msvcrt winetests
-iofunc tests were used to verify r42382, added another one that tests swprintf double conversion (roscalc issue)
-time tests crash with the current crt implementation

svn path=/trunk/; revision=42408
2009-08-05 17:13:12 +00:00
Stefan Ginsberg c9c4cbdc8e - Fix release build broken in 42400
svn path=/trunk/; revision=42407
2009-08-05 15:00:30 +00:00
Cameron Gutman 027a914d20 - Fix a bug in TDI_TRANSPORT_ADDRESS_FILE handling
- Remove some dead code

svn path=/trunk/; revision=42404
2009-08-05 07:52:15 +00:00
Cameron Gutman 2ca9ad54c6 - Correct the loopback adapter's address mask and broadcast address
svn path=/trunk/; revision=42403
2009-08-05 03:25:27 +00:00
Gregor Schneider 282b5c28f5 asctime/ctime: Check for too low input time, fixes one msvcrt time winetest
svn path=/trunk/; revision=42402
2009-08-05 02:06:25 +00:00
Gregor Schneider 0e0ee67a1a -_ecvt really uses a static buffer for return values
-Handle memory allocation failure

svn path=/trunk/; revision=42401
2009-08-05 02:02:25 +00:00
Cameron Gutman 313b147b5f - Partial rewrite of recursive mutex code
- Makes the recursive mutex faster and smaller
 - Fixes several unprotected accesses to recursive mutex

svn path=/trunk/; revision=42400
2009-08-04 23:51:39 +00:00
Cameron Gutman 083150d2cd - Add missing locking to DeallocatePort
svn path=/trunk/; revision=42399
2009-08-04 23:35:50 +00:00
Gregor Schneider 914b6fa743 Fix formatting
svn path=/trunk/; revision=42398
2009-08-04 23:32:38 +00:00
Johannes Anderwald 4703287161 - Implement KsMergeAutomationTables
svn path=/trunk/; revision=42397
2009-08-04 23:30:39 +00:00
Johannes Anderwald fb559b8ef2 - Add KsRemoveItemFromObjectBag prototype
svn path=/trunk/; revision=42396
2009-08-04 23:30:09 +00:00
Timo Kreuzer 8721e16aef Leftover from r42394, gendib, too
svn path=/trunk/; revision=42395
2009-08-04 22:51:55 +00:00
Timo Kreuzer ab4e8492d0 Patch by Amine Khaldi: Get rid of XlatePatternToDest in BLTINFO and in the DIB code.
svn path=/trunk/; revision=42394
2009-08-04 22:19:24 +00:00
Timo Kreuzer e66c3e1ea4 Set pulXlate to aulXlate when freeing the allocated buffer to prevent double frees.
svn path=/trunk/; revision=42393
2009-08-04 21:31:34 +00:00
Timo Kreuzer 351632de29 XLATEOBJ rewrite.
The new XLATEOBJ is not allocated from paged pool anymore, but instead allocated on the stack and Initialized. Only when we habe more than a color table with more than 6 entries, we need to allocate an additional buffer. The new interface: EXLATEOBJ_vInitialize is the main init function. It takes a source and destination palette and back and fore colors for monochome surfaces. EXLATEOBJ_vInitXlateFromDCs
takes the source and dest DC and is for color translation between 2 surfaces represented by 2 DCs. EXLATEOBJ_vInitBrushXlate initializes an XLATEOBJ for a pattern brush. Finally EXLATEOBJ_vCleanup needs to be called when the XLATEOBJ is not needed anymore. Implement individual iXlate functions for certain cases and store a function pointer in the EXLATEOBJ structure for quick access.
Change the usage of the PALETTE.Mode member to be a flag instead of an enum, add usage of PAL_MONOCHOME, PAL_RGB16_555 and PAL_RGB16_565. Add gpalMono, which *should* be used as palette for 1bpp DDBs. Currently there's a hack in the XLATEOBJ init code, to hack around the fact that this is missing. Fix the Hatch brush patterns, as they were inverted. Implement PALETTE_ulGetNearestBitFieldsIndex and PALETTE_ulGetNearestIndex. Get rid of the XLATEOBJ for the mouse pointer instead realize the pointer before usage.
Get rid of logicalToSystem PALETTE member. NtGdiGetDIBitsInternal: Don't create a DIBBrush from the BITMAPINFO, when pvBits is NULL, as the function might be uninitualized. This fixes a crash of gdi_regtest. The whole function is quite ugly and needs to be rewritten (like probably the rest of the DIB code). This fixes the problem of artifacts in the selected desktop icons and some color problems.

svn path=/trunk/; revision=42391
2009-08-04 20:37:10 +00:00
Stefan Ginsberg ba959a4eaa - Make kernel build again after __STDC__ change in 42369
svn path=/trunk/; revision=42390
2009-08-04 19:05:29 +00:00
Cameron Gutman 7bd9b42040 - Hardcode the return value of OID_GEN_HARDWARE_STATUS again due to media detection issues on certain pcnet adapters (such as vmware's emulated pcnet adapter)
svn path=/trunk/; revision=42389
2009-08-04 19:04:08 +00:00
Dmitry Chapyshev 2669a0a58d - Add "ReactOS Application Manager". This program is replacement "Download !" and appwiz.cpl.
svn path=/trunk/; revision=42388
2009-08-04 19:02:56 +00:00
Cameron Gutman 77fee2514d - Finally get IRP_MJ_CLOSE working properly
- Remove handling of IRP_MJ_CLEANUP and move the code to the DispatchClose routine
 - Remove the hack (holding an extra reference and not closing the handle) which hid these bugs
 - Fixes some memory and handle leaks too

svn path=/trunk/; revision=42387
2009-08-04 18:56:56 +00:00
Stefan Ginsberg 50e193b557 - Follow up to 41644: Get rid of the Wine headers using include_next as the definitions are now in the PSDK, wrapped under _WINE. Also define _WINE for the modules using those types.
- Move MCI_OPEN_DRIVER and MCI_CLOSE_DRIVER to mmddk.h as this is where they belong. Also move them out of the _WINE guard as those defines are present in the official headers.
- Add GetDriverFlags to mmsystem.h (missed this one in 41644).
- Most Wine code now compiles fine in MSVC.
- Wrap include_next in crt/float.h under a __GNUC__ guard -- not quite correct as the included float.h defines some stuff that should be in the "real" float.h.
- winnt.h: Remove duplicated LANG* defines that are already defined there and present in the official headers. Remove the _WINE guard from the rest as we may want to provide translations for those languages too.

svn path=/trunk/; revision=42386
2009-08-04 18:34:06 +00:00
Dmitry Chapyshev 353932e6da - Sync FreeLibrary with Wine. Fixes an exception at installation Firefox 3.5.x
svn path=/trunk/; revision=42385
2009-08-04 16:43:37 +00:00
Cameron Gutman 73fed81949 - Add a debug print
svn path=/trunk/; revision=42384
2009-08-04 16:22:12 +00:00
Gregor Schneider f9ae6c7786 _ecvt:
- Rewrite the function, getting rid of alloca and unneeded code parts
- Relies on working sprintf, especially allows to detect the decimal point position independent of wanted precision
- Fixes all msvcrt printf winetests

svn path=/trunk/; revision=42383
2009-08-04 15:17:00 +00:00
Gregor Schneider a08bde0eb5 sprintf:
- Implement higher precision exponent selection, checked against ecvt test cases to match wanted behavior
- msvcrt printf winetests up by ~10 because current ecvt relies on non-correct behavior
- Cleanup unneeded checks, wrong variable usages, add new header

svn path=/trunk/; revision=42382
2009-08-04 15:09:47 +00:00
Stefan Ginsberg a1c98e143e - Remove asm-optimized versions of RtlRandom and RtlUniform -- there is *no* reason to use hand-optimized assembly for simple routines like these -- let the compiler do its job, please. Also, we compiled random.c *and* random_asm.S, meaning we duplicated the functions -- the compiler didn't detect this and silently used the C versions.
- Don't forward RtlRandomEx to RtlRandom in ntdll -- RtlRandomEx should use a different algorithm (but is simply a copy of RtlRandom right now).
- Revert RtlUniform back to the "slow" version -- let the compiler do its job instead of obfuscating code for a miniscule speed gain.

svn path=/trunk/; revision=42378
2009-08-04 11:22:50 +00:00
Aleksey Bragin d2ab670235 - Add PsGetProcessInheritedFromUniqueProcessId declaration to NDK.
svn path=/trunk/; revision=42376
2009-08-03 21:01:48 +00:00
Cameron Gutman 1b403e9be7 Broadcast fixes
- Treat 255.255.255.255 as an undefined address
 - Choose the first interface when sending a broadcast packet (fixes failing with STATUS_NETWORK_UNREACHABLE when trying to send a broadcast packet)
 - Fix a broadcast address check so 255.255.255.255 will also pass (fixes sending queued broadcast packets)
 - Now a broadcast packet can be successfully sent from an interface with a valid IP address (previously they could only be sent when the interface didn't have an NCE entry)

svn path=/trunk/; revision=42375
2009-08-03 20:10:47 +00:00
Stefan Ginsberg 99d9c85c54 - Cleanup from 42219 -- remove superfluous return statement
svn path=/trunk/; revision=42374
2009-08-03 20:00:58 +00:00
Johannes Anderwald 1feebad9c0 - Add swenum.h (written from scratch)
svn path=/trunk/; revision=42373
2009-08-03 19:41:56 +00:00
Cameron Gutman 861fa72645 - Fix some cleanup vs. close confusion
- Check if the search context address is unspecified

svn path=/trunk/; revision=42372
2009-08-03 19:34:51 +00:00
Stefan Ginsberg 25c8a63177 - Minisync of gdiplus to fix a C4717 warning
svn path=/trunk/; revision=42371
2009-08-03 19:27:41 +00:00
Stefan Ginsberg 95cfd1d8da - mingw: __builtin_return_address -> _ReturnAddress, __builtin_frame_address -> _AddressOfReturnAddress
- ReactOS-generic.rbuild: Define __STDC__ for MSVC to fix some code depending on it (not using /Za as it breaks other code)

svn path=/trunk/; revision=42369
2009-08-03 18:02:07 +00:00
Stefan Ginsberg f32da36427 - Err, fix build of DxHalTest
svn path=/trunk/; revision=42368
2009-08-03 17:40:40 +00:00
Stefan Ginsberg bab8a60b46 - Make symdump and ctm msvc-aware
svn path=/trunk/; revision=42367
2009-08-03 17:08:45 +00:00
Stefan Ginsberg c9e1afaeda - Remove WIP comment -- the fix is correct
svn path=/trunk/; revision=42366
2009-08-03 17:08:17 +00:00
Stefan Ginsberg c71617e216 - Fix some msvc issues in rostests
svn path=/trunk/; revision=42365
2009-08-03 16:59:43 +00:00
Gregor Schneider 771b93f448 Use ALL_X macros in fstat, fixes one msvcrt file winetest
svn path=/trunk/; revision=42364
2009-08-03 16:57:20 +00:00
Gregor Schneider 9d8f60cf81 - Fix mbslwr: increment pointer in both cases (prevents infinite loops)
- Check for null character pointers, apply somewhat readable formatting
- Add some useful header information
See issue #4755 for more details.

svn path=/trunk/; revision=42363
2009-08-03 16:15:40 +00:00