reactos.git
14 years agoSwitch from time to time_new 2/2:
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

14 years agoSwitch from time to time_new 1/2:
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

14 years ago- Add PsGetThreadId declaration.
Aleksey Bragin [Thu, 6 Aug 2009 11:16:42 +0000 (11:16 +0000)]
- Add PsGetThreadId declaration.

svn path=/trunk/; revision=42419

14 years ago- crt: Use ANSI C types
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

14 years ago-Merge license change from AMD64 branch (r42414)
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

14 years ago-Deactivate _invalid_parameter for now, depends on the strsafe crt implementation...
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

14 years ago- Fix msvc build of win32k -- reported by Amine.
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

14 years ago-Import tkreuzer's time implementation from AMD64 branch
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

14 years agobrouser -> browser
Christoph von Wittich [Wed, 5 Aug 2009 19:19:52 +0000 (19:19 +0000)]
brouser -> browser

svn path=/trunk/; revision=42410

14 years ago-Add a crt regression test suite, extending the msvcrt winetests
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

14 years ago- Fix release build broken in 42400
Stefan Ginsberg [Wed, 5 Aug 2009 15:00:30 +0000 (15:00 +0000)]
- Fix release build broken in 42400

svn path=/trunk/; revision=42407

14 years ago - Fix a bug in TDI_TRANSPORT_ADDRESS_FILE handling
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

14 years ago - Correct the loopback adapter's address mask and broadcast address
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

14 years agoasctime/ctime: Check for too low input time, fixes one msvcrt time winetest
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

14 years ago-_ecvt really uses a static buffer for return values
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

14 years ago - Partial rewrite of recursive mutex code
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

14 years ago - Add missing locking to DeallocatePort
Cameron Gutman [Tue, 4 Aug 2009 23:35:50 +0000 (23:35 +0000)]
 - Add missing locking to DeallocatePort

svn path=/trunk/; revision=42399

14 years agoFix formatting
Gregor Schneider [Tue, 4 Aug 2009 23:32:38 +0000 (23:32 +0000)]
Fix formatting

svn path=/trunk/; revision=42398

14 years ago- Implement KsMergeAutomationTables
Johannes Anderwald [Tue, 4 Aug 2009 23:30:39 +0000 (23:30 +0000)]
- Implement KsMergeAutomationTables

svn path=/trunk/; revision=42397

14 years ago- Add KsRemoveItemFromObjectBag prototype
Johannes Anderwald [Tue, 4 Aug 2009 23:30:09 +0000 (23:30 +0000)]
- Add KsRemoveItemFromObjectBag prototype

svn path=/trunk/; revision=42396

14 years agoLeftover from r42394, gendib, too
Timo Kreuzer [Tue, 4 Aug 2009 22:51:55 +0000 (22:51 +0000)]
Leftover from r42394, gendib, too

svn path=/trunk/; revision=42395

14 years agoPatch by Amine Khaldi: Get rid of XlatePatternToDest in BLTINFO and in the DIB code.
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

14 years agoSet pulXlate to aulXlate when freeing the allocated buffer to prevent double frees.
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

14 years agoXLATEOBJ rewrite.
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

14 years ago- Make kernel build again after __STDC__ change in 42369
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

14 years ago - Hardcode the return value of OID_GEN_HARDWARE_STATUS again due to media detection...
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

14 years ago- Add "ReactOS Application Manager". This program is replacement "Download !" and...
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

14 years ago - Finally get IRP_MJ_CLOSE working properly
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

14 years ago- Follow up to 41644: Get rid of the Wine headers using include_next as the definitio...
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

14 years ago- Sync FreeLibrary with Wine. Fixes an exception at installation Firefox 3.5.x
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

14 years ago - Add a debug print
Cameron Gutman [Tue, 4 Aug 2009 16:22:12 +0000 (16:22 +0000)]
 - Add a debug print

svn path=/trunk/; revision=42384

14 years ago_ecvt:
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

14 years agosprintf:
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

14 years ago- Remove asm-optimized versions of RtlRandom and RtlUniform -- there is *no* reason...
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

14 years ago- Add PsGetProcessInheritedFromUniqueProcessId declaration to NDK.
Aleksey Bragin [Mon, 3 Aug 2009 21:01:48 +0000 (21:01 +0000)]
- Add PsGetProcessInheritedFromUniqueProcessId declaration to NDK.

