Nikolay Sivov
cb05be7bff
kernel32: Add GetEnabledXStateFeatures() stub.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-26 11:25:51 +01:00
Mark Jansen
85f515292a
kernel32/tests: Close process / thread handles.
...
Signed-off-by: Mark Jansen <mark.jansen@reactos.org>
Signed-off-by: Thomas Faber <thomas.faber@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-23 15:54:45 +01:00
Nikolay Sivov
f8cca445fb
ntdll: Allow closing tags for 'supportedOS' elements.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:14:20 +01:00
Zebediah Figura
50ca65d172
kernel32/tests: Handle notifications on the parent dir more gracefully.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-20 20:12:43 +01:00
Alexandre Julliard
59a7777f84
kernel32: Hardcode the windows and system directories.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 19:45:58 +01:00
Alexandre Julliard
12276796c9
ntdll: Hardcode the windows and system directories.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 19:38:29 +01:00
Michael Müller
37c983966b
ntdll: Implement RunlevelInformationInActivationContext in RtlQueryInformationActivationContext.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 16:55:08 +01:00
Alexandre Julliard
4a2ad423a6
server: Implement the various image flags in SECTION_IMAGE_INFORMATION.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-15 12:22:43 +01:00
Alexandre Julliard
2df367a4f7
kernel32/tests: Add some tests for CIL 32-bit image flags.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-15 08:25:29 +01:00
Alexandre Julliard
b6ca8fd25d
kernel32/tests: Add some tests for image flags and CLR images.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-13 20:23:27 +01:00
Mark Jansen
0f1cb96b69
ntdll: Parse manifest compatibility section.
...
Signed-off-by: Mark Jansen <mark.jansen@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 17:20:36 +01:00
Mark Jansen
74862f2e96
kernel32/tests: Add tests for the compatibility section in actctx.
...
Signed-off-by: Mark Jansen <mark.jansen@reactos.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-12 16:34:14 +01:00
Huw Davies
1e945155f9
kernel32: Save xmm0 - 3 to work around a Delphi bug on x86_64.
...
When delay loading a symbol, Delphi saves rcx, rdx, r8 and r9 to the
stack. It then calls GetProcAddress(), pops the saved registers and
calls the function. This works fine if all of the parameters are
ints. However, since it does not save xmm0 - 3, it relies on
GetProcAddress() preserving these registers if the function takes
floating point parameters.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-07 19:38:29 +01:00
Daniel Lehman
fe09e2dba6
kernel32: Change error return from GlobalFree.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-03 12:01:40 +01:00
Alexandre Julliard
d8454f9231
kernel32: Remove support for vm86 exceptions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-02 14:42:38 +01:00
Fabian Maurer
5eb13b2413
kernel32: Add stub for ReOpenFile.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:58 +01:00
Paul Graham
39899fd11a
kernel32: Fix failure reporting in WritePrivateProfile* and add tests.
...
Conformance tests based on work by Fabian Maurer, with some adaptations.
Signed-off-by: Paul Graham <development@omega-software.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:58 +01:00
Austin English
db5a57c5f2
kernel32: Add QueryProcessCycleTime stub.
...
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:58 +01:00
Alexandre Julliard
a8a74134e8
ntdll: Check for file mappings that cannot be loaded as dlls.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 15:10:24 +01:00
Alexandre Julliard
0810e6a688
server: Implement the ImageContainsCode flag for image mappings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 11:12:49 +01:00
Alexandre Julliard
41275cbabf
ntdll: Don't return 64-bit image info to 32-bit processes.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 10:59:12 +01:00
Alexandre Julliard
f9bd73c4d6
server: Allow creating image mappings for all supported CPU platforms.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-30 10:57:00 +01:00
Jacek Caban
72f3fa9e2d
kernel32: Don't initialize Information of passed OVERLAPPED struct in WriteFile.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 18:28:38 +01:00
Jacek Caban
84ae4b937f
kernel32: Always set bytes written in WriteFile.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 18:28:38 +01:00
Jacek Caban
c47c74e5d3
kernel32: Don't initialize Information of passed OVERLAPPED struct in ReadFile.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 18:28:38 +01:00
Jacek Caban
d5cd34c7df
kernel32: Always set bytes read in ReadFile.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 18:28:38 +01:00
Michael Stefaniuc
0efd18f45a
kernel32/tests: Fix the HeapReAlloc name in two comments.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-23 12:41:16 +01:00
Alexandre Julliard
a83532d8dd
ntdll: Store the context on the thread stack after the initial suspend.
...
The initial stack pointer may have been modified during suspend.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-22 22:26:45 +01:00
Akihiro Sagawa
844ae22fcf
kernel32: Return the list of module handles even if the last argument is null.
...
Touhou Shinpiroku relies on this behaviour.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-19 19:46:19 +01:00
Alexandre Julliard
f10b6f6c35
kernel32/tests: Also test wrong architecture with matching 32/64 bitness.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-11 10:06:41 +01:00
Alex Henrie
84a5c59604
kernel32/tests: Drop module test workarounds for Windows <= 2000.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-10 18:26:56 +01:00
Andrey Gusev
061e2bbff1
kernel32: Remove redundant comparison.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-09 16:02:25 +01:00
Francois Gouget
8f35b20a11
kernel32/tests: A couple spelling fixes in a comment.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-08 22:47:23 +01:00
Alex Henrie
3675b7035e
kernel32/tests: Add missing return value check to module tests (Coverity).
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-08 19:26:44 +01:00
Andrey Gusev
e041039ce6
kernel32/tests: Fix a typo in comment.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-08 13:58:21 +01:00
Andrey Gusev
027e2add2e
kernel32/tests: Fix resource leak.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-03 19:13:24 +01:00
Zebediah Figura
e87ced67c8
kernel32/tests: Update product type test.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 13:25:20 +01:00
André Hentschel
a1da7dbd2b
kernel32/tests: Don't test functions directly when reporting GetLastError().
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-01-02 11:10:39 +01:00
Alexandre Julliard
d108ff79d5
ntdll: NtQuerySection takes SIZE_T parameters.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-28 13:06:43 +01:00
Alexandre Julliard
decf34e0e8
kernel32/tests: Add missing todos for 64-bit.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-28 13:04:09 +01:00
Alexandre Julliard
8a3624afc2
kernel32/tests: Add tests for loading dlls of different 32/64 bitness.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-27 21:12:46 +01:00
Alexandre Julliard
69a332fd03
kernel32/tests: Add tests for the ImageContainsCode flag.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-27 21:12:46 +01:00
Alexandre Julliard
c1487e4938
kernel32/tests: Build the dll path in the create_test_dll helper function.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-27 18:36:34 +01:00
Andrey Gusev
c49e306cac
kernel32/tests: Fix a typo in ok() message.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-22 16:29:33 +01:00
Alexandre Julliard
e5d8129a3f
kernel32/tests: Improve tests for 32/64-bit image mappings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-19 19:48:45 +01:00
Alexandre Julliard
21149e6331
kernel32: Properly detect ELF binaries that are position independent executables.
...
Based on a patch by Sebastian Lackner.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-18 11:19:34 +01:00
Martin Payne
e562d4de81
kernel32: Don't report valid non-Win16 NE executables (e.g. OS/2) as broken.
...
Signed-off-by: Martin Payne <development@martinpayne.me.uk>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-13 20:14:14 +01:00
Andrew Eikum
f87a2f0e4c
ntdll: Don't require full-page reads in NtReadFileScatter.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 19:13:52 +01:00
Andrew Eikum
64edbfa6fe
ntdll: Don't return an error when reading past EOF in NtReadFileScatter.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 19:13:41 +01:00
Andrew Eikum
5262761135
ntdll: Report NtReadFileScatter results asynchronously.
...
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-07 19:13:37 +01:00
Alexandre Julliard
23ec3ce2a3
ntdll: Start process execution directly at the kernel32 process entry point.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-04 15:03:55 +01:00
Zebediah Figura
47e9e911ac
kernel32: Fix a couple internal uses of ANSI functions.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 20:32:12 +01:00
Alexandre Julliard
b802f88319
kernel32/tests: Add a test for the thread initial context.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-30 19:06:44 +01:00
Alexandre Julliard
c63a08586f
kernel32: Don't return a parent locale for neutral locales in GetLocaleInfoEx.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-28 20:32:52 +01:00
Jacek Caban
4e9f4ee4a7
kernel32/tests: Silence noisy debug traces.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-28 19:08:54 +01:00
Alexandre Julliard
5f0a669185
kernel32: Use the magic format string prefix for relay traces.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-25 12:05:40 +01:00
Andrey Gusev
cf415c62ed
kernel32: Add CreateThreadpoolIo stub.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-24 16:48:03 +01:00
David Collett
ea640e1aa7
kernel32: Adjust data directories in UpdateResource API.
...
When adding resources to a PE file using the UpdateResource API and
the resource section is not the last section (i.e. we had to move
existing sections), ensure any data directory entries pointing into
moved sections is adjusted.
Signed-off-by: David Collett <david.collett@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-23 21:17:06 +01:00
Alexandre Julliard
8477ae27a8
ntdll: Fixup imports in the first thread that runs, even if it's not the main one.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-20 20:24:39 +01:00
Jonathan Doron
2f8c9d449b
kernel32/tests: Test suspended process with new thread.
...
Test the exe imports resolve time if a new thread is being created in
a new suspended process.
Signed-off-by: Jonathan Doron <jond@wizery.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-20 17:10:47 +01:00
Zebediah Figura
74b1426bba
kernel32/tests: Don't close the stop_event handle.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-17 10:28:35 +01:00
Zebediah Figura
7ecf84c421
kernel32/tests: Trace thread IDs in hexadecimal.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-17 10:28:26 +01:00
Alexandre Julliard
c5a39bd98f
kernel32: Keep the sublanguage specified by the script name when looking for the default.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 19:43:13 +01:00
Alexandre Julliard
de7e687801
kernel32: Also match script name when looking for a locale.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 19:04:04 +01:00
Rafał Harabień
56424c5b6f
kernel32/tests: Check last error after successful Tls/FlsGetValue calls.
...
Signed-off-by: Rafał Harabień <rafalh1992@o2.pl>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-13 13:02:58 +01:00
Zhiyi Zhang
c222b86a52
kernel32/nls: Add LOCALE_SPARENT entries.
...
Signed-off-by: Zhiyi Zhang <yi.gd.cn@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-10 13:45:43 +01:00
Alex Henrie
f962bb0039
kernel32/tests: Detect and handle a redirected stdin.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-06 21:31:07 +01:00
Zhiyi Zhang
1354c0f3e4
kernel32/tests: Add more tests for LocaleNameToLCID and LCIDToLocalName.
...
Signed-off-by: Zhiyi Zhang <gd.yi@139.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 12:14:11 +01:00
Alexandre Julliard
e488a246a5
kernel32/tests: Use WINAPIV calling convention for variadic functions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-11-02 10:17:04 +01:00
Alexandre Julliard
1d49a57e77
kernel32: Also set the preloader range for 64-bit binaries.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-23 11:45:25 +02:00
Andrey Gusev
c9e37d8142
kernel32/tests: Remove redundant comparison.
...
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-11 20:31:05 +02:00
Zebediah Figura
7477792b4c
server: FSCTL_PIPE_LISTEN on a pipe client should return STATUS_ILLEGAL_FUNCTION.
...
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-10-10 19:52:36 +02:00
Jacek Caban
b9248446ff
kernel32/tests: Get rid of no longer needed hacks.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-05 19:33:09 +02:00
Jacek Caban
7eb7854161
server: Use server side named pipe implementation in byte mode.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-04 21:40:56 +02:00
Jacek Caban
688c7a99d2
server: Return error for FSCTL_PIPE_PEEK calls on disconnected pipes.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-10-04 21:24:28 +02:00
Alexandre Julliard
5fa8713ddc
ntdll: No longer store the mapping handle with the view.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-26 17:01:45 +02:00
Stefan Dösinger
bf6025e0e1
ntdll: Do not queue a completion status if pipe ops fail synchronously.
...
This fixes random crashes when exiting Chromium or shutting down CEF.
It is similar to 7a1142035d
, just for pipes.
Signed-off-by: Stefan Dösinger <stefan@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-25 23:29:10 +02:00
Alexandre Julliard
6eec34a9ed
kernel32/tests: Add more WRITECOPY tests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-25 23:29:07 +02:00
Alexandre Julliard
0494f03649
kernel32/tests: Fix some confusing WRITECOPY tests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-25 23:29:00 +02:00
Alexandre Julliard
51d348c8c2
ntdll: Add helpers to lock the user output buffer during file reads.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-22 15:10:42 +02:00
Alexandre Julliard
a20c4e11df
ntdll: Add a helper to lock the user output buffer during a server call.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-22 15:10:21 +02:00
Alexandre Julliard
2b0725f95a
kernel32/tests: Add some more tests for write watches.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-21 19:50:21 +02:00
Michael Stefaniuc
c7411a6390
kernel32: Remove redundant attributes check.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-20 16:23:34 +02:00
Alexandre Julliard
0eefa76791
ntdll: Suspend the process before attaching dlls, using the process initial context.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-19 12:43:00 +02:00
Alexandre Julliard
985cf6731c
kernel32/tests: Add tests for the register values at process start.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-18 16:52:58 +02:00
Jonathan Doron
6a49f4d5f3
kernel32/tests: Test suspended process states.
...
Signed-off-by: Jonathan Doron <jond@wizery.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-15 17:01:21 +02:00
Alexandre Julliard
47ddc57571
kernel32/tests: Avoid some delays in the process test.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-14 17:31:55 +02:00
Sebastian Lackner
59ecc9ccd9
kernel32: Add stub for GetProcessWorkingSetSizeEx.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-13 08:45:22 +02:00
Alexandre Julliard
f448be618b
ntdll: Verify page protection against the mapping protections in VirtualAlloc and VirtualProtect.
...
This partially reverts 3a5ee02735
.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 20:32:01 +02:00
Alexandre Julliard
94872cc84f
ntdll: Fix access rights checks for mapping objects.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-12 20:32:01 +02:00
Alexandre Julliard
d6b523e69f
kernel32/tests: Also run mapping tests against an executable image.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-11 16:51:37 +02:00
Alexandre Julliard
c88a858eca
kernel32/tests: Also run mapping tests against an anonymous mapping.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-11 15:52:39 +02:00
Alexandre Julliard
1caf95d1ad
kernel32/tests: Fix mapping protection tests to succeed on recent Windows versions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-11 15:52:39 +02:00
Alexandre Julliard
9b85cebf05
kernel32/tests: Retrieve the page size only once.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-11 11:20:23 +02:00
Alexandre Julliard
26c59d845e
ntdll: Ignore attempts to commit pages in an already committed anonymous mapping.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:15 +02:00
Alexandre Julliard
08acac0864
ntdll: Disallow changing PAGE_NOCACHE flag for individual pages.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:15 +02:00
Alexandre Julliard
e5c39a565a
server: Enforce valid flags for file mappings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-09-08 16:23:14 +02:00
Alexandre Julliard
741fe13d44
kernel32: Silence buffer overflow gcc warnings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-31 10:48:39 +02:00
Marcus Meissner
844b57e4d8
kernel32/tests: Fixed size to GetTempPathW.
...
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-30 20:27:08 +02:00
Alexandre Julliard
ff8af74189
kernel32/tests: Use function pointers to avoid gcc warnings for invalid parameter tests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-30 09:45:29 +02:00
Alexandre Julliard
5841521477
kernel32/tests: Add tests for SetSearchPathMode.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 15:51:27 +02:00
Alexandre Julliard
a8d291c0c0
kernel32: Implement safe search mode for SearchPath.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 15:51:27 +02:00
Alexandre Julliard
24e9dcb1b4
kernel32/tests: Fix a dll reference leak.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 11:30:48 +02:00
Alexandre Julliard
934cb440e0
kernel32/tests: Add tests for the LOAD_LIBRARY_SEARCH_* flags.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 11:30:27 +02:00
Alexandre Julliard
3b399bbbf8
kernel32: Implement LOAD_LIBRARY_SEARCH_* flags.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 11:30:27 +02:00
Alexandre Julliard
8abbfbbe24
kernel32: Add helper functions for building the load path.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 09:33:07 +02:00
Alexandre Julliard
12167d2e36
kernel32: Implement AddDllDirectory and RemoveDllDirectory.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-29 08:16:52 +02:00
Alexandre Julliard
8d82ab4ae7
kernel32: Add support for LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE flag.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-28 14:19:47 +02:00
Alexandre Julliard
e99811aee2
kernel32: Implement SetDefaultDllDirectories.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-28 13:29:22 +02:00
Alexandre Julliard
66e302f80b
kernel32: Implement safe dll search mode.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-28 12:47:34 +02:00
Vincent Povirk
e8ef521c83
kernel32: Set the ProgramData environment variable.
...
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-24 14:08:22 +09:00
Nikolay Sivov
5afac01eec
kernel32/nls: Added LOCALE_SNAN entries.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-18 08:09:09 +09:00
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