Commit graph

49317 commits

Author SHA1 Message Date
Cameron Gutman 6764aa97c8 [NTOSKRNL]
- Fix a logic error
- Signal the balancer in the !CanWait case if we're too low on pages since it runs asynchronously as of recently

svn path=/trunk/; revision=54591
2011-12-04 19:22:51 +00:00
Roel Messiant c42d4ae0f0 [REGEDIT]
- Prevent buffer overflow when creating the display value for a value of type REG_MULTI_SZ.
- Prevent processing excess data when preparing a value of type REG_MULTI_SZ for editing.

svn path=/trunk/; revision=54590
2011-12-04 19:19:33 +00:00
Cameron Gutman 768046255e [NTOSKRNL]
- Print a warning and signal RosMm to trim pages if we drop below MmMinimumFreePages in MiRemovePageByColor and MiUnlinkFreeOrZeroedPage

svn path=/trunk/; revision=54589
2011-12-04 19:06:40 +00:00
Alex Ionescu ca193ad4a7 [RTL]: Clarify a comment.
svn path=/trunk/; revision=54588
2011-12-04 17:25:15 +00:00
Alex Ionescu 5bfc64af01 [KERNEL32]: Fix many bugs in BasepInitailizeEnvironment (and rename to BasePushProcessParameters):
- Depending on how big the full path is, either the application path or the full path should be used. Size the buffers correctly, too.
    - If the caller did not specify a window title, should use the app path as title.
    - Clear the current directory handle if InheritHandles is false.
    - Correctly handle CREATE_NEW_PROCESS_GROUP and CREATE_NEW_CONSOLE.
    - Check the failure codes of many APIs that we just assumed returned success.
    - STARTF_USEHOTKEY | STARTF_SHELLPRIVATE should be checked when inheriting console handles.
    - Handle 1MB and 16MB reservation requests.
    - Bugs remain: ImageSubsystem not written, and failure will leak. To be fixed later.

svn path=/trunk/; revision=54587
2011-12-04 16:34:58 +00:00
Alex Ionescu 778d8cec8a [RTL]: Fix a bug in RtlGetCurrentDirectory_U.
svn path=/trunk/; revision=54586
2011-12-04 16:27:32 +00:00
Alex Ionescu aa165b016c [NDK]: Add missing define.
svn path=/trunk/; revision=54585
2011-12-04 16:27:14 +00:00
Johannes Anderwald b77ebc4fd0 - add more debug traces
- see bug 6556

svn path=/trunk/; revision=54584
2011-12-04 16:20:07 +00:00
Olaf Siejka a0fce830ee [TRANSLATION]
- Romanian translation update (bug no. 6704) by Stefan Fulea;
- Lithuanian UTF-8 translation fixes (bug no. 6716) by Edijs Kolesnikovics;
- sysdm translation update by myself;



svn path=/trunk/; revision=54583
2011-12-04 14:53:17 +00:00
Olaf Siejka 03a54ff941 [SSSTARS]
- Convert the remainder of PL strings to UTF-8 to fix build, since that RC is declared as Unicode. Convert italian resources to UTF-8 and place all rc in a single section;

svn path=/trunk/; revision=54582
2011-12-04 14:46:04 +00:00
Eric Kohl fd7cf60b6b [BOOTDATA]
Log service control manager events in the system log.

svn path=/trunk/; revision=54581
2011-12-04 14:23:52 +00:00
Eric Kohl ebf5940723 [EVENTLOG]
- Open the application log if the desired log does not exist.
- Log eventlog service stop and shutdown.

svn path=/trunk/; revision=54580
2011-12-04 10:53:43 +00:00
Cameron Gutman 4ce4744000 [NTOSKRNL]
- Release the address space lock before entering SEH because an exception would result in recursive acquisition of the address space lock when the fault handler tries to grab it

svn path=/trunk/; revision=54579
2011-12-04 08:25:35 +00:00
Cameron Gutman 16d77664e7 [NTOSKRNL]
- Fix usage of SEH

svn path=/trunk/; revision=54578
2011-12-04 06:11:47 +00:00
Cameron Gutman a4479b14cd [NTOSKRNL]
- Gracefully fail when there is no more pool space left
- Mm already prints plenty of warnings in this case

svn path=/trunk/; revision=54577
2011-12-03 22:46:15 +00:00
Cameron Gutman 621c5a5680 [AFD]
- Fix the allocation size for AFD_ACTIVE_POLL to fix a 1 byte non-paged pool overrun