svn path=/trunk/; revision=42376

14 years agoBroadcast fixes
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

14 years ago- Cleanup from 42219 -- remove superfluous return statement
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

14 years ago- Add swenum.h (written from scratch)
Johannes Anderwald [Mon, 3 Aug 2009 19:41:56 +0000 (19:41 +0000)]
- Add swenum.h (written from scratch)

svn path=/trunk/; revision=42373

14 years ago - Fix some cleanup vs. close confusion
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

14 years ago- Minisync of gdiplus to fix a C4717 warning
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

14 years ago- mingw: __builtin_return_address -> _ReturnAddress, __builtin_frame_address -> _Addr...
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

14 years ago- Err, fix build of DxHalTest
Stefan Ginsberg [Mon, 3 Aug 2009 17:40:40 +0000 (17:40 +0000)]
- Err, fix build of DxHalTest

svn path=/trunk/; revision=42368

14 years ago- Make symdump and ctm msvc-aware
Stefan Ginsberg [Mon, 3 Aug 2009 17:08:45 +0000 (17:08 +0000)]
- Make symdump and ctm msvc-aware

svn path=/trunk/; revision=42367

14 years ago- Remove WIP comment -- the fix is correct
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

14 years ago- Fix some msvc issues in rostests
Stefan Ginsberg [Mon, 3 Aug 2009 16:59:43 +0000 (16:59 +0000)]
- Fix some msvc issues in rostests

svn path=/trunk/; revision=42365

14 years agoUse ALL_X macros in fstat, fixes one msvcrt file winetest
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

14 years ago- Fix mbslwr: increment pointer in both cases (prevents infinite loops)
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

14 years ago- strmini.h: Include windef.h so CDECL gets defined for msvc version of DEFINE_GUIDEX...
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

14 years ago - Revert r42358 due to what seems to be issues handling cleanup IRPs
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

14 years ago - Fix a typo
Cameron Gutman [Mon, 3 Aug 2009 06:57:21 +0000 (06:57 +0000)]
 - Fix a typo

svn path=/trunk/; revision=42359

14 years ago - Check if the handle is valid before closing it
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

14 years agoMore gdi xlate tests.
Timo Kreuzer [Mon, 3 Aug 2009 02:27:08 +0000 (02:27 +0000)]
More gdi xlate tests.

svn path=/trunk/; revision=42357

14 years ago - Keep waiting for a reply if we get one that is not ours or invalid
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

14 years ago - Don't hold the spin lock when calling the request completion handler
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

14 years ago - Copy the datagram data to all matching receive requests instead of just the first...
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

14 years agoasm version of DIB_32BPP_ColorFill:
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

14 years agoRemove r42305 hack, preserve racial purity of KiSystemStartupReal.
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

14 years agoAdd a new hack.
Dmitry Gorbachev [Sun, 2 Aug 2009 21:27:01 +0000 (21:27 +0000)]
Add a new hack.

svn path=/trunk/; revision=42351

14 years agoLove Nystrom (=lovenystrom=at=hotmail=dot=com=), bug #4727
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

14 years ago- Wooops, fix dxg and dxapi build after 42346.
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

14 years ago- probe.h: "NTOSKRNL unfortunately doesn't export RtlRaiseStatus!" -- no, but it...
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

14 years agoReadFile: When reading from a console handle with processed input mode enabled, simul...
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

14 years ago[PORTCLS]
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

14 years ago- npapi.h: Correct definitions of function pointer prototypes.
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

14 years agoCleanup in win32k/dib:
Gregor Schneider [Sun, 2 Aug 2009 15:49:17 +0000 (15:49 +0000)]
Cleanup in win32k/dib:
- Replace old headers with new ones, programmers added according to svn blame info
- Apply consistent 2pt indentation because of the many indentation levels in this code; getting rid of a tab and 2/3/4pt mixture
- Rename universal StretchBlt file to reflect content

svn path=/trunk/; revision=42339

14 years agoFix many incompatibilities in DIR switch parsing, including those noted in Bug 4744.
Jeffrey Morlan [Sun, 2 Aug 2009 15:16:03 +0000 (15:16 +0000)]
Fix many incompatibilities in DIR switch parsing, including those noted in Bug 4744.

svn path=/trunk/; revision=42338

