Commit graph

44928 commits

Author SHA1 Message Date
Johannes Anderwald 39b14c177e [Y]
- Fix argument checking
- Close correct handle
- Patch by Kuts Alexey
- bug 6004

svn path=/trunk/; revision=51087
2011-03-18 16:28:21 +00:00
Giannis Adamopoulos b75783bd61 [win32k]
- SetThreadDesktop: Actually set hdesk in PTHREADINFO
Now GetThreadDesktop doesn't return 0

svn path=/trunk/; revision=51086
2011-03-17 20:32:24 +00:00
Aleksey Bragin 1ba1132e21 [NTDLL/LDR]
- Use LdrpRunInitializeRoutines() instead of the old LdrpAttachThread(). This adds calls to unimplemented context functions, but since they were not called at all by the old code it shouldn't change the behaviour significantly. Besides of that, it's start of significant changes in the "mainstream" codepaths, so regressions might occur.

svn path=/trunk/; revision=51085
2011-03-17 17:47:42 +00:00
Aleksey Bragin 3b6432c7ed [NTDLL]
- Implement fetching address of a security cookie in an image. Still not used even if it's present there.
- Silence some debug prints.

svn path=/trunk/; revision=51084
2011-03-17 14:25:59 +00:00
Aleksey Bragin 6fc1e4e122 [RTL]
- Limit unimplemented warnings about RtlActivateActivationContextUnsafeFast calls for now so that they don't flood the log too much.

svn path=/trunk/; revision=51083
2011-03-17 14:24:34 +00:00
Giannis Adamopoulos 71201dea2c [win32k]
- Improve the definition and simplify NtUserCreateDesktop, NtUserOpenDesktop, NtUserCreateWindowStation, NtUserOpenWindowStation

svn path=/trunk/; revision=51082
2011-03-17 13:19:18 +00:00
Aleksey Bragin bfb74cd0bc - Fix build.
svn path=/trunk/; revision=51080
2011-03-17 11:20:16 +00:00
Aleksey Bragin 22cb80d434 [NTDLL/LDR]
- Fix a typo in LdrQueryProcessModuleInformationEx().
- Stub LdrpEnsureLoaderLockIsHeld() for now.
- Improve LdrpRunInitializeRoutines() and enable it (just compiling, it's not in the running path of the code yet).
- Fix an uninit var warning in ldrpe.c
- Implement LdrpClearLoadInProgress().
- Rename "ExeModule" to a more consistent LdrpImageEntry.

svn path=/trunk/; revision=51079
2011-03-17 10:59:54 +00:00
Roel Messiant 64c7077d57 [GENERAL]
Patch by Rafal Harabien (rafalh1992 at o2 dot pl)
- Change () to (VOID) in function declarators. Part 6/XX.
[USETUP]
Patch by Rafal Harabien (rafalh1992 at o2 dot pl)
- Initialize Offset field of partition list. Spotted using DPH.

svn path=/trunk/; revision=51072
2011-03-16 21:07:25 +00:00
Colin Finck 58230f89cc [SHELL32]
Thomas Faber
- Fix memory leak in RenderHDROP.
  Modifications by me to have just a single return statement in the function.

See issue #5998 for more details.

svn path=/trunk/; revision=51069
2011-03-16 16:46:37 +00:00
Johannes Anderwald 0416030d2a [WDMAUD_KERNEL]
- Don't alter the IoStatus.Information field with the number of bytes written
- Fixes sndrec32 crash (now also working in ReactOS)
- Should be merged to 0.3.13 ;)

svn path=/trunk/; revision=51067
2011-03-16 15:18:52 +00:00
Aleksey Bragin 3f20ae61b8 [NTDLL/LDR]
- Rewrite LdrQueryProcessModuleInformation.
- Start committing PE loader related code (quite a lot of it, and still not all parts yet), unused right now so won't break anything.

