Alexandre Julliard
6113c46856
kernel32: Use RtlGetSearchPath() in SearchPathW() implementation.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-01 15:14:08 +02:00
Alexandre Julliard
5f938bb51b
ntdll: Implement RtlGetSearchPath().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-01 15:14:08 +02:00
Alexandre Julliard
14fbecee65
kernel32: Add set_ntstatus() helper.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-10-01 09:43:27 +02:00
Gijs Vermeulen
b03a4b8902
kernel32/tests: Fix some console tests on newer Win10.
...
Signed-off-by: Gijs Vermeulen <gijsvrm@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-30 22:24:27 +02:00
Piotr Caban
392648dda2
kernel32: Don't use uninitialized ofs->szPathName in OpenFile.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-30 11:50:16 +02:00
Sven Baars
a892bf5909
kernel32/tests: Fix a test failure on Windows XP.
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-30 11:49:02 +02:00
Alexandre Julliard
eac5395fb4
kernel32: Move some misc functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-26 19:36:10 +02:00
Alexandre Julliard
ea43b87c00
kernel32: Move NUMA-related functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-26 19:36:10 +02:00
Alexandre Julliard
2c68c530af
kernel32: Move file time functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-26 19:36:10 +02:00
Alexandre Julliard
0f5538b9e3
kernel32: Move delay-load functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-26 19:36:10 +02:00
Alexandre Julliard
950773dc06
kernel32: Move some handle functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-26 19:36:10 +02:00
Francois Gouget
98093939d6
kernel32/tests: Fix the spelling of three ok() messages and comments.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-23 19:44:17 +02:00
Francois Gouget
17fbd837e2
kernel32/tests: Fix the spelling of the exerciseServer() function name.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-23 19:44:17 +02:00
Alex Henrie
7c5ea436af
include: Rename Reserved1 to SystemStatusFlag in SYSTEM_POWER_STATUS.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-23 19:44:17 +02:00
Jacek Caban
27da4fa449
kernel32/tests: Enable debug break exception race tests on i386 Wine.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-20 21:31:34 +02:00
Alexandre Julliard
7c0032b62a
kernel32: Move some locale functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-17 18:32:14 +02:00
Alexandre Julliard
e3e1bede1b
kernel32: Move some path functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-17 16:50:44 +02:00
Alexandre Julliard
55e9b666a0
kernel32: Move console functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-10 23:20:41 +02:00
Alexandre Julliard
f3960c32f1
kernel32: Move ioctl functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 21:05:07 +02:00
Alexandre Julliard
44efb1a026
ntdll: Allocate environment blocks from the process heap.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:55 +02:00
Alexandre Julliard
911e50849a
kernel32: Move process startup information functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:55 +02:00
Alexandre Julliard
3e6b961f00
kernel32: Move environment functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:55 +02:00
Alexandre Julliard
a311140f93
kernel32: Move QueryPerformanceCounter/Frequency functions to ntdll.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:55 +02:00
Alexandre Julliard
ddf82f7c0d
kernel32: Move unhandled exception functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 16:25:55 +02:00
Alexandre Julliard
3b002685fe
kernel32: Move debugger functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 11:44:29 +02:00
Alexandre Julliard
471c2f565c
kernel32: Move OS version functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 11:44:29 +02:00
Alexandre Julliard
d38a5ba4e6
kernel32: Move global/local memory functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-09 11:44:29 +02:00
Alexandre Julliard
67a9700267
kernel32: Move memory resource functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-08 22:52:09 +02:00
Alexandre Julliard
cad0f61808
kernel32: Move heap functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-08 22:52:09 +02:00
Alexandre Julliard
61516e2223
kernel32: Move virtual memory functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-08 22:52:09 +02:00
Alexandre Julliard
0b5c0bc769
kernel32: Move file change notification functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-08 22:52:09 +02:00
Alexandre Julliard
c683e7e5a1
kernel32: Move interlocked functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-08 13:23:49 +02:00
Gabriel Ivăncescu
6f8bea3049
kernel32/locale: Don't fail with non-NULL args when the Unix codepage falls back to UTF-8.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-04 21:31:54 +02:00
Gabriel Ivăncescu
cf92311425
kernel32/locale: Set whether we used the default char when using Unix codepage.
...
Signed-off-by: Gabriel Ivăncescu <gabrielopcode@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-04 21:29:11 +02:00
Jacek Caban
649be380b1
ntdll: Call send_debug_event from debug handler on x86_64.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-04 20:03:30 +02:00
Francois Gouget
d504332b1c
kernel32/tests: Avoid unneeded strlen*() calls.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-04 17:11:29 +02:00
André Hentschel
9220772d28
ntdll: Add RtlUnwindEx spec entry for ARM64.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-30 21:24:26 +02:00
Alexandre Julliard
a9755d286e
ntdll: Implement RtlVirtualUnwind() for ARM64.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-29 12:01:52 +02:00
Jacek Caban
42a9b58b06
kernel32/tests: Add exception handling race test.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-27 21:53:03 +02:00
Alexandre Julliard
505be3a0a2
kernelbase: Implement SetThreadStackGuarantee().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-24 11:39:07 +02:00
Alexandre Julliard
3ca42e0a97
kernel32: Add .seh annotations for x86_64.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-21 11:52:05 +02:00
Steven Bell
d97f33f034
kernel32: Add stub implementation of EnumSystemFirmwareTables.
...
A recent change to the game Everquest adds a call to EnumSystemFirmwareTables.
Signed-off-by: Steven Bell <bell.steven@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-20 21:29:36 +02:00
Jacek Caban
0f4ef1c3df
kernel32/tests: Add single step and debug service tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-14 17:41:01 +02:00
Rémi Bernon
d1a7b681ea
ntdll: Change zero_bits parameter type to ULONG_PTR for NtMapViewOfSection and NtAllocateVirtualMemory.
...
It can be a pointer mask, eventually 64bit, and ULONG_PTR is what can be
found in several documentation of these functions.
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-13 12:11:15 +02:00
Alexandre Julliard
2c73a08655
kernel32: Move some directory functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-12 16:15:16 +02:00
Alexandre Julliard
05d00276c6
kernel32: Move some module functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-12 12:46:59 +02:00
Alexandre Julliard
0b45fc4750
kernel32: Move some file name functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-12 12:46:59 +02:00
Alexandre Julliard
ccf4ca825c
kernel32: Move file handle functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-12 12:46:59 +02:00
Alex Henrie
cbd038f75c
kernel32: Silence FIXME about FIND_FIRST_EX_LARGE_FETCH.
...
This flag is only relevant for performance.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-12 12:46:59 +02:00
Alexandre Julliard
d8582d97a0
kernel32: Move process/thread attribute list functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 15:24:52 +02:00
Alexandre Julliard
09f588ee69
kernel32: Move some process functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 15:24:52 +02:00
Alexandre Julliard
f2e7e1658b
kernel32: Move more thread functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 14:49:48 +02:00
Nikolay Sivov
2a15f77b49
ntdll: Ignore -1 time value same as 0 when setting file times.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 10:03:19 +02:00
Nikolay Sivov
70189853e2
kernel32/tests: Add some tests for setting file times.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-09 10:03:14 +02:00
Francois Gouget
8080e204bf
kernel32/tests: A couple of spelling fixes in ok() call messages.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 17:53:36 +02:00
Alexandre Julliard
c168fd066d
kernel32: Move fiber functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 17:53:36 +02:00
Alexandre Julliard
296da1fbb1
kernel32: Move thread pool functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 17:53:35 +02:00
Alexandre Julliard
0116660dd8
kernel32: Move thread functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 17:53:35 +02:00
Alexandre Julliard
adac42bad6
kernel32: Reimplement fiber switching in assembly.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-08 14:23:53 +02:00
Jacek Caban
c1a32a080f
server: Report only one debug event per process at the time.
...
Instead of one per thread.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-07 00:12:26 +02:00
Jacek Caban
6b46a4d24a
kernel32/tests: Improve timeout handling in debugger tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-07 00:12:25 +02:00
André Hentschel
19d96f99c6
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>
2019-08-02 10:52:03 +02:00
Chip Davis
49ffaddf9b
kernel32: Forward power request functions to ntdll.
...
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-01 19:12:03 +02:00
Chip Davis
6420ebdf93
ntdll: Move SetThreadExecutionState() implementation to ntdll.
...
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-08-01 19:12:03 +02:00
Nikolay Sivov
fdf8d7176f
kernel32: Support FileBasicInfo case in SetFileInformationByHandle().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 20:48:57 +02:00
Nikolay Sivov
e14249a364
kernel32/nls: Add locale data for positive and negative infinity.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 18:17:05 +02:00
Nikolay Sivov
5d2914b2c2
kernel32/nls: Add percent formatting values.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 18:17:02 +02:00
Nikolay Sivov
ce82e5e883
kernel32/nls: Add LOCALE_SPERMILLE data.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 18:17:00 +02:00
Nikolay Sivov
c9b135cc88
kernel32/nls: Add LOCALE_SPERCENT locale data.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 18:16:57 +02:00
Serge Gautherie
7e0acf14cc
kernel32/tests: Test QueryFullProcessImageNameW() flags.
...
Signed-off-by: Serge Gautherie <winehq-git_serge_180711@gautherie.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-31 09:28:38 +02:00
Alexandre Julliard
862cc117c1
kernel32: Set the path environment variables according to the WoW64 environment.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47467
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-06 17:06:39 +02:00
Jacek Caban
5e0b0d3521
server: Rename cpu_type_t to client_cpu_t.
...
To avoid conflicts with mac headers.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 17:43:53 +02:00
Jacek Caban
4ee629a3ba
kernel32: Use DebugBreakProcess in DebugActiveProcess.
...
Fixes attaching to a process with VS remote debugger. It expects the
first break exception address to be DbgBreakPoint.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 17:42:25 +02:00
Jacek Caban
dc3623f57f
winternl.h: Remove inline DbgBreakPoint version.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 17:42:19 +02:00
Jacek Caban
a679f965c8
kernel32: Reimplement DebugBreakProcess on top of DbgUiIssueRemoteBreakin.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 17:42:16 +02:00
Alexandre Julliard
d5400af782
kernel32: Set environment variables for the various Wine paths.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-05 11:38:15 +02:00
Jacek Caban
4f1185d21e
kernel32: Terminate process in unhandled exception handler.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-04 21:14:54 +02:00
Jacek Caban
3fded30a10
server: Fix debug event order in generate_startup_debug_events.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-04 21:14:54 +02:00
Jacek Caban
6aaa2b23a3
kernel32/tests: Add more debugger tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-04 21:14:54 +02:00
Nikolay Sivov
8f1caca469
kernel32: Remove unused functions.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-03 10:56:29 +02:00
Alexandre Julliard
5b5c5df676
kernel32: Move activation context functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-02 16:28:17 +02:00
Alexandre Julliard
5129c45982
kernel32: Move resource functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-02 16:28:17 +02:00
Alexandre Julliard
aa58676ae0
kernel32: Move wait functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 20:42:42 +02:00
Alexandre Julliard
bc28ed4c6c
kernel32: Move named pipe functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 20:42:42 +02:00
Alexandre Julliard
1834d9e9fe
kernel32: Move I/O completion functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:57:16 +02:00
Alexandre Julliard
9585990a46
kernel32: Move condition variable functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:57:13 +02:00
Alexandre Julliard
628d4450cd
kernel32: Move file mapping functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:57:09 +02:00
Alexandre Julliard
aa7f8e930d
kernel32: Move critical section functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:57:06 +02:00
Alexandre Julliard
d33d05ce27
kernel32: Move timer queue functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:57:03 +02:00
Alexandre Julliard
8c63d02d5f
kernel32: Move waitable timer functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:56:59 +02:00
Alexandre Julliard
591266881c
kernel32: Move semaphore functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:56:56 +02:00
Alexandre Julliard
93a5451152
kernel32: Move mutex functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:56:53 +02:00
Alexandre Julliard
558e48aafd
kernel32: Move event functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:56:49 +02:00
Alexandre Julliard
2a455ce049
kernel32: Move lstr* string functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-07-01 15:56:46 +02:00
Alexandre Julliard
32fdffac42
include: Implement some inline functions in C instead of assembly.
...
This way the same code can be used on all platforms.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-26 23:08:53 +02:00
Fabian Maurer
6525a16673
ntdll: Check the activation context before looking for the module basename.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 10:50:53 +02:00
Alexandre Julliard
91bbc46c99
ntdll: Try to use the name of the PE file also when loading .so builtin.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 10:50:53 +02:00
Fabian Maurer
aa97c30b01
kernel32/tests: Add sxs tests.
...
Signed-off-by: Fabian Maurer <dark.shadow4@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-24 10:50:53 +02:00
Rémi Bernon
d1b7e01e5e
ntdll/tests: Move NtMapViewOfSection tests from kernel32/tests.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-20 22:32:40 +02:00
Rémi Bernon
d6bc3830e4
kernel32/tests: Fix some NtMapViewOfSection tests expectations, and add results for w1064v1809.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-20 22:32:05 +02:00
Andrew Eikum
d5d43ac907
kernel32: Link against RT_LIBS.
...
Fixes linking against glibc < 2.17 where clock_gettime needs -lrt.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-19 20:41:26 +02:00
Zebediah Figura
9b7e2f54b2
kernel32: Use RtlCreateUserStack().
...
Planet Coaster allocates 128kB of stack (both reserve and commit) but expects
to be able to use at least one page more than that. Native Windows always
reserves at least 1MB of stack.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-17 20:52:23 +02:00
Huw Davies
2706b94dd0
kernel32/tests: Add a test for GetTickCount().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-14 18:23:55 +02:00
Alexandre Julliard
f59d05223d
server: Fix the returned error code for an invalid NT header offset.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47359
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-13 20:55:35 +02:00
Rémi Bernon
f39c1eee49
ntdll/tests: Move NtAllocateVirtualMemory tests that were in kernel32.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-11 18:18:39 +02:00
Rémi Bernon
4d5c874f42
kernel32/tests: Fix NtAllocateVirtualMemory tests results on w1064v1809.
...
Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-05 23:06:52 +02:00
Alexandre Julliard
0d9d816fc3
kernel32: Fix handling of LOAD_WITH_ALTERED_SEARCH_PATH when other search flags are specified.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46809
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-05 21:40:55 +02:00
Huw Davies
13e11d3fcb
kernel32: Move the implementation of GetTickCount() to kernel32.
...
Fixes regression caused by 3e927c4aec
.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47265
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 21:53:27 +02:00
Alexandre Julliard
32582a780e
kernel32: Simplify K32GetPerformanceInfo().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-30 21:53:26 +02:00
Manuel Edelmann
bc7e98a1a9
kernel32: Added stub for Set/GetProcessPreferredUILanguages.
...
Signed-off-by: Manuel Edelmann <varris@protonmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-27 20:52:38 +02:00
Sven Baars
c340890146
kernel32/tests: Open and close the right file handle (Coverity).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-27 14:39:14 +02:00
Michael Stefaniuc
260e66ee8b
kernel32/tests: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 21:56:07 +02:00
Akihiro Sagawa
4ef37887d6
kernel32: Add traces to time zone functions.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 21:55:54 +02:00
Alexandre Julliard
c52b2f1284
make_unicode: Remove duplicate DECLSPEC_HIDDEN.
...
Spotted by Matteo Bruni.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-24 11:25:38 +02:00
Alexandre Julliard
333e6b3c69
make_unicode: Avoid including wine/unicode.h in generated files.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:16:05 +02:00
Alexandre Julliard
bb6bd8a2f1
make_unicode: Use a two-level table for the kernel32 wctype table.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:16:05 +02:00
Alexandre Julliard
02a04ba05e
make_unicode: Store the C2_* values directly in the kernel32 wctype table.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:16:05 +02:00
Alexandre Julliard
f09dade9cb
make_unicode: Add a wctype table in kernel32 for GetStringTypeW().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:16:05 +02:00
Piotr Caban
4a6e69ad3a
libwine: Ignore 0 weights as described in Unicode collation algorithm.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:16:05 +02:00
Piotr Caban
40a1a9e9a2
libwine: Decompose characters before comparing in wine_compare_string.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-22 19:16:05 +02:00
Piotr Caban
344057ef34
kernel32: Add more CompareStringW tests.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-20 22:12:30 +02:00
Roman Stingler
e9dad9d733
kernel32: Add stub WerUnregisterRuntimeExceptionModule.
...
Signed-off-by: Roman Stingler <roman.stingler@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-17 09:23:17 +02:00
Huw Davies
3e927c4aec
ntdll: Extend NtGetTickCount() to return 64-bits. Forward kernel32 functions to it.
...
Marking the function as DECLSPEC_HOTPATCH to avoid reopening
https://bugs.winehq.org/show_bug.cgi?id=36486 . Even with -fno-PIC,
without DECLSPEC_HOTPATCH the generated code has a pushl at offset 7
that triggers the failure.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 20:54:23 +02:00
Alexandre Julliard
170bd8f361
include: Pass function name directly to the __ASM_STDCALL macro.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-16 19:00:10 +02:00
Hans Leidekker
4872747b27
ntdll: Fix breakpoint exception address on 64-bit Linux.
...
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-15 22:04:39 +02:00
Huw Davies
71dc2514c3
kernel32: Forward GetSystemTimeAsFileTime() to NtQuerySystemTime().
...
This relies on FILETIME and LARGE_INTEGER having the same layout.
On an i7-8700 CPU @ 3.20GHz with HZ=1000 it cuts the call cost from
~18ns to ~12ns.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-15 19:23:48 +02:00
Huw Davies
a94a21026d
kernel32: Simplify is_not_current().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-15 19:23:44 +02:00
Huw Davies
3593f7da66
kernel32: Simplify TIME_CompTimeZoneID() by passing time as LONGLONG.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-15 19:23:42 +02:00
Huw Davies
9fbfcbe1bf
kernel32: Replace macros with inline helpers.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-15 19:23:40 +02:00
Huw Davies
074b7d9d09
kernel32: Implement GetSystemTimePreciseAsFileTime() using RtlGetSystemTimePrecise().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 20:25:10 +02:00
Alexandre Julliard
d5a372abbb
include: Move inline assembly definitions to a new wine/asm.h header.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-14 13:45:07 +02:00
Roman Stingler
52065a31d7
kernel32: Added some Numa stubs.
...
Signed-off-by: Roman Stingler <roman.stingler@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-13 13:44:11 +02:00
Akihiro Sagawa
1b7f3698f0
advapi32: Support the base directory parameter in RegLoadMUIString.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-13 13:25:19 +02:00
Louis Lenders
fb4116ee02
kernel32: Add K32GetWsChangesEx stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47131
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-09 08:23:31 -05:00
Francois Gouget
6a20bb2daf
kernel32/tests: Use ok_() so the TestBot can correctly detect the line.
...
Otherwise the messages appear to change every time the line count
changes, which making old errors new again.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-09 08:20:38 -05:00
Alexandre Julliard
171dab0696
kernel32: Reset stdio file descriptors when passed invalid handles.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-07 15:03:29 -05:00
Alexandre Julliard
59e1d114a4
kernel32: Use strncmpiW instead of memicmpW for strings without embedded nulls.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-07 11:31:05 -05:00
Enol Puente
ff8dcba466
kernel32: Add Asturian locale.
...
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-03 21:47:49 +02:00
Erich E. Hoover
690a9003b3
kernel32: Add SearchPath test demonstrating the priority of the working directory.
...
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Erich E. Hoover <erich.e.hoover@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-01 11:28:58 +02:00
Nikolay Sivov
fe0f8a150f
ntdll: Initialize critical section debug info with correct pointer value.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-30 20:08:04 +02:00
Jactry Zeng
642919382f
kernel32/tests: Avoid a crash on WinXP and Win2K.
...
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-29 09:37:09 +02:00
Detlef Riekenberg
f5636dea60
kernel32/pipe: Avoid a crash in a test.
...
Signed-off-by: Detlef Riekenberg <wine.dev@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-26 21:07:58 +02:00
Erich E. Hoover
2295d937a8
kernel32: NeedCurrentDirectoryForExePath does not use the registry.
...
Signed-off-by: Erich E. Hoover <erich.e.hoover@gmail.com>
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-26 13:38:36 +02:00
Dmitry Timoshkov
f80059544b
kernel32: Add MapUserPhysicalPages stub.
...
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-25 17:28:11 +02:00
Nikolay Sivov
bf174815ba
kernel32/tests: Add a test for critical section DebugInfo initial value.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-25 17:28:10 +02:00
Alexandre Julliard
d4ef782db7
makefiles: Build all tests with msvcrt.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-24 12:10:51 +02:00
Louis Lenders
d4421f9c0b
kernel32: Add DECLSPEC_HOTPATCH to CreateActCtx.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47051
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-23 23:50:45 +02:00
Jacek Caban
c448550e74
ntoskrnl.exe/tests: Add more NtOpenThread tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-23 23:50:45 +02:00
Vijay Kiran Kamuju
57d6c541b9
kernel/nls: Fix LOCALE_SABBREVCTRYNAME for Serbian.
...
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-23 23:50:45 +02:00
Vijay Kiran Kamuju
9ed363a1fe
kernel32: Add implementation for CAL_SMONTHDAY.
...
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-23 23:50:45 +02:00