Commit graph

44316 commits

Author SHA1 Message Date
Timo Kreuzer 4d40fbf685 [WIN32K]
Remove SetLastWin32Error and use EngSetLastError instead

svn path=/trunk/; revision=50139
2010-12-25 11:01:14 +00:00
Timo Kreuzer 54ee99abdb [WIN32K]
Fix EngGetLastError and EngSetLastError

svn path=/trunk/; revision=50138
2010-12-25 10:37:55 +00:00
Johannes Anderwald 184b70c1de [INF]
- Fix PCI group key

svn path=/trunk/; revision=50136
2010-12-25 09:08:44 +00:00
Roel Messiant cbd14f3708 [WIN32K]
- IntCreateWindow: Fill out MaximumLength field of the window name. Fixes potential buffer overflow in at least NtUserDefSetText.

svn path=/trunk/; revision=50135
2010-12-25 05:27:01 +00:00
Art Yerkes 9e8a4109b0 Make sure to initialize our page operation mutex.
Scan the whole range of the MemoryArea for pages to evict.
This fixes cache section page eviction.

svn path=/trunk/; revision=50134
2010-12-24 22:54:24 +00:00
Jérôme Gardou 1513741845 [GDI32]
- remove useless memory reallocation : the buffer size must be dword aligned, we have no way to guarantee the buffer location will be.
  - pass BITMAPINFO pointer size to NtGdiGetDIBitsInternal
[WIN32K]
  - Improve "not enough memory" check when creating a bitmap
  - use correct function to set the last error.

svn path=/trunk/; revision=50133
2010-12-24 20:29:25 +00:00
Giannis Adamopoulos 23499a2d4d [win32k]
- Remove co_IntPostOrSendMessage and use co_IntSendMessageNoWait where possible

svn path=/trunk/; revision=50121
2010-12-24 12:11:10 +00:00
Amine Khaldi 91f7232df7 [CMAKE]
- Add the remaining winetests to build. We compile them all now.

svn path=/trunk/; revision=50120
2010-12-24 12:09:01 +00:00
Dmitry Gorbachev f8d20cdb33 Marco Radossevich <fwdprojects=at=email=dot=it>, a.k.a. forart:
"Just two important examples that involved my contributions: UniATA & FullFAT."

No code changes.
See thread <http://www.reactos.org/forum/viewtopic.php?f=14&t=8809> for more details.

svn path=/trunk/; revision=50117
2010-12-24 01:59:13 +00:00
Timo Kreuzer e7f8fba710 [RTL}
Replace RtlMoveMemory x86 asm code with the code from CRT's memmove, which is better. Now we can close bug #1941

svn path=/trunk/; revision=50116
2010-12-23 19:11:19 +00:00
Aleksey Bragin c884962fb3 [UNIATA]
- Update uniata to 0.40a1. Prepared by Samuel Serapion, edited by me.
See issue #5762 for more details.

svn path=/trunk/; revision=50115
2010-12-23 16:59:55 +00:00
Roel Messiant 3bb6178e68 [SHELL32]
- Add NULL checks in IShellView and IDropTarget implementations. Should fix bug #5780.

svn path=/trunk/; revision=50114
2010-12-23 15:38:14 +00:00
Roel Messiant aa62a1a2a6 [WIN32K]
- NtGdiGetDIBitsInternal: Copy the requested amount of scanlines into the return buffer, not the whole bitmap. Should fix bug #5766.

svn path=/trunk/; revision=50113
2010-12-23 14:10:59 +00:00
Timo Kreuzer ac56cac80c [VBEMP]
Fix rounding error when calculating display size
Loosely based on patch by neoman.
Fixes gdi32_winetest:mapping

See issue #5790 for more details.

svn path=/trunk/; revision=50112
2010-12-23 12:11:19 +00:00
Aleksey Bragin 7ea8c55b57 [NTOS]
- Fix copypasta, thanks Victor!

svn path=/trunk/; revision=50111
2010-12-23 09:14:42 +00:00
Art Yerkes d758597cd4 Do the required flush when the last reference to a cache stripe is released.
The installer now completes given enough ram in NEWCC=1, and writes an
understandable FS.  There's at least one more problem preventing the 
resulting installation from booting however.
Fix a bug in rmap where we were checking the next (unfortunately named
current) rmap for a segment membership.
Fix a mistake in cache trim.
#ifdef detection of DirectMapping in section in NEWCC mode in page out.