14 years ago- Implement KsStreamPointerDelete, KsStreamPointerScheduleTimeout, KsStreamPointerCan...
Johannes Anderwald [Sun, 2 Aug 2009 14:40:15 +0000 (14:40 +0000)]
- Implement KsStreamPointerDelete, KsStreamPointerScheduleTimeout, KsStreamPointerCancelTimeout, KsPinGetFirstCloneStreamPointer, KsStreamPointerGetNextClone
- Partly Implement IKsPin_DispatchDeviceIoControl, IKsPin_Close

svn path=/trunk/; revision=42337

14 years ago[KS]
Johannes Anderwald [Sun, 2 Aug 2009 12:38:08 +0000 (12:38 +0000)]
[KS]
- Acquire Spinlock at dpc level
- Release cancel spinlock at correct level
[PORTCLS]
- Check if current partially processed irp has been cancelled and complete it in that case
- Silence debug flood

svn path=/trunk/; revision=42335

14 years ago[KS]
Johannes Anderwald [Sun, 2 Aug 2009 11:40:38 +0000 (11:40 +0000)]
[KS]
- Implement KsQueryInformationFile
- Properly implement KsStreamIo
- Fix a desastreous bug in KsRemoveIrpFromCancelableQueue
- Implement KsMoveIrpsOnCancelableQueue
[PORTCLS]
- Switch portcls to use the provided ks irp queue function instead of the homegrown IRP_MAPPING routines. Irp queueing is now faster and consumes less memory
- Return an allocated silence buffer when there are no mappings available
- HACK-Remove: Don't pre-complete any audio buffers now anymore. If you experience audio stuttering, let me know
[SYSAUDIO, PORTCLS, KMIXER]
- FastRead / FastWrite routines must store their return values in the status block as KsStreamIo now checks these

svn path=/trunk/; revision=42334

14 years ago[rbuild] Copy files to livecd output directory only if they have changed
Hervé Poussineau [Sun, 2 Aug 2009 08:06:17 +0000 (08:06 +0000)]
[rbuild] Copy files to livecd output directory only if they have changed

svn path=/trunk/; revision=42330

14 years ago[rbuild] Fix wrapping of long lines in generated makefile
Hervé Poussineau [Sun, 2 Aug 2009 08:06:04 +0000 (08:06 +0000)]
[rbuild] Fix wrapping of long lines in generated makefile

svn path=/trunk/; revision=42329

14 years agoAdd regtests/gdi
Timo Kreuzer [Sun, 2 Aug 2009 00:26:51 +0000 (00:26 +0000)]
Add regtests/gdi
Tests for gdi, written in winetest style so it can be easily plugged into sysreg. Currently containing some xlate tests. More to come.

svn path=/trunk/; revision=42328

14 years ago- Properly define dummy unions/structs for MSVC too.
Stefan Ginsberg [Sat, 1 Aug 2009 19:10:16 +0000 (19:10 +0000)]
- Properly define dummy unions/structs for MSVC too.

svn path=/trunk/; revision=42327

14 years agoFloodFill:
Gregor Schneider [Sat, 1 Aug 2009 17:58:28 +0000 (17:58 +0000)]
FloodFill:
- Remove unneeded casts when setting the initial flood start, add debug print for flood region location (silenced)
- Improve memory guards, free memory on error

svn path=/trunk/; revision=42324

14 years agoFloodFill:
Gregor Schneider [Sat, 1 Aug 2009 14:39:40 +0000 (14:39 +0000)]
FloodFill:
-Get rid of global variables for flood control
-Translate the provided color to the surface, not the other way around (improves speed)
-Rename the function to reflect the functionality
-Add comments on how to implement support for hatched brushes and non-standard surfaces
-Thanks to tkreuzer for feedback

svn path=/trunk/; revision=42323

14 years agoGetWindowLongPtr returns a LONG_PTR, so be it
Gregor Schneider [Sat, 1 Aug 2009 11:32:48 +0000 (11:32 +0000)]
GetWindowLongPtr returns a LONG_PTR, so be it

svn path=/trunk/; revision=42322

14 years ago- Handle WM_SETREDRAW messages differently in the DefWndProc, ported from current...
Gregor Schneider [Sat, 1 Aug 2009 11:26:40 +0000 (11:26 +0000)]
- Handle WM_SETREDRAW messages differently in the DefWndProc, ported from current Wine
- Fixes mIRC riched component regression, no more riched20 reverts for releases needed
See issue #4098 for more details.