svn path=/trunk/; revision=51065
2011-03-16 14:22:15 +00:00
Colin Finck 4b2c1d1a6b [RAPPS]
Change all ftp:// links to http:// ones. The changes to the fragile Mozilla links should be reverted as soon as our/Wine's URLDownloadToFileW function finally supports FTP URLs.
Vote for Wine Bug 26445 (http://bugs.winehq.org/show_bug.cgi?id=26445) to get this fixed!

svn path=/trunk/; revision=51063
2011-03-16 13:28:39 +00:00
Pierre Schweitzer d1b85c4a85 [RAPPS]
Due to a lack of implemented feature in DLL, switch FF3.6 download links to HTTP.
Site given by Mozilla Foundation.

svn path=/trunk/; revision=51062
2011-03-16 12:18:57 +00:00
Aleksey Bragin 8f7c38cd44 [RTL]
- Hack away LdrVerifyMappedImageMatchesChecksum() invocations with zero ImageSize until MM is fixed.
- Implement a helper ChkSum() routine to be used later by LdrVerifyMappedImageMatchesChecksum().

svn path=/trunk/; revision=51061
2011-03-16 11:58:12 +00:00
Aleksey Bragin cfec4ed826 [NTDLL/LDR]
- Rewrite LdrImageMatchesChecksum, remove now outdated LdrpCheckImageChecksum.

svn path=/trunk/; revision=51060
2011-03-16 09:52:41 +00:00
Aleksey Bragin c396511623 [RTL]
- Implement LdrVerifyMappedImageChecksum (copied from ntdll/ldr/utils.c).

svn path=/trunk/; revision=51059
2011-03-16 09:49:07 +00:00
Colin Finck 7ffb757e8b [CRT]
- Revert 38185 which synced fputwc to the Wine version for the sake of fixing Winetests.
  This removed the implicit ANSI conversion, which was honestly checking the wrong flags. The new version correctly checks for WX_TEXT and only does the conversion in this case. This way we also don't fail any additional Winetests.
- Simplify streamout_char in the new printf implementation and use _fputtc instead of _flsbuf.
  This way, we correctly do an implicit ANSI conversion when required.
- Fix fgetwc declaration.

Thanks to Timo for many hints and assistance. Most of this code is actually his idea :-)
Thanks to Olaf for providing a build server to speed up my code tests.

See issue #6007 for more details.

svn path=/trunk/; revision=51058
2011-03-15 23:45:38 +00:00
Pierre Schweitzer c6add84fb9 [NDK]
Define HAL_IRQ_TRANSLATOR_VERSION constant

[NTOSKRNL]
When needed, use HAL_IRQ_TRANSLATOR_VERSION from NDK and don't define it locally

svn path=/trunk/; revision=51057
2011-03-15 19:45:43 +00:00
Aleksey Bragin 10346cccb2 [NTDLL/LDR]
- Rewrite loader lock APIs. Now they support proper flags, return correct error codes and generate/check a cookie.

svn path=/trunk/; revision=51056
2011-03-15 18:56:17 +00:00
Aleksey Bragin 62fce851b1 [SETUP]
- Mario Kacmar: Added 'VBR only' as possible option to the reactos.exe - it is necessary to add it to other languages (I would not mess up codepages).

See issue #5734 for more details.

svn path=/trunk/; revision=51055
2011-03-15 18:50:31 +00:00
Roel Messiant ba15ac9cfc [DRIVERS]
- Change () to (VOID) in function declarators. Part 5/XX.

svn path=/trunk/; revision=51054
2011-03-15 18:41:17 +00:00
Sylvain Petreolle 92d94fdb7c [SHELL32]
Fix missing "Open" menu entry on right click for All Users desktop shortcuts.
Patch by Thomas Faber <thfabba at gmx dot de>

See issue #5998 for more details.

svn path=/trunk/; revision=51053
2011-03-15 15:37:09 +00:00
Pierre Schweitzer f565766808 [HAL\x86]
Define a flag when building HAL with ACPI support

svn path=/trunk/; revision=51052
2011-03-14 22:25:50 +00:00
Aleksey Bragin 6d38425b3f [NTDLL/LDR]
- Rewrite TLS part of the ntdll loader. Old TLS-related messy, duplicated and hard to maintain code is gone.
- Disclaimer: All new ldr-rewrite code is almost entirely based on Alex's patch made in 2006, with my improvements, bugfixes and adapting existing codepaths.
- File naming convention: Files of the ldr*.c mask are considered as a new rewritten loader code. All other files in ntdll/ldr directory are old code which soon may be deprecated.

