Gregor Schneider [Fri, 7 Aug 2009 12:10:59 +0000 (12:10 +0000)]
IntChangeDisplaySettings: set last error before leaving the function
NtUserChangeDisplaySettings: copy devmode only if passed, use SEH with buffer probing over CopyFromCaller
svn path=/trunk/; revision=42464
Gregor Schneider [Fri, 7 Aug 2009 12:06:04 +0000 (12:06 +0000)]
Remove deprecated define
svn path=/trunk/; revision=42463
Christoph von Wittich [Fri, 7 Aug 2009 12:04:50 +0000 (12:04 +0000)]
add bdasup.h
svn path=/trunk/; revision=42462
Stefan Ginsberg [Fri, 7 Aug 2009 10:45:59 +0000 (10:45 +0000)]
- winddk.h: Don't define NTSYSAPI and NTSYSCALLAPI -- this is defined in ntdef.h. Use NTSYSAPI for HalDispatchTable instead of DECLSPEC_IMPORT (see below).
- wdm.h: Properly define NTKERNELAPI.
- ntifs.h: Properly define NTKERNELAPI, and don't redefine NTSYSAPI.
- ntoskrnl: Apply the WDK hack for our headers (and gcc) too. Also redefine NTHALAPI for NDK so we don't auto-import KdComPortInUse -- ld complains about this.
- Apply this for cmlib, csq and rossym too.
- Use this in HAL too, and redefine NTSYSAPI so we don't auto import some structures from the kernel. Also, don't define __declspec(dllimport) to nothing -- this doesn't work with gcc, and doesn't seem to be necessary. I tried building HAL with the WDK and this wasn't an issue.
svn path=/trunk/; revision=42461
Johannes Anderwald [Fri, 7 Aug 2009 10:16:25 +0000 (10:16 +0000)]
- Remove hack of starting stream automatically when first IRP has arrived
svn path=/trunk/; revision=42460
Johannes Anderwald [Fri, 7 Aug 2009 10:11:24 +0000 (10:11 +0000)]
- Set the stream state to run when opening the device
- Set the stream state to stop when closing the device
svn path=/trunk/; revision=42459
Stefan Ginsberg [Fri, 7 Aug 2009 09:36:53 +0000 (09:36 +0000)]
- Add inlined assembly for MSVC to _clearfp, _control87, _fpreset, _logb and _statusfp, move fpreset into arch-specific directory and remove x86 #ifdefs from the code.
- Disable warning C4733 for __wine_push_frame and __wine_pop_frame
svn path=/trunk/; revision=42458
Johannes Anderwald [Fri, 7 Aug 2009 09:34:52 +0000 (09:34 +0000)]
[KS]
- Remove a hack for sysaudio + kmixer
[PORTCLS]
- Disable assert untill stream allocator is in place
- Remove dead code
- Implement IPortPinWaveCyclic_HandleKsStream
[KMIXER]
- Remove unused code
- Implement creating the allocator
- Properly implement openening the device
[STREAM]
- Use GLOBAL as the reference string
- Setup a pin create item
[SYSAUDIO]
- Use reference string GLOBAL to open kmixer
- Use reference string GLOBAL for opening sysaudio. Will be removed once bug 4566 is resolved
svn path=/trunk/; revision=42457
Daniel Reimer [Fri, 7 Aug 2009 08:56:06 +0000 (08:56 +0000)]
Bug 4700: Translation patch, Dutch, for explorer-new by Jan Roeloffzen
Bug 4733: Japanese translation for explorer-new and winemine by Tomoya Kitagawa
Bug 4738: Brazilian Portuguese translation for User Environment by Wagner Leandro Bueno Angelo
Bug 4749: Czech translation update by Radek Liska
Bug 4761: Norwegian translate by Lars Martin Hambro
svn path=/trunk/; revision=42456
Cameron Gutman [Fri, 7 Aug 2009 03:21:56 +0000 (03:21 +0000)]
- Send a gratuitous ARP packet when our IP address changes
svn path=/trunk/; revision=42455
Timo Kreuzer [Fri, 7 Aug 2009 03:14:55 +0000 (03:14 +0000)]
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
Cameron Gutman [Fri, 7 Aug 2009 02:39:38 +0000 (02:39 +0000)]
- Fix a bug resulting in ROS discarding all gratuitous ARP packets
- Remove an unnecessary check
svn path=/trunk/; revision=42453
KJK::Hyperion [Fri, 7 Aug 2009 02:24:46 +0000 (02:24 +0000)]
See r42442. One of the affected files was duplicated, so we duplicate the fix
svn path=/trunk/; revision=42452
KJK::Hyperion [Fri, 7 Aug 2009 02:15:25 +0000 (02:15 +0000)]
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
KJK::Hyperion [Fri, 7 Aug 2009 02:10:12 +0000 (02:10 +0000)]
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
KJK::Hyperion [Fri, 7 Aug 2009 02:03:25 +0000 (02:03 +0000)]
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
KJK::Hyperion [Fri, 7 Aug 2009 01:50:19 +0000 (01:50 +0000)]
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
Timo Kreuzer [Fri, 7 Aug 2009 01:44:38 +0000 (01:44 +0000)]
[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
KJK::Hyperion [Fri, 7 Aug 2009 01:20:23 +0000 (01:20 +0000)]
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
KJK::Hyperion [Fri, 7 Aug 2009 01:15:48 +0000 (01:15 +0000)]
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
KJK::Hyperion [Fri, 7 Aug 2009 01:06:18 +0000 (01:06 +0000)]
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
KJK::Hyperion [Fri, 7 Aug 2009 01:03:09 +0000 (01:03 +0000)]
modified include/crt/float.h
added include/crt/msc/msc_float.h
Implement <float.h> for Visual C++
svn path=/trunk/; revision=42443
KJK::Hyperion [Fri, 7 Aug 2009 00:37:45 +0000 (00:37 +0000)]
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
Timo Kreuzer [Thu, 6 Aug 2009 23:09:13 +0000 (23:09 +0000)]
[FORMATTING]
Apply consistent 4 space indentation
No code change
svn path=/trunk/; revision=42441
Dmitry Gorbachev [Thu, 6 Aug 2009 22:53:04 +0000 (22:53 +0000)]
Add GetLogicalProcessorInformation() and a stub for ReOpenFile() by Alwyn Tan's request.
svn path=/trunk/; revision=42440
Johannes Anderwald [Thu, 6 Aug 2009 21:45:10 +0000 (21:45 +0000)]
- 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
Johannes Anderwald [Thu, 6 Aug 2009 20:44:53 +0000 (20:44 +0000)]
- 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
Stefan Ginsberg [Thu, 6 Aug 2009 19:23:44 +0000 (19:23 +0000)]
- 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
Gregor Schneider [Thu, 6 Aug 2009 17:32:36 +0000 (17:32 +0000)]
[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
Stefan Ginsberg [Thu, 6 Aug 2009 16:57:56 +0000 (16:57 +0000)]
- Don't define ssize_t -- it is already done in rosdhcp.h
svn path=/trunk/; revision=42432
Gregor Schneider [Thu, 6 Aug 2009 16:08:49 +0000 (16:08 +0000)]
[Temp] add some checkpoints to narrow the mysterious buildserver msvcrt test crash position #2
svn path=/trunk/; revision=42430
Stefan Ginsberg [Thu, 6 Aug 2009 15:27:23 +0000 (15:27 +0000)]
- Don't rely on the default calling convention being cdecl for function pointers
svn path=/trunk/; revision=42429
Gregor Schneider [Thu, 6 Aug 2009 15:18:24 +0000 (15:18 +0000)]
Retrieve the timezone bias in mktime via GetTimeZoneInformation
svn path=/trunk/; revision=42428
Gregor Schneider [Thu, 6 Aug 2009 14:23:40 +0000 (14:23 +0000)]
[Temp] add some checkpoints to narrow the mysterious buildserver msvcrt test crash position
svn path=/trunk/; revision=42427
Gregor Schneider [Thu, 6 Aug 2009 12:45:11 +0000 (12:45 +0000)]
-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
Stefan Ginsberg [Thu, 6 Aug 2009 11:59:20 +0000 (11:59 +0000)]
- MSVC fix: static __inline__ -> FORCEINLINE
svn path=/trunk/; revision=42425
Gregor Schneider [Thu, 6 Aug 2009 11:38:09 +0000 (11:38 +0000)]
Switch from time to time_new 2/2:
-Rename time_new to time
svn path=/trunk/; revision=42423
Gregor Schneider [Thu, 6 Aug 2009 11:37:09 +0000 (11:37 +0000)]
Switch from time to time_new 1/2:
-Get updated headers into place, prepare rbuild file, delete old dir
svn path=/trunk/; revision=42422
Aleksey Bragin [Thu, 6 Aug 2009 11:16:42 +0000 (11:16 +0000)]
- Add PsGetThreadId declaration.
svn path=/trunk/; revision=42419
Stefan Ginsberg [Thu, 6 Aug 2009 11:03:08 +0000 (11:03 +0000)]
- 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
Gregor Schneider [Thu, 6 Aug 2009 11:01:44 +0000 (11:01 +0000)]
-Merge license change from AMD64 branch (r42414)
-Adjust the return value of mktime by the chosen timezone after normalizing
svn path=/trunk/; revision=42417
Gregor Schneider [Thu, 6 Aug 2009 00:26:23 +0000 (00:26 +0000)]
-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
Stefan Ginsberg [Wed, 5 Aug 2009 22:01:21 +0000 (22:01 +0000)]
- Fix msvc build of win32k -- reported by Amine.
svn path=/trunk/; revision=42412
Gregor Schneider [Wed, 5 Aug 2009 19:30:37 +0000 (19:30 +0000)]
-Import tkreuzer's time implementation from AMD64 branch
svn path=/trunk/; revision=42411
Christoph von Wittich [Wed, 5 Aug 2009 19:19:52 +0000 (19:19 +0000)]
brouser -> browser
svn path=/trunk/; revision=42410
Gregor Schneider [Wed, 5 Aug 2009 17:13:12 +0000 (17:13 +0000)]
-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
Stefan Ginsberg [Wed, 5 Aug 2009 15:00:30 +0000 (15:00 +0000)]
- Fix release build broken in 42400
svn path=/trunk/; revision=42407
Cameron Gutman [Wed, 5 Aug 2009 07:52:15 +0000 (07:52 +0000)]
- Fix a bug in TDI_TRANSPORT_ADDRESS_FILE handling
- Remove some dead code
svn path=/trunk/; revision=42404
Cameron Gutman [Wed, 5 Aug 2009 03:25:27 +0000 (03:25 +0000)]
- Correct the loopback adapter's address mask and broadcast address
svn path=/trunk/; revision=42403
Gregor Schneider [Wed, 5 Aug 2009 02:06:25 +0000 (02:06 +0000)]
asctime/ctime: Check for too low input time, fixes one msvcrt time winetest
svn path=/trunk/; revision=42402
Gregor Schneider [Wed, 5 Aug 2009 02:02:25 +0000 (02:02 +0000)]
-_ecvt really uses a static buffer for return values
-Handle memory allocation failure
svn path=/trunk/; revision=42401
Cameron Gutman [Tue, 4 Aug 2009 23:51:39 +0000 (23:51 +0000)]
- 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
Cameron Gutman [Tue, 4 Aug 2009 23:35:50 +0000 (23:35 +0000)]
- Add missing locking to DeallocatePort
svn path=/trunk/; revision=42399
Gregor Schneider [Tue, 4 Aug 2009 23:32:38 +0000 (23:32 +0000)]
Fix formatting
svn path=/trunk/; revision=42398
Johannes Anderwald [Tue, 4 Aug 2009 23:30:39 +0000 (23:30 +0000)]
- Implement KsMergeAutomationTables
svn path=/trunk/; revision=42397
Johannes Anderwald [Tue, 4 Aug 2009 23:30:09 +0000 (23:30 +0000)]
- Add KsRemoveItemFromObjectBag prototype
svn path=/trunk/; revision=42396
Timo Kreuzer [Tue, 4 Aug 2009 22:51:55 +0000 (22:51 +0000)]
Leftover from r42394, gendib, too
svn path=/trunk/; revision=42395
Timo Kreuzer [Tue, 4 Aug 2009 22:19:24 +0000 (22:19 +0000)]
Patch by Amine Khaldi: Get rid of XlatePatternToDest in BLTINFO and in the DIB code.
svn path=/trunk/; revision=42394
Timo Kreuzer [Tue, 4 Aug 2009 21:31:34 +0000 (21:31 +0000)]
Set pulXlate to aulXlate when freeing the allocated buffer to prevent double frees.
svn path=/trunk/; revision=42393
Timo Kreuzer [Tue, 4 Aug 2009 20:37:10 +0000 (20:37 +0000)]
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
Stefan Ginsberg [Tue, 4 Aug 2009 19:05:29 +0000 (19:05 +0000)]
- Make kernel build again after __STDC__ change in 42369
svn path=/trunk/; revision=42390
Cameron Gutman [Tue, 4 Aug 2009 19:04:08 +0000 (19:04 +0000)]
- 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
Dmitry Chapyshev [Tue, 4 Aug 2009 19:02:56 +0000 (19:02 +0000)]
- Add "ReactOS Application Manager". This program is replacement "Download !" and appwiz.cpl.
svn path=/trunk/; revision=42388
Cameron Gutman [Tue, 4 Aug 2009 18:56:56 +0000 (18:56 +0000)]
- 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
Stefan Ginsberg [Tue, 4 Aug 2009 18:34:06 +0000 (18:34 +0000)]
- 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
Dmitry Chapyshev [Tue, 4 Aug 2009 16:43:37 +0000 (16:43 +0000)]
- Sync FreeLibrary with Wine. Fixes an exception at installation Firefox 3.5.x
svn path=/trunk/; revision=42385
Cameron Gutman [Tue, 4 Aug 2009 16:22:12 +0000 (16:22 +0000)]
- Add a debug print
svn path=/trunk/; revision=42384
Gregor Schneider [Tue, 4 Aug 2009 15:17:00 +0000 (15:17 +0000)]
_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
Gregor Schneider [Tue, 4 Aug 2009 15:09:47 +0000 (15:09 +0000)]
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
Stefan Ginsberg [Tue, 4 Aug 2009 11:22:50 +0000 (11:22 +0000)]
- 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
Aleksey Bragin [Mon, 3 Aug 2009 21:01:48 +0000 (21:01 +0000)]
- Add PsGetProcessInheritedFromUniqueProcessId declaration to NDK.
svn path=/trunk/; revision=42376
Cameron Gutman [Mon, 3 Aug 2009 20:10:47 +0000 (20:10 +0000)]
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
Stefan Ginsberg [Mon, 3 Aug 2009 20:00:58 +0000 (20:00 +0000)]
- Cleanup from 42219 -- remove superfluous return statement
svn path=/trunk/; revision=42374
Johannes Anderwald [Mon, 3 Aug 2009 19:41:56 +0000 (19:41 +0000)]
- Add swenum.h (written from scratch)
svn path=/trunk/; revision=42373
Cameron Gutman [Mon, 3 Aug 2009 19:34:51 +0000 (19:34 +0000)]
- Fix some cleanup vs. close confusion
- Check if the search context address is unspecified
svn path=/trunk/; revision=42372
Stefan Ginsberg [Mon, 3 Aug 2009 19:27:41 +0000 (19:27 +0000)]
- Minisync of gdiplus to fix a C4717 warning
svn path=/trunk/; revision=42371
Stefan Ginsberg [Mon, 3 Aug 2009 18:02:07 +0000 (18:02 +0000)]
- 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
Stefan Ginsberg [Mon, 3 Aug 2009 17:40:40 +0000 (17:40 +0000)]
- Err, fix build of DxHalTest
svn path=/trunk/; revision=42368
Stefan Ginsberg [Mon, 3 Aug 2009 17:08:45 +0000 (17:08 +0000)]
- Make symdump and ctm msvc-aware
svn path=/trunk/; revision=42367
Stefan Ginsberg [Mon, 3 Aug 2009 17:08:17 +0000 (17:08 +0000)]
- Remove WIP comment -- the fix is correct
svn path=/trunk/; revision=42366
Stefan Ginsberg [Mon, 3 Aug 2009 16:59:43 +0000 (16:59 +0000)]
- Fix some msvc issues in rostests
svn path=/trunk/; revision=42365
Gregor Schneider [Mon, 3 Aug 2009 16:57:20 +0000 (16:57 +0000)]
Use ALL_X macros in fstat, fixes one msvcrt file winetest
svn path=/trunk/; revision=42364
Gregor Schneider [Mon, 3 Aug 2009 16:15:40 +0000 (16:15 +0000)]
- 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
Stefan Ginsberg [Mon, 3 Aug 2009 13:46:37 +0000 (13:46 +0000)]
- strmini.h: Include windef.h so CDECL gets defined for msvc version of DEFINE_GUIDEX in ks.h
- Fix misc msvc issues in paint, setup, mmsys and mmebuddy
- Simplify the way kernel32 is built, reverting the "test" from 14241
svn path=/trunk/; revision=42362
Cameron Gutman [Mon, 3 Aug 2009 07:07:21 +0000 (07:07 +0000)]
- Revert r42358 due to what seems to be issues handling cleanup IRPs
svn path=/trunk/; revision=42360
Cameron Gutman [Mon, 3 Aug 2009 06:57:21 +0000 (06:57 +0000)]
- Fix a typo
svn path=/trunk/; revision=42359
Cameron Gutman [Mon, 3 Aug 2009 03:41:34 +0000 (03:41 +0000)]
- Check if the handle is valid before closing it
- Remove (unused) TdiCloseDevice
- Don't reference the Connection/Address File object twice (it is already referenced in TdiOpenDevice)
svn path=/trunk/; revision=42358
Timo Kreuzer [Mon, 3 Aug 2009 02:27:08 +0000 (02:27 +0000)]
More gdi xlate tests.
svn path=/trunk/; revision=42357
Cameron Gutman [Mon, 3 Aug 2009 02:15:17 +0000 (02:15 +0000)]
- Keep waiting for a reply if we get one that is not ours or invalid
- Make sure the packet we got is from our target otherwise discard it
svn path=/trunk/; revision=42356
Cameron Gutman [Mon, 3 Aug 2009 00:23:55 +0000 (00:23 +0000)]
- Don't hold the spin lock when calling the request completion handler
svn path=/trunk/; revision=42355
Cameron Gutman [Sun, 2 Aug 2009 23:17:39 +0000 (23:17 +0000)]
- Copy the datagram data to all matching receive requests instead of just the first one we find
- Fix (completely broken) datagram truncation
svn path=/trunk/; revision=42354
Timo Kreuzer [Sun, 2 Aug 2009 22:31:29 +0000 (22:31 +0000)]
asm version of DIB_32BPP_ColorFill:
- Add frame pointer
- Get rid of algin_draw, 32bpp surfaces must be DWORD aligned
- Optimize the loop
- Add comments
svn path=/trunk/; revision=42353
Dmitry Gorbachev [Sun, 2 Aug 2009 21:27:26 +0000 (21:27 +0000)]
Remove r42305 hack, preserve racial purity of KiSystemStartupReal.
svn path=/trunk/; revision=42352
Dmitry Gorbachev [Sun, 2 Aug 2009 21:27:01 +0000 (21:27 +0000)]
Add a new hack.
svn path=/trunk/; revision=42351
Dmitry Gorbachev [Sun, 2 Aug 2009 21:26:05 +0000 (21:26 +0000)]
Love Nystrom (=lovenystrom=at=hotmail=dot=com=), bug #4727
- Change some 'suspiciously looking' code in bootvid.dll.
- BOOTCHAR_HEIGHT: a new macro to use instead of a plain integer.
- CHAR_GEN_UPSIDE_DOWN: define it for upside down font data.
svn path=/trunk/; revision=42350
Stefan Ginsberg [Sun, 2 Aug 2009 21:04:13 +0000 (21:04 +0000)]
- Wooops, fix dxg and dxapi build after 42346.
svn path=/trunk/; revision=42349
Stefan Ginsberg [Sun, 2 Aug 2009 20:35:19 +0000 (20:35 +0000)]
- probe.h: "NTOSKRNL unfortunately doesn't export RtlRaiseStatus!" -- no, but it does export ExRaiseStatus, so use it instead from win32k instead of "W32kRaiseStatus". Also use ExRaiseAccessViolation instead of RtlRaiseStatus(STATUS_ACCESS_VIOLATION) to save some space.
- ddraw.h: Don't check if WINNT is defined, our winnt.h defines _WINNT_H. Also fix the way CO_E_NOTINITIALIZED is defined.
- Define NT_BUILD_ENVIRONMENT in win32k so the define in ddraw.h doesn't conflict with winerror.h. Not sure if this is correct, but our headers are a mess.
- Add a hack to disable C4276 (caused by napi.h) until a more proper fix is devised.
- Win32K now fully compiles in MSVC.
svn path=/trunk/; revision=42346
Jeffrey Morlan [Sun, 2 Aug 2009 18:56:05 +0000 (18:56 +0000)]
ReadFile: When reading from a console handle with processed input mode enabled, simulate EOF if the first character read is ^Z (Bug 4745)
svn path=/trunk/; revision=42345
Johannes Anderwald [Sun, 2 Aug 2009 18:20:39 +0000 (18:20 +0000)]
[PORTCLS]
- Fix lots of COM object leaks
- IPortWaveCyclic & IPortTopology drivers now shutdown cleanly
- Implement freeing of all registered physical connections and release of the registered power management interface
[SYSAUDIO]
- Close handles to audio filters
svn path=/trunk/; revision=42344
Stefan Ginsberg [Sun, 2 Aug 2009 17:38:27 +0000 (17:38 +0000)]
- npapi.h: Correct definitions of function pointer prototypes.
- ntifs.h & cmdata.h : Don't use array size of 0. Fixes C4200.
- wdm.h: Correct definition of 64-bit SLIST_HEADER. Add explicit casts to avoid /W4 warnings in RtlEnlargedUnsignedDivide.
- winddk.h: Add MSVC intrinsic __readfsbyte for KeGetCurrentProcessorNumber. Misc fixes.
- Fix various msvc issues in cmd, setupapi, usetup, win32csr, winlogon, msafd, ws2_32 and ext2lib, most notably:
- cmd & doskey: Don't use fishy gcc extension to allocate variable-sized arrays from the stack. Use the heap instead.
- Disable warning C4733 for mingw_main too (was only done for mingw_wmain previously).
- advapi32: Pass the correct handles to TRACE -- spotted by MSVC.
- Set the specified register in ecx in MSVC versions of Ke386Wrmsr and Ke386Rdmsr instead of reading from/writing to a random MSR. Yay /W4.
svn path=/trunk/; revision=42342