Commit graph

39804 commits

Author SHA1 Message Date
Aleksey Bragin f0816148d1 - Add VK_ICO_* codes.
svn path=/trunk/; revision=44153
2009-11-14 11:22:29 +00:00
Johannes Anderwald 6db29a3b51 [CMIDRIVER]
- Fix build breakage by Sylvain Petreolle

svn path=/trunk/; revision=44142
2009-11-13 17:47:03 +00:00
Johannes Anderwald 5a56a7c2da [KERNEL32]
- Don't access freed memory in GetVolumeNameForVolumeMountPointW

svn path=/trunk/; revision=44141
2009-11-13 17:31:02 +00:00
Johannes Anderwald 165c423eed Silence for Christoph & buildbot
svn path=/trunk/; revision=44137
2009-11-13 15:08:00 +00:00
Johannes Anderwald 17dd5fb45c - Silence (on request of Christoph)
svn path=/trunk/; revision=44136
2009-11-13 15:04:19 +00:00
Johannes Anderwald 955b60c3ad - Silence
svn path=/trunk/; revision=44135
2009-11-13 15:00:33 +00:00
Johannes Anderwald ccc63ddced [PSDK]
- Fix MIXEROPENDESC struct(x64 compability issue)
[MMEBUDDY]
- Fix usage of MIXEROPENDESC
[WDMAUD.DRV]
- Implement a listening thread which waits for volume level / mute control changes

svn path=/trunk/; revision=44133
2009-11-13 14:22:11 +00:00
Johannes Anderwald 052e7f5106 [KS]
- Silent debug traces on request of Christoph
[CMIDRIVER]
- Remove link hacks
[WDMAUD_KERNEL]
- Silent debug traces on request of Christoph
- Reference notification event when the mixer is openend
- Fix a bug in the notification handler (double free due entry not removed from list)


