Commit graph

46998 commits

Author SHA1 Message Date
Alex Ionescu 976b791c1c [NTOSKRNL]: ";" -> "," build fix.
svn path=/trunk/; revision=52413
2011-06-21 22:52:02 +00:00
Alex Ionescu cf20a2d00d [NTOSKRNL]: It seems NtYieldExecution in Windows heavily biases towards avoiding a yield as much as possible, and thus attempts to locklessly check the PRCB's ready summary. Problem being that the old code was running a bunch of instructions before checking for this ready summary, and doing a double-fs/gs dereference to get the ready summary. Upon reading some WRK documentation, it appears Windows uses a KiGetCurrentReadySummary macro, which WinDBG analysis shows to be an inline that reads the ReadySummary straight from PrcbData with only a single segment read, and no code preceeding it. Although it's "unlikely" to ever really be a problem, it's perhaps best to replicate this behavior since there could be dependencies on it. Comments in file point to PDF with this information (hosted on Microsoft Research's website, publically accessible).
[NTOSKRNL]: Also, fix locking order such that the current PRCB is only read after the IRQL is raised to SYNCH_LEVEL. I'm too tired to tell if this is a requirement, but the PDF shows it being done that way in Windows, so I've re-ordered the operations to match. Intuition would indicate that this shouldn't matter, as fs:1C shouldn't change from under us in the middle of execution, but why argue with public source code?
vicmarcal said it's okay if this breaks the build (I don't have any way to build ReactOS anymore).

svn path=/trunk/; revision=52412
2011-06-21 22:43:55 +00:00
Rafal Harabien 562dd382dd [SHELL32]
- Fix resources for MSVC. Patch by Igor Igor Paliychuk
[NTOSKRNL]
- Match NT behavior in DisplayFilter

svn path=/trunk/; revision=52411
2011-06-21 22:15:48 +00:00
Rafal Harabien 964aabb309 - Fix build
svn path=/trunk/; revision=52410
2011-06-21 21:06:18 +00:00
Rafal Harabien a965ca6b67 [BOOTVID]
- Revert part of r52239: Fix support for \r and do not handle backspace
- Simplify it a bit

[NTOSKRNL]
- Add backspace support to KdpScreenPrint
- Do not draw boot text bitmap if InbvDisplayString is called with "" or "." (matches NT behavior)

svn path=/trunk/; revision=52409
2011-06-21 19:47:13 +00:00
Amine Khaldi 8500f6aea6 [PSDK]
* CLSID_ShellFolderViewOC is defined in shldisp.idl/h. A proper fix is due for msvc build.

svn path=/trunk/; revision=52408
2011-06-21 18:42:51 +00:00
Amine Khaldi a197042933 [TRANSLATIONS]
Igor Paliychuk:
* Convert UKRAINIAN and RUSSIAN localization files to utf-8 in the dll folder.
* Add UKRAINIAN translation for msports.
* Some Wine modules also were converted (already sent upstream).

svn path=/trunk/; revision=52407
2011-06-21 18:30:06 +00:00
Amine Khaldi c9aeb1479f [PSDK]
* Add missing CLSID_ShellFolderViewOC.

