Commit graph

38389 commits

Author SHA1 Message Date
Timo Kreuzer
50eb85ed3b Fix a serious bug, that led to reading beyound the end of the mask bitmap, if it was not twice as big as the color bitmap.
svn path=/trunk/; revision=42454
2009-08-07 03:14:55 +00:00
Cameron Gutman
353d0a8d27 - Fix a bug resulting in ROS discarding all gratuitous ARP packets
- Remove an unnecessary check

svn path=/trunk/; revision=42453
2009-08-07 02:39:38 +00:00
KJK::Hyperion
3bcb06c85c See r42442. One of the affected files was duplicated, so we duplicate the fix
svn path=/trunk/; revision=42452
2009-08-07 02:24:46 +00:00
KJK::Hyperion
6046aeca98 modified base/applications/network/netstat/netstat.c
Another mysterious case of stdlib.h being automatically included for gcc but not cl, another module compiling with Visual C++

svn path=/trunk/; revision=42451
2009-08-07 02:15:25 +00:00
KJK::Hyperion
5662c48394 modified lib/3rdparty/libsamplerate/libsamplerate.rbuild
We have lrint and lrintf, don't provide inline implementations

Three cheers for libsamplerate, congratulations to it for compiling on Visual C++

svn path=/trunk/; revision=42450
2009-08-07 02:10:12 +00:00
KJK::Hyperion
7d62f33141 Visual C++ doesn't like division by zero in constants: for now, don't define NAN, HUGE_VAL, HUGE_VALF, INFINITY for Visual C++
svn path=/trunk/; revision=42449
2009-08-07 02:03:25 +00:00
KJK::Hyperion
2161df104c modified dll/win32/opengl32/gl.c
modified   dll/win32/opengl32/opengl32.c
   Give prototypes to all functions
   Implement OpenGL thunks in assembler for Visual C++
   Nope, environment is not compiler this time, either

modified   dll/win32/opengl32/opengl32.h
   Don't use dllexport, we have a spec file

Congratulations opengl32, you now build with Visual C++

svn path=/trunk/; revision=42448
2009-08-07 01:50:19 +00:00
Timo Kreuzer
29c24f700e [win32k]
Implement GreMovePointer and GreSetPointerShape, calling the eng functions and use them instead of the former mess in IntSetCursor. Fix IntShowMousePointer, EngSetPointerShape to properly handle the color bitmap. We now have support for colored mouse cursors, like used by our paint.

svn path=/trunk/; revision=42447
2009-08-07 01:44:38 +00:00
KJK::Hyperion
314fa19276 modified base/services/audiosrv/pnp_list_manager.c
About the trillionth time Arch forgets that malloc is declared in stdlib.h

One more module builds with Visual C++

svn path=/trunk/; revision=42446
2009-08-07 01:20:23 +00:00
KJK::Hyperion
51473767f2 modified dll/win32/advapi32/advapi32.h
For some reason, <limits.h> was included for gcc, but not Visual C++: include it explicitly just in case

And we welcome advapi32 to the club of modules that compile with Visual C++

svn path=/trunk/; revision=42445
2009-08-07 01:15:48 +00:00
KJK::Hyperion
ba42f38a63 modified lib/3rdparty/libxml2/libxml2.rbuild
libxml2 wants __MINGW32__, let's give it __MINGW32__. This should probably defined globally, because our Visual C++ environment is kind of MinGW, after all

And libxml2 compiles with Visual C++, too

svn path=/trunk/; revision=42444
2009-08-07 01:06:18 +00:00
KJK::Hyperion
064df4b419 modified include/crt/float.h
added      include/crt/msc/msc_float.h
   Implement <float.h> for Visual C++

svn path=/trunk/; revision=42443
2009-08-07 01:03:09 +00:00
KJK::Hyperion
83e0a3e605 modified jmorecfg.h
Arch Blackmann confuses compiler with build environment in libjpeg too. No project is safe

modified   libjpeg.rbuild
   HAVE_CONFIG_H is only used in ansi2knr.c, which we don't build

added      libjpeg.reactos.diff
   Added patch files with changes from vendor drop

Yes, libjpeg now compiles with Visual C++, in case you were wondering

svn path=/trunk/; revision=42442
2009-08-07 00:37:45 +00:00
Timo Kreuzer
6c2f42c953 [FORMATTING]
Apply consistent 4 space indentation
No code change

svn path=/trunk/; revision=42441
2009-08-06 23:09:13 +00:00
Dmitry Gorbachev
2e74dd3e76 Add GetLogicalProcessorInformation() and a stub for ReOpenFile() by Alwyn Tan's request.
svn path=/trunk/; revision=42440
2009-08-06 22:53:04 +00:00
Johannes Anderwald
78f8e0a7c2 - Add a few parameters check
- Calculate resource list size with FIELD_OFFSET macro
- Fix a big bug in IResourceList_fnAddEntryFromParent which didnt copy the untranslated resource list entry

svn path=/trunk/; revision=42439
2009-08-06 21:45:10 +00:00
Johannes Anderwald
ba99294c86 - Check if translated / untranslated resource list is empty
- If both are empty, create an empty resource list
- May fix a crash with Yamaha XG Pci 

svn path=/trunk/; revision=42438
2009-08-06 20:44:53 +00:00
Stefan Ginsberg
cb95320734 - Fix the last mingw msvc build issues -- just use function forwarders for msvc instead of using gcc alias symbols. Also add msvc assembly to the "fp10" implementation.
svn path=/trunk/; revision=42435
2009-08-06 19:23:44 +00:00
Gregor Schneider
e0699eeea3 [Temp] Revert checkpoints, comment out first two tests to check possible memory corruptions from those functions, trace mktime tests in more detail
svn path=/trunk/; revision=42433
2009-08-06 17:32:36 +00:00
Stefan Ginsberg
360c153fad - Don't define ssize_t -- it is already done in rosdhcp.h
svn path=/trunk/; revision=42432
2009-08-06 16:57:56 +00:00
Gregor Schneider
71da990c0e [Temp] add some checkpoints to narrow the mysterious buildserver msvcrt test crash position #2
svn path=/trunk/; revision=42430
2009-08-06 16:08:49 +00:00
Stefan Ginsberg
60bf2397d9 - Don't rely on the default calling convention being cdecl for function pointers
svn path=/trunk/; revision=42429
2009-08-06 15:27:23 +00:00
Gregor Schneider
1a3dc30655 Retrieve the timezone bias in mktime via GetTimeZoneInformation
svn path=/trunk/; revision=42428
2009-08-06 15:18:24 +00:00
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