Commit Graph

2864 Commits

Author SHA1 Message Date
André Hentschel bdd7be3747 kernel32/tests: Fill in the delay IAT to succeed on Win10.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-16 12:02:32 +09:00
Peter Beutner c90e46b66d kernel32: Properly handle double delimiters in GetShortPathName/GetLongPathName.
Signed-off-by: Peter Beutner <p.beutner@gmx.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-16 00:00:43 +09:00
Peter Beutner 1fe0b84ffc kernel32/tests: Add path tests for double delimiters.
Signed-off-by: Peter Beutner <p.beutner@gmx.net>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-16 00:00:39 +09:00
Michael Stefaniuc 3bc7549f42 kernel32/tests: Remove another identical if/else branch.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 12:54:16 +09:00
Michael Stefaniuc 85dea19312 kernel32/tests: Remove an identical if / else branch.
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 12:52:45 +09:00
Michael Stefaniuc 3e6b503adb kernel32/tests: Use todo_wine_if().
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-10 12:52:33 +09:00
Piotr Caban 84b3218ed6 server: Fix loading of IMAGE_OPTIONAL_HEADER.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-09 00:56:00 +09:00
Bernhard Übelacker e2253d439f kernel32/tests: Convert fiber back to thread even when IsThreadAFiber is not available.
Signed-off-by: Bernhard Übelacker <bernhardu@mailbox.org>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-08 21:49:48 +09:00
André Hentschel 2ecbdb8582 kernel32/tests: Remove superfluous filler definitions.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-08 18:41:28 +09:00
André Hentschel c5868eed11 kernel32/tests: Use SetFilePointer instead of GetFileSize with WriteFile.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-08 18:41:28 +09:00
André Hentschel e685bed6cc kernel32/tests: Explicitly set SizeOfRawData.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-08 18:41:27 +09:00
Alexandre Julliard 1110eccafb kernel32/tests: Fix a few more loader test failures.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-28 21:38:02 +09:00
Ken Thomases 2e636d4fe8 kernel32: For Mac 64-bit, re-enable the inlining of various functions, leveraging the TEB self pointer at %gs:0x30.
On other platforms, gsbase is set to point to Wine's TEB.  So, these functions
can use %gs-relative addressing with the field offsets to access the fields of
the TEB.

On the Mac, gsbase points to internals of the pthread implementation and that
wouldn't work.  However, Wine hijacks %gs:0x30 and stores the TEB address there.
So, we access the TEB fields by first loading the TEB address and then
accessing its fields relative to that.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-28 21:38:02 +09:00
Alexandre Julliard ef716e9d1e server: Don't grow the mapped file for read-only mappings.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-27 22:21:07 +09:00
Alexandre Julliard 32c7153fdb server: Avoid rounding mapping sizes on the server side.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-27 17:03:03 +09:00
Alexandre Julliard 24b49c4775 kernel32/tests: Fix loader test failures on some Windows versions.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-27 16:09:40 +09:00
Francois Gouget b54a8dda84 kernel32/tests: Remove a trailing space from an ok() call message.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-26 23:59:20 +09:00
Alexandre Julliard 6f0979b983 ntdll: Implement the SectionImageInformation class of NtQuerySection.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-26 20:33:16 +09:00
Alexandre Julliard 2602df14d8 ntdll: Implement the SectionBasicInformation class of NtQuerySection.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-26 20:32:10 +09:00
Alexandre Julliard 4832adf8f9 kernel32/tests: Remove some win9x compatibility cruft.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-25 23:15:49 +09:00
Michael Müller 1b26d38095 kernel32: In Win9x mode UnmapViewOfFile requires base address of a mapping.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 22:03:21 +09:00
Michael Müller 1311c8157b ntdll: NtUnmapViewOfSection should succeed for all offsets within the mapped range.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 22:03:21 +09:00
Michael Müller 38d4935007 kernel32/tests: Add tests for UnmapViewOfFile with unaligned pointer.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 22:03:21 +09:00
John Sheu 556fef3dd1 kernel32/tests: Add some tests for fiber-local storage.
Signed-off-by: John Sheu <sheu@google.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 19:59:30 +09:00
Sebastian Lackner 225498662e kernel32/tests: Use inline implementation of NtCurrentTeb for process tests.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-19 09:52:39 +09:00
Jacek Caban f000189b8a kernel32: Make MapViewOfFile and VirtualAlloc hotpatchable.
Both are patched by Firefox.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-18 20:49:05 +09:00
Alexandre Julliard 2f514becdb kernel32: Store synchronization objects under the session directory.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-18 16:21:24 +09:00
Dmitry Timoshkov 6870f3c049 kernel32/tests: Add tests for GetThreadSelectorEntry.
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 11:17:06 +09:00
Ken Thomases a73045d6a0 kernel32: Overhaul the handling of argv in set_process_name().
This fixes several problems with the code:

* The code had been assuming that the argument strings pointed to by the argv
  array are contiguous iff certain process-name-setting functions are available.
  This doesn't seem reliable.  Instead, test if it's true and shift the strings
  if so.

  However, setproctitle() is specifically documented as a preferred alternative
  to the technique of overwriting the arg strings, so don't shift the strings
  if that's available.

* Use the last path component, recognizing backslash as a path separator, for
  setprogname() in addition to prctl().  First, setprogname() is documented as
  searching for the last component itself, but it doesn't understand Windows-
  style paths, so we need to help it.  Second, on some platforms (e.g. macOS),
  setprogname(), like prctl(), has a fairly small internal length limit (e.g.
  32 characters).  So, concentrate on the most meaningful part of the path.

* Remove argv[0] from argv whether or not there are any process-name-setting
  functions available.  This is necessary for the proper functioning of Wine,
  so it must be done on all platforms.  This part of the logic was lost with
  commit 5a4576ee0.

* Call all available process-name-setting functions instead of treating them
  as mutually exclusive alternatives.  This is also logic that was lost with
  commit 5a4576ee0.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 11:16:11 +09:00
Sebastian Lackner 4e0edaac1f kernel32/tests: Use inline implementation of NtCurrentTeb for debugger tests.
Also enable BeingDebugged PEB tests on x86_64.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-15 11:13:15 +09:00
Sebastian Lackner 648cbf63c0 kernel32/tests: Add a test for sorting of InMemoryOrderModuleList.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-07 21:23:26 +09:00
Piotr Caban 4c50ef6995 ntdll: Add RtlRestoreContext implementation.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-06 11:49:33 +09:00
Alex Henrie d44ec680da kernel32: Fix memory leak in WCEL_FindPrevInHist.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-05 23:22:05 +09:00
Alex Henrie 16c51fbe17 kernel32: Fix memory leak in WCEL_MoveToHist.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-05 23:22:05 +09:00
Francois Gouget c8d1fbc6d2 kernel32: Fix typos in a couple of comments.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-07-04 11:01:42 +09:00
Andrey Gusev e1a4265867 kernel32/tests: Fix a typo in skip() message.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-23 22:49:33 +09:00
André Hentschel fdd953c2aa kernel32/tests: Fix a typo.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-23 12:04:08 +09:00
Akihiro Sagawa 7a9b36ca11 kernel32: Fix typo of i386 macro name in GetLargePageMinimum().
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-20 20:06:38 +09:00
Austin English 7dca3d139c kernel32: Implement GetLargePageMinimum for arm.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 22:27:49 +09:00
Austin English 4d313e6475 kernel32: Implement GetLargePageMinimum.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Marcus Meissner <marcus@jet.franken.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:19 +09:00
Ken Thomases d90f29d817 kernel32: Overhaul the locale determination on the Mac.
The C library locale is inadequate for conveying the Mac user settings between
LOCALE_Init() and setup_unix_locales().  The set of locales supported by the C
library can't express the combinations allowed in user settings.