svn path=/trunk/; revision=50110
2010-12-23 08:42:51 +00:00
Aleksey Bragin ad1b414a31 [NTOS]
- Fix a typo in region size calculation of special memory areas, which unbreaks OllyDbg & co. Thanks Michael Martin for the hint.
See issue #5692 for more details.

svn path=/trunk/; revision=50109
2010-12-22 22:18:32 +00:00
Aleksey Bragin d1d1894231 [NTOS]
- Fix memory region size calculation in MemoryBasicInformation in certain cases. Spotted by Michael Martin.

svn path=/trunk/; revision=50108
2010-12-22 21:59:27 +00:00
Aleksey Bragin 70f0698953 [NTOS]
- Fix incompatibility with newer KiEnterTrap implementation. Should fix spontaneous issues I possibly introduced with my previous commit, and finally fixes that VirtualBox issue.

svn path=/trunk/; revision=50107
2010-12-22 21:27:31 +00:00
Timo Kreuzer 27a2217c5b [NTDLL]
Fix harderror status on machine type mismatch and pass file name.

svn path=/trunk/; revision=50106
2010-12-22 20:20:52 +00:00
Roel Messiant 96d2fe3970 [I8042PRT]
- Calculate packet type according to PS/2++ spec (CID 1810).
- Fix technical detail in comment to match spec.

svn path=/trunk/; revision=50105
2010-12-22 19:09:25 +00:00
Timo Kreuzer ccc082914c [WIN32K]
Silence 3 DPRINTs

svn path=/trunk/; revision=50103
2010-12-22 18:30:59 +00:00
Amine Khaldi f5ce699517 [CMAKE]
- Add the apitests to build.
- Improve some winetests.

svn path=/trunk/; revision=50100
2010-12-22 16:33:37 +00:00
Timo Kreuzer 7f1fb18031 [NTDLL]
Raise harderror and terminate process when the image is of a foreign architecture.

svn path=/trunk/; revision=50099
2010-12-22 16:19:40 +00:00
Timo Kreuzer b1730a09db [NDK] Add IMAGE_FILE_MACHINE_NATIVE
[NTOS] Remove IMAGE_FILE_MACHINE_NATIVE and IMAGE_FILE_MACHINE_ARCHITECTURE definitions, use only the former

svn path=/trunk/; revision=50098
2010-12-22 16:14:58 +00:00
Timo Kreuzer 76ff797dcb [HAL]
Convert while (TRUE); to ASSERT(FALSE); on unimplemented pathes.

svn path=/trunk/; revision=50096
2010-12-22 14:31:39 +00:00
Aleksey Bragin fc17a96938 [NTOS]
- Always initialize TrapFrame segment selectors in KiEnterTrap, because further C code relies on at least TrapFrame->SegFs being correct. Running Arwinss on VirtualBox exposed this bug.
I wouldn't find solution for this bug without Timo's great help!

svn path=/trunk/; revision=50095
2010-12-22 14:26:36 +00:00
Timo Kreuzer 2342366fe3 [FORMATTING]
Apply indentation of 4 spaces.

svn path=/trunk/; revision=50093
2010-12-22 13:33:09 +00:00
Timo Kreuzer 1f982b1479 [NTDLL]
Move RtlPcToFileHeader to rtl/libsupp.c

svn path=/trunk/; revision=50092
2010-12-22 13:07:04 +00:00
Timo Kreuzer 372bbf2a73 [FORMATTING]
Apply indentation of 4 spaces.

svn path=/trunk/; revision=50091
2010-12-22 13:00:47 +00:00
Pierre Schweitzer 10bab36870 [FASTFAT]
Fix for a buffer overflow and then a buffer overrun (if ever it fixes something)
The way filenames are handled for FAT entries should be REALLY simplified. This would prevent such errors.
Thus, there are more magic values in fastfat driver than everywhere else in ReactOS which makes proper fixing hard (impossible?).
Finally, the code for that fix is crappy, but I don't care, it fits the rest of the fastfat driver code.
*pissed off*
Fixes CID #2502

svn path=/trunk/; revision=50090
2010-12-22 00:13:03 +00:00
Timo Kreuzer 1ef6958203 [SCSIPORT]
ScsiPortConvertPhysicalAddressToUlong takes an ULONG_PTR as input, fix function accordingly and do the "calculation" directly instead of calling RtlConvertUlongToLargeInteger
Spotted by Samuel.

svn path=/trunk/; revision=50089
2010-12-21 23:48:15 +00:00
Pierre Schweitzer f43fa44a2e [NTOSKRNL]
Fix CID 3454

