Commit graph

38316 commits

Author SHA1 Message Date
Christoph von Wittich cf7b35520e APIENTRY LONG --> LONG APIENTRY
svn path=/trunk/; revision=42481
2009-08-07 20:17:55 +00:00
Aleksey Bragin e3ff5fffdc - 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
2009-08-07 20:15:12 +00:00
Stefan Ginsberg 94ece7bbdb . Define APIENTRY compatibly for MSVC
svn path=/trunk/; revision=42479
2009-08-07 20:12:19 +00:00
Stefan Ginsberg 35c6c8de82 - C89 compliance for iphlpapi
svn path=/trunk/; revision=42478
2009-08-07 20:03:37 +00:00
Stefan Ginsberg ba45460b9c - Fix broken include path for MSVC -- appwiz, input, joy and telephon applets now compile
svn path=/trunk/; revision=42477
2009-08-07 19:49:22 +00:00
Stefan Ginsberg cae766f61e - Remove another assumption that _MSC_VER means the MSVC build environment -- aclui now builds.
svn path=/trunk/; revision=42476
2009-08-07 19:37:11 +00:00
Stefan Ginsberg 0787f783d7 Move variable initialization to top of scope.
Welcome to MSVC, eventlog. It is safer here.

svn path=/trunk/; revision=42475
2009-08-07 19:19:46 +00:00
Stefan Ginsberg 5c28e5923e - 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
2009-08-07 19:16:01 +00:00
Michael Martin 8b8078a0da - 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
2009-08-07 18:27:31 +00:00
KJK::Hyperion 90ae79bfc0 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
2009-08-07 17:07:10 +00:00
Stefan Ginsberg 578de69cda - 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
2009-08-07 16:40:11 +00:00
KJK::Hyperion 10fb22e0d9 Use include path for typeof.h that only depends on global include paths (typeof.h -> wine/typeof.h)
svn path=/trunk/; revision=42470
2009-08-07 15:35:41 +00:00
KJK::Hyperion 32072cfccd 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
2009-08-07 15:25:03 +00:00
Cameron Gutman c732d0bbfb - We associate the MDL with the IRP later (in TdiBuildSend, TdiBuildReceive, etc)
svn path=/trunk/; revision=42468
2009-08-07 15:22:24 +00:00
Cameron Gutman 3bc15ea3c0 - Call IoCompleteRequest to free IRPs created by IoBuildDeviceIoControlRequest
- Fixes bug 4770

svn path=/trunk/; revision=42467
2009-08-07 15:00:42 +00:00
Christoph von Wittich 093197d2de include windef.h to get the definitions for BYTE and DWORD req. by bdatypes.h
svn path=/trunk/; revision=42466
2009-08-07 14:09:36 +00:00
Christoph von Wittich 84ef1b5a06 stub bdasup
svn path=/trunk/; revision=42465
2009-08-07 13:23:35 +00:00
Gregor Schneider 5122d6becf 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
2009-08-07 12:10:59 +00:00
Gregor Schneider 0d14376113 Remove deprecated define
svn path=/trunk/; revision=42463
2009-08-07 12:06:04 +00:00
Christoph von Wittich 31b15e4854 add bdasup.h
svn path=/trunk/; revision=42462
2009-08-07 12:04:50 +00:00
Stefan Ginsberg ac7daf7ccf - 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
2009-08-07 10:45:59 +00:00
Johannes Anderwald 8a3b6b1983 - Remove hack of starting stream automatically when first IRP has arrived
svn path=/trunk/; revision=42460
2009-08-07 10:16:25 +00:00
Johannes Anderwald 7121ab4d0e - 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
2009-08-07 10:11:24 +00:00
Stefan Ginsberg 7b78af8b30 - 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
2009-08-07 09:36:53 +00:00
Johannes Anderwald 2abccb66e9 [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
2009-08-07 09:34:52 +00:00
Daniel Reimer 74733cd9aa 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
2009-08-07 08:56:06 +00:00
Cameron Gutman f1b8d48df1 - Send a gratuitous ARP packet when our IP address changes
svn path=/trunk/; revision=42455
2009-08-07 03:21:56 +00:00
Timo Kreuzer 50eb85ed3b Fix a serious bug, that led to reading beyound the end of the mask bitmap, if it was not twice as big as the color bitmap.
svn path=/trunk/; revision=42454
2009-08-07 03:14:55 +00:00
Cameron Gutman 353d0a8d27 - Fix a bug resulting in ROS discarding all gratuitous ARP packets
- Remove an unnecessary check

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

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

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

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

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

Congratulations opengl32, you now build with Visual C++

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

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

One more module builds with Visual C++

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

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

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

And libxml2 compiles with Visual C++, too

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

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

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

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

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

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

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

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

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