svn path=/trunk/; revision=54576
2011-12-03 21:34:49 +00:00
Eric Kohl 17954a4f65 [BOOTDATA]
Remove class2 and scsiport service keys from the registry because these drivers are loaded automatically when they are needed.

svn path=/trunk/; revision=54575
2011-12-03 21:17:11 +00:00
Kamil Hornicek b388ffbe70 [TRANSLATION]
Improved Czech resources.

svn path=/trunk/; revision=54574
2011-12-03 18:39:11 +00:00
Johannes Anderwald 6903aa1ae1 [PORTCLS]
- Use parameters which have been already probed by ks
- re-enable traces for property handler bug
- see bug 6662 6663 

svn path=/trunk/; revision=54573
2011-12-03 17:39:19 +00:00
Johannes Anderwald 755f485b8e [KS]
- store property item when there are custom specific properties
- Fix bug where the property handle routine received an invalid pointer to the data

svn path=/trunk/; revision=54572
2011-12-03 16:59:47 +00:00
Johannes Anderwald 8ee7ad7bcb - debug code for bug 6663
svn path=/trunk/; revision=54571
2011-12-03 13:55:07 +00:00
Cameron Gutman 75bfaddc5e [LIBWINE]
- Try to fix build

svn path=/trunk/; revision=54570
2011-12-03 11:36:30 +00:00
Cameron Gutman 5c0462dfe2 [NTOSKRNL]
- Use SEH when copying values back to the caller from NtFreeVirtualMemory

svn path=/trunk/; revision=54569
2011-12-03 11:18:18 +00:00
Christoph von Wittich 5ab217133c [psdk]
add missing files

svn path=/trunk/; revision=54568
2011-12-03 11:08:05 +00:00
Christoph von Wittich 7a4e87f841 [libwine]
add register.c to CMakeLists.txt as well

svn path=/trunk/; revision=54567
2011-12-03 11:03:45 +00:00
Christoph von Wittich adc5bbe1ae [libwine]
add wine dll registration functions to libwine (taken from winecrt0)

TODO: support for linking multiple res files
      rbuild/cmake: generating .rgs files from typelibs

svn path=/trunk/; revision=54566
2011-12-03 10:45:26 +00:00
Cameron Gutman b3c3a8b9ea [NTOSKRNL]
NtFreeVirtualMemory:
- Handle the case where a region size of 0 is passed in
- Return the correct error status for failure
- Copy back the rounded values
- Add checks and prints to catch callers doing nasty things  (one is commented out because csrsrv triggers it trying to release the first 1 MB of RAM during video init, not sure what to do there)

- There is a heap bug where calling RtlReAllocateHeap on a large block allocation (HEAP_ENTRY_VIRTUAL_ALLOC is set) will cause a call to NtFreeVirtualMemory with an offset base (illegal) and a length smaller than the total pages reserved in the VM region (also illegal). This bug is exposed by setupapi when it parses large INF files (like the PRO/1000 driver INF).

svn path=/trunk/; revision=54565
2011-12-03 10:30:02 +00:00
Sylvain Petreolle 164b6995a0 Fix typo.
svn path=/trunk/; revision=54564
2011-12-02 21:28:10 +00:00
Sylvain Petreolle ca78c02783 [CRT]
Normalize all crt dll entry points to be identical.
Implement a single per thread data structure, instead of ancient and incomplete
"wine port" hack and use it everywhere.
Remove completely unused HeapCreate calls that just wasted memory.
Update cpp.c and cppexcept.c to wine 1.3.33
Fix up strtok, wcstok, rand, and _beginthread_trampoline according to wine.
Add place holders for future locale stuff.

Patch by Samuel Serapion.

svn path=/trunk/; revision=54563
2011-12-02 21:18:42 +00:00
Johannes Anderwald 38734d95d1 - add debug code for handling bug 6663
svn path=/trunk/; revision=54562
2011-12-02 17:35:53 +00:00
Cameron Gutman 9bcecdfc3c [LWIP]
- Save a bit of memory by changing the way pbufs are allocated for transmission

svn path=/trunk/; revision=54561
2011-12-02 06:55:05 +00:00
Cameron Gutman 857e528264 [NDIS]
- Print miniport attribute flags

svn path=/trunk/; revision=54560
2011-12-02 03:21:21 +00:00
Cameron Gutman 77ed514f64 [NDIS]
- Implement NdisReturnPackets and do proper reference tracking of packets sent to ProtocolReceivePacket
- Plug a massive memory leak that resulted in leaking every packet descriptor that any deserialized miniport indicated to TCP/IP

