Commit graph

42381 commits

Author SHA1 Message Date
Aleksey Bragin c6ddd201c7 [HALX86]
- Revert changes to HalpGetPCIData made in r47162. There is no need to introduce ReactOS-specific behavior of this function. It's much better to aim real NT compatibility, and develop your drivers against NT first and only then hack ReactOS.
- Changes to buses scanning are left as they are.

svn path=/trunk/; revision=47169
2010-05-12 09:45:43 +00:00
Aleksey Bragin cdf0478255 [USBDRIVER]
- Implement deregistering HCD in a device manager. Now, the HCI which failed to initialize will be properly freed without calling NULL pointer or crashing with freed memory access.
See issue #4813 for more details.

svn path=/trunk/; revision=47168
2010-05-12 09:42:07 +00:00
Aleksey Bragin e4dec4c4cb - Revert 47139 by cgutman: Don't try to be smarter than usbdriver's author. He especially put registering HCD interface before so that any error handling function would work correctly and free up allocated resources. Fixes one crash in VMWare. A proper solution for the problem which 47139 tried to "fix" will be committed next.
svn path=/trunk/; revision=47167
2010-05-12 09:34:36 +00:00
Jeffrey Morlan cdc3b26818 commit file missing from r47165
svn path=/trunk/; revision=47166
2010-05-12 04:01:16 +00:00
Jeffrey Morlan 630ecdce7c [KERNEL32] [WIN32CSR] Implement SetConsoleScreenBufferSize. FAR Manager now works again.
svn path=/trunk/; revision=47165
2010-05-12 03:34:02 +00:00
Timo Kreuzer acb61e7d31 [FREELDR] Fix uninitialized variable warning. (Does anyone know why the warning isn't treated as an error?)
[SETUPLDR] Use mini_hal only on i386 builds

svn path=/trunk/; revision=47164
2010-05-12 03:29:08 +00:00
Jeffrey Morlan 3ffc64878c [WIN32CSR] Get rid of dynamic "LineBuffer": it wasn't being resized properly in all cases, causing corruption of Win32CsrApiHeap. Replaced with fixed buffer (painting a line with multiple TextOutW calls if necessary).
svn path=/trunk/; revision=47163
2010-05-12 03:03:12 +00:00
Cameron Gutman 0a6ca40598 [HAL]
- Return the correct value if the PCI slot number is invalid
- Use the bus number from the PCI BIOS instead of doing a manual probe if we can because it is much more accurate (our probing code doesn't detect buses without devices present)
- Don't probe for devices at invalid locations on PCI type 2 buses
- Check for a valid bus number so we don't return the wrong value

svn path=/trunk/; revision=47162
2010-05-12 02:34:04 +00:00
Sir Richard c5e12bcf40 [NTOS]: We might get page faults before memory areas are setup, since so much ARM3 work now gets done before the memory areas are ready to go. Since obviously these faults cannot be caused by non-ARM3 Mm, we assume them to be ARM3 faults (as long as they happened in KSEG0_BASE). Fixes a bug where early page faults in ARM3 PTEs would get treated as non-ARM3 faults and fail.
svn path=/trunk/; revision=47161
2010-05-12 00:40:23 +00:00
Sir Richard f61cf60f1b [NTOS]: HEADERS: Add PDE_TOP. It is defined for IA64/AMD64 but not for i386 (in the public headers). Add a note that these addresses are bogus on PAE systems.
svn path=/trunk/; revision=47160
2010-05-12 00:38:46 +00:00
Sir Richard b5a09b26c2 [NTOS]: Restore previous correct ASM behavior of checking for success codes, not only STATUS_SUCCESS, after a page fault. For example, a demand zero fault returns STATUS_PAGE_FAULT_DEMAND_ZERO upon success, and the new C code would treat it as a failure. Fixes a bug.
svn path=/trunk/; revision=47159
2010-05-12 00:36:52 +00:00
Cameron Gutman 449b78ccc5 [NTOSKRNL]
- Fix a typo 
- Safe mode with networking has an OptionValue of 2 not 1
- Currently unused (for now ;))

svn path=/trunk/; revision=47157
2010-05-11 00:36:56 +00:00
Cameron Gutman 609171f4ac [AFD]
- Fix signaling socket termination events on disconnect
- Fixes bug 4951

svn path=/trunk/; revision=47156
2010-05-10 21:14:26 +00:00
Daniel Reimer 7335bf8947 Update the rapps Database to a valid FireFox Link once more...
+ update all apps to the recent versions

svn path=/trunk/; revision=47154
2010-05-10 18:27:07 +00:00
Eric Kohl 76a4723fa9 [INF]
- Add 'PortSubClass' values for serial and parallel ports.

svn path=/trunk/; revision=47152
2010-05-09 21:58:04 +00:00
Daniel Reimer 2699cdc3de Update WinFile to Wine 1.1.44
svn path=/trunk/; revision=47151
2010-05-09 20:23:07 +00:00
Sir Richard eaaf713f3d [NTOS]: Acquire PFN lock before setting up hyperspace PTE/page.
[NTOS]: Flush TLB after setting up hyperspace.
[NTOS]: Use new MiRemoveAnyPage interface instead of MmAllocPage(MC_SYSTEM), as the first test of the new Page API/ABI.
[NTOS]: Add support for creating software PTEs.

svn path=/trunk/; revision=47150
2010-05-09 18:17:53 +00:00
Sir Richard af06182171 [NTOS]: Implement MiRemoveAnyPage and MiRemovePageByColor, but only using the list heads, and not the color list heads. Unused.
[NTOS]: Fixup unused MiInsertPageInFreeList variables ot match the other functions (ColorTable vs ColorHead).

svn path=/trunk/; revision=47149
2010-05-09 18:12:50 +00:00
Sir Richard a38d98d504 [NTOS]: At times, pages may be removed from the zero or free page list, but without being initialized as part of the PFN database, such that their PageLocation has not changed. However, we can detect these pages because their link pointers will be NULL, meaning they're not _really_ free or zeroed. Use this enhanced check when verifying if a page is in use or not, and additionally triple-check by making sure the reference count is zero. This now matches the Windows checks. We also consider Standby pages (not yet implemented) as usable, since we can always steal them.
svn path=/trunk/; revision=47148
2010-05-09 18:06:38 +00:00
Gregor Schneider b6b00740ca [INPUT]
- Reorder keyboard layouts in the registry after one was deleted
- Fixes changing keyboard layouts from regional options
See issue #3317 for more details.

svn path=/trunk/; revision=47147
2010-05-09 15:02:58 +00:00
Johannes Anderwald 9cb27f40af [WIN32CSR]
- Add primitive resizing support and automatic scrolling support
- Patch by Adam Kachwalla (IRC:Crocodile)

See issue #2622 for more details.

svn path=/trunk/; revision=47146
2010-05-09 13:39:48 +00:00
Johannes Anderwald 28f11ad5f1 [CONSOLE]
- Store console changes when screen buffer / window size changes
- Mark property sheet as changed when color control changes

svn path=/trunk/; revision=47144
2010-05-09 13:12:21 +00:00
Jérôme Gardou 38a2853dc1 [WIN32K]
- remove a comment which is not true anymore
[USER32]
  - Create a bitmap which is compatible with the bitmap'we are copying in CreateSmallIcon
Icons are back in taskbar

svn path=/branches/reactos-yarotows/; revision=47143
2010-05-09 13:07:47 +00:00
Michael Martin 786f5a19d7 [win32k]
- When message are sent without waiting a reply (non-queued messages) the message queues are referenced and dereferenced in the call. 
Message removal and cleanup functions for queues expected a reference on the queue. Add checks to determine if the message is a non-queued message and if so release memory for those that had pointers and more importantly skip dereferencing the queues. Possibly fixes random crashes and memory leaks.

svn path=/trunk/; revision=47142
2010-05-09 12:27:57 +00:00
Daniel Reimer 330de811a7 Bug 5355: [PATCH] cacls: Add Japanese resource by Katayama Hirofumi
Bug 5371: TRANSLATION: Italian translation updates by Paolo Devoti
Bug 5337: PATCH: Some kernel32 lang updates (de-DE updated, others fixed) by forenkrams@tuxproject.de
Bug 5366: TRANSLATION: Czech translation update by Radek Liska

svn path=/trunk/; revision=47141
2010-05-09 12:14:25 +00:00
Jérôme Gardou c3f13756b2 [WIN32K]
- Set NULL owner to copied bitmap when creating indirect icons
  - Rewrite UserDrawIconEx, inspired from wine code
  - fix palette creation for 16 bits DIB
  - Always assign a palette to bitmap created with BITMAP_CopyBitmap and IntCreateCompatibeBitmap.
[USER32]
  - Use DIB section when creating icons
  - Use something called "header"
Now mode switching is almost glitchless.

svn path=/branches/reactos-yarotows/; revision=47140
2010-05-09 11:35:36 +00:00
Cameron Gutman e47ef16223 [USBDRIVER]
- Register the device with the device manager only after it has been successfully allocated to avoid a crash
- A device that failed in xhci_alloc would never get deregistered from the device manager so it would crash when it entered xhci_start with a partially set up device extension
- Define release_adapter to HalPutDmaAdapter to fix a DMA adapter leak
[HAL]
- Export HalPutDmaAdapter

svn path=/trunk/; revision=47139
2010-05-09 11:18:16 +00:00
Gregor Schneider 428dff1a79 [WIN32K]
- Check the supplied scancode instead of the state buffer whether a key is up
- Fixes the calculator keyboard input regression introduced with r35117
- Ref: http://www.osronline.com/ddkx/w98ddk/keycnt_4ilz.htm and wine implementation
See issue #3727 for more details.

svn path=/trunk/; revision=47138
2010-05-08 22:26:48 +00:00
Jérôme Gardou db93f2d307 [WIN32K]
- attach devinfo->hpalDefault to the pdevobj after enabling it
  - attach this palette to surfaces attached to this pdevobj through EngModifySurface
  - use this palette in several place
Partially fixes icon drawing after mode switch

svn path=/branches/reactos-yarotows/; revision=47137
2010-05-08 22:10:41 +00:00
Cameron Gutman 1bd675f802 [USBDRIVER]
- Fix an off-by-one error in the probing code
- Scan all PCI buses instead of just the first two
- Fix a horrible bug that resulted in reinitializing EHCI controllers as UHCI controllers which caused a crash on VirtualBox (with _MULTI_UHCI)
- Implement support for multiple EHCI controllers and enable support for multiple UHCI controllers (greatly increases compatibility with real hardware because the first controller detected is often internal)

svn path=/trunk/; revision=47136
2010-05-08 21:53:57 +00:00
Aleksey Bragin 438916ee96 - Fix release build.
svn path=/trunk/; revision=47135
2010-05-08 20:38:58 +00:00
Kamil Hornicek 006a12e270 [WIN32K]
- Bring back support for RLE compressed bitmaps.
- Merge the decompress functions for 4bb and 8bpp bitmaps to one generic function.
- Simplify SURFMEM_bCreateDib a bit by not allowing PNG/JPEG compression at all.
See issue #5276 for more details.

svn path=/trunk/; revision=47134
2010-05-08 18:09:45 +00:00
Jérôme Gardou 3d533cb7a2 Sync with trunk r47129
svn path=/branches/reactos-yarotows/; revision=47133
2010-05-08 17:23:51 +00:00
Timo Kreuzer bfe6479cf7 Revert r47130, it was already comitted.
svn path=/trunk/; revision=47132
2010-05-08 16:42:03 +00:00
Jérôme Gardou 0a68d5e2e4 [WIN32K]
- Allow NtGdiDeleteObjectApp to delete a permanent DC, as windows does it.
This is not exactly what windows does, but no one should use a DeletedDC'ed DC anyway.
Fixes "No! You Naughty Application" debug spam and some wine tests

svn path=/branches/reactos-yarotows/; revision=47131
2010-05-08 16:41:41 +00:00
Timo Kreuzer 2545e83084 [w32knapi}
Patch by Jerome Gardou: add some more tests for NtGdiDeleteObjectApp

svn path=/trunk/; revision=47130
2010-05-08 16:38:05 +00:00
Eric Kohl e03efb63b2 [WINLOGON]
- Move environment creation to a separate file.
- Impersonate the new user and create the 'Volatile Environment' key for the new user.

svn path=/trunk/; revision=47129
2010-05-08 16:30:56 +00:00
Gregor Schneider 0963ef8f61 Add some win32k/gdi DC tests created by Jerome Gardou
svn path=/trunk/; revision=47128
2010-05-08 16:27:36 +00:00
Sylvain Petreolle 4545e038a2 Disable test_GetLongPathNameW() in kernel32:path test for now.
Fixes testbot crash, bug 5370


svn path=/trunk/; revision=47127
2010-05-08 16:27:15 +00:00
Michael Martin 5678dca446 [win32k]
- Modify how non-queued messages are send that originate from the Win23k subsystem. 
Non-queued messages must go directly to the windows WNDPROC and not through the message pump (previews ROS behavior). 
More importantly sending these messages must not cause the sending thread to block waiting for a reply.
- Add a messaging handling function that always sends message from Win32k to the windows thread without waiting. 
This will also allow the implementation of message call back later.
- Modify PackParam and UnpackParam to accept a BOOL value to determine whether LParam needs to be allocated from NonPagedPool. 
Use with new message handling as if message sent to another thread have any pointers they must be allocated from NonPagedPool.
- Fixed broken logic in can_active_window function and co_WinPosShowWindow.
- Fixed broken logic in co_IntSendActivateMessages. 
The WM_ACTIVATEAPP message was being sent to every window belonging to the desktop twice.
Once with flag saying window was activated and again with deactivated.
- These changes should fix bugs #969, #3171, #4501, #4676, #4677, #4948.

svn path=/trunk/; revision=47126
2010-05-08 15:49:02 +00:00
Gregor Schneider 4b9b7d580f [EXPLORER]
- Use proper buffer size, font type and an arbitrary high system time to create the size of the systray clock window
- Fixes clock clipping
See issue #2320 for more details.

svn path=/trunk/; revision=47125
2010-05-08 15:33:40 +00:00
Timo Kreuzer f820fe7a43 [WIN32K]
Fix broken parameter passing from EngMaskBitBlt to (Alpha)BltMask. It was passing the wrong surface and the wrong point. Rename some parameters to reflect what their usage is. Add ASSERTs to make sure noone passes useless parameters. Fixes crippled text in startmenu.
The whole code is broken by design, anyway it will go away, once the new text rendering code is done.
See issue #4379 for more details.

svn path=/trunk/; revision=47124
2010-05-08 15:30:59 +00:00
Cameron Gutman f0d7ecd148 [PSDK]
- Replace WINE's commctrl.h with mingw-w64's commctrl.h
- Move WINE-specific hacks to reactos/wine/commctrl.h
- Patch by Timo Kreuzer
- Fixes bug 4958

svn path=/trunk/; revision=47123
2010-05-08 14:47:42 +00:00
Eric Kohl 3c586a19b2 [WINLOGON]
Add missing newline to a TRACE message.

svn path=/trunk/; revision=47122
2010-05-08 13:07:40 +00:00
Timo Kreuzer 4c417355a6 Disable GDI batch code for regions. "Fixes" broken drawing for AcrobatReader. Yes, it's a "band aid over a bullet wound". I hope the man with the gun is a surgeon, too.
svn path=/trunk/; revision=47121
2010-05-08 01:17:46 +00:00
Jérôme Gardou 9e7867ddde revert unwanted changes
svn path=/branches/reactos-yarotows/; revision=47120
2010-05-07 23:36:49 +00:00
Jérôme Gardou a7eaab78db some leftover from last sync : GDIDBG macros expect handles, not index
svn path=/branches/reactos-yarotows/; revision=47119
2010-05-07 23:33:11 +00:00
Jérôme Gardou 147736390c Delete win32k.h, it's useless now
svn path=/branches/reactos-yarotows/; revision=47118
2010-05-07 07:44:50 +00:00
Jérôme Gardou 88c9e7c6e8 Sync with trunk (r47116), hopefully without breaking anything.
svn path=/branches/reactos-yarotows/; revision=47117
2010-05-07 07:41:13 +00:00
Eric Kohl 3f5ef48069 [USERENV]
- Create the environment variables 'ProgramFiles' and 'CommonProgramFiles' from the registry.

Fixes bug #4008.
See issue #2972 for more details.

svn path=/trunk/; revision=47116
2010-05-07 00:17:04 +00:00