svn path=/trunk/; revision=52406
2011-06-21 17:56:10 +00:00
Cameron Gutman 85b52ced7c [IP]
- Don't attempt to service a request if the only flag specified was SEL_FIN
- Handle TDI_DISCONNECT_RELEASE properly
[OSKITTCP]
- Verify that the socket is in a legal state to do a send or receive
- Don't indicate send and receive events when the socket is not connected or has been been closed in that particular direction
- Add a small hack to soshutdown so shutdown in the send direction works correctly (ie. doesn't shutdown receive)
- Fixes the hangs in ws2_32_apitest ioctlsocket and ws2_32_apitest recv

svn path=/trunk/; revision=52405
2011-06-21 16:23:27 +00:00
Rafal Harabien d5e9cb0dd8 [NTOSKRNL]
- Display boot blue bitmap when native application or kernel calls NtDisplayString with string displaying enabled
- Fix drawing order in Phase1InitializationDiscard

svn path=/trunk/; revision=52404
2011-06-21 15:53:02 +00:00
Timo Kreuzer 261c786603 Merge missing tuff from r51731
- Improve a DPRINT
- Initialize a global variable

svn path=/trunk/; revision=52403
2011-06-21 14:45:17 +00:00
Cameron Gutman 0fbf8e4374 [AFD]
- Remove extra cruft around the TdiReceive call
- Handle send and receive requests better after a socket closure

svn path=/trunk/; revision=52402
2011-06-21 13:59:49 +00:00
Timo Kreuzer 033ddb3799 [OLEAUT32]
- add assembly version of call_method for MSVC
- fix a syntax error (sizeof(int[3]) is not valid C)
- move definitions to the top of the CMakeLists.txt

svn path=/trunk/; revision=52401
2011-06-21 13:22:07 +00:00
Cameron Gutman 2b116b187c [AFD]
- Complete receive requests with the correct status if the socket is unexpectedly closed

svn path=/trunk/; revision=52400
2011-06-21 13:02:42 +00:00
Timo Kreuzer 2792c9b294 [RPCRT4]
- Add msvc.S containing call_stubless_func in assembly
- Fix spec file, 2 stub functions are already implemented
- fix use of GetExceptionCode(), it cannot be used in that context.

svn path=/trunk/; revision=52399
2011-06-21 12:22:47 +00:00
Timo Kreuzer b3b1b3262b [WINE]
Add a hackfix for ntdll_winetest to fix compilation with MSVC

svn path=/trunk/; revision=52397
2011-06-21 09:32:41 +00:00
Timo Kreuzer 1a5eefbac0 [BROWSEUI]
Set /EHa- option. Fixes MSVC build

svn path=/trunk/; revision=52394
2011-06-20 20:30:05 +00:00
Timo Kreuzer 2e109f217d [CMAKE/MSVC]
Add /NODEFAULTLIBS linker flag to avoid conflicts between our and MS crt

svn path=/trunk/; revision=52393
2011-06-20 19:21:09 +00:00
Amine Khaldi b6bb6840a4 [MSI/URLMON]
* Guard wine attributes against widl.

svn path=/trunk/; revision=52392
2011-06-20 19:13:34 +00:00
Timo Kreuzer aecc36df54 [PSDK]
- define _MIDL_USE_GUIDDEF_ when building iid libraries, so that the guids have declspec(selectany)
- add xml_uuids library
[MSXML3]
- Add an include for MSVC to define missing IIDs
- add CLSID_DOMDocument2
fixes build of msxml3 with MSVC

svn path=/trunk/; revision=52391
2011-06-20 18:34:57 +00:00
Cameron Gutman fb1a75454e [MSAFD]
- Mark the accepted socket as connected
- Fixes graceful disconnect on accepted sockets

svn path=/trunk/; revision=52389
2011-06-20 17:35:02 +00:00
Timo Kreuzer ae4e935c92 [PSDK]
Add midl compatible include guard

svn path=/trunk/; revision=52386
2011-06-20 15:28:00 +00:00
Timo Kreuzer 33486bb4d7 [CRT]
Fix call_ebp_func, spotted by Thomas Faber

svn path=/trunk/; revision=52384
2011-06-20 13:34:19 +00:00
Timo Kreuzer d01040f370 [ITSS]
Link to itss_guid

svn path=/trunk/; revision=52383
2011-06-20 13:30:40 +00:00
Timo Kreuzer 47b5083e50 [WINE]
add inline version of ffs

svn path=/trunk/; revision=52382
2011-06-20 13:15:58 +00:00
Timo Kreuzer b9472583c6 [CRTDLL]
- don't forward _fileinfo_dll to MSVCRT, this doesn't work and its not what MS crtdll does.
- don't define _CRTIMP to _declspec(dllexport)
- link to MSVCRT when compiling with MSVC
- remove def file

svn path=/trunk/; revision=52380
2011-06-20 12:41:32 +00:00
Timo Kreuzer 2035d47de2 [CRT]
Implement call_ebp_func for msvc

svn path=/trunk/; revision=52379
2011-06-20 11:27:55 +00:00
Cameron Gutman aa6ff8e522 [NTOSKRNL]
- Use PoCallDriver when sending a power IRP

svn path=/trunk/; revision=52378
2011-06-20 10:54:00 +00:00
Timo Kreuzer 8d5a792eb8 [DOSKEY]
Fix copy paste bug. Patch by r3ddr4g0n

svn path=/trunk/; revision=52377
2011-06-20 09:18:42 +00:00
Olaf Siejka 6472b891d1 [UTF8]
- Convert format, fdebug, ntvdm and win32csr polish locale to UTF-8;
- Clean up remainder of #pragma definitions in individual language rc files. This should prevent bugs like one with chineese locale in calc;
- Move bulgarian and romanian locales, already converted to UTF-8 to proper section in module rc file;

svn path=/trunk/; revision=52376
2011-06-19 22:55:34 +00:00
Matthias Kupfer 68234347d8 [TRANSLATIONS] fix the code_page-#pragma issue for Chinese
- add Chinese to UTF-8 section
- remove default #pragma at end of Romanian file

svn path=/trunk/; revision=52375
2011-06-19 22:11:42 +00:00
Cameron Gutman ae5018a9dd [FASTFAT]
- Move verification code to the BlockDev* functions (like CDFS does) so functions that call those directly will have verification handled for them
- Add verification handling for IOCTL requests

svn path=/trunk/; revision=52374
2011-06-19 20:03:49 +00:00
Timo Kreuzer af892bdd85 [BROWSEUI]
Fix rc syntax

svn path=/trunk/; revision=52373
2011-06-19 19:48:43 +00:00
Cameron Gutman e2d92bfd5e [FASTFAT]
- Handle STATUS_VERIFY_REQUIRED for write requests
- Clear the device to verify after retrieving it
- Fixes write failure after changing floppy media
[CDFS]
- Reissue the I/O request if IoVerifyVolume was successful
- Fixes read after a media change

svn path=/trunk/; revision=52372
2011-06-19 19:43:52 +00:00
Jérôme Gardou cef5719846 addendum to r52369: forgot those
svn path=/trunk/; revision=52370
2011-06-19 16:40:10 +00:00
Jérôme Gardou 4f2fbfda9d [CMAKE]
- set PCH file after importing libraries for modules that link to msvcrt.
Otherwise it wouldn't get the added definitions and become useless.

svn path=/trunk/; revision=52369
2011-06-19 16:35:43 +00:00
Matthias Kupfer 13ac41ea5e patch by Song Fuchang (0xfc) <sfc_0 AT yahoo DOT com DOT cn>:
- [TRANSLATIONS] add Simplified Chinese translation for calc
- #pragma code_page(65001) added in zh-CN.rc (needs to be reviewed)
- See issue #6319 for details.

svn path=/trunk/; revision=52368
2011-06-19 16:34:58 +00:00
Jérôme Gardou 0ebe345d17 [NOTSKRNL]
- Addendum to 52366: get back old code, thanks to Alex

svn path=/trunk/; revision=52367
2011-06-19 13:59:33 +00:00
Giannis Adamopoulos 714761cbbd [NTOSKRNL]
- Fix incorrect KiUserTrap which returned 3 for UserMode traps. Kind-of spotted by Jerome, but fixed in the wrong place...ReactOS-style, as always.
-Patch by Alex Ionescu

svn path=/trunk/; revision=52366
2011-06-19 13:55:28 +00:00
Jérôme Gardou 2f7d633262 [GDI32]
- remove useless check.

svn path=/trunk/; revision=52365
2011-06-19 13:11:39 +00:00
Ged Murphy fbbd6d9218 [BROWSEUI]
- Set the prototypes to be long instead of LONG. This only worked in rbuild previously because WIDL incorrectly generates a LONG for long types.
- define SHANDLE_PTR and use it in IWebBrowserApp::get_HWND
- Along with fixing WIDL, __WINESRC__ and __ROS_LONG64__ should be removed as part of a future fix.
- Should now build with both rbuild and msvc

svn path=/trunk/; revision=52364
2011-06-19 12:46:15 +00:00
Timo Kreuzer 80aa713b95 [OBJ2BIN]
Fix handling of empty sections

svn path=/trunk/; revision=52363
2011-06-19 11:53:10 +00:00
Giannis Adamopoulos 61c822816d [rpcrt4]
- Improve hacky definition of __ASM_DEFINE_FUNC to reduce build errors with msvc

svn path=/trunk/; revision=52362
2011-06-19 10:44:26 +00:00
Colin Finck ead744a31f [USBDRIVER]
No objections on the mailing list, so I'm excluding "usbdriver" from build.
It should still stay as a reference in the tree till the new USB drivers are finalized and merged back to Trunk.

svn path=/trunk/; revision=52361
2011-06-19 10:13:59 +00:00
Timo Kreuzer 5119d4e93c [FREELDR]
- Fix MSVC linkerflags for setupldr
- Move stack from 78000 to 98000 to fix conflicts with freeldr code, which is larger when built with MSVC
- MSVC compiled setupldr works now!

svn path=/trunk/; revision=52360
2011-06-19 10:03:45 +00:00
Cameron Gutman 9dedf3489c [NTOSKRNL]
- Send IRP_MN_QUERY_POWER and IRP_MN_SET_POWER to all enumerated devices prior to a system power state change
- We don't mind failure right now since our drivers suck

svn path=/trunk/; revision=52358
2011-06-19 04:25:33 +00:00
Cameron Gutman d7cc1589e6 [PCIIDEX]
- Don't ASSERT if we get an IRP that we don't understand

svn path=/trunk/; revision=52357
2011-06-19 04:21:41 +00:00
Cameron Gutman eecc2a655e [NTOSKRNL]
- Change the resource type if HalTranslateBusAddress indicates that we got the address type wrong

svn path=/trunk/; revision=52356
2011-06-19 01:42:05 +00:00
Cameron Gutman 722de7fe98 [VIDEOPRT]
- Initialize PnP IRPs with the correct status

svn path=/trunk/; revision=52355
2011-06-19 01:40:10 +00:00
Amine Khaldi ce59643e60 [XMLLITE_WINETEST]
* Fix msvc build.

svn path=/trunk/; revision=52354
2011-06-18 23:04:39 +00:00