Setting LANG to a user-settings-derived locale when there's no corresponding C
library locale is actually worse than leaving it unset.  It will prevent the
C library from honoring the LC_* variables (other than LC_ALL).  That's why
Terminal.app won't set LANG in that case, it just sets LC_CTYPE=UTF-8.  This
commit makes Wine follow similar logic in not setting LANG if the C library
doesn't support the Mac user settings.

Rather, it uses a wrapper around setlocale() to query the locale.  That wrapper
returns a value representing the Mac user settings if the C library comes up
empty.  It also has logic to handle Terminal's setting LC_CTYPE=UTF-8, since
parse_locale_name() can't handle that properly.

Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-17 00:09:19 +09:00
Alexandre Julliard 73d9e2ebff kernel32: Use RtlCompareUnicodeStrings in CompareStringOrdinal for consistent results.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-14 17:09:54 +09:00
Andrey Gusev 2f5d04aaeb kernel32/tests: Fix a typo in ok() messages.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-03 12:30:57 +09:00
Piotr Caban 4fdfa29e60 kernel32: Use utf8 for filenames encoding if different encoding was not specified on Mac.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Ken Thomases <ken@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-06-01 00:21:47 +09:00
Francois Gouget 6c4484582b kernel32: Spelling fixes.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-30 11:57:07 +09:00
Nikolay Sivov 6f30f7dc52 kernel32/tests: Fix a leak in tests (Valgrind).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-30 11:10:30 +09:00
Henri Verbeet 362e6f8614 kernel32/nls: Fix LOCALE_SMONTHNAME5/LOCALE_SABBREVMONTHNAME5 for LANG_PERSIAN.
‎می may be correct for LANG_DARI though.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-20 12:52:59 +09:00
Henri Verbeet 9a93d21681 kernel32/nls: Return CAL_GREGORIAN_XLIT_FRENCH for LOCALE_ICALENDARTYPE for LANG_PERSIAN.
The (Gregorian) month names are transliterated from French.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-20 12:52:59 +09:00
Henri Verbeet 918089eedf kernel32/nls: Fix LOCALE_IFIRSTDAYOFWEEK for LANG_PERSIAN.
The first day of the week is شنبه, not یک‌شنبه.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-20 12:52:59 +09:00
Henri Verbeet 53643d3b60 kernel32/nls: Use Persian punctuation for LANG_PERSIAN.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-20 12:52:59 +09:00
Henri Verbeet 39fdd439b3 kernel32/nls: Store LOCALE_SNATIVEDIGITS as UTF-8 in far.nls.
CP1256 can't represent these, but it's fine in UTF-8.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-20 12:52:59 +09:00
Henri Verbeet 49aacb4784 kernel32/nls: Persian is called Persian in English.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 21:26:32 +09:00
Henri Verbeet d5620dd54b kernel32/nls: Use ZWNJ where appropriate in far.nls.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 21:26:29 +09:00
Henri Verbeet e155220931 kernel32/nls: Use Persian characters to write Persian.
For ي and ى there's the excuse that ی doesn't exist in CP1256. There's no such
excuse for using ك instead of ک.

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 21:26:26 +09:00
Henri Verbeet f2af3b9b57 kernel32/nls: Persian uses a right-to-left writing system.
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-19 21:26:24 +09:00
Akihiro Sagawa 6938fec4ae libport: Fix null character handling when mapping DBCS characters.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 16:43:52 +09:00
Akihiro Sagawa cfe015a98c kernel32/tests: Add more partial DBCS character tests that contains a null character.
Signed-off-by: Akihiro Sagawa <sagawa.aki@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 16:43:49 +09:00
Nikolay Sivov 45edebfb4f kernel32/nls: Fix shortest day names for Thai and Vietnamese.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 15:53:37 +09:00
Andrey Gusev a7f0dc8c3b kernel32/tests: Fix a typo in comment.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-17 14:20:10 +09:00
Alexandre Julliard d2fb19d6f7 kernel32/nls: Convert remaining files to UTF-8.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 15:40:44 +09:00
Nikolay Sivov f79fcdadcb kernel32/nls: Added SSHORTESTDAYNAME* entries.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 15:34:14 +09:00
Francois Gouget 2bd154d838 kernel32/tests: Fix a spelling typo in a virtual comment.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 15:33:07 +09:00
Nikolay Sivov 632266e5b5 kernel32: Set C3_KASHIDA only for kashida character.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 15:28:55 +09:00
Nikolay Sivov 73f7bf57cb kernel32: Handle NULL locale name in IsValidLocaleName().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-16 15:28:42 +09:00
Alexandre Julliard 0a8ce1d0bd kernel32: Don't cache the full directory in FindFirstFileEx.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:27:44 +09:00
Alexandre Julliard 0049ca1054 kernel32: Don't bother storing the file mask in FindFirstFileEx.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-05 01:26:48 +09:00
Hugh McMaster 9c01d10bc6 kernel32/tests: Add tests for SetConsoleFont.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:27 +09:00
Hugh McMaster 46cc1388cf kernel32/tests: Add more tests for GetConsoleFontInfo.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:27 +09:00
Sebastian Lackner d638df9f3e kernel32: Fix possible leak of directory handle in RemoveDirectoryW.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-04 01:03:27 +09:00
Alexandre Julliard 02f80187f0 kernel32: Properly check the NtQueryDirectoryFile return status.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 23:19:16 +09:00
Hans Leidekker c90845cf93 kernel32: Improve the stub for GetThreadPreferredUILanguages.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-29 20:30:57 +09:00
Austin English b0ce049cbb kernel32: Add FreeUserPhysicalPages stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-28 13:11:31 +09:00
Andrey Gusev 1a20354ca5 kernel32/nls: Update currency name and fix a typo.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-28 12:41:05 +09:00
Aurimas Fišeras 4eca454729 kernel32/nls: Update currency for Baltic states.
Signed-off-by: Aurimas Fišeras <aurimas@members.fsf.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-28 12:40:51 +09:00
Nikolay Sivov d488f6b856 kernel32/nls: Convert most of the locale data files to UTF-8.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-27 13:14:46 +09:00
Louis Lenders a6e1adb8b7 kernel32: Print a FIXME only once in LCMapStringEx.
Signed-off-by: Louis Lenders <xerox.xerox2000x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-26 23:30:16 +09:00
Hugh McMaster de13e818ce kernel32/tests: Add initial tests for GetConsoleFontInfo.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-26 23:00:20 +09:00
Austin English 77733651ad kernel32: Add GetConsoleFontInfo stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-25 18:53:27 +09:00
Sebastian Lackner bae3dcc295 server: Do not hold reference on parent process.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-25 18:48:19 +09:00
Francois Gouget ccad9f3b97 kernel32/tests: Spelling fixes for a couple of comments.
Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-20 16:54:48 +09:00
Sebastian Lackner 99130182ba kernel32/tests: Port stack commit tests to x86_64.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-15 17:57:04 +09:00
Sebastian Lackner 2aee9b1ee3 kernel32/tests: Use inline implementation of NtCurrentTeb for virtual tests.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-15 17:57:01 +09:00
Michael Müller 6e12aba9c7 kernel32: Implement GetFinalPathNameByHandle.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-09 00:12:23 +09:00
Sebastian Lackner 9acff7550d ntdll: Do not update iosb.Status after FSCTL_PIPE_LISTEN call.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-07 17:08:30 +09:00
Michael Müller 96aca1ad02 kernel32/tests: Add additional tests for overlapped handling of CreateNamedPipe.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-07 16:44:24 +09:00
Austin English 43637ce9f7 kernel32: Add GetConsoleAliasExesLengthA/W stubs.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-05 00:06:40 +09:00
Michael Müller 33a368c422 kernel32: Check for invalid filename pointers in CreateFileA for Win9x compatibility.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-31 15:57:33 +09:00
Michael Müller bd17022c90 kernel32: Set ERROR_DLL_NOT_FOUND as error code in load_library for Win 9x compatibility.
Newer operating systems return ERROR_MOD_NOT_FOUND.

Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-31 15:57:32 +09:00
Sebastian Lackner 455e6c64ae kernel32: Fix handling of GetOverlappedResult when status remains STATUS_PENDING.
Spotted by Michael Müller.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-31 15:57:32 +09:00
Alexandre Julliard 8f56702812 kernel32: Lower the load address to accomodate the dll size.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-28 16:35:30 +09:00
Hugh McMaster 408205cb04 kernel32: Add a stub for SetCurrentConsoleFontEx.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 00:36:28 +09:00
Alexandre Julliard 2dd01087f2 kernel32/tests: Use Interlocked functions to avoid fault counters being optimized out.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-22 00:36:28 +09:00
Jacek Caban e625e86ee1 kernel32: Don't set unconditionally SECTION_QUERY flag in OpenFileMapping.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-14 13:54:52 +09:00
Nikolay Sivov cd220569dd include: Fix IsBad* prototypes.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 18:51:44 +09:00
Jactry Zeng 846155f153 kernel32/tests: Reset current directory of current process.
Signed-off-by: Jactry Zeng <jzeng@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 01:50:13 +09:00
Alex Henrie f35c1b2dc1 ntdll: Finish serial reads of size 0 immediately.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 22:45:07 +09:00
Alexandre Julliard 0bbeaae678 make_unicode: Mark most data tables as hidden.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 00:25:01 +09:00
Charles Davis 5a4576ee09 kernel32: Use setprogname(3) to set the program name if available.
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:37:10 +09:00
André Hentschel 82debc093f kernel32/tests: Use todo_wine_if() in tests.
Signed-off-by: André Hentschel <nerv@dawncrow.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-22 17:37:10 +09:00
Nikolay Sivov 10caa6295c kernel32/tests: Additional test for GetStringTypeW() and Zl/Zp categories.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-19 11:06:48 +09:00
Frédéric Delanoy 5da69565b5 kernel32/tests: Use todo_wine_if() in tests.
Signed-off-by: Frédéric Delanoy <frederic.delanoy@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-18 00:22:04 +09:00
Michael Müller 8eb893f185 kernel32: Allow to pass NULL as old protection in VirtualProtect for Win9x compatibility.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 23:26:30 +09:00
Sebastian Lackner 4ac066cdaa kernel32: Do not inherit QT_* environment variables to Windows environment.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 13:34:35 +09:00
Nikolay Sivov a0ec5fecd0 kernel32/tests: Use todo_wine_if() in tests.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 12:09:37 +09:00
Stefan Leichter 9cd67d2a5e kernel32: Return a dummy value in GetSystemPreferredUILanguages.
Signed-off-by: Stefan Leichter <Stefan.Leichter@camLine.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-15 21:30:05 +09:00
Sebastian Lackner f94755f719 kernel32/tests: Fix flags passed to VirtualFree in multiple tests.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-14 12:39:13 +09:00
Sebastian Lackner 1e624c5aaa kernel32/tests: Ensure VirtualAlloc tests do not depend on previous memory allocations.
Following tests try to allocate memory at (char *)addr1 + 0x1000.
We expect that no memory is mapped at this location.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-14 12:38:55 +09:00
Sebastian Lackner 24641d8e44 kernel32/tests: Add a test to show that VirtualFree fails with type MEM_FREE.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-14 12:38:26 +09:00
Sebastian Lackner 1bebee9c1b kernel32/tests: Add test to show that CompareStringW aborts on first non-matching character.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-14 12:38:16 +09:00
Vincent Povirk 82a55e7bf8 kernel32/tests: Avoid testing for a hard-coded timezone name.
It turns out timezone names are localized, so this breaks on non-English
Windows 8 and 10 systems.

Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:06:55 +09:00
Sebastian Lackner 90819e9c1b kernel32/tests: Add additional tests for CompareStringA.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-12 23:06:55 +09:00
Sebastian Lackner 49051392d7 kernel32: Forward InterlockedPushListSList[Ex] to ntdll.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:22:20 +09:00
Sebastian Lackner 32f72989b6 kernel32/tests: Add tests for RtlInterlockedPushListSList[Ex].
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:22:11 +09:00
Sebastian Lackner 38d0690a2c kernel32/tests: Clean up interlocked SList tests.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-11 12:22:09 +09:00
Sebastian Lackner 748103663c kernel32/tests: Disable Windows version dependent test for pcPriClassBase.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-10 22:02:20 +09:00
Sebastian Lackner 5bb169ad7b kernel32/tests: Move logic of okChildInt macro into a function.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-10 22:02:07 +09:00
Sebastian Lackner fd0780cb35 kernel32/tests: Simplify activation context tests by using todo_wine_if.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-10 21:50:26 +09:00
Alexandre Julliard 6203373496 libwine: Map partial DBCS characters to the default char.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 13:46:48 +09:00
Changhui Liu e776421232 kernel32/tests: Add tests for MultiByteToWideChar in DBCS codepage.
Signed-off-by: Changhui Liu <liuchanghui@linuxdeepin.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-09 00:37:25 +09:00
Vincent Povirk b922b55182 kernel32: Implement GetTimeZoneInformationForYear.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-03 00:00:32 +09:00
Vincent Povirk 2e3ce3a37d kernel32/tests: Add tests for GetTimeZoneInformationForYear.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-02 23:56:00 +09:00
Andrew Eikum a124064ce5 ntdll: Implement SystemLogicalProcessorInformationEx.
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-29 00:49:31 +09:00
Hugh McMaster c6e10496b3 kernel32/tests: Add tests for the TRUE pathway of GetCurrentConsoleFont.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-28 01:22:41 +09:00
Hugh McMaster 2c5756347b kernel32: Implement the TRUE pathway of GetCurrentConsoleFont.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-28 01:22:33 +09:00
Hugh McMaster 0311c6adb2 kernel32: Apply the new background colour to the active line.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-26 23:28:38 +09:00
Alex Henrie 6e841fdb75 kernel32: Set error if dstlen < 0 in codepage conversion functions.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-25 18:49:49 +09:00
Alexandre Julliard b23ab91e66 kernel32/tests: Avoid sizeof in a trace.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-20 16:42:45 +09:00
Stefan Leichter cfaca5ea5c kernel32/tests: Add tests for GetSystemPreferredUILanguages.
Signed-off-by: Stefan Leichter <Stefan.Leichter@camLine.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-19 23:00:54 +09:00
Stefan Leichter 1c3c9f06c5 kernel32: Add stub for GetSystemPreferredUILanguages.
Signed-off-by: Stefan Leichter <Stefan.Leichter@camLine.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-19 23:00:51 +09:00
Austin English 6b36d7cfef kernel32: Add SetSearchPathMode stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-14 22:16:50 +09:00
Francois Gouget aea94f5134 kernel32/tests: Declare childPrintf() as a printf-style function.
And fix the corresponding warnings.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 23:46:36 +09:00
Francois Gouget f6dc7c88ba kernel32/tests: Help the tests portably declare printf()-syle functions.
To do so they can now use the WINETEST_PRINTF_ATTR() macro.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-13 23:46:33 +09:00
Austin English 57d1171208 kernel32: Add GetConsoleScreenBufferInfoEx/SetConsoleScreenBufferInfoEx stubs.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-08 00:50:48 +09:00
Hugh McMaster 66974e5502 kernel32: Remove incorrect comment from !i386 version of GetLargestConsoleWindowSize.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:32 +01:00
Sebastian Lackner dfe42ca506 kernel32: Clamp maximum console window size to screen buffer size.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-06 18:08:31 +01:00
Hugh McMaster c3ea629f3c kernel32/tests: Add tests for GetLargestConsoleWindowSize.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:08:02 +01:00
Hugh McMaster b36cc985a4 kernel32/tests: Refresh the console to clear the console font table.
The testScreenBuffer function unintentionally causes the console font
table to increase from 14 entries to about 40.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:07:45 +01:00
Hugh McMaster c9364659aa kernel32: Add a stub for SetConsoleFont.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:07:42 +01:00
Hugh McMaster dd6477966b kernel32: Implement GetLargestConsoleWindowSize.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 17:07:37 +01:00
Nikolay Sivov ae1fe69e39 kernel32: Forward GetLogicalProcessorInformationEx() to ntdll.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:29 +01:00
Nikolay Sivov c9c138f53f ntdll/tests: Some tests for NtQuerySystemInformationEx().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-05 15:08:20 +01:00
Austin English 5d186034c1 kernel32: Make CompareStringEx semi-stub flag FIXME only show once.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 12:04:05 +01:00
Jeremy White 7dea64279e kernel32: Revise GetLongPathNameA to avoid overriding the input on long names.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:57:57 +01:00
Jeremy White ee1260e0d2 kernel32/tests: Test GetLongPathNameA when the file name case differs from the input.
This shows that the original buffer is unmodified if the filename is long,
but the actual file name is returned when the filename is short.

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:57:35 +01:00
Jeremy White 9f3f918f2c kernel32: Preserve a '/' delimiter in GetLongPathName and GetShortPathName.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:55:36 +01:00
Jeremy White 17ddd0474f kernel32/tests: Add a test for GetShortPathName using a slash delimieter.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:57 +01:00
Jeremy White 60836b41fa kernel32/tests: Add tests for GetLongPathName using a slash delimiter.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:48 +01:00
Jeremy White 440030b938 kernel32: Advance over the input buffer when stripping ./.
This is the same fix for GetLongPathName that was contained in a fix for
GetShortPathName in commit 9178d037d7.

Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:36 +01:00
Jeremy White 81ccc7b816 kernel32/tests: Add path tests for the ./../foo case.
Signed-off-by: Jeremy White <jwhite@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:30 +01:00
Sebastian Lackner a0b6bf86f7 kernel32/tests: Add test for process object destruction.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-24 11:54:07 +01:00
Alex Henrie 60226ee37d kernel32: Add TRACE to SetCommState.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-23 16:33:19 +01:00
Nikolay Sivov fe2f86e934 kernel32/tests: Some tests for ZombifyActCtx().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:16:52 +01:00
Sebastian Lackner 6cf682d207 kernel32/tests: Remove unnecessary call to GetExitCodeProcess in process tests.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-21 18:14:10 +01:00
Viliam Lejcik 157d2e961a kernel32/nls: Regional settings translation for Czech and Slovak.
Signed-off-by: Viliam Lejcik <lejcik@host.sk>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-10 16:35:28 +09:00
Alexandre Julliard 5468e37508 kernel32: Also check OS version to detect old binaries in GlobalMemoryStatus.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-12-01 21:02:19 +09:00
Hugh McMaster 7223330ffc kernel32: Replace NULL argument with pointer to DWORD.
On Windows, passing in NULL can cause a memory access violation.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:47:28 +09:00
Sebastian Lackner 0346040889 kernel32/tests: Add tests for committing stack guard pages.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-30 23:16:49 +09:00
Joachim Priesner ceb57b7817 kernel32/tests: Add tests for GetDriveType with invalid drive spec.
Signed-off-by: Joachim Priesner <joachim.priesner@web.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 20:53:32 +09:00
Andrey Gusev 8bfc9bd2ee Assorted typos fixes.
Signed-off-by: Andrey Gusev <andrey.goosev@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-27 15:38:30 +09:00
Sebastian Lackner 9f18d217a7 kernel32/tests: Avoid busy-looping in APC deadlock tests.
Spotted by Amine Khaldi.

Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 13:20:20 +09:00
Sebastian Lackner 46a208d6fa kernel32/tests: Add tests for calling wait functions with pseudo handles.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-26 13:20:16 +09:00
Alexandre Julliard 9ae90b354c kernel32/tests: Avoid testing the D: drive which may not exist.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-24 00:25:02 +09:00
Hugh McMaster b1b05e62e9 kernel32: Remove un-needed VK_DEL entries from the console keymap.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:19 +09:00
Hugh McMaster bbe3c9cfbd kernel32: Interpret Shift-Backspace as Backspace when using the Win32 keymap in wineconsole.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:18 +09:00
Hugh McMaster 7dcfc00dc3 kernel32: Use virtual-key codes in the console StdKeyMap.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:17 +09:00
Sebastian Lackner ace9d329e9 server: Fix crash when calling SetNamedPipeHandleState on partially closed pipe.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:16 +09:00
Sebastian Lackner ee02530bc4 server: Fix crash when calling GetNamedPipeHandleState on partially closed pipe.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:16 +09:00
Sebastian Lackner 78948b24b7 kernel32/tests: Add tests for calling WriteFile on pipe when other end is closed.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:15 +09:00
Sebastian Lackner e235b0670d kernel32/tests: Add tests for sending empty message in combination with CloseHandle.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:15 +09:00
Adam Martinson 563865c654 kernel32/tests: Add tests for closing named pipes with CloseHandle.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-23 23:35:14 +09:00
Jacek Caban 6a7363b694 kernel32: Call registry functions with full key path.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-19 23:56:39 +09:00
Andrew Eikum df718b8ab8 kernel32: Always uninitialize the terminal for the console shell process.
The terminal raw IO check and the console shell process check are used
separately to initialize the terminal in different ways. However, if
either check fails during uninitialization, then no uninitialization
will occur at all and modified terminfo settings will remain instead of
being restored. We should check each condition individually and
uninitialize each part as required.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-18 13:07:02 +09:00
Hugh McMaster 11669fa5e2 Assorted spelling and grammar fixes.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-17 22:56:40 +09:00
Nikolay Sivov e528765af4 kernel32: Fix context initialization for EnumDateFormatsExEx.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-16 17:14:12 +09:00
Jacek Caban 1130a11cce kernel32: Added DECLSPEC_HOTPATCHABLE to WinExec function.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-13 11:53:04 +09:00
Sebastian Lackner 71581f71d5 kernel32: DeleteFile should open the file without read/write permissions.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:22 +09:00
Sebastian Lackner 4857f95803 server: Return STATUS_CANNOT_DELETE when trying to open readonly file with FILE_DELETE_ON_CLOSE.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:22 +09:00
Sebastian Lackner c74bb13d2e kernel32/tests: Add some more tests for opening a file with FILE_DELETE_ON_CLOSE.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 19:39:21 +09:00
Nikolay Sivov 61c49bd78e kernel32: Implement EnumTimeFormatsEx().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:08:24 +09:00
Nikolay Sivov 49e5b9c2a4 kernel32: Added support for TIME_NOSECONDS, restructured EnumTimeFormats implementation.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:08:11 +09:00
Nikolay Sivov 6f35351f81 kernel32: EnumTimeFormatsA() doesn't support TIME_NOSECONDS.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:08:03 +09:00
Nikolay Sivov 982c3ede72 kernel32: GetLocaleInfoA() doesn't support LOCALE_SSHORTTIME.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-11 00:07:43 +09:00
Nikolay Sivov 5bcbfde33a nls: Added LOCALE_SSHORTTIME locale data.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 23:10:05 +09:00
Alexandre Julliard 3b7cdc0b84 kernel32/tests: Fix some todo tests that succeed or fail depending on the kernel version.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 16:44:52 +09:00
Nikolay Sivov 3d728e68d3 kernel32: Implement EnumDateFormatsExEx().
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 16:44:51 +09:00
Nikolay Sivov 292e4153cf kernel32: Simplify EnumDateFormats & EnumDateFormatsEx.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-09 16:44:50 +09:00
Sebastian Lackner 659e585166 kernel32/tests: Add a test to demonstrate a deadlock by suspending a thread during a system APC.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-05 20:22:37 +09:00
Austin English 7c92862071 kernel32: Add SetConsoleKeyShortcuts stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 23:12:03 +09:00
Austin English 4bfe66e702 kernel32: Add AllocateUserPhysicalPages stub.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 00:33:25 +09:00
Hugh McMaster 77a75d74a2 kernel32/tests: Add tests for GetConsoleFontSize.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 00:33:25 +09:00
Hugh McMaster 4925f75869 kernel32: Implement GetConsoleFontSize.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 00:33:25 +09:00
Hugh McMaster f0ee54a776 kernel32: Implement GetNumberOfConsoleFonts.
We only ever have one entry in the console font table.

Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-03 00:33:24 +09:00
Thomas Faller 9178d037d7 kernel32: Fix invalid write.
Signed-off-by: Thomas Faller <tfaller1@gmx.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-02 23:02:21 +09:00
Piotr Caban ff698220c1 include: Fix CreateSymbolicLink and TryAcquireSRWLockExclusive prototypes.
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-11-01 22:53:52 +09:00
Jacek Caban 8294722142 kernel32: Pass SYNCHRONIZE flag to NtOpenFile.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-30 21:01:59 +09:00
Jacek Caban 0c8edbcc80 kernel32: Pass SYNCHRONIZE access flag to NtCreateFile.
Office clicktorun patched ntdll functions expect them to be set.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-29 21:20:09 +09:00
Michael Stefaniuc bcff50a9d4 kernel32/tests: Simplify an ok() condition (PVS-Studio).
Signed-off-by: Michael Stefaniuc <mstefani@redhat.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-28 22:31:25 +09:00
Hugh McMaster 0ad7a0df89 kernel32/tests: Add tests for the FALSE pathway of GetCurrentConsoleFont.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:03:35 +09:00
Hugh McMaster a9277a9c34 kernel32: Implement the FALSE pathway of GetCurrentConsoleFont.
Signed-off-by: Hugh McMaster <hugh.mcmaster@outlook.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-26 23:03:34 +09:00
Sebastian Lackner 536d7d98fe kernel32/tests: Add tests for triggering write watches in asynchronous ReadFile call.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-25 15:19:21 +09:00
Sebastian Lackner 8a33dd43f6 ntdll: Do not check if object was signaled after user APC in server_select.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 13:21:10 +09:00
Sebastian Lackner 49dd5577eb kernel32/tests: Add test to show that multiple user APCs are processed at once.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-23 13:21:07 +09:00
Sebastian Lackner 646888ec79 kernel32/tests: Remove unnecessary busy loop (PVS-Studio).
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-21 19:19:08 +09:00
Sebastian Lackner 966827bbc1 kernel32: Implement stub for GetPhysicallyInstalledSystemMemory.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:39 +09:00
Sebastian Lackner 16a97953c0 kernel32/tests: Add tests for GetPhysicallyInstalledSystemMemory.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-20 00:30:39 +09:00
Austin English a26a6b877d kernel32: Add a stub for CancelSynchronousIo.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-13 23:35:23 +09:00
Austin English 132ff59b3e kernel32: Add a stub for GetCurrentProcessorNumberEx.
Signed-off-by: Austin English <austinenglish@gmail.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-12 22:09:55 +09:00
Sebastian Lackner d94a6c770a kernel32/tests: Add test to demonstrate a bug related to alertable waits.
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-09 14:02:40 +09:00
Jacek Caban ebb320fa37 kernel32: Improved WTSGetActiveConsoleSessionId stub.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 21:32:49 +09:00
Jacek Caban e4e1b89732 kernel32: Added session id tests.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 21:32:47 +09:00
Jacek Caban 888d1c67bb kernel32: Use session id stored in PEB in ProcessIdToSessionId.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2015-10-08 21:32:43 +09:00
Charles Davis 3eb8e325b8 kernel32/tests: Use a volatile pointer to cause a crash in the debugger tests. (Clang).
Signed-off-by: Charles Davis <cdavis5x@gmail.com>
2015-10-07 21:28:55 +09:00
Alex Henrie 1eef1299f5 kernel32: Make TERM_dbkey_init const.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2015-10-07 21:28:50 +09:00
Michael Müller 132b5f86ce kernel32: Make WritePrivateProfileStringA hotpatchable.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-05 22:27:13 +09:00
Michael Müller 00d966cd3a ntdll: Return STATUS_OBJECT_NAME_INVALID in wine_nt_to_unix_file_name for prefix-only paths.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-02 18:11:31 +09:00
Michael Müller e0bbfc3503 kernel32/tests: Add additional tests for GetFileAttributesExW.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-02 18:11:31 +09:00
Michael Müller 9d58aac467 kernel32: Implement Set/GetThreadGroupAffinity and add tests.
Signed-off-by: Michael Müller <michael@fds-team.de>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
2015-10-02 18:11:31 +09:00
André Hentschel 774efacbec kernel32/tests: Don't test for the exact process count. 2015-09-25 20:59:35 +02:00
Nikolay Sivov a7e294c064 libwine: Fix double byte default char initialization. 2015-09-11 20:58:04 +09:00
Thomas Faller 98aa8528d5 kernel32/tests: Fix uninitialized memory of a test case. 2015-09-08 14:48:27 +09:00
Thomas Faber 9165dbbffc kernel32/tests: Run test_thread_fpu_cw on x86 MSVC builds. 2015-09-02 14:54:22 +09:00
Daniel Lehman 72922cd1ea kernel32/tests: Add tests for Invariant. 2015-08-28 13:13:46 +09:00
Daniel Lehman 043c0c6c5a kernel32: Add Invariant string table. 2015-08-27 14:27:50 +09:00
Daniel Lehman 5bf1423c2c kernel32: Return LOCALE_INVARIANT from ConvertDefaultLocale. 2015-08-25 17:41:35 +09:00
Dmitry Timoshkov 0a2ef17620 kernel32/tests: Avoid intermittent test failures. 2015-08-24 18:41:36 +09:00
Nikolay Sivov cc2bc84d14 kernel32/tests: Fix GetGeoInfo() test failure on Win10. 2015-08-24 14:42:00 +09:00
Dmitry Timoshkov 3bed65b5a9 server: For querying thread information demand THREAD_QUERY_LIMITED_INFORMATION access. 2015-08-21 14:35:04 +09:00
Dmitry Timoshkov 1d2241eca3 server: For querying process information demand PROCESS_QUERY_LIMITED_INFORMATION access. 2015-08-21 14:35:01 +09:00
Dmitry Timoshkov 8738cea7de kernel32/tests: Add some tests for THREAD_QUERY_LIMITED_INFORMATION. 2015-08-20 16:32:53 +09:00
Dmitry Timoshkov 49f43c39fd kernel32/tests: Add some tests for PROCESS_QUERY_LIMITED_INFORMATION. 2015-08-20 14:33:16 +09:00
Dmitry Timoshkov 27664e3c59 kernel32/tests: Fix compilation with PSDK. 2015-08-20 14:33:10 +09:00
Sebastian Lackner 0fabfe7d6b server: Add support for setting file disposition information.
Based on a patch by Dmitry Timoshkov.
2015-08-19 20:19:57 +09:00
Dmitry Timoshkov e67a00b466 ntdll: Separate image relocation from NtMapViewOfSection. 2015-08-18 19:56:48 +09:00
Andrey Gusev 5cdcd4493f Assorted spelling and typos fixes. 2015-08-18 15:00:13 +09:00
Hugh McMaster ac3a684d3b kernel32: Reset insert key toggle when Insert Mode changes. 2015-08-17 16:36:02 +09:00
André Hentschel 4b8df74447 kernel32/tests: Add more ARM and ARM64 arch strings. 2015-08-12 22:52:26 +09:00
Francois Gouget f8a7d6ed74 Assorted spelling fixes. 2015-08-07 23:50:48 +09:00
Hugh McMaster 0adad1f573 kernel32: Restore the original console cursor size on Enter press, if the Insert key toggle is active. 2015-08-03 10:59:27 +02:00
Hugh McMaster 68fb8c5525 kernel32: Restore the original console edit mode on Enter press, if the Insert key toggle is active. 2015-08-03 10:59:23 +02:00
Sebastian Lackner 1d2331344f kernel32/tests: Add tests for JobObjectLimitInformation info classes. 2015-07-31 12:08:16 +02:00
Qian Hong 34c7a72d14 kernel32: Fix GetComputerName buffer overflow. 2015-07-22 07:27:00 +02:00
Hugh McMaster c8069af616 kernel32: Enabling/disabling Insert Mode via the user dialog should take effect immediately. 2015-07-21 16:33:22 +02:00
Andrew Cook 453458f294 server: Implement JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE. 2015-07-17 14:28:59 +09:00
Sebastian Lackner 4ccdc0c036 kernel32/tests: Repeat test for SignalObjectAndWait multiple times to test wineserver wakeup cookie management. 2015-07-15 16:29:25 +09:00
Dmitry Timoshkov 38649f2060 kernel32/tests: Add a loader test using minimal PE image that Windows7 is able to load. 2015-07-13 22:08:30 +09:00
Dmitry Timoshkov edc0fa74a3 kernel32: Fix compilation of loader tests with PSDK. 2015-07-13 22:08:26 +09:00
Olivier F. R. Dierick c3f95eddc1 kernel32: Fail gracefully in K32EnumProcessModules with NULL pointer. 2015-07-06 17:09:49 +09:00
Sebastian Lackner 6c586d5db8 kernel32: Forward threadpool wait functions to ntdll. 2015-07-06 14:49:39 +09:00
Sebastian Lackner d2a3c9c20e kernel32/tests: Fix leak of threadpool object. 2015-07-03 13:08:28 +09:00
Sebastian Lackner eadd27a38a kernel32: Forward remaining threadpool functions to ntdll. 2015-07-03 13:08:20 +09:00
Sebastian Lackner 56b9af1150 kernel32: Forward threadpool instance functions to ntdll. 2015-07-03 13:08:05 +09:00
Sebastian Lackner 4b0ecd3e22 kernel32: Forward threadpool timer functions to ntdll. 2015-07-03 13:07:47 +09:00
Sebastian Lackner 1165cc0953 kernel32: Forward threadpool work functions to ntdll. 2015-07-03 13:07:37 +09:00
Sebastian Lackner a54d972868 kernel32: Forward threadpool cleanup group functions to ntdll. 2015-07-03 13:07:18 +09:00
Michael Stefaniuc c50f6a304c kernel32/tests: The result of a comparison is already a BOOL. 2015-06-30 17:40:27 +09:00
Michael Müller d0ae2b0d3d kernel32: Implement GetNumaProcessorNode. 2015-06-29 19:07:51 +09:00
Michael Müller 81142c9985 kernel32/tests: Add tests for GetNumaProcessorNode. 2015-06-29 19:07:51 +09:00
Nikolay Sivov 15eba39978 kernel32: Implement EnumCalendarInfoExEx(). 2015-06-29 19:07:46 +09:00
Nikolay Sivov c1c42d3caf kernel32: Simplify the way EnumCalendarInfo vs EnumCalendarInfoEx are handled internally. 2015-06-29 19:07:45 +09:00
Marcus Meissner c1d262f66d kernel32: GetCurrentDirectoryW gets characters, not bytes. 2015-06-26 20:35:06 +09:00
Sebastian Lackner d082ea3eab ntdll: Implement support for AT_ROUND_TO_PAGE flag in NtMapViewOfSection. 2015-06-26 20:35:05 +09:00
Sebastian Lackner 7a8470ea94 ntdll: NtMapViewOfSection should fail if both addr_ptr and zero_bits is set. 2015-06-26 20:35:05 +09:00
Sebastian Lackner b80bbd5986 kernel32/tests: Add GetVolumePathNameW tests. 2015-06-23 20:46:09 +09:00
Sebastian Lackner d01c135aed kernel32/tests: Add a lot of picky GetVolumePathName tests. 2015-06-23 20:46:08 +09:00
Erich E. Hoover ed151a5efc kernel32: Handle device paths in GetVolumePathName.
NT-style paths that have a device prefix (\??\) also return the drive
of the current working directory (even if they're valid devices).
2015-06-23 20:46:08 +09:00
Erich E. Hoover 5a84969f39 kernel32: Handle bogus DOS paths in GetVolumePathName.
Paths that are not NT and not even close to DOS don't actually fail
catastrophically.  Even though MSDN suggests that it returns the boot
drive in this case, tests indicate that it returns the drive of the
current working directory.
2015-06-23 20:46:07 +09:00
Erich E. Hoover e8e13308ea kernel32: Handle semi-DOS paths in GetVolumePathName.
Add support for "semi-DOS" paths, these paths revert to the drive
letter specified in the first character.
2015-06-23 20:46:03 +09:00
Erich E. Hoover 62279b7f4d kernel32/tests: Add a bunch more GetVolumePathName tests. 2015-06-23 20:44:25 +09:00
Erich E. Hoover b29b0d2cff kernel32/tests: Convert GetVolumePathName tests into a list. 2015-06-23 20:44:25 +09:00
Erich E. Hoover f6c7e247ad kernel32: Implement GetVolumePathName.
The purpose of this function is to return the most fundamental path
without leaving a filesystem.  Steam uses this so that it can use inode
searches, without this functionality some installations/validations will
fail if the Steam Library is not on the same drive as Steam
itself (symlink'd to another location).
2015-06-23 20:44:21 +09:00
Nikolay Sivov 0824771423 kernel32: Export RtlCopyMemory(). 2015-06-19 19:10:45 +09:00
Olivier F. R. Dierick 01e5385882 kernel32: Implement SetFileCompletionNotificationModes as a stub. 2015-06-15 17:27:38 +09:00
Erich E. Hoover 5e817e93de kernel32: Implement GetSystemTimes. 2015-06-11 15:58:34 +09:00
Louis Lenders 305a73bcb5 kernel32/tests: Add tests for GetSystemTimes. 2015-06-11 15:58:15 +09:00
Michael Müller 7fe0b56e15 kernel32: Forward SetFileInformationByHandle FileDispositionInfo class to ntdll. 2015-06-11 15:34:42 +09:00
Michael Müller fd8fae105b kernel32: Improve stub for SetFileInformationByHandle. 2015-06-11 15:32:26 +09:00
Alexandre Julliard 3494fb7f72 kernel32: Avoid resolving imports against the advapi32 forwards. 2015-06-10 15:26:05 +09:00
Jacek Caban 09176c3aa0 kernel32: Treat empty locale name as LOCALE_INVARIANT. 2015-06-10 15:00:15 +09:00
Nikolay Sivov 5742497a35 kernel32/tests: Some tests for invalid classes in SetFileInformationByHandle(). 2015-06-09 18:05:48 +09:00
Sebastian Lackner 8ddab2c2f4 ntdll: Fix status code when NtMapViewOfSection parameter check fails. 2015-06-08 15:34:04 +09:00
Sebastian Lackner 5204d89dc9 kernel32/tests: Add tests for virtual memory alignment behaviour.
AT_ROUND_TO_PAGE is only available on 32-bit non-wow64 systems.
2015-06-08 15:33:59 +09:00
Nikolay Sivov b17e4376d5 kernel32: Fail properly for unsupported classes in GetFileInformationByHandleEx. 2015-06-08 15:29:44 +09:00
Michael Müller 803e9cfb66 kernel32: Correctly check for an empty short filename in GetShortPathNameW (Coverity). 2015-06-01 14:46:34 +09:00
André Hentschel a18f84c0b1 ntdll: Add stub for __chkstk on ARM. 2015-05-29 15:03:05 +09:00
Jacek Caban 12a134fdc4 kernel32: Fixed buffer overflow in GetShortPathNameW. 2015-05-25 21:43:17 +09:00
Francois Gouget 8efa0fb0c4 kernel32/tests: Fix compilation on systems that don't support nameless unions. 2015-05-25 14:34:07 +09:00
Alexandre Julliard c4fb1f617d kernel32: Get rid of the hardcoded NUL device in QueryDosDeviceW. 2015-05-21 17:37:42 +09:00
Alexandre Julliard f32600d3c1 kernel32: Check NT symlink first for all devices in QueryDosDeviceW. 2015-05-21 17:37:14 +09:00
Martin Storsjo 68b654ad2f kernel32: Implement a few more classes in GetFileInformationByHandleEx. 2015-05-21 14:26:34 +09:00
André Hentschel 1e8759805e kernel32/tests: Add ARM and ARM64 arch strings. 2015-05-20 22:10:50 +09:00
Martin Storsjo c9c5ceccb4 kernel32: Implement GetSystemTimePreciseAsFileTime.
This just falls back to doing the same as GetSystemTimeAsFileTime.
2015-05-20 17:28:37 +09:00
Michael Müller f556d0e936 kernel32: Return correct device type for cd devices without medium. 2015-05-19 19:24:20 +09:00
Sebastian Lackner 7ebe22e99c kernel32/tests: Add tests for delete behaviour of CopyFileEx. 2015-05-19 19:24:20 +09:00
Christian Faure 9cffed782f kernel32: Fix a crash in GetStringTypeW() on NULL input string. 2015-05-18 14:07:48 +09:00
Grazvydas Ignotas 2e21381177 kernel32: Don't leak an event handle on errors. 2015-05-18 14:07:21 +09:00
Andrew Eikum d9a27e9ca0 kernel32: Implement CheckNameLegalDOS8Dot3. 2015-05-13 22:05:42 +09:00
Mark Harmstone e468f15d20 kernel32: Add GetFileMUIInfo stub. 2015-05-12 15:30:47 +09:00
Nikolay Sivov 2c98d5b90c kernel32: Implement GetDynamicTimeZoneInformation(). 2015-05-11 15:39:24 +09:00
Nikolay Sivov dde69d617b kernel32: Fixed couple of comments regarding atom calls. 2015-05-11 15:39:24 +09:00
Francois Gouget 5ea2bdda5d kernel32/tests: Silence some loader and locale traces that generate too many lines. 2015-05-11 15:19:05 +09:00
Andrew Eikum 65f2690203 kernel32: Support extended pathnames in GetShortPathName. 2015-05-06 08:36:04 +09:00
Sebastian Lackner ee6a477cab ntdll: Return failure in NtProtectVirtualMemory when last argument is omitted. 2015-05-05 23:15:31 +09:00
Sebastian Lackner 1119da47ee kernel32: Do not omit mandatory argument for VirtualProtect. 2015-05-04 20:07:54 +09:00
Sebastian Lackner 152b575eed kernel32/tests: Add tests for calling VirtualProtect with NULL as last argument. 2015-05-04 20:07:51 +09:00
Sebastian Lackner 10ee3f44b1 kernel32/tests: Add tests for deleting readonly files with NtCreateFile.
Wine currently implements DeleteFile based on NtCreateFile with access mask
GENERIC_READ | GENERIC_WRITE | DELETE, but this is wrong. This test shows that
NtCreateFile with FILE_DELETE_ON_CLOSE should also fail without explicitly
requesting read/write access.
2015-04-30 19:58:01 +09:00
Francois Gouget ad2c07888e kernel32/tests: Make test_StartupNoConsole() static. 2015-04-27 15:08:50 +09:00
Erich E. Hoover 4b559f02dd kernel32: Invalid console handles for new processes are 0, not INVALID_HANDLE_VALUE. 2015-04-23 15:06:36 +09:00
Sebastian Lackner a7247df6ca server: Implement waiting for job objects. 2015-04-07 23:16:20 +09:00
Sebastian Lackner 7984fb9fbe kernel32/tests: Add tests for waiting on an job object. 2015-04-07 23:16:01 +09:00
Andrew Cook 1d359a5827 server: Implement TerminateJobObject. 2015-04-07 23:15:47 +09:00
Sebastian Lackner 4ae0ef44d2 kernel32: Add stub for PowerClearRequest. 2015-04-07 15:14:40 +09:00
Sebastian Lackner 25505995af kernel32: Add stub for PowerSetRequest. 2015-04-07 15:14:35 +09:00
Sebastian Lackner 966dd5074d kernel32: Add stub for PowerCreateRequest. 2015-04-07 15:14:29 +09:00
Mark Harmstone ed0c6746dd kernel32: Stub out GetFileMUIPath. 2015-04-06 12:49:03 +09:00
Sebastian Lackner 51c21cca98 kernel32: Fix calculation of returned buffer in get_registry_locale_info.
Fixes a regression introduced by 8826ba1bc8.
2015-04-06 12:06:18 +09:00
Andrew Cook 47ffeaee74 server: Implement io completion messages for job objects. 2015-04-03 00:33:29 +09:00
Andrew Cook 0dbe5adc21 server: Implement job inheritance. 2015-04-03 00:33:29 +09:00
Andrew Cook ecd41d1de7 server: Implement job limit flags. 2015-04-03 00:33:29 +09:00
Andrew Cook 3affd63b34 server: Implement IsProcessInJob. 2015-04-01 22:34:19 +09:00
Andrew Cook 98132f0364 server: Implement AssignProcessToJobObject. 2015-04-01 22:34:18 +09:00
Andrew Cook e30a6bbcbd kernel32/tests: Extend IsProcessInJob tests. 2015-04-01 17:02:34 +09:00
Sebastian Lackner ddd3d1689c kernel32/tests: Add tests for adding a terminated process to a job object. 2015-03-31 00:04:42 +09:00
Andrew Cook 6cd34c9002 kernel32/tests: Add tests for job inheritance.
Cleanup and improvements by Sebastian Lackner.
2015-03-31 00:04:41 +09:00
Andrew Cook f0ef853d9d kernel32/tests: Add tests for JOB_OBJECT_LIMIT_BREAKAWAY_OK.
Cleanup and improvements by Sebastian Lackner.
2015-03-31 00:04:41 +09:00
Andrew Cook 3ca0282e5f kernel32/tests: Add tests for JOB_OBJECT_LIMIT_KILL_ON_JOB_CLOSE.
Cleanup and improvements by Sebastian Lackner.
2015-03-31 00:04:41 +09:00
Andrew Cook 6c2b0eb011 kernel32/tests: Add tests for job object completion ports.
Cleanup and improvements by Sebastian Lackner.
2015-03-31 00:04:40 +09:00
Andrew Cook d4fd3c899e kernel32/tests: Add tests for QueryInformationJobObject.
Cleanup and improvements by Sebastian Lackner.
2015-03-30 22:35:27 +09:00
Andrew Cook ad04b7305b kernel32/tests: Add tests for TerminateJobObject.
Cleanup and improvements by Sebastian Lackner.
2015-03-30 20:22:35 +09:00
Andrew Cook f40bffaf67 kernel32/tests: Add tests for IsProcessInJob.
Cleanup and improvements by Sebastian Lackner.
2015-03-30 20:22:29 +09:00
Sebastian Lackner 978597e8ab kernel32/tests: Allow multiple subprocess commands in process tests. 2015-03-30 20:15:53 +09:00
Austin English 88362a0770 kernel32: Add a stub for QueryThreadCycleTime. 2015-03-30 19:49:11 +09:00
Frédéric Delanoy f6a341c747 Assorted spelling/grammar fixes. 2015-03-27 22:29:48 +09:00
Michael Müller 8f0d5a37a3 kernel32/tests: Add tests for GetFinalPathNameByHandleA/W. 2015-03-27 00:11:36 +09:00
Nikolay Sivov 85a3d09329 kernel32: Implement GetProcessIdOfThread(). 2015-03-20 21:31:57 +09:00
Francois Gouget f505e6fb4a Assorted spelling fixes. 2015-03-19 21:54:14 +09:00
Bruno Jesus 24fc876e61 kernel32: Only zero the buffer up to 32767 bytes in GetTempPathW. 2015-03-18 20:56:39 +09:00
Sebastian Lackner ab91c01112 ntdll: RtlFindActivationContextSectionString should accept a NULL pointer as data. 2015-03-17 16:02:25 +09:00
Mark Jansen f091ff5851 kernel32/tests: Parameter validation tests for FindActCtxSectionString. 2015-03-17 16:02:19 +09:00
Sebastian Lackner 5bab75166c kernel32: Fix leak of dynamic_buffer in QueryFullProcessImageNameW (Coverity). 2015-03-17 14:52:08 +09:00
Sebastian Lackner d48e3a0bea kernel32: Fix file handle leak in exec_process (Coverity). 2015-03-17 14:52:08 +09:00
Francois Gouget ecc04f6996 kernel32: Remove unneeded NONAMELESSXXX directives. 2015-03-13 00:28:19 +09:00
Michael Stefaniuc a7daccb674 kernel32: Don't free a NULL / not yet allocated pointer (PVS-Studio). 2015-03-09 22:06:56 +09:00
Bruno Jesus 81598be9cf kernel32: In GetTempPathW only copy the path if it fits and zero the buffer when it doesn't. 2015-03-05 21:42:32 +09:00
Michael Stefaniuc dbe6c5576d kernel32/tests: Actually test a return value (PVS-Studio). 2015-03-04 21:50:42 +09:00
Bruno Jesus f16cf54106 kernel32: GetTempPathW must zero the remaining buffer. 2015-03-02 23:00:31 +09:00
Bruno Jesus 300c2dedac kernel32/tests: Add more GetTempPath tests. 2015-02-24 22:59:40 +09:00
Alexandre Julliard 5a6cda458d kernel32/tests: Try harder to empty the pipe for completion notification. 2015-02-24 21:55:46 +09:00
Austin English 295f194804 kernel32: Add SetVolumeMountPointA/W stubs. 2015-02-12 22:12:22 +09:00
Alex Henrie 6bcf9e4bd8 kernel32: Support UTF-7 in MultiByteToWideChar.
Portions of utf7_mbstowcs were written by Sebastian Lackner.
2015-02-09 20:41:42 +09:00
Alex Henrie 054fa77de0 kernel32: Support UTF-7 in WideCharToMultiByte.
Portions of utf7_wcstombs were written by Sebastian Lackner.
2015-02-09 20:37:27 +09:00