svn path=/trunk/; revision=54559
2011-12-02 01:56:10 +00:00
Cameron Gutman f5fda30d65 [NDIS]
- Call FreeCommonBuffer() synchronously if we're running at PASSIVE_LEVEL to avoid cases where the miniport could be freed before the work item runs

svn path=/trunk/; revision=54558
2011-12-01 23:04:22 +00:00
Cameron Gutman 0cc9adb789 [NDIS]
- Make NdisMAllocateSharedMemoryAsync and NdisMFreeSharedMemory safe to call at IRQL <= DISPATCH_LEVEL

svn path=/trunk/; revision=54557
2011-12-01 22:31:54 +00:00
James Tabor eb9eb149da [Win32k|User32]
- Fix regressions, running RegEdit. Adding more support for scroll bar controls. Pass all but 7 tests including the two wine todos.

svn path=/trunk/; revision=54556
2011-12-01 12:42:05 +00:00
James Tabor c156702b26 [Win32k|User32]
- Fix scrollbar class support. Sync ports from wine. Added the window scroll structure to the class. Pass all but 15 tests, two are wine todos lines 304 and 343.

svn path=/trunk/; revision=54555
2011-12-01 03:20:02 +00:00
Pierre Schweitzer b1b439d600 [MSVCRT_APITEST]
Add MSDN example

svn path=/trunk/; revision=54554
2011-11-30 23:47:41 +00:00
Cameron Gutman be25cf73ff [NDIS]
- Fix parsing of hex strings

svn path=/trunk/; revision=54553
2011-11-30 22:27:14 +00:00
Pierre Schweitzer 054f2fe7ce [CRT]
Fix error handling for j0, j1, y0, y1 Bessel functions.
Remove useless defines

svn path=/trunk/; revision=54552
2011-11-30 22:04:54 +00:00
Cameron Gutman 5a339d9479 [NTOSKRNL]
- Only flush pages if we can't satisfy Mm's target without using dirty pages

svn path=/trunk/; revision=54551
2011-11-30 21:58:46 +00:00
Pierre Schweitzer 12c5843d21 [MSVCRT_APITEST]
Add more tests

svn path=/trunk/; revision=54550
2011-11-30 21:03:35 +00:00
Cameron Gutman f9794fddef [NTOSKRNL]
- Optimize CcRosTrimCache by eliminating an extra loop of all segments
- Allow swapping of dirty segments by flushing them first

svn path=/trunk/; revision=54549
2011-11-30 17:10:43 +00:00
Thomas Faber 246357c187 [NTDLL_APITEST]
- Add NtAllocateVirtualMemory test, which is a small stress test for virtual memory allocation/freeing/reuse
- Can be used to reproduce bug 5857 in third stage (install with VT-x enabled, then disable for the test)
- Shows that the bug is a race condition in Mm, and not heap's fault
- I've put ASSERTs instead of ok's for easier debugging

svn path=/trunk/; revision=54548
2011-11-30 17:00:23 +00:00
Rafal Harabien 487b1bdaec [SHELL32] - Restore functionality of Start Menu from old shell32
svn path=/trunk/; revision=54547
2011-11-30 12:21:27 +00:00
Rafal Harabien f0fd524b40 [EXPLORER-NEW] - Improve start menu initialization a bit so it shows what failed
svn path=/trunk/; revision=54546
2011-11-30 12:20:08 +00:00
Dmitry Gorbachev a2b753d441 [SsStars]
Update Starfield screensaver translations (bug #6270):
- Polish by Wojtek Kozlowski <=wojtekkozlo664=AT=op=DOT=pl=>;
- Russian by Evilslon <=evilslon=AT=mail=DOT=ru=>.

svn path=/trunk/; revision=54545
2011-11-30 11:27:50 +00:00
Cameron Gutman ad13fe7571 [NTOSKRNL]
- Many balancer fixes for concurrency, improved swapping efficiency, and reduced code duplication
- Move the low memory case back under the PFN lock
- Debugging is on for now because I don't trust the paging code all that much (it was not used very much until recently)

svn path=/trunk/; revision=54544
2011-11-29 23:59:25 +00:00
Rafal Harabien d6462341ba [SHLWAPI] - Add a diff file
svn path=/trunk/; revision=54543
2011-11-29 19:30:50 +00:00
Rafal Harabien 5d73fe256d [SHLWAPI] - PathIsUNC returns FALSE for paths starting with "\\?". Should be sent to wine.
svn path=/trunk/; revision=54542
2011-11-29 19:10:22 +00:00