Commit graph

38762 commits

Author SHA1 Message Date
Cameron Gutman b12ea8a99d - Fix several bugs in select code and remove some dead code
- Fix a typo
 - Part 1 of x

svn path=/trunk/; revision=42673
2009-08-15 02:09:23 +00:00
Timo Kreuzer 987115d431 Fix screwed logic in LIST_FOR_EACH and LIST_FOR_EACH_SAFE. They were 1. using inverse logic and entering the loop when elem was NULL, 2. checking elem, whick is the result of CONTAINING_RECORD on the Flink pointer that should be checked for NULL. Anyway these macros are ugly and shouldn't be used, they only obfuscate the code.
svn path=/trunk/; revision=42672
2009-08-15 00:40:09 +00:00
Timo Kreuzer ea8e3db781 [win32k] EngCreateDeviceBitmap: handle failure of EngLockSurface. Found by Amine.
svn path=/trunk/; revision=42671
2009-08-14 22:08:15 +00:00
Johannes Anderwald 74bd2a036d - Implement KsPropertyHandler, KsPropertyHandlerWithAllocator, KsFastPropertyHandler
svn path=/trunk/; revision=42669
2009-08-14 19:44:01 +00:00
Johannes Anderwald 11a3ac6f28 [KS]
- Proper implement KsValidateConnectRequest
- Dataformat isnt not yet checked

svn path=/trunk/; revision=42664
2009-08-14 09:27:24 +00:00
Johannes Anderwald 9a7221dc8b - A few header updates
svn path=/trunk/; revision=42663
2009-08-14 09:26:05 +00:00
Timo Kreuzer 2ecb57cb19 More fix NtUserSetWindowContextHelpId. Spotted by Cameron.
svn path=/trunk/; revision=42662
2009-08-14 01:37:28 +00:00
Cameron Gutman a1a8e7a706 - Fix several bugs so select() will now recognize when a connection gets closed
svn path=/trunk/; revision=42661
2009-08-14 00:09:59 +00:00
Cameron Gutman e90b905e0b - Fix a NULL pointer dereference if ExAllocatePool fails
- Move some sanity checks into the right location
 - Fix another NULL pointer dereference if there is not a socket on the queue
 - Also spotted by Amine Khaldi

svn path=/trunk/; revision=42660
2009-08-13 23:42:21 +00:00
Cameron Gutman 42e498c4b0 - Fix a handle leak
- Fix a potential NULL pointer dereference if ExAllocatePool fails
 - Fix a potential NULL pointer dereference that causes AFD to crash when the socket is closed with waiting send IRPs
 - Fix another NULL pointer dereference if NdisOpenConfiguration fails
 - Move ASSERT before accessing Status
 - Add some sanity checks
 - Most of these were found by Amine Khaldi

svn path=/trunk/; revision=42659
2009-08-13 23:38:57 +00:00
Johannes Anderwald 2bddd27873 [SPLITTER]
- Implement Splitter (WIP)

svn path=/trunk/; revision=42650
2009-08-13 10:05:42 +00:00
Johannes Anderwald d8fa27fec7 [KS]
- Check if irp was allocated
- Unimplement KsPinGetConnectedPinFileObject

svn path=/trunk/; revision=42649
2009-08-13 09:54:51 +00:00
Johannes Anderwald 3f99bec9f5 - Implement IPortDMus_fnNewRegistryKey
svn path=/trunk/; revision=42648
2009-08-13 09:53:13 +00:00
Stefan Ginsberg 538f32f9ba - Re-disallow warnings for gdi32, user32 and lsasrv
svn path=/trunk/; revision=42647
2009-08-13 09:34:37 +00:00
Stefan Ginsberg ea8bcfbef4 - Make gdi32 compile warning free under msvc
svn path=/trunk/; revision=42646
2009-08-13 09:29:48 +00:00
James Tabor 5ece4e88fa - Fix SetWndContextHlpId call.
svn path=/trunk/; revision=42645
2009-08-13 05:18:18 +00:00
James Tabor f0f7e2d2dd - Fix another NULL Wnd crash.
svn path=/trunk/; revision=42644
2009-08-13 04:17:23 +00:00
James Tabor 904739a70b - Fix menu window callback. Only use it when the menu name is not null.
svn path=/trunk/; revision=42643
2009-08-12 23:37:26 +00:00
Cameron Gutman 10b13ed7c9 - Don't access an uninitialized variable
- Initialize the unicode string at the start of the function
 - Spotted by Amine Khaldi

