Claudio Fontana
be678a52e1
kernel32: Allow empty profile section and key name strings.
...
Consider "" a normal section, and fix calculation for zero
length section name string and key name string.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=8036
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=18099
Signed-off-by: Claudio Fontana <claudio.fontana@gmail.com>
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-28 19:12:28 +01:00
Isira Seneviratne
eb3988f080
kernel32/nls: Change Sinhala sublang identifier to SUBLANG_SINHALESE_SRI_LANKA.
...
Signed-off-by: Isira Seneviratne <isirasen96@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-27 22:30:11 +01:00
Piotr Caban
f09f686538
Revert "kernel32: Restore C locale for LC_CTYPE category.".
...
This reverts commit c8e195e179
.
There's still lots of code that works incorrectly in tr_TR.UTF-8 locale
but I think it's good to revert this patch before next release.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-27 22:01:39 +01:00
Piotr Caban
2eb1849100
kernel32: Don't use strcasecmp.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-27 22:01:31 +01:00
Piotr Caban
342ccda6ed
kernel32: Don't use toupper.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-27 22:01:12 +01:00
Zhiyi Zhang
df3dd6612c
kernel32: Add DECLSPEC_HOTPATCH to VirtualAllocEx().
...
Fix Tom Clancy's The Devision uplay version startup crash.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-25 10:13:44 +01:00
Jon Doron
be25d225ad
kernel32: Make GetEnvironmentStringsW returns a copy of the environment.
...
There are certain applications which try to traverse the environement
being returned, but this is problematic since they cannot acquire the
PEB Lock (i.e cl.exe on Visual Studio 14.15) .
Signed-off-by: Jon Doron <arilou@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-20 08:57:33 +01:00
Piotr Caban
c8e195e179
kernel32: Restore C locale for LC_CTYPE category.
...
In tr_TR.UTF-8 locale tolower('I') != 'i' (this is not a bug in glibc,
tolower('I') is suppossed to return dotless i that is 2-byte long).
Because of that strcasemp("i", "I") returns that the strings are
different.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-18 21:43:00 +01:00
Francois Gouget
193df74fde
kernel32/tests: A spelling fix in a win_skip() message.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-18 10:11:27 +01:00
Jacek Caban
d3660e5901
ntdll: Fix event op functions declarations.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-12 20:33:41 +01:00
Jacek Caban
c8b50c98a3
server: Wake waiters when new pipe server instance is created.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-11 19:29:36 +01:00
Jacek Caban
be3ae0131e
server: Connect pipe servers in order that they enter listening state.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-11 19:29:36 +01:00
Ken Thomases
4dd5e533b1
kernel32: Remove some duplicate code.
...
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-07 17:58:10 +01:00
Isira Seneviratne
a6ca2001eb
kernel32/nls: Fix some values in Sinhala NLS file.
...
Signed-off-by: Isira Seneviratne <isirasen96@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-05 21:22:15 +01:00
Piotr Caban
2ee8554a0a
kernel32/tests: Show that PAGE_WRITECOPY permission changes only on modified pages.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-05 21:22:15 +01:00
Brendan McGrath
5d577ae9ea
libwine: get_sortkey to return consistent length with and without dstlen.
...
Signed-off-by: Brendan McGrath <brendan@redmandi.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-05 20:42:41 +01:00
Brendan McGrath
7c1e0ef736
kernel32/tests: Length of sort keys must be equal with and without dest.
...
Signed-off-by: Brendan McGrath <brendan@redmandi.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-05 20:42:18 +01:00
Brendan McGrath
87917df887
kernel32: Allow double quote style escape in argv.
...
Two quotes together (within outer quotes) represents a single
quote (with the first quote acting as an escape character)
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=46721
Signed-off-by: Brendan McGrath <brendan@redmandi.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-04 13:13:29 +01:00
Isira Seneviratne
057df12738
kernel32: Fix LOCALE_SSCRIPTS value for Sinhala.
...
Signed-off-by: Isira Seneviratne <isirasen96@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-01 17:48:26 +01:00
Alexandre Julliard
c525d7ab98
kernel32/tests: Use GetTempFileName() instead of hardcoding directory names.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-28 21:37:30 +01:00
Isira Seneviratne
b40c14d8aa
kernel32: Add the Sinhala NLS file.
...
Signed-off-by: Isira Seneviratne <isirasen96@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-28 21:37:30 +01:00
Alexandre Julliard
24721eccac
ntdll: Use the fastcall flag for RtlInterlockedPushListSList.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-28 21:37:29 +01:00
Huw Davies
e4ca5dbec0
server: Add new pipe servers to the end of the servers list.
...
This ensures instances created first will be connected to first.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=41670
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-26 20:48:37 +01:00
Alistair Leslie-Hughes
941e4f5441
kernel32: Correct GetCurrencyFormatW/A spec entries.
...
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-25 17:35:14 +01:00
Paul Gofman
ba42efdb14
ntdll: Pass async parameter to add_fd_completion server call.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-21 16:07:07 +01:00
Paul Gofman
41b221ff82
kernel32/tests: Test ReadFileScatter() completion status with FILE_SKIP_COMPLETION_PORT_ON_SUCCESS.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Jacek Caban<jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-21 16:06:57 +01:00
Michael Stefaniuc
099303c459
kernel32: Remove redundant not 0 check (coccinellery).
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-20 23:12:51 +01:00
Paul Gofman
7ce2a8e0ae
ntdll: Return STATUS_PENDING from NtReadFile() for async read in case of no buffering.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=31954
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-19 13:10:22 +01:00
Paul Gofman
3117370acc
kernel32/tests: Add test for overlapped file read.
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-19 13:10:22 +01:00
Daniel Lehman
8acdd597d0
kernel32/tests: Add tests for SpecialCasing.
...
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-19 13:10:22 +01:00
Alexandre Julliard
3ba4901134
kernel32/tests: Add a test to check some fields in fake dlls.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45377
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-18 21:11:17 +01:00
Alexandre Julliard
42df4dccd5
ntdll: Return the kernel process start address from __wine_kernel_init().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-14 17:57:09 +01:00
Piotr Caban
864919a2ea
kernel32/tests: Test that copy-on-write file mapping is not modifying the file.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-13 19:45:24 +01:00
Piotr Caban
43a4401ebd
kernel32/tests: Add file mapping tests on readonly file.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-13 19:45:24 +01:00
Jacek Caban
5bb4212397
kernel32: Support MUI_LANGUAGE_ID flag in EnumUILanguages.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-13 19:45:24 +01:00
Alexandre Julliard
156965eae9
server: Create the windows directories at startup if necessary.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-12 23:02:28 +01:00
Alexandre Julliard
9839bb7691
ntdll: Skip dlls of the wrong machine type when searching through the load path.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 12:31:40 +01:00
Alexandre Julliard
c946922a9c
ntdll: Directly try to open the dll file instead of checking for existence first.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Huw Davies
2d2e935190
kernel32: Implement canonical composing.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Huw Davies
db3ae2ca9f
libport: Add support for singleton decomposition.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Huw Davies
eceb69e172
libport: Add support for compatibility decomposition.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Huw Davies
dc919db2bf
kernel32: Implement canonical reordering.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Huw Davies
e4a9e2ff2e
kernel32: Initial support for canonical decomposition in NormalizeString().
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Huw Davies
aa2f12900b
kernel32/tests: Move the tests to a per-test todo.
...
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-11 11:52:00 +01:00
Alexandre Julliard
6fb00db51e
ntdll: Don't use current directory for libraries unless explicitly specified in the search path.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-06 19:57:27 +01:00
Alexandre Julliard
c827e3f6af
kernel32: Fix handling of NULL argument in SetDllDirectoryA().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-02-05 21:46:29 +01:00
Jon Doron
aa5107b165
kernel32: Fix MOVEFILE_REPLACE_EXISTING between devices.
...
Fix the case of rename fails because when done between 2 different
devices and the MOVEFILE_REPLACE_EXISTING is set.
Signed-off-by: Jon Doron <arilou@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-29 19:54:01 +01:00
Jon Doron
69d3c7a00f
kernel32: Fix MoveFileWithProgressW from closing same handle twice.
...
Signed-off-by: Jon Doron <arilou@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-29 19:54:01 +01:00
Alexandre Julliard
b1dbe76d7a
kernel32/tests: Add tests for dll fallback when image type doesn't match current platform.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-28 18:35:46 +01:00
Alexandre Julliard
5613526bd4
kernel32/tests: Try loading the dll also for matching platform type.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-28 18:35:46 +01:00