12 years ago - Stop trying to find more adapters if it failed to avoid spamming the debug log
Cameron Gutman [Sat, 8 Aug 2009 03:18:41 +0000 (03:18 +0000)]
 - Stop trying to find more adapters if it failed to avoid spamming the debug log
 - Should fix buildbot test 2nd stage

svn path=/trunk/; revision=42491

12 years agoNtUserGetIconInfo: Move lockingunlocking out of SEH, as this is a bad idea. Get rid...
Timo Kreuzer [Sat, 8 Aug 2009 02:47:32 +0000 (02:47 +0000)]
NtUserGetIconInfo: Move lockingunlocking out of SEH, as this is a bad idea. Get rid of RETURN(). Add a comment.

svn path=/trunk/; revision=42490

12 years ago[win32k]
Timo Kreuzer [Sat, 8 Aug 2009 02:42:41 +0000 (02:42 +0000)]
- Use DIB_GetDIBWidthBytes and BitsPerFormat instead of switch
- Add SPS_CHANGE flag when calling IntEngSetPointerShape
- Fixes VMWare Driver mouse pointer regression

svn path=/trunk/; revision=42489

12 years agoComment out rpcrt4 winetest, as it breaks testcd.
Timo Kreuzer [Sat, 8 Aug 2009 01:35:06 +0000 (01:35 +0000)]
Comment out rpcrt4 winetest, as it breaks testcd.

svn path=/trunk/; revision=42488

12 years agoUpdate the fill brush, in NtGdiFillPath.
Timo Kreuzer [Sat, 8 Aug 2009 00:50:42 +0000 (00:50 +0000)]
Update the fill brush, in NtGdiFillPath.

svn path=/trunk/; revision=42487

12 years ago- Don't use dllexport for dxapi -- we have a .spec
Stefan Ginsberg [Fri, 7 Aug 2009 21:53:26 +0000 (21:53 +0000)]
- Don't use dllexport for dxapi -- we have a .spec

svn path=/trunk/; revision=42486

12 years ago- Use APIENTRY compatible -- wdmaud now builds
Stefan Ginsberg [Fri, 7 Aug 2009 21:27:45 +0000 (21:27 +0000)]
- Use APIENTRY compatible -- wdmaud now builds

svn path=/trunk/; revision=42485

12 years ago- Don't assume _MSC_VER means PSDK in regedit -- add a note so this isn't forgotten.
Stefan Ginsberg [Fri, 7 Aug 2009 21:15:17 +0000 (21:15 +0000)]
- Don't assume _MSC_VER means PSDK in regedit -- add a note so this isn't forgotten.

svn path=/trunk/; revision=42484

12 years ago- Make rapps MSVC-friendly
Stefan Ginsberg [Fri, 7 Aug 2009 21:10:16 +0000 (21:10 +0000)]
- Make rapps MSVC-friendly

svn path=/trunk/; revision=42483

12 years agosync rpcrt4 winetest with wine 1.1.26
Christoph von Wittich [Fri, 7 Aug 2009 21:02:55 +0000 (21:02 +0000)]
sync rpcrt4 winetest with wine 1.1.26

svn path=/trunk/; revision=42482

Christoph von Wittich [Fri, 7 Aug 2009 20:17:55 +0000 (20:17 +0000)]

svn path=/trunk/; revision=42481

12 years ago- Sync WIDL and ole32 with Wine-1.1.23, w/o syncing rpcrt4. Credits go to Christoph...
Aleksey Bragin [Fri, 7 Aug 2009 20:15:12 +0000 (20:15 +0000)]
- Sync WIDL and ole32 with Wine-1.1.23, w/o syncing rpcrt4. Credits go to Christoph for helping out with this sync. Tested with rpcrt4_winetests and MS Office 2003 setup.

svn path=/trunk/; revision=42480

12 years ago. Define APIENTRY compatibly for MSVC
Stefan Ginsberg [Fri, 7 Aug 2009 20:12:19 +0000 (20:12 +0000)]
. Define APIENTRY compatibly for MSVC

svn path=/trunk/; revision=42479

12 years ago- C89 compliance for iphlpapi
Stefan Ginsberg [Fri, 7 Aug 2009 20:03:37 +0000 (20:03 +0000)]
- C89 compliance for iphlpapi

svn path=/trunk/; revision=42478

12 years ago- Fix broken include path for MSVC -- appwiz, input, joy and telephon applets now...
Stefan Ginsberg [Fri, 7 Aug 2009 19:49:22 +0000 (19:49 +0000)]
- Fix broken include path for MSVC -- appwiz, input, joy and telephon applets now compile

