Alexandre Julliard
c4d85843c0
kernel32: Get the current directory from the process parameters in create_cmd_process().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-16 22:26:07 +02:00
Alexandre Julliard
ec0c5a11fd
kernel32: Move environment Unicode conversion into create_process_params().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-16 20:46:34 +02:00
Akihiro Sagawa
b02cdd3615
kernel32: Fix LCMapString buffer calculation with LCMAP_KATAKANA and LCMAP_HALFWIDTH.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45982
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 20:13:51 +02:00
Akihiro Sagawa
96b4a5a356
kernel32/tests: Add LCMapString tests with a voiced consonant Hiragana character.
...
Use U+3060 (HIRAGANA LETTER DA) in the test.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 20:13:51 +02:00
Alexandre Julliard
27ba57e804
kernel32: Pass the standard process parameters structure to fork_and_exec().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 20:13:51 +02:00
Alexandre Julliard
ed551282b4
kernel32: Pass the standard process parameters structure to create_process().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 20:13:51 +02:00
Louis Lenders
35f62f644d
kernel32: Add stub for MoveFileTransacted{A,W}.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45995
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 20:13:51 +02:00
Dmitry Timoshkov
f184a396a8
kernel32: MoveFile should make sure that it has the delete access to the source file.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 20:13:50 +02:00
Dmitry Timoshkov
7edfcd63ad
kernel32: MoveFile(source, source) should succeed.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 20:13:50 +02:00
Dmitry Timoshkov
b1d878fd2c
kernel32/tests: Move the MoveFile test where it belongs.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 14:05:11 +02:00
Dmitry Timoshkov
c1c0a08388
kernel32/tests: Fix a bunch of access denied errors by using a dedicated TEMP directory.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 14:05:10 +02:00
Dmitry Timoshkov
75d6c63a40
kernel32/tests: Fix compilation with PSDK.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-15 14:05:08 +02:00
Alexandre Julliard
79e2afaaae
kernel32: Build a standard process parameters structure in CreateProcess().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-11 18:08:02 +02:00
Alexandre Julliard
0964b3cd13
kernel32: Use the CPU type from the image information in CreateProcess().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-11 18:07:34 +02:00
Alexandre Julliard
03e05c1f57
ntdll: Implement RtlSetUnhandledExceptionFilter().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-09 14:49:54 +02:00
Alexandre Julliard
fd60a33e5d
kernel32: Pass the full filename to winevdm.exe in CreateProcessW().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-08 20:26:32 +02:00
Alexandre Julliard
2475cb767d
kernel32: Make a copy of the process environment in CreateProcessW().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-08 18:23:23 +02:00
Zebediah Figura
b79fd400c0
kernel32: Implement GetQueuedCompletionStatusEx().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43878
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-01 19:12:21 -07:00
Zebediah Figura
a2c11943c8
kernel32/tests: Add some tests for completion ports.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-10-01 19:12:21 -07:00
Alexandre Julliard
dc0ec5502d
kernel32: Create a fresh PE info structure when running winevdm.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-28 19:26:42 +02:00
Gijs Vermeulen
e850369dd8
Revert "kernel32: Add GetQueuedCompletionStatusEx stub.".
...
This partially reverts commit f1be5c7861
.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45891
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-28 15:22:25 +02:00
Alexandre Julliard
ec13f6ec2a
kernel32: Get rid of the binary_info structure.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 14:55:32 +02:00
Alexandre Julliard
df637816bc
kernel32: Return the binary type from get_binary_info().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 14:55:19 +02:00
Alexandre Julliard
da40de3ced
kernel32: Determine 32/64-bitness from the PE architecture.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 14:55:18 +02:00
Alexandre Julliard
9d3a5a969c
kernel32: Retrieve binary information from the server for PE files.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 14:54:59 +02:00
Alexandre Julliard
8b492467d9
kernel32: Move MODULE_get_binary_info implementation to process.c.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-27 13:27:28 +02:00
Alexandre Julliard
1060567cc5
kernel32: Remove the DOS/Win16/OS2 binary distinction.
...
They all need to be run through winevdm.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-25 21:45:04 +02:00
Alexandre Julliard
57512807b9
kernel32: Reimplement GetBinaryTypeW to rely on the server for header parsing.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-25 21:45:04 +02:00
Alexandre Julliard
622aeeba6a
server: Return more specific error status for NE binaries.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-25 21:45:04 +02:00
Gijs Vermeulen
f1be5c7861
kernel32: Add GetQueuedCompletionStatusEx stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43878
Signed-off-by: Gijs Vermeulen <gijsvrm@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-24 22:41:29 +02:00
Alexandre Julliard
ac7ae92af1
server: Allow specifying the security descriptor for a new process.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 14:50:48 +02:00
Alexandre Julliard
39afcaac4a
server: Create the initial thread as a separate request.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 14:50:48 +02:00
Alexandre Julliard
4a328e08ac
server: Allow specifying the security descriptor for a new thread.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 13:06:12 +02:00
Alex Henrie
b8b946dd0f
kernel32: Add DECLSPEC_HOTPATCH to functions patched by libtcmalloc.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45199
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-18 20:59:38 +02:00
André Hentschel
7e39544bfa
kernel32: Add stub for SetProcessWorkingSetSizeEx.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45523
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-17 18:35:33 +02:00
Alistair Leslie-Hughes
0a7293a8e3
kernel32/tests: Tests for ProcessCookie in NtQueryInformationProcess.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-17 18:29:04 +02:00
André Hentschel
fa0da6a2cb
kernel32/tests: Allow ERROR_ACCESS_DENIED for newer Win10.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-10 12:32:03 +02:00
Qian Hong
279ac253e5
kernel32: Fallback to default comspec when %COMSPEC% is not set.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=19801
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-03 19:44:43 +02:00
Brock York
324e0d2e9f
kernel32/tests: Improve ReplaceFileW error checking.
...
Signed-off-by: Brock York <twunknown@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-03 18:47:19 +02:00
Brock York
2bbd309d66
kernel32/tests: Test ReplaceFileW on open exe.
...
Replicate the scenario of an exe calling ReplaceFileW on itself.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=33845
Signed-off-by: Brock York <twunknown@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-03 18:47:05 +02:00
Fabian Maurer
56b3304a01
ntdll/actctx: Don't stop looking for manifest if dll without manifest is found.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:38 +02:00
Louis Lenders
ad8f450957
kernel32: Add stub for GetApplicationRestartSettings.
...
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-29 22:01:36 +02:00
Jacek Caban
58233b47e0
kernel32: Always create file with FILE_READ_ATTRIBUTES access in CreateFile.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 23:02:28 +02:00
Jacek Caban
8712db6f55
kernel32: Use proper access flags in CreatePipe.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 10:43:35 +02:00
Jacek Caban
8db78eccab
ntdll: Allow FileAccessInformation to be queried on files without fds.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-21 10:43:29 +02:00
Dmitry Timoshkov
54ec72bc09
kernel32: Set %ALLUSERSPROFILE% variable to the same value as %ProgramData%.
...
This matches what recent Windows versions set in the process environment.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-20 10:08:12 +02:00
Jacek Caban
a9ef1dd5dc
kernel32/tests: Add more pipe tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 15:24:45 +02:00
Jacek Caban
57212f64f8
kernel32: Add AttachConsole implementation.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=41573
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43910
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 13:21:56 +02:00
Daniel Lehman
32acf3139c
kernel32/tests: Add some CompareStringA/W tests.
...
Signed-off-by: Daniel Lehman <dlehman@esri.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 11:23:30 +02:00
Dmitry Timoshkov
2a28db37ab
kernel32: Set environment variable %PUBLIC% at process start-up.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-16 11:07:37 +02:00