svn path=/trunk/; revision=50087
2010-12-21 22:24:50 +00:00
Jérôme Gardou 90d2da336d [VGA_NEW]
- avoid buffer overrun, CID 11049
Brought to light by vicmarcal

svn path=/trunk/; revision=50085
2010-12-21 21:55:29 +00:00
Timo Kreuzer 4a58e37b7c [NTSOKRNL]
add a comment so that noone will stumble upon this atrocity a second time.

svn path=/trunk/; revision=50084
2010-12-21 21:48:29 +00:00
Pierre Schweitzer a5a6940af8 [NTOSKRNL]
Actually, code was correct, but ugly (who said "normal, that's a hack).
So, when that code is called from SetupLDR, KeyHandle is required to be to 1. This what code does. Thing we do in the if condition when it appears we are called from SetupLDR.
To avoid any further question, or warning, adding more parenthesis to show that we know what we do.
So, to sum up, there's no comparaison for KeyHandle

svn path=/trunk/; revision=50083
2010-12-21 21:35:04 +00:00
Amine Khaldi a2ca649780 [NTOSKRNL]
- Fix an assign where a comparison was intended. CID 2626.

svn path=/trunk/; revision=50082
2010-12-21 20:28:21 +00:00
Michael Martin 604d4c9de8 [NTOS]: Check that MaximumSize is valid value if the section is being backed by paging file.
svn path=/trunk/; revision=50081
2010-12-21 15:19:58 +00:00
Roel Messiant 2b69f5fa2c [DEVMGR]
- DisplayDevicePropertyText: Use full DWORD value, not just one byte of it (CID 1803).
[WINMM]
- MCI_Close: Use UINT instead of UINT16 for the device id (CID 1804).

svn path=/trunk/; revision=50080
2010-12-21 14:58:13 +00:00
Cameron Gutman 018e160fdf [EXPLORER-NEW]
- Fix another "sizeof" usage mistake
- CID 1631

svn path=/trunk/; revision=50078
2010-12-21 04:48:36 +00:00
Cameron Gutman e67bf5752c [USBDRIVER]
- Fix a bug that resulted in us only copying half of the old keyboard data
- CID 10402

svn path=/trunk/; revision=50077
2010-12-21 04:35:12 +00:00
Roel Messiant 95e952c388 [CLASSPNP]
- Use correct type in sizeof expression (CID 1646 and 10401).
- Simplify signature define (CID 3653 and 3654).
- Remove funky 0xFF characters.

svn path=/trunk/; revision=50076
2010-12-21 00:41:52 +00:00
Cameron Gutman 6c76be5e63 [URLMON]
- Sync to Wine 1.3.9

svn path=/trunk/; revision=50074
2010-12-20 21:29:55 +00:00
Cameron Gutman 72fa05f13b [WININET]
- Sync to Wine 1.3.9

svn path=/trunk/; revision=50073
2010-12-20 21:25:11 +00:00
Cameron Gutman cbbeec3a07 [NDIS]
- Fix sizeof typo
- CID 10400

svn path=/trunk/; revision=50072
2010-12-20 20:57:22 +00:00
Cameron Gutman f683f3f37a [WINHTTP]
- Sync to Wine 1.3.9

svn path=/trunk/; revision=50071
2010-12-20 20:36:21 +00:00
Aleksey Bragin 29d4944804 - Update "slightly less than all" IDLs to Wine-1.3.9. (Except for shlobj, shobjidl and shtypes.h, and DirectX stuff).
svn path=/trunk/; revision=50070
2010-12-20 11:56:24 +00:00
Timo Kreuzer 6e95cdc657 [CRT]
rename pow_asm.c to powl.c to reflect it's content.

svn path=/trunk/; revision=50069
2010-12-20 11:48:55 +00:00
Timo Kreuzer bc5452aa10 [CRT]
Fix bugs in converted asm file. Fixes Firefox color issues.

svn path=/trunk/; revision=50068
2010-12-20 10:16:43 +00:00
Roel Messiant 8e7e8f566f [ADVAPI32]
- ConvertStringSidToSidW: Stop writing 1 subauthority too much. Fixes a DWORD sized buffer overflow. Should fix bug #5764.
- ConvertStringSidToSidW: Don't leak an allocated SID in case of failure.
[SETUPAPI]
- SetupDiClassNameFromGuidExW: Rewrite to prevent a buffer overflow and pass additional winetests. Should fix bug #5474.
- SetupDiClassNameFromGuidExA: Return the required buffer size in failure cases.

svn path=/trunk/; revision=50066
2010-12-19 23:19:04 +00:00