svn path=/trunk/; revision=42477

12 years ago- Remove another assumption that _MSC_VER means the MSVC build environment -- aclui...
Stefan Ginsberg [Fri, 7 Aug 2009 19:37:11 +0000 (19:37 +0000)]
- Remove another assumption that _MSC_VER means the MSVC build environment -- aclui now builds.

svn path=/trunk/; revision=42476

12 years agoMove variable initialization to top of scope.
Stefan Ginsberg [Fri, 7 Aug 2009 19:19:46 +0000 (19:19 +0000)]
Move variable initialization to top of scope.
Welcome to MSVC, eventlog. It is safer here.

svn path=/trunk/; revision=42475

12 years ago- Remove HalDisplayString from the DDK as it doesn't belong there and is already...
Stefan Ginsberg [Fri, 7 Aug 2009 19:16:01 +0000 (19:16 +0000)]
- Remove HalDisplayString from the DDK as it doesn't belong there and is already in the NDK.
- Move KeFlushQueuedDpcs from NDK to DDK as this is where it belongs -- it is a documented routine.

svn path=/trunk/; revision=42474

12 years ago- Calling NtLoadDriver on an already loaded driver should fail with STATUS_IMAGE_ALRE...
Michael Martin [Fri, 7 Aug 2009 18:27:31 +0000 (18:27 +0000)]
- Calling NtLoadDriver on an already loaded driver should fail with STATUS_IMAGE_ALREADY_LOADED. Fixes one test for kmtest driver tests and a bugcheck when loading the driver a second time.

svn path=/trunk/; revision=42473

12 years agomodified include/psdk/windows.h
KJK::Hyperion [Fri, 7 Aug 2009 17:07:10 +0000 (17:07 +0000)]
modified   include/psdk/windows.h
modified   include/psdk/winnt.h
   Visual C++ needs love, too. Extend conditional w32api code for Watcom C to Visual C++

svn path=/trunk/; revision=42472

12 years ago- Properly stub atan2/exp/fmod/ldexp for MSVC -- #error out on them instead of callin...
Stefan Ginsberg [Fri, 7 Aug 2009 16:40:11 +0000 (16:40 +0000)]
- Properly stub atan2/exp/fmod/ldexp for MSVC -- #error out on them instead of calling nonexisting functions to fail at link time (wtf?).

svn path=/trunk/; revision=42471