svn path=/trunk/; revision=42321

14 years agoFix a typo in EngMovePointer
Gregor Schneider [Fri, 31 Jul 2009 19:55:16 +0000 (19:55 +0000)]
Fix a typo in EngMovePointer

svn path=/trunk/; revision=42318

14 years ago- ...mised this one
Stefan Ginsberg [Fri, 31 Jul 2009 18:40:19 +0000 (18:40 +0000)]
- ...mised this one

svn path=/trunk/; revision=42317

14 years agoRemove leftover debug print
Gregor Schneider [Fri, 31 Jul 2009 18:32:33 +0000 (18:32 +0000)]
Remove leftover debug print

svn path=/trunk/; revision=42316

14 years ago- Fix gdi32 build due to missing ";"
Stefan Ginsberg [Fri, 31 Jul 2009 18:30:37 +0000 (18:30 +0000)]
- Fix gdi32 build due to missing ";"

svn path=/trunk/; revision=42315

14 years ago- delayimp.h: Use FORCEINLINE instead of static __inline__
Stefan Ginsberg [Fri, 31 Jul 2009 18:21:24 +0000 (18:21 +0000)]
- delayimp.h: Use FORCEINLINE instead of static __inline__
- winbase.h: Make winbase.h usable by MSVC
- winuser.h: Add missing const specifiers to GetTabbedTextExtentA/W, TabbedTextOutA/W, ToAscii/Ex and ToUnicode/Ex
- Make gdi32, user32, beepmidi and csrss drmk build in msvc
- Fix most msvc issues in win32k -- a few remain
- Make ntoskrnl compile with /W1 again

svn path=/trunk/; revision=42314

14 years ago- Use system wide caret width and height if one of those parameters is zero
Gregor Schneider [Fri, 31 Jul 2009 17:11:21 +0000 (17:11 +0000)]
- Use system wide caret width and height if one of those parameters is zero
- Ref: http://msdn.microsoft.com/en-us/library/ms648399(VS.85).aspx
- Allows to show the caret in riched20a components (Wordpad f.e.)
See issue #1559 for more details.

svn path=/trunk/; revision=42313

14 years agoFix _M_X86 -> _M_IX86.
Dmitry Gorbachev [Fri, 31 Jul 2009 16:32:22 +0000 (16:32 +0000)]
Fix _M_X86 -> _M_IX86.

svn path=/trunk/; revision=42312

14 years ago- Implement Floodfill: iterative four neighbors version
Gregor Schneider [Fri, 31 Jul 2009 15:41:09 +0000 (15:41 +0000)]
- Implement Floodfill: iterative four neighbors version
- Details for this algorithm are described in the comments
- Nice with the paint clone since the bucket fill tool works now

svn path=/trunk/; revision=42311

14 years ago- Partly Implement KsRegisterFilterWithNoKSPins
Johannes Anderwald [Fri, 31 Jul 2009 10:10:26 +0000 (10:10 +0000)]
- Partly Implement KsRegisterFilterWithNoKSPins
- Implement _KsEdit

svn path=/trunk/; revision=42310

14 years agoDon't try to delete non existing XLateObjects (NULL brushes return those for example)
Gregor Schneider [Thu, 30 Jul 2009 21:12:06 +0000 (21:12 +0000)]
Don't try to delete non existing XLateObjects (NULL brushes return those for example)

svn path=/trunk/; revision=42309

14 years ago- Fix a bug in GPF handler, do not hang in it.
Dmitry Gorbachev [Thu, 30 Jul 2009 17:54:21 +0000 (17:54 +0000)]
- Fix a bug in GPF handler, do not hang in it.
- Initialize Esp field in TSS.

svn path=/trunk/; revision=42306

14 years agoAdd a hack in KiSystemStartupReal function until Better Times.
Dmitry Gorbachev [Thu, 30 Jul 2009 17:54:01 +0000 (17:54 +0000)]
Add a hack in KiSystemStartupReal function until Better Times.

svn path=/trunk/; revision=42305

14 years ago- Partly Implement KsCacheMedium
Johannes Anderwald [Thu, 30 Jul 2009 16:51:03 +0000 (16:51 +0000)]
- Partly Implement KsCacheMedium
- Implement KsHandleSizedListQuery
- Remove KsGetChildCreateParameter, it is not exported in NT 5.1 KS

