Commit Graph

2688 Commits

Author SHA1 Message Date
Alexandre Julliard 1b85b6cab7 krnl386: Use RtlCaptureContext and NtSetContextThread to implement register functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-25 12:04:46 +02:00
Alexandre Julliard c5a35d898f krnl386: Explicitly fetch the service argument in VxDCall.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-25 11:51:18 +02:00
Alexandre Julliard f91b4bd410 krnl386: Add a simple wrapper for CommonUnimpStub instead of saving/restoring all registers.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:30 +02:00
Alexandre Julliard 92d5ce3c76 krnl386: Simplify a couple of register functions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-24 18:58:30 +02:00
Alexandre Julliard a75e3f734d ntdll: Call NtRaiseException directly from RtlRaiseException on i386.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-20 13:54:43 +02:00
Jactry Zeng b9a9fe4a04 kernel32: Add stub for ResolveLocaleName.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-19 19:13:30 +02:00
Daniel Lehman 9118512135 kernel32/tests: Increase timeout for loader test.
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:35 +02:00
Alexandre Julliard 8d51efc7b9 kernel32/tests: Wait for threads to terminate.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-10 11:31:05 +02:00
André Hentschel 1ab9c9d849 kernel32: Fix EscapeCommFunction prototype.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-06-19 09:48:36 +02:00
Akihiro Sagawa 1afb369380 ntdll: Zero bits parameter must be less than 21.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-31 20:51:46 +02:00
Akihiro Sagawa 5bd58bb275 kernel32/tests: Add more tests related to the zero_bits parameter.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-31 20:51:46 +02:00
Sebastian Lackner dc43ed435f kernel32: Add missing WINAPI to SetThreadIdealProcessorEx implementation.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-30 11:14:29 +02:00
Austin English 980754bff7 kernel32: Add SetThreadIdealProcessorEx stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-24 17:55:47 +02:00
Austin English 66b37c556c kernel32: Add GetActiveProcessorCount stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-24 17:54:14 +02:00
Austin English 360e9544bf kernel32: Add GetActiveProcessorGroupCount stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-24 17:53:11 +02:00
Jacek Caban 0657b1d1f4 kernel32/tests: Run test_overlapped_transport in byte mode.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-22 18:55:03 +02:00
Jacek Caban 9d011931db kernel32/tests: Added more PeekNamedPipe tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-22 18:54:56 +02:00
Zebediah Figura ad2f1efe01 kernel32/tests: Test bytes left in PeekNamedPipe().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-22 13:46:21 +02:00
Zebediah Figura d37bfe960f kernel32: Implement bytes left in PeekNamedPipe().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-22 13:46:18 +02:00
Jacek Caban 0be75640f5 kernel32/tests: Use shorter timeout for wait that we expect to time out.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-11 10:17:50 -05:00
Alexandre Julliard d23815827d kernel32: Rely solely on the DosDevices symbolic links in QueryDosDevice.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-03 11:50:02 +02:00
Zebediah Figura 5155afd882 kernel32: Use the full path as an argument to winevdm.exe.
When starting a 16-bit process using CreateProcess() which resides
in a subdirectory, the directory is changed but winevdm.exe still
attempts to look for the whole path. Thus attempting to start
"install\setup.exe" will cause winevdm.exe to look for
"install\install\setup.exe", which fails.

Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-01 19:29:14 +02:00
Michael Müller 2b79436ab9 kernel32: Add stub for GetPackageFullName.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-24 11:09:59 +02:00
Michael Müller 62ae2ae1a1 ntdll: Add stub for JobObjectBasicAccountingInformation and JobObjectBasicProcessIdList.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-24 11:09:46 +02:00
Michael Müller a345265614 ntdll: Mark LDR data as initialized.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-24 11:08:50 +02:00
Michael Stefaniuc 14e7febc52 kernel32/tests: Test HeapReAlloc with size 0.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-04 14:55:41 +02:00
Aric Stewart 9dc5d299f1 kernel32: Improve locale detection on Android.
setlocale is coded to just return 'C' for all inquiries ignoring locale
that may be set in the environment.

Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 17:59:09 +02:00
Francois Gouget 8a19864b0f kernel32/tests: A spelling fix in a comment.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-04-03 13:53:53 +02:00
Jacek Caban e44c0f710b kernel32: Use default buffer size in CreatePipe if 0 was passed.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-30 22:06:32 +02:00
Jacek Caban 95988a9fef kernel32/tests: Added tests of pipe write cancelled on process termintation.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-28 13:21:39 +02:00
Alex Henrie 0b95ebd283 kernel32: Check for invalid flags in codepage conversion functions.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-28 10:31:46 +02:00
Jacek Caban 975c5381ed server: Added support for flushing client pipe.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-27 16:54:24 +02:00
Jacek Caban aa472f5eb5 server: Added support for message mode named pipe reads.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-27 16:54:24 +02:00
Can Taşan 42ed54b5d8 kernel32: Add Unicode character for Turkish lira.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 21:17:45 +01:00
Alex Henrie fd7acb03ed kernel32: Simplify Linux implementation of GlobalMemoryStatusEx.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 21:09:17 +01:00
Jacek Caban a83b5cdb93 kernel32/tests: Added more named pipe tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 21:07:15 +01:00
Jacek Caban b682e1c41d server: Use server-side I/O for message mode named pipes.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-24 21:07:09 +01:00
Akihiro Sagawa 9af3dffaf3 kernel32: Add localized version resource.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-22 16:23:09 +01:00
Marcus Meissner 0cf2adb36d kernel32/tests: Fixed incorrect buffer sizes.
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-21 20:52:04 +01:00
Austin English ad6c781eb2 kernel32: Add GetVolumeInformationByHandleW stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-21 20:52:04 +01:00
Huw Davies bdf50d883d kernel32/tests: Always retrieve the output mode.
Fixes a compiler warning.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-20 13:22:10 +01:00
Bruno Jesus c7fb64dbc7 kernel32/tests: Add 64bit number tests for FormatMessage[A|W].
Signed-off-by: Bruno Jesus <bjesus@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 21:31:22 +01:00
Michael Müller d2b98081fd kernel32: Add stub for GetCurrentPackageFamilyName.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-08 15:31:48 +01:00
Louis Lenders 3f50319ec3 kernel32: Add stub for GetCurrentPackageFullName.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-06 21:02:18 +01:00
André Hentschel 88eef73fc8 kernel32: Fix some more spec file entries.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-27 10:17:01 +01:00
Jonathan Doron 163ebdfa96 kernel32: Added implementation of FileIdInfo for GetFileInformationByHandleEx.
Signed-off-by: Jonathan Doron <jond@wizery.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-16 19:08:40 +01:00
Michael Stefaniuc 1b3cbf52b2 kernel32: Remove always true if conditions (coccinellery).
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-15 16:33:54 +01:00
Jacob Lifshay c7ad47e9b2 kernel32: Fix improper escaping of quotes in command line.
Signed-off-by: Jacob Lifshay <programmerjake@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-13 11:37:02 +01:00
Dmitry Timoshkov 8de06f12dd kernel32: Replace Peb->BeingDebugged check by CheckRemoteDebuggerPresent().
misctool.dll from AmiBroker intentionally sets PEB->BeingDebugged
to a random value returned by RDTSC instruction on PROCESS_ATTACH.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-10 21:39:05 +01:00
Andrew Wesie 06c5a9ab55 ntdll: Read entry point in LdrInitializeThunk.
Overwatch overwrites the PE header contents in a TLS callback. This results in
a crash on wine, because the entry point will be incorrect in start_process.

Signed-off-by: Andrew Wesie <awesie@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-02-09 21:37:08 +01:00