Alexandre Julliard
9669ff8de4
ntdll: Get rid of the main_file argument in LdrInitializeThunk.
2006-02-08 15:22:24 +01:00
Alexandre Julliard
e65b8d925a
kernel: Use a standard LoadLibrary call to load the main exe.
2006-02-08 15:11:19 +01:00
Dmitry Timoshkov
e6a734a979
kernel32: Implement EnumUILanguages.
2006-02-07 21:17:06 +01:00
Mike McCormack
7a61f086f1
kernel32: More test cases for ReadDirectoryChangesW.
2006-02-07 16:50:44 +01:00
Mike McCormack
0790f95589
kernel32: ReadDirectoryChangesW fixes.
...
ReadDirectoryChangesW remembers whether it's recording changes or not.
Don't initialize overlapped->InternalHigh.
The hEvent is cleared when ReadDirectoryChanges is called.
2006-02-07 16:50:36 +01:00
Mike McCormack
0193211946
server: Fill in NtNotifyChangeDirectoryFile's buffer with change data.
2006-02-06 11:58:55 +01:00
Stefan Leichter
acb52e5272
kernel: Added a test for QueryDosDeviceA.
2006-02-06 11:57:02 +01:00
Eric Pouech
3c2abaf45e
ntdll: Implemented IOCTL for char transmission: IMMEDIATE_CHAR.
2006-02-06 11:38:53 +01:00
Eric Pouech
5973955e4e
ntdll: Implemented COMM IOCTL for modem status: GET_MODEMSTATUS.
2006-02-06 11:37:39 +01:00
Eric Pouech
58e719ce93
ntdll: Implemented IOCTL for serial: SET_WAIT_MASK, GET_WAIT_MASK.
2006-02-06 11:37:06 +01:00
Eric Pouech
b83c5ead16
ntdll: Implemented IOCTL purge for serial objects.
2006-02-06 11:36:19 +01:00
Eric Pouech
dccd41a88a
kernel: Fixed regression in atom handling.
...
Added proper tests (local & global functions).
2006-02-06 11:26:57 +01:00
Robert Millan
8800352477
Enable for GNU/kFreeBSD the same kernel-specific interface/parameter
...
that is used with FreeBSD.
2006-02-05 13:06:50 +01:00
Alexandre Julliard
2a36dd239c
server: Remove no longer used create_flags from get_startup_info request.
2006-02-05 12:33:24 +01:00
Alexandre Julliard
626669e1e3
kernel: Use a magic ConsoleHandle value instead of create flag to pass
...
the CREATE_NEW_CONSOLE flag to the child.
2006-02-05 12:24:43 +01:00
Alexandre Julliard
645c0cc63c
kernel: Set the console flag in the parent for CREATE_NEW_PROCESS_GROUP.
2006-02-05 12:20:40 +01:00
Mike McCormack
d77baf358b
kernel32: FindFirstChangeNotification needs a static IO_STATUS_BLOCK.
2006-02-02 13:20:58 +01:00
Alexandre Julliard
096000df90
kernel: Set the overlapped structure status in ReadDirectoryChanges.
2006-01-31 18:03:35 +01:00
Mike McCormack
9e2b6687f6
kernel: Add some test cases for ReadDirectoryChangesW.
2006-01-31 12:22:24 +01:00
Mike McCormack
bd185ff3de
kernel: Add some more tests for FindFirstChangeNotification.
2006-01-30 18:14:12 +01:00
Mike McCormack
7005759557
kernel: Partially implement ReadDirectoryChangesW using NtNotifyChangeDirectoryFile.
2006-01-27 19:19:46 +01:00
Eric Pouech
e0cffe355f
Fix a couple of bugs spotted by valgrind.
2006-01-27 16:18:05 +01:00
Alexandre Julliard
8b0feb253b
server: Make the FILE_SHARE_DELETE sharing checks depend on DELETE
...
access instead of on the FILE_DELETE_ON_CLOSE flag (based on a patch
by Mike McCormack).
2006-01-27 15:50:38 +01:00
Mike McCormack
53dab15200
kernel32: Implement FindFirstChangeNotification with NtNotifyChangeDirectoryFile.
2006-01-27 12:54:31 +01:00
Mike McCormack
08351071fd
server: Fix the file notification interface to use directory handles.
2006-01-27 12:13:56 +01:00
Hans Leidekker
df5bd5f8a1
kernel: Implementation of tape functions.
...
Implement CreateTapePartition, EraseTape, GetTapeParameters,
GetTapePosition, GetTapeStatus, PrepareTape, SetTapeParameters,
SetTapePosition and WriteTapemark.
2006-01-27 12:10:03 +01:00
Alexandre Julliard
c93afe6bfc
kernel: Handle a failure to load winedos a bit more gracefully.
2006-01-25 13:19:11 +01:00
Hans Leidekker
b825b8ba3c
kernel: Test moving a directory that has a change notification
...
registered for itself.
2006-01-25 13:13:58 +01:00
Dmitry Timoshkov
57a579ffcd
Make more arrays const.
2006-01-24 14:00:32 +01:00
Alexandre Julliard
a2a29e22a0
kernel: Fail more gracefully when loading a builtin exe didn't work.
2006-01-24 11:05:11 +01:00
Detlef Riekenberg
4cfc3874df
kernel/tests: Integer atoms return different results on WinNT 3.51.
2006-01-23 11:23:50 +01:00
Vitaliy Margolen
8430d43d6c
kernel: Remove calls to Nt[Get|Set]ThreadContext.
...
It's done in exception handler now.
2006-01-19 11:55:24 +01:00
Mike McCormack
1f7c81eb36
kernel32: Create a stub implementation for PostQueuedCompletionStatus.
2006-01-17 13:13:01 +01:00
Mike McCormack
13ea51556d
kernel32: Move FileCDR16 in with the other 16bit file functions.
2006-01-16 20:51:28 +01:00
Hans Leidekker
9ba1876c40
kernel: Documentation cleanups.
2006-01-16 20:42:09 +01:00
Alexandre Julliard
ebe727e56d
kernel: Make sure the file contains data for the ReadFile test.
2006-01-14 17:08:14 +01:00
Alexandre Julliard
068cedc7f2
kernel: Reimplemented the MapHInst functions in assembly.
2006-01-13 14:29:30 +01:00
Alexandre Julliard
643463b456
kernel: Reimplemented the SMap/SUnmap functions in assembly.
2006-01-13 14:26:24 +01:00
Eric Pouech
2cdace2760
ntdll: Created infrastructure to support IOCTL for serial devices.
...
- created infrastructure in ntdll to support IOCTL for serial devices
- implemented IOCTLs in ntdll for serial break support
- implemented the kernel32 equivalent on top of those IOCTLs
2006-01-12 13:32:51 +01:00
Robert Shearman
9cc41d278f
kernel32: Fix GlobalReAlloc for size = 0.
...
GlobalReAlloc should return NULL if the requested size is 0, the block
is moveable and it is locked, but otherwise it should return the
original memory block.
2006-01-12 11:55:25 +01:00
Eric Pouech
329ab98940
ntdll: Implemented ntdll.NtSetInformationThread(ThreadAffinityMask).
...
Reimplemented kernel32.SetThreadAffinityMask on top of it.
2006-01-11 12:32:19 +01:00
Vitaliy Margolen
1406010d3c
kernel: Remove no longer used debug channel.
2006-01-10 20:41:23 +01:00
Robert Shearman
cb7aa0306e
kernel32: Return an error when unlocking a global with a zero lock count.
...
Rename GLOBAL_LOCK_MAX to the public GMEM_LOCKCOUNT.
2006-01-10 19:59:15 +01:00
Robert Shearman
f61878b1d5
kernel: Remove wine/server.h include from files where it is no longer needed.
2006-01-10 18:09:28 +01:00
Alexandre Julliard
8b84808bed
kernel: Don't send a debugger event in UnhandledExceptionFilter,
...
leave that to the standard ntdll exception handling.
2006-01-10 17:44:39 +01:00
Alexandre Julliard
52bce47b14
kernel: Implement FT_Exit directly in assembly to avoid the overhead
...
of register functions.
2006-01-10 17:43:05 +01:00
Mike McCormack
3066397bab
kernel: Trying to lock an empty global memory block gives an ERROR_DISCARDED.
2006-01-09 17:16:32 +01:00
Hans Leidekker
45fe4642e1
kernel: Documentation cleanups.
2006-01-06 21:07:46 +01:00
Robert Shearman
1191249fc9
kernel32: Check for the correct error return value from open.
2006-01-05 12:18:29 +01:00
Eric Pouech
70342dbc61
kernel32: Implemented atoms query function on top of ntdll ones.
2006-01-03 17:35:01 +01:00
Robert Reif
6501d7b155
kernel: DelayLoadFailureHook crash fix.
2006-01-03 13:15:55 +01:00
Eric Pouech
8218d91758
kernel/tests: Check that we successfully open the console.
2005-12-22 13:55:03 +01:00
Hans Leidekker
fa57544a46
kernel: Some documentation improvements.
2005-12-21 20:44:49 +01:00
Alexandre Julliard
68df918282
kernel32: Check for tabs too when extracting the program name
...
(reported by Vitaliy Margolen).
2005-12-19 21:25:23 +01:00
Alexandre Julliard
efffa66330
ntdll: Don't use a real guard page at the bottom of the stack.
...
A no-access page is enough, we can't properly raise an overflow
exception anyway.
2005-12-17 18:47:03 +01:00
Alexandre Julliard
ae964ac801
Take advantage of the __EXCEPT_PAGE_FAULT macro.
2005-12-16 17:17:57 +01:00
Alexandre Julliard
db7920bb44
We no longer need to handle EXCEPTION_PRIV_INSTRUCTION on page faults.
2005-12-16 16:37:12 +01:00
Alexandre Julliard
15430f6eda
Add -register hint in ntdll, kernel and msvcrt spec files.
2005-12-16 12:44:58 +01:00
Vitaliy Margolen
b05340a523
ntdll: Implement FSCTL_PIPE_WAIT NtFsControlFile ioctl.
...
Implement FSCTL_PIPE_WAIT NtFsControlFile ioctl.
Modify WaitNamedPipeW to use NtFsControlFile.
Replace struct overlapped with event.
2005-12-14 11:14:02 +01:00
Alexandre Julliard
f3dad37ba2
TEB.StackLimit should not include the guard page.
2005-12-12 17:28:32 +01:00
Alexandre Julliard
8a8a94aecb
kernel: Moved main stack initialization to process.c.
2005-12-12 17:20:29 +01:00
Alexandre Julliard
59797f292e
Pass specific access rights to wine_server_handle_to_fd.
2005-12-12 17:15:26 +01:00
Alexandre Julliard
a510a7e117
server: Added access rights mapping to file objects.
2005-12-12 16:46:17 +01:00
Alexandre Julliard
67505c00af
server: Support for opening devices.
...
Added support for opening devices directly with the server when they
don't correspond to a Unix file.
2005-12-12 14:27:45 +01:00
Eric Pouech
4e7b8f4a7b
kernel32: Get rid of DOSMEM_AllocSelector.
2005-12-12 13:02:35 +01:00
Filip Navara
2f7480e5af
kernel: Fix the Mach-O binary magic.
2005-12-12 11:50:15 +01:00
Alexandre Julliard
03b040c51d
server: Added object attributes to a few more requests.
2005-12-09 14:52:04 +01:00
Alexandre Julliard
d02c4a1b82
Make wine_server_fd_to_handle use attributes instead of inherit flag.
2005-12-09 12:22:35 +01:00
Alexandre Julliard
f2d7dd645e
server: Use attributes instead of inherit flag in process and thread requests.
2005-12-09 12:13:11 +01:00
Alexandre Julliard
f11d0a375f
server: Use attributes instead of inherit flag in snapshot requests.
2005-12-09 12:09:44 +01:00
Alexandre Julliard
7a096601e3
server: Use attributes instead of inherit flag in console requests.
2005-12-09 12:05:20 +01:00
Alexandre Julliard
45693738e6
kernel: Added a basic test for exception handling in threads.
2005-12-05 20:43:33 +01:00
Vitaliy Margolen
babfa79436
Move named pipe objects into directory name space.
...
Change tests accordingly.
Add small test for WaitNamedPipe.
2005-12-05 13:09:35 +01:00
Vitaliy Margolen
348a3d912b
Move mapping (section) objects into directory name space.
2005-12-02 16:13:13 +01:00
Vitaliy Margolen
7c5cb7a229
Move timer objects into directory name space.
2005-12-02 16:05:54 +01:00
Vitaliy Margolen
5daae3dfa9
Move semaphore objects into directory name space.
2005-12-02 16:01:17 +01:00
Vitaliy Margolen
f676bc8d85
Move event and mutex objects into directory name space.
2005-12-02 15:55:48 +01:00
Ge van Geldorp
1a1583a364
Match PSDK STATUS_* definitions.
2005-11-28 17:32:54 +01:00
Alex Villacís Lasso
efb290b2f0
Initialize file_exists to 0 at exe load test, prevents mistaking of
...
UTF-8 encoded exenames as builtins.
2005-11-28 10:35:10 +01:00
Alexandre Julliard
0ec7e1a591
Renamed all .cvsignore files to .gitignore.
2005-11-26 13:10:33 +01:00
Alexandre Julliard
cc01e8ff05
Preserve 16-byte stack alignment in the various assembly
...
functions. Needed for MacOSX.
2005-11-23 19:55:06 +01:00
Alexandre Julliard
99d8083a80
Don't try to set the label in the superblock of FAT filesystems, that
...
doesn't do the right thing anyway.
2005-11-22 15:03:27 +00:00
Vitaliy Margolen
2d41fcd864
Kernel32 should create named objects with OBJ_OPENIF flag set.
...
Handle STATUS_OBJECT_NAME_EXISTS explicitly as it's not mapped with
RtlNtStatusToDosError.
2005-11-21 16:26:34 +00:00
Alexandre Julliard
86397e1d43
Fixed handling of mailslot read timeout to avoid compiler warnings.
2005-11-21 15:23:49 +00:00
Saulius Krasuckas
de9d974f2f
- ANSI SCSI revision is a hex number.
...
- Be more verbose with parser ERRs.
2005-11-21 11:59:03 +00:00
Alexandre Julliard
e968628e6a
Avoid setting the context before the thread has started running, it's
...
broken on most Windows versions.
2005-11-18 15:06:38 +00:00
Alexandre Julliard
ba2cb7c97b
Added a few more Unicode digits from Unicode version 4.1.
2005-11-18 12:15:59 +00:00
Dmitry Timoshkov
ccf041a14d
Use case insensitive comparison to check file extensions.
2005-11-18 12:06:57 +00:00
Robert Shearman
eeb0062fbb
The BOM doesn't need a DWORD sized variable, only a WCHAR one.
...
Don't increment the szFile pointer since we removed the BOM earlier
and it will cause the first real character of the INI file to be
skipped.
2005-11-17 11:05:46 +00:00
Detlef Riekenberg
f81694cc0c
Made test loadable on NT 3.51 again (GetDiskFreeSpaceExA not present).
2005-11-15 16:53:09 +00:00
Cihan Altinay
3167958b3b
Disable PARMRK input flag of serial ports.
2005-11-15 16:51:28 +00:00
Paul Vriens
17cbf1cbca
Corrected last error information.
...
Make sure we can run the tests on win9x.
2005-11-15 12:00:41 +00:00
Eric Pouech
ca4ae96f33
NtReadFile: now returning correct status in NtReadFile for EOF
...
conditions (on files) and broken pipe (on named pipes).
2005-11-14 15:11:11 +00:00
Eric Pouech
ff6d30e485
Fix set_test_val function declaration to ensure stack is left
...
untouched.
2005-11-14 11:23:11 +00:00
Paul Vriens
7aa2e18c29
Add some extra error information.
2005-11-12 19:11:05 +00:00
Phil Lodwick
bf8319fdd5
prefix can be NULL for GetTempFileNameW.
2005-11-12 19:09:06 +00:00
Vincent Béron
182cabea90
Protect sys/stat.h with a conditional.
2005-11-11 10:53:30 +00:00
Francois Gouget
0edbaf7e80
Remove spaces before '\n' in traces.
2005-11-10 12:14:56 +00:00
Francois Gouget
2adb302a99
Add trailing '\n's to ok() and TRACE() calls.
2005-11-10 11:17:38 +00:00
Saulius Krasuckas
63f8bdaa4e
Add error code valid for Win9x and XP.
2005-11-10 11:16:20 +00:00
Robert Lunnon
53b4c0f646
Implement GlobalMemoryStatusEx for Solaris.
2005-11-08 16:10:01 +00:00
Saulius Krasuckas
7ff494101a
Take into account some alignment done by HeapAlloc() on Win9x.
2005-11-08 16:09:44 +00:00
Markus Amsler
b8d9b6192d
Improve c2man Documented-Total count. Changes:
...
- add missing description
- add missing returns section
- complete missing A/W pairs
- reformate comments, to match c2man requirements
2005-11-08 11:01:03 +00:00
Uwe Bonnes
cb971b3def
More verbose output when unhandled exception occurs.
2005-11-04 11:42:48 +00:00
Alexandre Julliard
6ed28ada49
Fixed fd leaks (spotted by Cihan Altinay).
2005-11-03 11:38:48 +00:00
Alexandre Julliard
73c72390f8
Fixed Get/SetThreadContext to work properly on suspended threads.
...
Added a test case.
2005-11-02 20:54:12 +00:00
Alexandre Julliard
ff7795ef4c
Don't send an extra signal when waiting for a debug event, just do a
...
normal wait. Return the debug event status directly as return value
of the server call.
2005-11-01 21:47:07 +00:00
Bernd Schmidt
60fc2425e3
Implemented FindExSearchLimitToDirectories.
2005-11-01 21:37:05 +00:00
Marcus Meissner
5c256c518f
Define obsoleted CLK_TCK to CLOCKS_PER_SEC if not there.
2005-10-31 10:04:57 +00:00
Eric Pouech
289889c9ec
Implemented local/global atom creation, deletion & lookup on top of
...
ntdll.
2005-10-29 12:37:42 +00:00
Saulius Krasuckas
f91b3ae3e4
Test CreateThread() for reception of NULL pointer to TID.
2005-10-28 10:41:57 +00:00
Saulius Krasuckas
d2e0d5e8bd
Don't send a CTRL_C_EVENT signal to console if we are on Win9x and
...
console signal handler is set to NULL.
2005-10-28 10:40:42 +00:00
Saulius Krasuckas
02a810f10c
Add a test for GetThreadExitCode.
...
Use GetModuleHandleA as kernel32 should be present on every system.
2005-10-28 09:40:09 +00:00
Uwe Bonnes
457ece155f
Test for argv handling.
2005-10-27 10:25:49 +00:00
Alexandre Julliard
a51f2becf6
In FindNextFileExW don't report directory symlinks that point to one
...
of the parent directories, to avoid infinite recursions.
2005-10-26 13:57:45 +00:00
Vitaliy Margolen
c3bb842237
Test for return value from CreateDirectory("c:").
2005-10-26 10:08:20 +00:00
Rein Klazes
551ef36517
In GetDiskFreeSpace:
...
- only cap the total size and available size to 2GB in Win3.x thru
WinME;
- in that case adjust number of clusters to be less then 65536 by
increasing the cluster size;
- add corresponding tests.
2005-10-20 11:36:40 +00:00
Vitaliy Margolen
64896241b8
LoadLibrary should ignore trailing spaces in the library name.
2005-10-18 14:10:56 +00:00
Alexandre Julliard
7886cacbf5
Revert previous change, OF_EXIST really returns HFILE_ERROR.
2005-10-18 10:39:15 +00:00
Uwe Bonnes
dbdf3df4d9
Remove unspecific FIXME.
2005-10-17 09:23:22 +00:00
Alexandre Julliard
7c871f0ce4
Ignore empty environment strings.
2005-10-17 08:56:41 +00:00
Detlef Riekenberg
9d7c5911be
NT3.51 returns ERROR_MORE_DATA.
2005-10-11 19:58:38 +00:00
Mike McCormack
4e700d36e0
Make sure not to strcpy from a NULL default value pointer.
2005-10-11 19:27:03 +00:00
Maxime Bellengé
91ff09b679
In case of failure and OF_EXIST is specified, return FALSE instead of
...
HFILE_ERROR.
2005-10-10 11:19:31 +00:00
Christian Costa
dd3d1e389a
Add trace to DefineDosDevice.
2005-10-10 10:44:35 +00:00
Marcus Meissner
4a7666190f
Pass characters to get_file_name() helper, not bytes.
2005-10-10 10:28:48 +00:00
Vitaliy Margolen
593ab4cac4
Fix atom tests on win9x.
2005-10-06 11:35:32 +00:00
Joshua Davies
dcba743bd1
Windows is returning the length of the string, plus the CRLF
...
delimiters, whereas wineconsole is returning one less.
2005-10-06 11:35:24 +00:00
Vitaliy Margolen
eabc93a1eb
Add brackets around (a)?b:c construct.
2005-10-06 11:32:53 +00:00
Alexandre Julliard
2bbf1b5baf
Set WINEDEBUG to an empty value instead of removing it so that it gets
...
properly cleared in the debugger.
2005-10-04 18:14:22 +00:00
Alexandre Julliard
ce1196a84b
Copy WINEDEBUG from the Windows environment to allow passing a
...
modified value to a child process.
2005-10-04 18:09:51 +00:00
Vitaliy Margolen
7e9b17f745
Add brackets around (a)?b:c construct.
2005-09-30 10:33:43 +00:00
Alexandre Julliard
7e22be4d84
We are no longer generating .dbg.c files.
2005-09-29 10:35:58 +00:00
Alexandre Julliard
7ddab75619
Declare debug channels as static variables so that we don't need to
...
generate an external .dbg.c file to define them.
2005-09-28 18:34:00 +00:00
Eric Pouech
c43e416bc3
Added a bunch of test cases for atoms.
2005-09-28 11:58:20 +00:00
Alexandre Julliard
60a52559ac
Don't apply relocations a second time to self loaded segments.
...
Fixed messed up indentation in NE_FixupSegmentPrologs.
2005-09-27 11:03:18 +00:00
Eric Pouech
b09582a890
Implemented kernel32 process affinity handling on top on ntdll.
2005-09-27 10:52:10 +00:00
Alex Villacís Lasso
f89c69c4cf
Tolerate ioctl failure in GetCommState() in order to be capable to use
...
softmodems.
2005-09-27 09:32:17 +00:00
Alexandre Julliard
43c6396e94
Use int instead of long in interlocked_* functions for 64-bit
...
compatibility.
2005-09-26 13:51:58 +00:00
Alexandre Julliard
81d64af17e
Use a larger buffer in CopyFileW now that the file handle may not
...
always be cached.
2005-09-26 13:26:40 +00:00
Eric Pouech
e21aa6a184
- now passing access rights when creating a named pipe in NTDLL
...
- reimplemented Kernel32.CreatePipe purely on top of NTDLL APIs
- anonymous pipe handles should have the SYNCHRONIZE bit set
2005-09-26 11:02:45 +00:00
Alexandre Julliard
9f859692f9
Replace DPRINTF by TRACE in a few places.
2005-09-25 15:23:21 +00:00
Alexandre Julliard
0ec0f048e6
Removed unused debug channels.
2005-09-22 10:44:40 +00:00
Alexandre Julliard
9f1c6de1ef
We are no longer generating .spec.c files.
2005-09-21 14:42:52 +00:00
Alexandre Julliard
5cb97d833a
Generate 16-bit spec files as assembly code too.
2005-09-21 14:23:54 +00:00
Vitaliy Margolen
97c944c061
Specify flag OBJ_CASE_INSENSITIVE when calling appropriate Ntxx
...
functions creating/opening named objects.
2005-09-21 11:42:30 +00:00
Alexandre Julliard
96508ad686
Moved return value handling to the individual relay thunks so that we
...
only need one version of wine_call_from_16.
Patch the wine_call_from_16 address along with the cs value directly
in the 16-bit code segment to avoid the need for special magic in the
import thunks.
2005-09-18 12:25:22 +00:00
Alexandre Julliard
7c1925a0f3
Remove the 'L' suffix on a number of constants to avoid comparison
...
errors on 64-bit platforms.
2005-09-13 15:00:32 +00:00
Eric Pouech
ad0168967e
Implemented kernel32.GetThreadTimes on top of ntdll's equivalent
...
function.
2005-09-12 22:01:33 +00:00
Alexandre Julliard
ba41fe20bc
Fixed a few more pointer to integer typecast issues for 64-bit
...
platforms.
2005-09-12 21:22:32 +00:00