svn path=/trunk/; revision=42303

14 years ago- Implement KsAcquireResetValue, KsCompletePendingRequest, KsAllocateExtraData
Johannes Anderwald [Thu, 30 Jul 2009 14:20:13 +0000 (14:20 +0000)]
- Implement KsAcquireResetValue, KsCompletePendingRequest, KsAllocateExtraData

svn path=/trunk/; revision=42302

14 years ago- Implement KsFreeEventList, KsDisableEvent
Johannes Anderwald [Thu, 30 Jul 2009 09:43:54 +0000 (09:43 +0000)]
- Implement KsFreeEventList, KsDisableEvent

svn path=/trunk/; revision=42298

14 years ago- Implement KsAddEvent, KsDefaultAddEventHandler, KsPinAttachAndGate, KsPinAttachOrGa...
Johannes Anderwald [Thu, 30 Jul 2009 07:31:41 +0000 (07:31 +0000)]
- Implement KsAddEvent, KsDefaultAddEventHandler, KsPinAttachAndGate, KsPinAttachOrGate, KsPinGetAndGate

svn path=/trunk/; revision=42296

14 years ago- Implement KsDeviceSetBusData, KsDeviceGetBusData, KsGetPinFromIrp
Johannes Anderwald [Thu, 30 Jul 2009 06:29:24 +0000 (06:29 +0000)]
- Implement KsDeviceSetBusData, KsDeviceGetBusData, KsGetPinFromIrp

svn path=/trunk/; revision=42295

14 years ago- Add RtlConvertLongToLuid, RtlConvertUlongToLuid
Johannes Anderwald [Thu, 30 Jul 2009 06:26:28 +0000 (06:26 +0000)]
- Add RtlConvertLongToLuid, RtlConvertUlongToLuid

svn path=/trunk/; revision=42294

14 years ago- Fix Class ids.
James Tabor [Thu, 30 Jul 2009 01:37:02 +0000 (01:37 +0000)]
- Fix Class ids.

svn path=/trunk/; revision=42293

14 years agouser32:
Gregor Schneider [Wed, 29 Jul 2009 18:28:11 +0000 (18:28 +0000)]
user32:
- Restructure and simplify CreateCursorFromData
- Call CreateIconFromResourceEx properly allowing it to create colored icons (although it doesn't care about that yet)
- Fix some comment typos
win32k:
- Don't just copy the pointer to an XLATEOBJ, copy instead. The caller will free it, EngSetPointerShape will do so too (causing either double-frees or memory write errors)

svn path=/trunk/; revision=42291

14 years ago- Start Implementing IKsPin interface
Johannes Anderwald [Wed, 29 Jul 2009 09:48:36 +0000 (09:48 +0000)]
- Start Implementing IKsPin interface
- Increment PinInstanceCount when a pin has succcessfully been created
- Implement KsPinAcquireProcessingMutex, KsPinGetConnectedPinDeviceObject, KsPinGetConnectedFileObject, KsPinGetConnectedPinInterface, KsPinGetNextSiblingPin, KsPinGetParentFilter, KsPinRegisterFrameReturnCallback, KsPinRegisterHandshakeCallback, KsPinRegisterIrpCompletionCallback, KsPinRegisterPowerCallbacks, KsPinReleaseProcessingMutex
- Initialize pin dispatch table
- Add create items for allocator, clock, node create requests
- AVStream clients should now be able to instantiated pins, streaming not yet supported

svn path=/trunk/; revision=42283

14 years ago- Add KsGetNextSibling, KsFreeObjectBag
Johannes Anderwald [Wed, 29 Jul 2009 09:33:40 +0000 (09:33 +0000)]
- Add KsGetNextSibling, KsFreeObjectBag

svn path=/trunk/; revision=42282

14 years ago- Fix 41969 -- the wrong flag got set, creating a broken, unusable debug object....
Stefan Ginsberg [Tue, 28 Jul 2009 21:48:49 +0000 (21:48 +0000)]
- Fix 41969 -- the wrong flag got set, creating a broken, unusable debug object. Please make sure you know basic C before trying some clever optimization. Debuggers should now work again...

svn path=/trunk/; revision=42280