Commit graph

49394 commits

Author SHA1 Message Date
Cameron Gutman 70bb5d0a00 [RTL]
- Pass size 0 when calling NtFreeVirtualMemory for MEM_RELEASE

svn path=/trunk/; revision=54668
2011-12-17 08:30:48 +00:00
Cameron Gutman 76f66ed7a2 [RTL]
- Don't pass stack garbage to ZwFreeVirtualMemory

svn path=/trunk/; revision=54667
2011-12-17 08:22:04 +00:00
Cameron Gutman 80ecdce6cc [RTL]
- Revert r54660 and properly fix NtAllocateVirtualMemory/NtFreeVirtualMemory usage

svn path=/trunk/; revision=54666
2011-12-16 20:12:28 +00:00
Rafal Harabien 6b5f6de9b9 [POWRPROF]
- Fix few resource leaks, possible buffer overflows and simplify code

svn path=/trunk/; revision=54665
2011-12-16 19:22:07 +00:00
Eric Kohl a94be71456 [EVENTLOG]
Implement ElfrBackupELFA and ElfrReportEventA.

svn path=/trunk/; revision=54664
2011-12-16 18:18:20 +00:00
Dmitry Gorbachev c36e04fa83 [TRANSLATIONS]
- Sync translated resource files (DeskADP and most of CPL) with English files.
- Small Czech update of DXDiag and TaskMgr translations by Radek Liska (bug #6774).

svn path=/trunk/; revision=54663
2011-12-16 17:18:05 +00:00
Aleksey Bragin b8928d9e26 [REFORMATTING]
- Reindent the dbgbuffer.c code to the ReactOS Standard Indentation.

svn path=/trunk/; revision=54662
2011-12-16 15:45:09 +00:00
Sylvain Petreolle ce424af08c [CRT/MSVCRT]
Follow original design/style of printf module
Always use dosmaperr to convert win32 errors to sane crt errors
Enable forgotten _get_doserrno, get_errno, set_doserrno and _gmtime32_s
Small fixes to pass more wine tests.

Patch by Samuel Serapión.

svn path=/trunk/; revision=54661
2011-12-16 15:44:37 +00:00
Aleksey Bragin 5bf403a592 [RTL/QDB]
- Fix a massive memory leak when running Opera 9.64 (because created QDBs were never freed).

svn path=/trunk/; revision=54660
2011-12-16 15:36:38 +00:00
Aleksey Bragin 82c522f2ea [NTDLL/LDR]
- Fix SxS path calculation, now it returns proper full path to the DLL instead of just "C:\ReactOS\winsxs". Spotted by AbiWord 2.9.2.

svn path=/trunk/; revision=54659
2011-12-16 13:39:48 +00:00
James Tabor 94367a3205 - Fix arrage iconic windows. Set the minimized window position.
svn path=/trunk/; revision=54658
2011-12-16 01:49:10 +00:00
Olaf Siejka f6c62c272e [TRANSLATION]
- inetcpl romanian translation update, resource file update for all languages by Stefan Fulea (bug no. 6766);
- polish translation update of inetcpl and resources changed by revision 54644;

svn path=/trunk/; revision=54657
2011-12-15 23:59:54 +00:00
Eric Kohl ab618427e0 [EVENTLOG]
- Implement ElfrClearELFA and ElfrClearELFW.
- Fix the module name conversion in ElfrOpenELA and ElfrRegisterEventSourceA.

svn path=/trunk/; revision=54656
2011-12-15 21:33:46 +00:00
James Tabor ca6eeb6640 - Fix putty 0.62 dialog.
svn path=/trunk/; revision=54655
2011-12-15 00:42:14 +00:00
James Tabor b3740c4b79 - Sync wine Imm32.
svn path=/trunk/; revision=54654
2011-12-15 00:40:35 +00:00
James Tabor cb01664625 - Sync wine Imm32 tests.
svn path=/trunk/; revision=54653
2011-12-15 00:39:37 +00:00
Sylvain Petreolle 965b4e276c Fix amd64 build.
svn path=/trunk/; revision=54652
2011-12-14 23:46:23 +00:00
Sylvain Petreolle b30bf6de31 [CRT]
- Update file.c to recent wine. (now with locking!)
- implement/enable __wcserror, __wcserror_s, _access_s, _ctime32_s, _ctime64_s,
_cwprintf, _fseeki64, _ftelli64, _get_osplatform, _get_output_format,
_get_pgmptr, _get_wpgmptr, _get_terminate, _get_tzname, _get_unexpected,
_gmtime64_s, _i64toa_s, _i64tow_s, _initterm_e, _itoa_s, _itow_s,
_localtime32_s, _localtime64_s, _ltoa_s, _ltow_s, _putwch, _searchenv_s,
_sopen_s, _ui64toa_s, _ui64tow_s, _vcwprintf, _vsprintf_p, _waccess_s,
_wcserror, _wcserror_s, _wfopen_s, _wsopen_s, fopen_s, fprintf_s, fwprintf_s,
printf_s, strerror_s, strncpy_s, strtok_s, vfprintf_s, vfwprintf_s, vprintf_s,
vwprintf_s, wcscat_s, wcsncat_s, wcstok_s, wprintf_s. Most code comes from
wine.
- Fix __set_errno -> _set_errno and export it.
- Remove unneeded files.
[CRT_HEADERS]
- add threadmbcinfo struct.
- update some sec_api headers from mingw64 due to missing or incorrect
functions.

Patch by Samuel Serapion.
Changes to msvcrt spec by me due to winebuild.
CRLF/LF fixes.

svn path=/trunk/; revision=54651
2011-12-14 22:09:24 +00:00
Sylvain Petreolle 838328b1ed [MKSHELLLINK]
Fix MSVC build.

Patch by Samuel Serapion.

svn path=/trunk/; revision=54650
2011-12-14 21:58:53 +00:00
Cameron Gutman 73252334c4 [NTOSKRNL]
- Quiet down the paging path

svn path=/trunk/; revision=54649
2011-12-14 18:39:21 +00:00
Cameron Gutman c6b88aa125 [NTOSKRNL]
- Don't page out locked pages
- Fixes random failed assertions in MmUnlockPages

svn path=/trunk/; revision=54648
2011-12-14 17:53:15 +00:00
Dmitry Gorbachev f4065b5b2a [WIN32K]
Fix indentation, comments, debug messages. Lioncash (mathew1800\AT/gmail\DOT/com), bug #6762.

svn path=/trunk/; revision=54647
2011-12-14 04:07:06 +00:00
Alex Ionescu b5381f1fd7 [RTL]: Implement, and export, RtlDosSearchPath_Ustr as well as RtlGetFullPathName_UstrEx. RtlGetFullPathName_U is still old code but it seems good enough for now, and isn't the next target.
Nothing calls this code yet (SearchPathW soon will), this is just an implementation commit. Code was tested to boot to 3rd stage after SearchPath modification, which is the next target (step 2).
After which, the only code in the loader paths that uses legacy path APIs will be the create process path, the third and final step.

svn path=/trunk/; revision=54646
2011-12-14 03:55:54 +00:00
Dmitry Gorbachev 24c26cc161 [TRANSLATION]
Add Romanian translation for BrowseUI, update many older translations.
Patch by Stefan Fulea. Bug #6765.

svn path=/trunk/; revision=54645
2011-12-14 00:53:58 +00:00
Dmitry Gorbachev b49067f626 [TRANSLATION]
Sync translated files with English files.

svn path=/trunk/; revision=54644
2011-12-13 13:37:08 +00:00
Aleksey Bragin f27f17fb97 [MSAFD]
- Handle SO_SNDBUF in WSPSetSockOpt so that it doesn't fall through to wshtcpip and result in "unknown level: 65536".
- Added more trace messages.
See issue #5477 for more details.

svn path=/trunk/; revision=54643
2011-12-12 22:31:09 +00:00
Eric Kohl 2116571788 [ADVAPI32]
ReportEventA/W: Strings must be passed to ElfrReportEventA/W as a pointer to an array of PANSI_STRINGs instead of a pointer to an array of ANSI_STRINGs. Now, strings appear in the event viewer.

svn path=/trunk/; revision=54642
2011-12-12 21:54:20 +00:00
Rafal Harabien afac3095f0 [WIN32K] - Formatting. No code changes.
svn path=/trunk/; revision=54641
2011-12-11 20:09:53 +00:00
Johannes Anderwald be38b5da3b [PORTCLS]
- Add support for IDrmPort, IDrmPort2
- more debug traces 

svn path=/trunk/; revision=54640
2011-12-11 10:51:37 +00:00
Sylvain Petreolle df57cb5880 [WIN32K]
Fix MSVC build.

svn path=/trunk/; revision=54639
2011-12-10 21:30:17 +00:00
James Tabor 388f6d13c8 - missed this file.
svn path=/trunk/; revision=54638
2011-12-10 07:46:10 +00:00
James Tabor 527f83f57d [Win32k|User32]
- Fix Get/SetWindowPlacement and everything related. Which exposed the scroll bar over write issue, it's not refreshing the client window when it is maximized. Next thing to fix.
- Fix ShowWindowAsync, now restore and minimize all works. This is based on wine but in reality it's based on Windows queuing event messages used in server side internal calls. Also this patch includes the server side hooking points.
- Removed one ugly API.
- Fixes bug 6239, 6739 and client window restore from maximize and the incremental crawling down issue when parent window is minimized then restored.

svn path=/trunk/; revision=54637
2011-12-10 07:41:56 +00:00
James Tabor e1207737c2 - Fix dialog themes support for get text.
svn path=/trunk/; revision=54636
2011-12-10 07:03:33 +00:00
James Tabor 64e13bde73 - Fix make window active so to restore window.
svn path=/trunk/; revision=54635
2011-12-10 07:00:09 +00:00
James Tabor 9adebc4bec [Win32k]
- Fixups to set focus and show window support, added notes. Add is window visible. Fix a binary bit return, 1 is TRUE. Fix get client rectangle. Minor fixups.

svn path=/trunk/; revision=54634
2011-12-10 06:08:29 +00:00
James Tabor 3c7096002a [Win32k]
- Get FlashWindow working, pass all but 2 tests. Add more win32k atoms.

svn path=/trunk/; revision=54633
2011-12-10 06:00:38 +00:00
Cameron Gutman 13adb6230a [USETUP]
- Cache the last data block and offset so we don't have to search from the start each time
- This avoids needless swapping of cabinet data in and out of RAM
- File copy in text-mode setup on 32 MB RAM is down from 8 minutes to 20 seconds (in my testing)

svn path=/trunk/; revision=54632
2011-12-10 04:20:39 +00:00
Cameron Gutman 80e8caa0b9 [NTOSKRNL]
- Print trimmed consumers during text-mode setup too

svn path=/trunk/; revision=54631
2011-12-10 04:11:19 +00:00
Roel Messiant 2e113743c9 [WIN32K]
Probe the whole GAMMARAMP struct before reading/writing from it. CID 14114 & 14115.

svn path=/trunk/; revision=54630
2011-12-10 00:14:31 +00:00
Aleksey Bragin f9533e5eba [LDR]
- Fix invalid errors about "system DLL kernel32.dll was relocated in memory". This reverts my previous fix suggested by rafalh and puts a better explanation there in comments.

svn path=/trunk/; revision=54629
2011-12-09 21:43:03 +00:00
Pierre Schweitzer a21d3b9a41 [USP10]
Fix memory leak.
Already sent & committed upstream: 06f65740b2

svn path=/trunk/; revision=54628
2011-12-09 20:51:43 +00:00
Aleksey Bragin 8dd55da5d6 [ACTCTX]
- One more leftover from 54623. Remove actctx_init() from the activation context stack allocation.

svn path=/trunk/; revision=54627
2011-12-09 16:47:50 +00:00
Pierre Schweitzer 9f956fd752 [NTDLL]
Include ReactOS internal headers first

svn path=/trunk/; revision=54626
2011-12-09 16:29:06 +00:00
Cameron Gutman c18313aa3c [ACTCTX]
- Add a missing assignment
- Try #1 to fix KVM

svn path=/trunk/; revision=54625
2011-12-09 16:04:14 +00:00
Cameron Gutman ffcd78f426 [USETUP]
- Optimize cabinet file processing by finding files sequentially instead of starting from the beginning each time

svn path=/trunk/; revision=54624
2011-12-09 14:51:57 +00:00
Aleksey Bragin 417b739dbe [ACTCTX]
- Improve and rewrite a few active context support functions in RTL, making them more close to their real functionality and throwing away wineisms.
- Uncomment a line in RtlAllocateActivationContextStack() which was causing it to always allocate a new activation context stack even if there was one. Thanks to my previous commit in kernel32 counterpart, this hack is not needed anymore and memory won't be wasted.
- Since we have mostly Wine's code in our activation context implementation, it makes sense to use it properly until it's rewritten, so first of all:
- Properly initialize current process's activation context support by calling actctx_init() from LdrpInitializeProcess instead of calling it all the time when a new context is created.
- Bring in create_module_activation_context and find_actctx_dll (newer version from Wine which supports manifests/assmeblies in local directories) and use it. Every place where it's used is marked as a HACK so it will be easy to detach it later.
- Remove actctx-related hack LdrpInitializeThread, now it works properly.
- Fix a typo in LdrpMapDll found by rafalh. Now the error-detection condition will be correctly evaluated.
See issue #6611 for more details.

svn path=/trunk/; revision=54623
2011-12-09 10:33:09 +00:00
Rafal Harabien c3ae29cc85 - Revert a revert - KVM is broken
svn path=/trunk/; revision=54622
2011-12-08 23:14:54 +00:00
Roel Messiant fac5897ff1 [SYSSETUP]
- When writing a newline, write just a newline. Prevents garbage in setuplog.txt. CID 14128.


svn path=/trunk/; revision=54621
2011-12-08 21:23:17 +00:00
Cameron Gutman dfcc357969 [TCPIP]
- Fix IPPacket double free in IPSendDatagram failure case

svn path=/trunk/; revision=54620
2011-12-08 21:21:25 +00:00
Rafal Harabien 798a3cfa96 - Partially revert r54613 to fix test bot
svn path=/trunk/; revision=54619
2011-12-08 20:28:06 +00:00