12 years agoUse include path for typeof.h that only depends on global include paths (typeof.h...
KJK::Hyperion [Fri, 7 Aug 2009 15:35:41 +0000 (15:35 +0000)]
Use include path for typeof.h that only depends on global include paths (typeof.h -> wine/typeof.h)

svn path=/trunk/; revision=42470

12 years agoadded include/reactos/wine/typeof.h
KJK::Hyperion [Fri, 7 Aug 2009 15:25:03 +0000 (15:25 +0000)]
added      include/reactos/wine/typeof.h
   Simulate typeof operator for the Wine code that requires it

modified   ReactOS-generic.rbuild
   Force-include typeof.h when compiling with Visual C++

svn path=/trunk/; revision=42469

12 years ago - We associate the MDL with the IRP later (in TdiBuildSend, TdiBuildReceive, etc)
Cameron Gutman [Fri, 7 Aug 2009 15:22:24 +0000 (15:22 +0000)]
 - We associate the MDL with the IRP later (in TdiBuildSend, TdiBuildReceive, etc)

svn path=/trunk/; revision=42468

12 years ago - Call IoCompleteRequest to free IRPs created by IoBuildDeviceIoControlRequest
Cameron Gutman [Fri, 7 Aug 2009 15:00:42 +0000 (15:00 +0000)]
 - Call IoCompleteRequest to free IRPs created by IoBuildDeviceIoControlRequest
 - Fixes bug 4770

svn path=/trunk/; revision=42467

12 years agoinclude windef.h to get the definitions for BYTE and DWORD req. by bdatypes.h
Christoph von Wittich [Fri, 7 Aug 2009 14:09:36 +0000 (14:09 +0000)]
include windef.h to get the definitions for BYTE and DWORD req. by bdatypes.h

svn path=/trunk/; revision=42466

12 years agostub bdasup
Christoph von Wittich [Fri, 7 Aug 2009 13:23:35 +0000 (13:23 +0000)]
stub bdasup

svn path=/trunk/; revision=42465

12 years agoIntChangeDisplaySettings: set last error before leaving the function
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

12 years agoRemove deprecated define
Gregor Schneider [Fri, 7 Aug 2009 12:06:04 +0000 (12:06 +0000)]
Remove deprecated define

svn path=/trunk/; revision=42463

12 years agoadd bdasup.h
Christoph von Wittich [Fri, 7 Aug 2009 12:04:50 +0000 (12:04 +0000)]
add bdasup.h

svn path=/trunk/; revision=42462

12 years ago- winddk.h: Don't define NTSYSAPI and NTSYSCALLAPI -- this is defined in ntdef.h...
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

12 years ago- Remove hack of starting stream automatically when first IRP has arrived
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

12 years ago- Set the stream state to run when opening the device
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

12 years ago- Add inlined assembly for MSVC to _clearfp, _control87, _fpreset, _logb and _statusf...
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

12 years ago[KS]
Johannes Anderwald [Fri, 7 Aug 2009 09:34:52 +0000 (09:34 +0000)]
- Remove a hack for sysaudio + kmixer
- Disable assert untill stream allocator is in place
- Remove dead code
- Implement IPortPinWaveCyclic_HandleKsStream
- Remove unused code
- Implement creating the allocator
- Properly implement openening the device
- Use GLOBAL as the reference string
- Setup a pin create item
- 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

12 years agoBug 4700: Translation patch, Dutch, for explorer-new by Jan Roeloffzen
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

12 years ago - Send a gratuitous ARP packet when our IP address changes
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

12 years agoFix a serious bug, that led to reading beyound the end of the mask bitmap, if it...
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

12 years ago - Fix a bug resulting in ROS discarding all gratuitous ARP packets
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

12 years agoSee r42442. One of the affected files was duplicated, so we duplicate the fix
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

12 years agomodified base/applications/network/netstat/netstat.c
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

12 years agomodified lib/3rdparty/libsamplerate/libsamplerate.rbuild
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

12 years agoVisual C++ doesn't like division by zero in constants: for now, don't define NAN...
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

12 years agomodified dll/win32/opengl32/gl.c
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

12 years ago[win32k]
Timo Kreuzer [Fri, 7 Aug 2009 01:44:38 +0000 (01:44 +0000)]
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

12 years agomodified base/services/audiosrv/pnp_list_manager.c
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

12 years agomodified dll/win32/advapi32/advapi32.h
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

12 years agomodified lib/3rdparty/libxml2/libxml2.rbuild
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

12 years agomodified include/crt/float.h
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

12 years agomodified jmorecfg.h
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

12 years ago[FORMATTING]
Timo Kreuzer [Thu, 6 Aug 2009 23:09:13 +0000 (23:09 +0000)]
Apply consistent 4 space indentation
No code change

svn path=/trunk/; revision=42441

12 years agoAdd GetLogicalProcessorInformation() and a stub for ReOpenFile() by Alwyn Tan's request.
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

12 years ago- Add a few parameters check
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

12 years ago- Check if translated / untranslated resource list is empty
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

12 years ago- Fix the last mingw msvc build issues -- just use function forwarders for msvc inste...
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

12 years ago[Temp] Revert checkpoints, comment out first two tests to check possible memory corru...
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

12 years ago- Don't define ssize_t -- it is already done in rosdhcp.h
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

12 years ago[Temp] add some checkpoints to narrow the mysterious buildserver msvcrt test crash...
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

12 years ago- Don't rely on the default calling convention being cdecl for function pointers
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

12 years agoRetrieve the timezone bias in mktime via GetTimeZoneInformation
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

12 years ago[Temp] add some checkpoints to narrow the mysterious buildserver msvcrt test crash...
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

12 years ago-Increase array size to allow proper string termination (MSVC warning #C4045)
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

12 years ago- MSVC fix: static __inline__ -> FORCEINLINE
Stefan Ginsberg [Thu, 6 Aug 2009 11:59:20 +0000 (11:59 +0000)]
- MSVC fix: static __inline__ -> FORCEINLINE

svn path=/trunk/; revision=42425

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

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

svn path=/trunk/; revision=42410

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

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

svn path=/trunk/; revision=42398

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

svn path=/trunk/; revision=42397

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 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

12 years ago_ecvt:
Gregor Schneider [Tue, 4 Aug 2009 15:17:00 +0000 (15:17 +0000)]
- 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

12 years agosprintf:
Gregor Schneider [Tue, 4 Aug 2009 15:09:47 +0000 (15:09 +0000)]
- 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

12 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

12 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

12 years agoBroadcast fixes
Cameron Gutman [Mon, 3 Aug 2009 20:10:47 +0000 (20:10 +0000)]
Broadcast fixes
 - Treat 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 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

12 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