Alexandre Julliard
8d11c0871e
kernelbase: Fix NormalizeString() return value and last error.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-03 20:48:03 +01:00
Alexandre Julliard
a7cc191aa8
ntdll: Fix estimated buffer sizes in RtlNormalizeString().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-03 20:48:03 +01:00
Alexandre Julliard
dcd195e0f1
ntdll: Add parameter checking in RtlNormalizeString().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-03 19:20:39 +01:00
Alexandre Julliard
77f58afd3b
kernel32/tests: Add some NormalizeString() tests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-03 19:20:39 +01:00
Zebediah Figura
c7019a8887
kernelbase: Implement ReOpenFile().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47668
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-28 19:33:06 +01:00
Alexandre Julliard
f17a228d45
unicode: Try harder to reuse subsequences when compressing data arrays.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-28 19:26:13 +01:00
Roman Pišl
b53e466794
kernelbase: Implement GetThreadIdealProcessorEx stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48313
Signed-off-by: Roman Pišl <rpisl@seznam.cz>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-27 16:47:52 +01:00
Evan Tang
4e9dae3776
kernel32/lzexpand: Fix uninitialized read in read_header.
...
read_header calls _lread which can either return the number of characters read
or HFILE_ERROR (-1), cast to a UINT.
Signed-off-by: Evan Tang <etang110@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-27 16:29:39 +01:00
Vladimir Panteleev
b0acb5982a
kernel32/tests: Fix GetLastError() checks in environment tests.
...
Lack of SetLastError() calls caused tests to compare stale errors,
instead of the effects of the tested (immediately previously called)
functions.
Add SetLastError calls, and fix a broken test (copy check from A to W
tests).
Signed-off-by: Vladimir Panteleev <git@vladimir.panteleev.md>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-23 22:41:29 +01:00
Alexandre Julliard
4b5c67ee0b
unicode: Remove case mappings that don't round-trip.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-23 21:11:29 +01:00
Zhiyi Zhang
e41547c548
ntdll: Fix some Rtl* functions having wrong calling convention.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-16 12:21:11 +01:00
Jacek Caban
9b44422a49
kernel32/tests: Skip instruction pointer check of the last exception in exception race tests.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-14 19:05:06 +01:00
Alexandre Julliard
21876b998c
kernel32: Catch stack overflow faults in IsBad*Ptr() functions.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48444
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-13 19:41:02 +01:00
Nikolay Sivov
47c691a27c
kernel32: Fix spec entries for GetLongPathName().
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-07 22:26:08 +01:00
Nikolay Sivov
05061846c1
kernel32/tests: Remove GetLongPathName() workarounds.
...
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-07 22:26:08 +01:00
Alexandre Julliard
d6022964cb
kernel32/tests: Remove some workarounds for old Windows versions.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-06 19:28:45 +01:00
Zebediah Figura
f692d9e7bc
kernel32/tests: Fix some codepage test failures with Windows 10.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-05 17:34:22 +01:00
Jacek Caban
1d556188a7
kernel32/tests: Avoid function pointers for functions present since XP.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-03 21:40:59 +01:00
Jacek Caban
79d58362c7
kernel32/tests: Don't use blackbox for crashing process.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-03 21:40:59 +01:00
Jacek Caban
f4e232430b
kernel32/tests: Use WAIT_EVENT_TIMEOUT in wait_for_breakpoint.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-03 21:40:59 +01:00
Jacek Caban
313fc40a97
kernel32/tests: Get rid of no longer needed win9x checks.
...
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-02 17:40:39 +01:00
Zebediah Figura
741b8f9504
kernel32/tests: Fix a test failure on Windows 10.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-01 19:15:37 +01:00
Zebediah Figura
7a61bbaa6f
kernel32: Exclude IsBadStringPtrA() from relay traces.
...
It messes up 16-bit relay traces due to krnl386's use of debugstr_a().
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-01-01 19:15:25 +01:00
Louis Lenders
1f626b5e1f
kernel32: Update version to win7.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48304
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-19 16:20:39 +01:00
Alexandre Julliard
c8f3383696
include: Allow using debug.h in tests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-17 16:55:15 +01:00
Chip Davis
27b9f6f609
kernel32: Forward OpenProcessToken() to kernelbase.
...
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-16 19:22:26 +01:00
Chip Davis
8834f12329
kernel32: Forward OpenThreadToken() to kernelbase.
...
Signed-off-by: Chip Davis <cdavis@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-16 19:22:26 +01:00
Akihiro Sagawa
a85bc781d3
kernelbase: Use translated Unicode default char to check invalid chars.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48288
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-16 18:45:01 +01:00
Akihiro Sagawa
3bb92d7773
kernel32/tests: Refactor MB_ERR_INVALID_CHARS tests.
...
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-16 18:44:59 +01:00
André Hentschel
9367475f28
kernel32: Fix some spec file entries.
...
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-16 18:44:57 +01:00
Alexandre Julliard
8b0a7b2503
ntdll: Fix RtlQueryUnbiasedInterruptTime() prototype.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48239
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-16 18:44:57 +01:00
Alexandre Julliard
4ac3cbd6cc
kernel32: Duplicate OutputDebugStringA implementation.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48059
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-16 12:00:36 +01:00
Paul Gofman
3a47598bb3
kernel32/tests: Test invalid parent handle in test_parent_process_attribute().
...
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-13 13:16:00 +01:00
Paul Gofman
74a74556dd
server: Support creating processes with specified parent.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47817
Signed-off-by: Paul Gofman <gofmanp@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-13 13:13:36 +01:00
Alexandre Julliard
4cb8497c8f
kernel32: Disable relay trace for __wine_start_process().
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=48273
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-13 08:37:36 +01:00
Alexandre Julliard
f2e5b80707
kernel32: Use the Get/SetComputerName functions from kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-12 23:17:05 +01:00
Alexandre Julliard
207c558003
kernelbase: Move some console support back to kernel32.
...
That's where the bulk of the console code still resides.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-12 23:16:40 +01:00
Alexandre Julliard
4118697829
server: Support passing a handle to get_console_wait_event.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-12 23:16:40 +01:00
Alexandre Julliard
f88404bfb0
kernel32: Remove heap function replacements.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-11 22:46:19 +01:00
Alexandre Julliard
9b0877db4a
kernel32: Move FindFirst/NextFile functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-11 21:51:28 +01:00
Louis Lenders
626162f7db
kernel32: Return S_OK in RegisterApplicationRecoveryCallback stub.
...
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=43817
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-10 22:15:05 +01:00
Alexandre Julliard
89500484c2
kernel32: Move timezone functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-10 20:59:19 +01:00
Alexandre Julliard
30e5f1215e
kernel32: Remove __wine_kernel_init().
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-10 18:24:32 +01:00
Alexandre Julliard
eeb8eddfa2
kernel32: Move GeoID functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 23:47:46 +01:00
Alexandre Julliard
098e71ad61
kernel32: Move the CompareString functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 23:47:46 +01:00
Alexandre Julliard
94a3add0ea
kernel32: Move LCMapString functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 23:47:46 +01:00
Alexandre Julliard
1b46da5c05
kernel32: Move GetStringType functions to kernelbase.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 23:47:46 +01:00
Francois Gouget
7eb54616ff
kernel32/tests: Trace LastError when GetPhysicallyInstalledSystemMemory() fails.
...
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 23:47:46 +01:00
Mathew Hodson
df94a9a450
kernel32/tests: Add broken result for Windows XP and 2003.
...
Signed-off-by: Mathew Hodson <mathew.hodson@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 23:47:45 +01:00
Mathew Hodson
356513ef2d
kernel32/tests: Trace the mapped string when FoldStringW fails.
...
Signed-off-by: Mathew Hodson <mathew.hodson@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-12-09 23:47:45 +01:00