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
Austin English
b331c4f931
kernel32: Add CreateHardLinkTransactedA/W stubs.
2015-02-05 22:42:22 +09:00
Nikolay Sivov
d1243bcc85
kernel32/tests: Remove a couple of duplicated constants.
2015-02-03 20:52:51 +09:00
Nikolay Sivov
fdda480df5
kernel32: Fix writing resource section as a last section in UpdateResource().
2015-01-28 21:30:01 +01:00
Nikolay Sivov
8f2b5653a7
kernel32/tests: Remove todo_wine that doesn't work anymore.
2015-01-28 21:29:57 +01:00
Nikolay Sivov
f670be8ec8
kernel32/tests: Make loader tests independent from each other.
2015-01-28 21:29:53 +01:00
Austin English
ae98c9a42b
kernel32: Sync spec file with windowss 7.
2015-01-28 11:08:21 +01:00
Daniel Scharrer
4d05cfe577
kernel32: Add stub implementation for EnumResourceLanguagesEx.
2015-01-27 22:03:17 +01:00
Austin English
fa80425242
kernel32: Add GetSystemFirmwareTable stub.
2015-01-26 12:06:04 +01:00
Charles Davis
193d15cc3c
kernel32: Don't use %gs on 64-bit Mac OS.
2015-01-23 11:11:37 +01:00
Charles Davis
2ace215b9a
kernel32: Recognize 64-bit Mach-O modules, too.
2015-01-23 11:10:57 +01:00
André Hentschel
ae1251596e
kernel32/tests: Don't test function directly when reporting GetLastError().
2015-01-21 21:35:57 +01:00
Hans Leidekker
b51476ad42
kernel32: Retrieve the system affinity mask from ntdll.
2015-01-21 15:30:37 +01:00
Qian Hong
bfd088dbc6
kernel32: Fixed buffer size on 64bit in IsWow64Process.
2015-01-16 20:15:32 +01:00
Qian Hong
caa0829d56
kernel32: Make SetUnhandledExceptionFilter hotpatchable.
2015-01-16 16:52:11 +01:00
Seán de Búrca
6cd0eb2027
kernel32: Implement Get{Time,Date}FormatEx.
2015-01-06 12:59:07 +01:00
Jon Doron
3c28c0a2eb
kernel32: Fix write_raw_resources to support 32 and 64 PE formats.
2015-01-05 16:29:03 +01:00
Nikolay Sivov
7a612654dc
ntdll: Skip context dependencies that have allowDelayedBinding attribute set.
2014-12-31 21:13:31 +01:00
Alex Henrie
ddc0c3203f
kernel32/tests: Add tabular UTF-7 decoding tests.
2014-12-29 12:14:29 +01:00
Nikolay Sivov
c134466224
ntdll: Fix 'description' element parsing to allow empty elements.
2014-12-28 19:08:47 +01:00
Alex Henrie
38027cda8f
kernel32/tests: Add tabular UTF-7 encoding tests.
2014-12-23 21:16:45 +01:00
Sergey Kalinichev
7eed378f5d
ntdll: Add stub for RtlSetHeapInformation.
2014-12-19 22:36:17 +01:00
Sebastian Lackner
cacc9ae888
psapi: Implement semi-stub for K32EnumProcessModulesEx.
2014-12-16 17:25:36 +01:00
Sebastian Lackner
8826ba1bc8
kernel32: Return proper char count in get_registry_locale_info.
2014-12-16 13:32:53 +01:00
André Hentschel
1005f3a6fa
kernel32: Make GetTickCount and GetTickCount64 hotpatchable.
2014-12-11 11:57:18 +01:00
Austin English
76dc45aa1a
kernel32: Add a stub for GetUserPreferredUILanguages.
2014-12-10 19:32:28 +01:00
Francois Gouget
ea932fbcc1
Assorted spelling fixes.
2014-12-05 20:47:45 +01:00
Stefan Leichter
9668dddfc9
kernel32: Add stubs for CreateSymbolicLinkA/W.
2014-12-05 11:24:51 +01:00
André Hentschel
7b318b1700
kernel32/tests: Remove unused code (Clang).
2014-12-04 14:03:24 +01:00
Alexandre Julliard
0ab2311cd5
kernel32/tests: Allow the parent directory to receive a modified event.
2014-12-03 21:34:25 +01:00
André Hentschel
3135b02546
kernel32/tests: Remove unused strings (Clang).
2014-12-02 10:30:48 +01:00
Piotr Caban
f87767bc35
ntdll: Handle ACTCTX_FLAG_ASSEMBLY_DIRECTORY_VALID flag when opening manifest in RtlCreateActivationContext.
2014-11-28 17:04:07 +01:00
Sebastian Lackner
4032eef90f
kernel32: Fix implementation of K32GetPerformanceInfo.
2014-11-14 17:11:38 +09:00
Austin English
4c0ceacee0
ntdll: Add stubs for vectored continue handler.
2014-11-13 16:31:49 +09:00
Alex Henrie
0f93668637
kernel32/tests: Add UTF-7 implicit termination tests.
2014-11-07 20:57:01 +09:00
Alex Henrie
14f41641bb
kernel32/tests: Add UTF-7 stray + sign removal tests.
2014-11-07 20:56:59 +09:00
Alex Henrie
3069e0c0a1
kernel32/tests: Add UTF-7 encoded surrounding characters tests.
2014-11-06 23:47:16 +09:00
Alex Henrie
7c1580a4a8
kernel32/tests: Add UTF-7 non-encoded surrounding characters tests.
2014-11-06 23:47:15 +09:00
Sebastian Lackner
a10a4538b7
kernel32/tests: Add tests for FindFirstFileExW level FindExInfoBasic.
2014-11-04 16:12:37 +09:00
Sebastian Lackner
91f2bdd052
kernel32: Implement FindFirstFileExW level FindExInfoBasic.
2014-11-04 16:12:33 +09:00
Sebastian Lackner
3e3b03a13e
kernel32: Set proper error codes if FindFirstFileExW doesn't support specific search_ops / levels.
2014-11-03 20:31:21 +09:00
Sebastian Lackner
edc259fdeb
kernel32/tests: Avoid test failures on systems where hardware DEP is not supported.
2014-10-29 20:31:09 +09:00
Alexandre Julliard
3e1c4908ef
kernel32/tests: Use a pointer instead of an array to make gcc happy.
2014-10-28 15:59:55 +09:00
André Hentschel
e404d7fea3
kernel32: Set COMPUTERNAME environment variable.
2014-10-28 14:04:54 +09:00
Sebastian Lackner
d4d8efad46
kernel32/tests: Avoid crashing when exception info[0] contains wrong value.
2014-10-27 19:02:51 +09:00
Austin English
1ade676968
kernel32: Add a stub for CancelTimerQueueTimer.
2014-10-27 17:35:45 +09:00
Amine Khaldi
810ed5c85a
kernel32: Remove some unused variables (Clang).
2014-10-23 12:14:10 +09:00
Catalin Patulea
a5005ed84a
kernel32: Handle win32 hresult in FormatMessage.
2014-10-21 20:00:15 +09:00
Catalin Patulea
af59823567
kernel32/tests: Add test for FormatMessage with HRESULT.
2014-10-21 20:00:11 +09:00
Sebastian Lackner
d74c9e3ec2
kernel32: Implement GetProcessDEPPolicy.
2014-10-21 18:51:19 +09:00
Sebastian Lackner
19927ee517
kernel32/tests: Add test for GetProcessDEPPolicy.
2014-10-21 18:51:17 +09:00
Sebastian Lackner
1c1e7ed016
ntdll: Add support for ATL thunk 'POP ecx; POP eax; PUSH ecx; JMP 4(%eax)'.
2014-10-21 18:51:05 +09:00
Sebastian Lackner
dcd2b0a366
ntdll: Add support for ATL thunk 'MOV this,ecx; MOV func,eax; JMP eax'.
2014-10-21 18:51:04 +09:00
Sebastian Lackner
40472cd3a7
ntdll: Add support for ATL thunk 'MOV this,edx; MOV func,ecx; JMP ecx'.
2014-10-21 18:51:02 +09:00
Sebastian Lackner
aab0d25a49
ntdll: Add support for ATL thunk 'MOV this,ecx; JMP func'.
2014-10-21 18:50:59 +09:00