svn path=/trunk/; revision=42642
2009-08-12 23:14:49 +00:00
James Tabor 09286edbce - Move GetWindowInfo support into user32. Use HWNDPARAM for SetWindowContextHelpId.
svn path=/trunk/; revision=42637
2009-08-12 18:46:34 +00:00
Aleksey Bragin 9e804e5230 - Rewrite RtlpCreateAtomHandle to readable code and fix a problem spotted in bug 4788.
svn path=/trunk/; revision=42635
2009-08-12 11:42:34 +00:00
James Tabor f529b441b2 - Check if server side window proc is set when clearing or setting dialog window flag.
svn path=/trunk/; revision=42633
2009-08-12 07:42:30 +00:00
James Tabor b51adaebd8 Rewrite NtUserGetCPD to correctly return the callproc handle pointer.
svn path=/trunk/; revision=42632
2009-08-12 07:35:15 +00:00
James Tabor c85e511160 Properly set the active window frame flag. Add missing file header. Add a note in defwnd.c.
svn path=/trunk/; revision=42631
2009-08-12 07:03:58 +00:00
James Tabor 9d2a032c20 - Move W32 Process flags to the proper place.
svn path=/trunk/; revision=42630
2009-08-12 06:54:31 +00:00
James Tabor 0fa041c7b4 Properly set and clear the dialog window flag.
svn path=/trunk/; revision=42629
2009-08-12 06:41:20 +00:00
Timo Kreuzer fbe691dd9b Make the tui console background black instead of blue.
svn path=/trunk/; revision=42628
2009-08-11 20:23:18 +00:00
Gregor Schneider 864fd31512 Amendment to r42615: add the check in the correct line
svn path=/trunk/; revision=42627
2009-08-11 19:50:42 +00:00
Timo Kreuzer abc65bc027 [win32k]
- EngSetPointerShape: Don't dereference psoMask without checking it

svn path=/trunk/; revision=42626
2009-08-11 19:03:51 +00:00
Timo Kreuzer f928fd8906 [win32k]
- GreSetPointerShape: Don't cleanup the XLATEOBJ when it wasn't initialized.
- Found by Amine Khaldi

svn path=/trunk/; revision=42625
2009-08-11 18:42:30 +00:00
Jeffrey Morlan d05d3811ed Fix a buffer overflow in ConvertULargeInteger
svn path=/trunk/; revision=42623
2009-08-11 16:21:46 +00:00
Johannes Anderwald 555a242381 - Filter dispatch is optional, handle it when creating new filters
svn path=/trunk/; revision=42622
2009-08-11 15:22:06 +00:00
Gregor Schneider 15900e1f91 Re-add r42536, it didn't break the build server
svn path=/trunk/; revision=42621
2009-08-11 15:03:41 +00:00
Johannes Anderwald faf651d298 - Start implementing splitter
- Add a device descriptor

svn path=/trunk/; revision=42620
2009-08-11 15:03:33 +00:00
Johannes Anderwald 4e8ace35ed - Add few macros, constants for splitter
svn path=/trunk/; revision=42619
2009-08-11 14:52:22 +00:00
Gregor Schneider d2c4562d5b Free memory on error
svn path=/trunk/; revision=42618
2009-08-11 14:37:52 +00:00
Gregor Schneider d6e84af5f7 Return INVALID_FILE_ATTRIBUTES when no filename is passed
svn path=/trunk/; revision=42617
2009-08-11 14:19:43 +00:00
Gregor Schneider dd9eabe375 Fix memory allocation for small number of digits
svn path=/trunk/; revision=42616
2009-08-11 14:01:44 +00:00
Gregor Schneider 85fc2afbaa Don't access the pattern GetPixel function pointer if it hasn't been set
svn path=/trunk/; revision=42615
2009-08-11 13:39:40 +00:00
Aleksey Bragin f0dc2c14f3 - Get NtUnloadKey2 back to old behavior until its caller learns to properly handle various error codes.
See issue #4787 for more details.

svn path=/trunk/; revision=42612
2009-08-11 13:01:42 +00:00
Johannes Anderwald fb04896e11 - Check if allocation succeeded
- Wait untill each audio service has been started
- May now fix randomly playing logon sound

svn path=/trunk/; revision=42611
2009-08-11 10:37:40 +00:00
Johannes Anderwald ca039fbfa9 - Audiosrv first starts sysaudio and then wdmaud. It is more clever to wait untill the latter is started
svn path=/trunk/; revision=42610
2009-08-11 10:36:25 +00:00
Johannes Anderwald 37a75e27df - Add sanity checks
svn path=/trunk/; revision=42609
2009-08-11 09:41:33 +00:00
Johannes Anderwald 20a819d000 - Fix allocation check
- Found by Amine Khaldi

svn path=/trunk/; revision=42608
2009-08-11 09:36:41 +00:00
Johannes Anderwald fad9ff3860 [KS]
- Fix uninitialized return value when the list is empty
- Fix a horrible bug where the end of the list wasnt checked by the source list but the destination list 
- Found by Amine Khaldi

svn path=/trunk/; revision=42607
2009-08-11 09:20:15 +00:00
Johannes Anderwald 85543388b1 - Remove superflouous checks
- Found by amine48rz

svn path=/trunk/; revision=42606
2009-08-11 08:49:30 +00:00
Timo Kreuzer 11caab78fd Move stubs for user mode printer drivers from stubs.c into umpdstubs.c. Unimplement some of them, as they were wrong.
svn path=/trunk/; revision=42605
2009-08-10 22:20:28 +00:00
Cameron Gutman 7c78a42816 - Make Connect IRPs cancellable (should fix some deadlock issues)
- Fix a bug which could result in a Listen IRP being unable to be cancelled

svn path=/trunk/; revision=42604
2009-08-10 21:21:50 +00:00
Johannes Anderwald 4ffba4e3e3 - Implement swenum
svn path=/trunk/; revision=42603
2009-08-10 21:10:03 +00:00
Timo Kreuzer fc40a70945 Revert part of my last commit, this was testcode not meant to be committed.
svn path=/trunk/; revision=42602
2009-08-10 20:22:11 +00:00