svn path=/trunk/; revision=51051
2011-03-14 22:06:25 +00:00
Giannis Adamopoulos 123516873b [win32k]
- Partly revert r51031

svn path=/trunk/; revision=51050
2011-03-14 15:59:21 +00:00
Colin Finck e15adf5dd5 [RAPPS]
- Add a "mIRC 6" entry to have a working IRC client while keeping "mIRC 7" for testing. (see bug 6005)
  Keep in mind that the automatically downloaded app database is the same for previous releases, current releases and Trunk, so just changing the version for the release wouldn't have been a solution.
- Add SumatraPDF 1.2 (working) to the app database. Patch by Vincenzo Cotugno (vins820 at hotmail dot com), German translation by me.
- Change all .txt files to svn:eol-style CRLF, these are target files which should have Windows line-endings.

svn path=/trunk/; revision=51048
2011-03-14 14:31:19 +00:00
Johannes Anderwald 3f8643ca67 [MSAFD]
- Print the caller in MsafdReturnWithErrno
- Initialize SockAsyncCompletionPort handle
- Check if the creation of the completion port failed
- Defer free of the socket information struct until the socket handle has been closed because the socket may have a pending select. When the socket is closed, the pending select is canceled, thus a apc routine is invoked which access the freed socket information struct.
- Fixes mIRC crash
- Should be merged to 0.3.13 branch

svn path=/trunk/; revision=51047
2011-03-14 12:48:28 +00:00
Pierre Schweitzer 95dbb35059 [RAPPS]
Added French translation for all the available applications. Only strings that other translators have translated are translated here.
Regarding OOo 2.4, as 2.4.3 version isn't available in French (wut?!), it has been set to 2.4.2.
If anything wrong, let me know.

svn path=/trunk/; revision=51046
2011-03-14 08:40:09 +00:00
Colin Finck 58e86efe04 [RAPPS]
Adam Stachowicz (saibamenppl@gmail.com)
- Fix mIRC version number in Rapps

See issue #5999 for more details.

svn path=/trunk/; revision=51044
2011-03-13 22:00:28 +00:00
Colin Finck 4bcca728f3 Michael Martin
- Fix "EnableUserModePnpManager() failed!" in second stage setup.

Tested by Eric Kohl and igorko.
See issue #5989 for more details.

svn path=/trunk/; revision=51043
2011-03-13 21:55:49 +00:00
Roel Messiant b16c59e50e [WDMAUD.DRV]
- Correct function declaration of WdmAudOpenSoundDeviceByLegacy and remove a duplicate (wut..).  Should fix build.

svn path=/trunk/; revision=51042
2011-03-13 21:28:51 +00:00
Roel Messiant 9009dd37ad [DLL]
- Change () to (VOID) in function declarators. Part 4/XX.

svn path=/trunk/; revision=51041
2011-03-13 20:56:27 +00:00
Roel Messiant 338d63e19c [BASE]
- Change () to (VOID) in function declarators. Part 3/XX.

svn path=/trunk/; revision=51039
2011-03-13 17:59:02 +00:00
Colin Finck d99032f362 [RAPPS]
Rafal Harabien (rafalh1992@o2.pl)
- Fix links and descriptions in the Rapps database, also update some application versions

I took the last patch in the bug report and applied the changes to remood.txt manually (due to mixed encoding within the same file).
See issue #5999 for more details.

svn path=/trunk/; revision=51034
2011-03-13 12:49:37 +00:00
Colin Finck 4956af0dbc [RAPPS]
Fix a bug while testing Rapps under Windows. If you had an application with no registered DisplayName installed, Rapps used to consider every application with no RegName in its database (= currently all Rapps applications) installed. Therefore the list of available applications has always been empty.
Now an application is always added to the ListView if no RegName is set for it.

svn path=/trunk/; revision=51033
2011-03-13 12:44:58 +00:00
Pierre Schweitzer 2ad9ba56bd [RAPPS]
Fix french translation file encoding