svn path=/trunk/; revision=44132
2009-11-13 14:13:22 +00:00
Aleksey Bragin 8d0de240d5 - Sync rpcrt4 with Wine-1.1.32. ReactOS-specific changes are:
* Use overlapped named pipes access mode, and use GetOverlappedResult for reading/writing too.
 * Add patch for waiting for server calls in RpcMgmtWaitServerListen (not fully correct one, but enough for now).
 * Hacks around ntsecapi.h inclusion (it can't be used properly with winternl.h).
 * Total removal of HTTP transport. Could be enabled when dynamic linking to wininet.dll will be possible.
- Change config.h to include new ASM macros. This is not platform independent.

svn path=/trunk/; revision=44130
2009-11-13 13:26:54 +00:00
Christoph von Wittich 08a2fdadeb sync dde with wine 1.1.32
svn path=/trunk/; revision=44129
2009-11-13 12:40:20 +00:00
Christoph von Wittich f54043e5ae sync dwmapi with wine 1.1.32
svn path=/trunk/; revision=44128
2009-11-13 11:47:11 +00:00
Johannes Anderwald e113d59df6 - Implement updating volume position / mute state after receiving a notification
svn path=/trunk/; revision=44127
2009-11-13 11:42:23 +00:00
Johannes Anderwald 61887111ab [WDMAUD_KERNEL]
- Implement kernel side of notifying clients of volume / mute control changes

svn path=/trunk/; revision=44122
2009-11-13 01:48:28 +00:00
Stefan Ginsberg a8286c3821 - Documentative amendment to 44115: It incorrectly stated that the commit added "init(i)al support for PCI and ISA interrupts". What was added is (disabled) initial support for ISA, EISA and PCI configurations that require level-triggered interrupts (we only support edge-triggered interrupts right now) and PCI IRQ routing, along with proper handling of IRQ13.
svn path=/trunk/; revision=44121
2009-11-12 21:46:52 +00:00
Stefan Ginsberg 69b02e1155 - Win32k doesn't know what "opaque" means. Store the module base address in the structure too for the code that relied on the handle being the base address.
svn path=/trunk/; revision=44120
2009-11-12 20:41:12 +00:00
Stefan Ginsberg 141ef5cfc3 - Add missing synchronization for access to PsLoadedModuleList. Inserting and removing entries to the list was protected by a spinlock, but some places didn't acquire the lock before looping the list when searching for module information. For efficiency, use an executive resource for other access than inserting/removing entries so we can have shared locking in some common cases (spinlock stays so access can be synchronized with DPCs).
- Make SystemUnloadGdiDriverInformation take the opaque SectionPointer (which is really the Loader Entry) from the SYSTEM_GDI_DRIVER_INFORMATION structure returned in SystemLoadGdiDriverInformation so it doesn't need to loop the loaded module list to find it.
- Fix EngLoad/UnloadImage to do this. Also make EngLoadImage return the pointer to the internal structure as the "handle" so EngUnloadImage doesn't need to loop the driver list to find it. The code is still extremely broken and needs a rewrite.
- Remove some externs from related variables in the code -- we use something called "headers".

svn path=/trunk/; revision=44119
2009-11-12 19:41:39 +00:00
Aleksey Bragin 14442c0a34 [advapi32]
Alexander Yastrebov <menone7@gmail.com>
- Return proper lengths of required buffer sizes in characters (including the termination NULL character) in LookupAccountSid. Fixes 4 "advapi32_winetest security" failures.
See issue #4904 for more details.

svn path=/trunk/; revision=44117
2009-11-12 13:55:51 +00:00
Aleksey Bragin ba319b373f [Unused ReactOS setup]
- Move duplicate code from LoadSetupData to a separate function
- Fix a bug on line 1054 of the original file: SetupData.LangCount should be SetupData.KbLayoutCount (copy-paste mistake). This would have probably gone unnoticed if SetupData.LangCount > SetupData.KbLayoutCount due to other end of section checking.
- Based on a patch from bug 4933.

svn path=/trunk/; revision=44116
2009-11-12 12:35:01 +00:00
Stefan Ginsberg c02b96254e - Add inital support for PCI and ISA interrupts.
- Use different register allocation to be more efficient on certain systems.
- Add tables and initial code for Lazy IRQL support.

svn path=/trunk/; revision=44115
2009-11-11 22:29:16 +00:00
Johannes Anderwald 8e510a0ea2 - Fix building of cmidriver
- Required a few hacks, which were documented as //HACK

svn path=/trunk/; revision=44113
2009-11-11 20:43:58 +00:00
Aleksey Bragin effa38586c [rosapps]
- Avoid old crt names usage, by Caemyr/kjk_hyperion.

svn path=/trunk/; revision=44107
2009-11-11 18:19:42 +00:00
Sylvain Petreolle 94d60cdacc forgot that one
svn path=/trunk/; revision=44105
2009-11-11 13:02:13 +00:00
Sylvain Petreolle aafb387b32 [12:14] <Usurp> kjk_hyperion: i dont understand where msvcrt is linked twice in crt_regtest ?
[12:14] <kjk_hyperion> Usurp: that's right, you don't understand


svn path=/trunk/; revision=44104
2009-11-11 12:51:03 +00:00
KJK::Hyperion 8667b162b1 modified regtests/crt/crt_regtest.rbuild
Don't link msvcrt twice, bad things happen

modified   tests/dirdlg/dirdlg.rbuild
modified   winetests/msvcrt/msvcrt.rbuild
   More oldnames hacks

modified   tests/tcpsvr/tcpsvr.c
   Don't use close on sockets, use closesocket

svn path=/trunk/; revision=44103
2009-11-11 11:12:55 +00:00
KJK::Hyperion 42f5d69bb4 More _CRTIMP love for non-ANSI symbols
svn path=/trunk/; revision=44102
2009-11-11 11:11:58 +00:00
Johannes Anderwald 844a591298 - Fix problem with ASSERT & ASSERTMSG when compiled with g++
svn path=/trunk/; revision=44101
2009-11-11 10:53:52 +00:00
Johannes Anderwald 7d088d0725 [KS]
- Implement KsEnableEvent, KsEnableEventWithAllocator, KsDiscardEvent
[PORTCLS]
- Fix signalling the event
- DirectSound clients can now use IDirectSoundNotify interface to be notified of a position change

svn path=/trunk/; revision=44100
2009-11-11 09:04:42 +00:00
Christoph von Wittich 008929cd36 return TRUE in ReadFile if there is nothing to read
svn path=/trunk/; revision=44099
2009-11-11 08:29:08 +00:00
Christoph von Wittich 4574bb5be8 sync shell32 winetest to wine 1.1.32
svn path=/trunk/; revision=44098
2009-11-11 07:36:49 +00:00
KJK::Hyperion 7f4bf6c490 modified Makefile
Give poor pefixup its own echo line

modified   ReactOS-amd64.rbuild
modified   ReactOS-arm.rbuild
modified   ReactOS-i386.rbuild
   Set global linker flags globally
   Goodbye NTOSKRNL_SHARED

modified   tools/rbuild/backend/codeblocks/codeblocks.cpp
modified   tools/rbuild/backend/msvc/vcprojmaker.cpp
   Build fixes. I really want to delete these dead backends

modified   tools/rbuild/backend/mingw/linkers/ld.mak
   Makefile rule for the linker. Also generates the .lib and .exp for DLLs, and obsoletes a whole lot of shitty rbuild code

modified   tools/rbuild/backend/mingw/mingw.cpp
modified   tools/rbuild/backend/mingw/mingw.h
   Specify module type-specific linker flags... in the specification of flags for module types, instead of wherever
   Fix generation of project-global linker and NASM flags
   Give better names to the variables that contain names of BE-provided libraries
   Don't put quotes around the names of BE-provided libraries, GNU make doesn't support quoting in any way, shape or form and quotes around filenames actually break shit on Windows (see <http://reactos-blog.blogspot.com/2009/11/gnu-make-fails-on-windows-with-multiple.html>). Just install the BE in a path without spaces in it
   Typo: LFLAGS is the flags for lex, flags for linker come from LDFLAGS

modified   tools/rbuild/backend/mingw/modulehandler.cpp
modified   tools/rbuild/backend/mingw/modulehandler.h
modified   tools/rbuild/module.cpp
modified   tools/rbuild/rbuild.h
   Moved generation of linker and import library generation rules out of rbuild and into sub-makefiles. A lot of code deleted, nothing of value was lost
   More LFLAGS -> LDFLAGS
   Goodbye mangledsymbols and underscoresymbols attributes, they don't do shit other than complicating my life
   If we have to add an underscore in front of the entry point name for some architectures, how about we do it in a single place?

modified   tools/rbuild/backend/mingw/rules.mak
   Minor cosmetic change

svn path=/trunk/; revision=44091
2009-11-11 03:41:14 +00:00
KJK::Hyperion 18d9f647bc modified lib/3rdparty/mingw/mingw.rbuild
oldnames is not an import library and dlltool --add-underscore is not an appropriate way to build it. Delete it for now

modified   base/applications/network/ftp/ftp.rbuild
modified   base/applications/winhlp32/winhlp32.rbuild
modified   base/services/dhcp/dhcp.rbuild
modified   dll/win32/crypt32/crypt32.rbuild
modified   dll/win32/mshtml/mshtml.rbuild
modified   dll/win32/setupapi/setupapi.rbuild
modified   dll/win32/wininet/wininet.rbuild
modified   lib/3rdparty/libxml2/libxml2.rbuild
   Workarounds for the removal of oldnames

modified   dll/directx/d3d8/d3d8.rbuild
   Use a file that actually exists

modified   dll/win32/crtdll/crtdll.rbuild
modified   dll/win32/msvcrt/msvcrt.rbuild
   "mangledsymbols" never did anything: remove it

modified   dll/win32/msvcrt/msvcrt.def
modified   lib/sdk/crt/crt.rbuild
   We don't actually implement j0/j1/jn/y0/y1/yn: _j0 calls __imp__j0, which is an alias for __imp___j0, which redirects back to _j0 in a perfect loop. Remove them for the time being

modified   lib/3rdparty/bzip2/bzip2.rbuild
   This was actually called unbzip2.dll. Who knew

svn path=/trunk/; revision=44090
2009-11-11 03:21:16 +00:00
KJK::Hyperion 49ce5d1d63 Non-ANSI names need _CRTIMP too
svn path=/trunk/; revision=44089
2009-11-11 03:09:42 +00:00
Stefan Ginsberg 0c19771290 - Missed in previous commit: Fix VideoPortEnable/DisableInterrupt -- they should only fail if the driver didn't provide an ISR (documented).
svn path=/trunk/; revision=44086
2009-11-10 23:01:42 +00:00
Stefan Ginsberg 662ba31e98 - Fix HalDisableSystemInterrupt -- it doesn't return anything.
- Fix VideoPortEnable/DisableInterrupt -- they should only fail if the driver didn't provide an ISR (documented).

svn path=/trunk/; revision=44085
2009-11-10 23:00:51 +00:00
Dmitry Gorbachev a6c89f30fa Fix Japanese bug #4776.
svn path=/trunk/; revision=44084
2009-11-10 22:52:41 +00:00
Christoph von Wittich a72dd3434c sync shlwapi to wine 1.1.32
svn path=/trunk/; revision=44083
2009-11-10 21:36:55 +00:00
Christoph von Wittich 2afeb94e20 sync SHGetFileInfo and CommandLineToArgvW to wine 1.1.32
svn path=/trunk/; revision=44082
2009-11-10 21:31:37 +00:00
Christoph von Wittich e8c61b4a52 partial shell32 sync to wine 1.1.32
svn path=/trunk/; revision=44081
2009-11-10 21:29:56 +00:00
Christoph von Wittich 8f8f2a36c0 fix ILCreateControlPanel and ILCreatePrinters
svn path=/trunk/; revision=44080
2009-11-10 20:35:07 +00:00
Christoph von Wittich 1526c2358d sync shell32/shelllink to wine 1.1.32
svn path=/trunk/; revision=44079
2009-11-10 20:09:00 +00:00
Stefan Ginsberg 31baf39ed3 - Correct author of freeze.c (code was copied from cpu.c).
svn path=/trunk/; revision=44078
2009-11-10 16:42:31 +00:00
Stefan Ginsberg ee750905e9 - Fix missing initialization of KdComPortInUse, containing the base address of the port used by kdcom. The serial driver checks this variable to determine if it can use the port or if it should stay (the fuck) off. KdCom no longer hangs after serial driver initialization in second stage.
svn path=/trunk/; revision=44077
2009-11-10 14:23:44 +00:00
Johannes Anderwald 9a2bba4740 [KS]
- Implement KsGenerateEvent 

svn path=/trunk/; revision=44076
2009-11-10 10:50:57 +00:00
Johannes Anderwald c3eaa577c4 - Remove ASSERT && add param checks
svn path=/trunk/; revision=44075
2009-11-10 10:04:33 +00:00
Johannes Anderwald dcb1336203 [PORTCLS]
- Implement handling of enabling / disabling events
- Implement firing of events when certain position is reached
- Code not yet used as ks needs more work

svn path=/trunk/; revision=44074
2009-11-10 10:01:25 +00:00
Timo Kreuzer d129a33bad fix a preprocessor bug
svn path=/trunk/; revision=44068
2009-11-10 01:47:09 +00:00
Stefan Ginsberg b4835e6bad - Add KCALLOUT_FRAME to define the kernel callback stack layout during user mode callbacks. Define the NextCallback and FramePointer members of the debugger data block more portably with this.
- AMD64's is a copy of x86's to match asm.h's the assembly offsets. ARM's is a stub containing two necessary members to have some offsets for the debugger data block.
- Add ARM stub for KiCallUserMode as this is referenced from the debugger data block.

svn path=/trunk/; revision=44063
2009-11-09 23:19:03 +00:00
Stefan Ginsberg ccd3b00fd2 - Fix unsigned/signed compare, spotted by Christoph
svn path=/trunk/; revision=44062
2009-11-09 23:07:04 +00:00
Stefan Ginsberg a9f0dd5a8d - Implement the generic bus handler support and initialization.
- Add missing hack flags for ACPI hacks.
- Add the hack flags to the registry.

svn path=/trunk/; revision=44061
2009-11-09 22:59:49 +00:00
KJK::Hyperion 652e881f54 ... on the other hand, O_BINARY is a Win32 thing
svn path=/trunk/; revision=44060
2009-11-09 22:56:06 +00:00