svn path=/trunk/; revision=51032
2011-03-13 12:10:41 +00:00
Giannis Adamopoulos d1a2f235a3 [win32]
- Rafal Harabien:
- Always call IntKeyboardInput and co_MsqPostKeyboardMessage while holding the user lock
- Simplify cleaning up sent messages
See issue #5580 for more details.

svn path=/trunk/; revision=51031
2011-03-13 11:22:18 +00:00
Pierre Schweitzer 58b9a229c5 [RAPPS]
French translation by Jason Toscano <JasonGenie at gmail dot com>
Corrections/adjustements by me
See issue #5993 for more details.

svn path=/trunk/; revision=51030
2011-03-13 10:43:38 +00:00
Aleksey Bragin 18e63b0a1e [USER32]
- Rafal Harabien: Add some missing bitmaps to user32. They are copied from Wine. Change "old" cursors identifiers to defines from winuser.h (OCR_*).
See issue #6000 for more details.

svn path=/trunk/; revision=51029
2011-03-13 09:56:01 +00:00
Roel Messiant dca21c3ce8 [FTP]
- FTP has been a really, really naughty app.. Fix up function prototypes and definitions after () -> (void) change.
  Fixes build.. if I'm lucky.

svn path=/trunk/; revision=51028
2011-03-12 23:39:18 +00:00
Roel Messiant bd9d264de3 [APPLICATIONS]
- Change all C function prototype declarations with an empty argument list to use void, or the list specified in the function definition.
  According to the C language specification, such a declaration means "no information about the number or types of the parameters is supplied".
  This can expose cases where gcc allows us to pass an excessive amount of arguments to functions in certain cases.
  Thanks to Thomas Faber for informing us about this.

svn path=/trunk/; revision=51027
2011-03-12 19:03:27 +00:00
Amine Khaldi f51eb1ce60 [DDK]
Fix ioaccess.h svn properties. Spotted by Jonathan Yong.

svn path=/trunk/; revision=51026
2011-03-12 15:50:58 +00:00
Pierre Schweitzer dc102df1d6 [NTOSKRNL]
Revert r51017 that was reverting r51016.
In fact, it seems that cmlib assert error, whatever that eats randomly doesn't come from software issue inside ReactOS, but from a build issue.
Indeed, as you may see in the different tests I performed it shows that the same build produces the same failure, again and again. But, new build shows that there is no assert anylonger with that commit.
Don't ask me why or how it happens, I just don't get it.
But most of the time, it works, no one knows why ("as usual" (tm)). But it's cool.

Someone from BE team and/or buildslaves managers should take a serious look at this issue.

Just in case: if that commit re-hits cmlib assert, don't blame it immediatly, just commit something else, and see whether trunk is still broken.
But, as you can see in testman, we have now test results for r51016 ;-)

svn path=/trunk/; revision=51025
2011-03-12 12:56:36 +00:00
Pierre Schweitzer 57664d7105 [EXPLORER]
Make fix of r51022 compiler independant, on Johannes' suggestion.

svn path=/trunk/; revision=51024
2011-03-12 11:53:55 +00:00
Giannis Adamopoulos a6812ef2e2 [win32k]
-In WH_KEYBOARD hook, lparam isn't a pointer to KBDLLHOOKSTRUCT
See issue #5991 for more details.

svn path=/trunk/; revision=51023
2011-03-12 11:08:06 +00:00
Pierre Schweitzer df00c74675 [EXPLORER]
Fix array access out of bounds.
See issue #5990 for more details

svn path=/trunk/; revision=51022
2011-03-12 08:23:05 +00:00
James Tabor 47dde244bd [Win32k]
- Move the drag detection routine to kernel space, this will decrease the number of kernel calls that is noticeable with slower systems running an emulator.

svn path=/trunk/; revision=51021
2011-03-12 01:29:08 +00:00
Eric Kohl f33b16a71d [SETUPAPI]
Implement CM_Register_Device_Driver[_Ex].

svn path=/trunk/; revision=51020
2011-03-11 18:58:23 +00:00
Jérôme Gardou 0cc06c7b45 [OPENGL32]
- use well defined macro instead of weird pointer calculation
  - reset thread specific data on a thread detach call
Fixes crash in heroes 3 and probably others

svn path=/trunk/; revision=51019
2011-03-11 18:17:34 +00:00