Commit Graph

1282 Commits

Author SHA1 Message Date
Vincent Béron 05b2c1cc81 Remove multiple declarations of the same function, keeping the public
one as reference.
2005-07-24 16:17:28 +00:00
Alexandre Julliard 8e21562903 Added small assembly wrapper to call entry points without having to
worry about their calling convention.
2005-07-22 19:50:13 +00:00
Francois Gouget bd19d67ad1 Assorted spelling fixes. 2005-07-22 09:06:03 +00:00
Felix Nawothnig f633a5ccf7 Convert long to short path in GetModuleFileName16. 2005-07-22 09:03:14 +00:00
Alexandre Julliard b676b62240 Register functions with no arguments should still be called as stdcall
because of the extra CONTEXT arg.
2005-07-21 11:09:26 +00:00
Dmitry Timoshkov e3d1a13b9c Add a test for handling overlapped buffers by WideCharToMultiByte. 2005-07-15 16:33:10 +00:00
Dmitry Timoshkov 1dc18952ae Use SIZE_T type for size variables in NTDLL when appropriate. 2005-07-15 10:01:30 +00:00
Alexandre Julliard 3be8cb8b02 Moved initialization of the default user process parameters to ntdll. 2005-07-14 12:33:30 +00:00
Alexandre Julliard 9ad5628639 Moved the server start time to the init_thread request and got rid of
the init_process request (based on a patch by Felix Nawothnig).
2005-07-14 10:32:46 +00:00
Alexandre Julliard 11ad6a0ac4 Return the startup info size in the init_thread request, and allocate
the process parameters structure in ntdll instead of kernel.
2005-07-13 19:43:35 +00:00
Alexandre Julliard 4391be583e Get rid of the boot_done request. 2005-07-13 14:20:13 +00:00
Alexandre Julliard 0424f38169 Already initialize the process in the first init_thread request
instead of waiting for the init_process request.
2005-07-13 12:12:43 +00:00
Alexandre Julliard 01caa5e645 Moved the fields that depends on startup info from the init_process
request to get_startup_info.
2005-07-12 20:27:09 +00:00
Alexandre Julliard 6aa0cc5e3c Load the HKEY_CURRENT_USER branch at server startup too. 2005-07-11 20:44:59 +00:00
Paul Vriens 0f394ae6dc Basic tests for LoadLibraryA and GetProcAddress. 2005-07-11 18:40:10 +00:00
Alexandre Julliard f315d8b0c4 A NULL module handle means 'main exe' in GetProcAddress too. 2005-07-11 18:39:49 +00:00
Uwe Bonnes 52978f67ac STATUS_TIMEOUT is no error for Read|WriteFile. 2005-07-11 14:23:46 +00:00
Robert Shearman 38ba5fe0e0 - Make the value returned from HeapSize always match the requested
size passed into HeapAllocate/HeapReAllocate.
- Add a test for this behaviour.
2005-07-11 13:20:40 +00:00
Alexandre Julliard 8bfe1dca03 The ordinal functions should not be exported by name. 2005-07-10 17:49:24 +00:00
Alexandre Julliard 2b33634018 Intercept functions for 16-bit relay debugging by patching the
CALLFROM16 table instead of having the wine_call_from_16 functions
call out the relay functions explicitly.
2005-07-05 12:52:07 +00:00
Alexandre Julliard e56d9deac4 Added vararg argument type so that the relay code can distinguish from
a normal cdecl function.
Don't rely on the relay thunk preserving the stack pointer.
2005-07-05 11:50:40 +00:00
Mike McCormack 713ca17b23 Fix some gcc 4.0 warnings. 2005-07-05 11:46:09 +00:00
Mike McCormack a2479eca44 Fix gcc 4.0 warnings. 2005-07-05 10:57:47 +00:00
Alexandre Julliard 1a0f2863db Moved all 16-bit relay code to the text section.
Changed a few symbol names for better consistency.
2005-07-03 11:28:44 +00:00
Mike McCormack b8fc783be2 Avoid warnings in generated tests by casting sizeof(x) to an int. 2005-07-03 11:23:30 +00:00
Alexandre Julliard 71914125ce Moved most of the implementation of CALL32_CBClient(Ex) to the C
code.
2005-07-01 16:24:32 +00:00
Francois Gouget 2b03aa6a6d Test the behavior of CreateDirectory() when it has one or two trailing
dots or spaces.
Tweak the previous CreateDirectory() tests so we get more information
in case of a failure.
2005-06-30 18:08:44 +00:00
Alexandre Julliard 34a9ab04b2 Get rid of the old config conversion code. 2005-06-29 19:22:02 +00:00
Uwe Bonnes 76dc856590 Added test cases. However most added tests need a loopback plug and
need to be enabled in the code.
2005-06-27 19:49:07 +00:00
Eric Pouech 0d2ea2a91c Implemented OpenThread on top of NtOpenThread. 2005-06-27 12:03:56 +00:00
Eric Pouech 6d68a03d4f Implemented OpenProcess on top of NtOpenProcess. 2005-06-27 11:12:11 +00:00
Eric Pouech a1deba5ab4 - OpenConsole: try to open the Unix console if we fail with wineserver
- kernel32: simplifying code for opening a console handle
- msvcrt: now correctly initializing the handles to the Windows
  console
2005-06-27 09:54:09 +00:00
Jacek Caban 6cb97534dc Fix test on NT 4. 2005-06-27 09:49:26 +00:00
Alexandre Julliard f51496a232 Remove some i386 ifdefs for 16-bit entry points since they are no
longer used by default on other platforms anyway.
2005-06-25 18:34:00 +00:00
Alexandre Julliard f84401aa17 Sort entry points in the same order as Windows. 2005-06-23 09:57:11 +00:00
Alexandre Julliard 60b3d30f9b Don't require execute permission for thread stacks. 2005-06-21 09:57:53 +00:00
Mike McCormack 78911f34d9 - avoid winternl.h depending on winbase.h
- define RTL versions of TIME_ZONE_INFORMATION and SYSTEMTIME
2005-06-20 18:37:17 +00:00
Stefan Huehner 9213d56ae0 Make some function static. 2005-06-20 15:35:54 +00:00
Stefan Huehner ac6f562b52 Fix more -Wstrict-prototypes warnings. 2005-06-20 14:18:03 +00:00
Mike McCormack 405ac7a80c - don't include winreg.h
- include kernel_private.h to get declaration for convert_old_config()
2005-06-20 10:40:37 +00:00
Marcus Meissner 94bc167ae4 Specify enough buffer for id[] (20 chars are not enough). 2005-06-17 20:54:29 +00:00
Mike McCormack 5b2d5fd758 Use HANDLE instead of HKEY in the NT API. 2005-06-17 13:58:33 +00:00
Alexandre Julliard 91c86bb546 Removed the DOS version option, specifying the Windows version should
be enough to achieve the same results.
2005-06-16 09:47:17 +00:00
Alexandre Julliard 302cd456c3 Moved debugging config options to HKCU\Software\Wine\Debug. 2005-06-14 19:23:00 +00:00
Alexandre Julliard 629352bdc4 Moved network configuration parameters to HKCU\Software\Wine\Network. 2005-06-14 17:22:41 +00:00
Mike McCormack 0f36d124a2 Fix warnings from -Wmissing-declarations. 2005-06-14 11:42:34 +00:00
Mike McCormack fc51a2680a Fix declaration warnings in the test cases. 2005-06-14 11:40:04 +00:00
Alexandre Julliard 2e4bca9db5 Added magic comments to all Wine-specific registry accesses to make
them easier to grep.
2005-06-13 18:56:00 +00:00
Alexandre Julliard c2d5b444b3 Moved the NONAMELESSUNION/STRUCT macros to wine/test.h so that they
can be used in all the test.
2005-06-13 12:10:54 +00:00
Felix Nawothnig 8b5c8f6d7f Add a workaround for Win9x apps which pass the parameters for
GetCurrentDirectoryA in wrong order.
2005-06-12 10:41:22 +00:00
Mike McCormack 950e5e626c Dependency fixes for winternl.h. 2005-06-10 19:33:47 +00:00
Uwe Bonnes 290a419f0a Don't try to access floppy if it's not mounted. 2005-06-09 09:42:49 +00:00
Alexandre Julliard bd000a0203 Removed some unnecessary inclusions of thread.h 2005-06-06 20:13:08 +00:00
Alexandre Julliard 0f079d7858 Moved the kernel per-thread data out of the TEB into a private
structure stored in TEB.SystemReserved1.
2005-06-06 20:00:14 +00:00
Alexandre Julliard 6ae4ee496e Fetch the stack selector to use from the previous stackframe instead
of the TEB.
2005-06-06 19:57:05 +00:00
Alexandre Julliard 6d07a9c39c Moved the server part of the ExitThread functionality to ntdll. 2005-06-05 18:38:48 +00:00
Alexandre Julliard 143db5ce8e Don't bother looking for a resource directory in free memory areas. 2005-06-05 18:28:04 +00:00
Alexandre Julliard 9b57a950d7 Avoid accessing the htask16 TEB field from ntdll. 2005-06-05 18:24:35 +00:00
Mike Hearn 0aab090838 Suppress the noisy SetNamedPipeHandleState fixme. 2005-06-05 18:03:38 +00:00
Uwe Bonnes 80a84a8c74 Added more pipe tests. 2005-06-05 17:57:10 +00:00
Mike McCormack 6ef329fce7 Make sure that unused code gets compiled to avoid warnings. 2005-06-02 10:30:57 +00:00
Marcus Meissner 590aaaf454 Added stubs for GetVolumePathName(A,W). 2005-06-02 10:30:44 +00:00
Ivan Leo Puoti f0c62a89ea Added IDT emulation. 2005-05-31 13:28:42 +00:00
Alexandre Julliard 16885f09a5 Fixed RtlIsTextUnicode prototype, and made it properly take into
account the results of the tests to determine the return value.
2005-05-31 13:24:44 +00:00
Mike McCormack bdfcb09c57 Some warning fixes for the regression tests. 2005-05-31 09:30:45 +00:00
Dimi Paun 145f9972ed Fix indentation. 2005-05-29 20:00:10 +00:00
Ivan Leo Puoti eeb0a90ec9 Added some privileged instructions emulation. 2005-05-27 19:30:22 +00:00
Alexandre Julliard 70bc9f39f1 Removed STANDALONE ifdefs. 2005-05-25 09:54:51 +00:00
Rein Klazes 8481c8df81 Work around a problem where WriteFile is asked to write memory
protected by DIBSection code.
2005-05-24 12:50:24 +00:00
Hans Leidekker 97d1b11ebd Fix uninitialized warnings. 2005-05-24 12:34:29 +00:00
Steven Edwards c2b4bbef4f Split Win16 and Win32 toolhelp functions.
Compile out win87em and 16bit toolhelp functions if 16 bit support is
disabled.
2005-05-24 10:12:06 +00:00
Alexandre Julliard 5c819a9895 Support unloading 16-bit builtin modules, and properly manage the
refcount of the 32-bit owner module.
2005-05-23 12:15:26 +00:00
Kevin Koltzau d9293bfc15 Implement Module32FirstW/NextW. 2005-05-23 12:14:09 +00:00
Alexandre Julliard 70d0439905 Moved the generated code segment for 16-bit builtins inside the module
structure.
Get rid of the BUILTIN16_DESCRIPTOR structure and directly register
the MZ header instead.
2005-05-23 12:07:15 +00:00
Alexandre Julliard aebb745488 Comment out stub WEP entry points so that we can call WEP for builtin
dlls too.
2005-05-23 10:12:26 +00:00
Alexandre Julliard 1970e467d4 Generate 16-bit resources in the proper format inside the module data,
and get rid of the special case for builtins in NE_DefResourceHandler.
2005-05-20 19:19:01 +00:00
Alexandre Julliard 3d5c3609c7 Renamed __wine_(un)register_dll_16 to __wine_dll_(un)register_16 for
consistency with the 32-bit version, and also make the register
function use the same prototype as the 32-bit one.
2005-05-19 12:44:31 +00:00
Alexandre Julliard 8eb1630ce1 Use a memory mapping instead of file I/O to load 16-bit modules. 2005-05-19 12:05:28 +00:00
Dimi Paun e035e01b11 Rename back local_compact to LOCAL_Compact for consistency.
Get rid of no longer used local.h.
2005-05-19 11:13:36 +00:00
Alexandre Julliard b3e0a032ce Moved entry point definitions from module.h to kernel16_private.h. 2005-05-18 18:27:54 +00:00
Alexandre Julliard 67204137ee Generate the 16-bit module header in the standard on-disk format, so
that winebuild doesn't need to know about kernel internal structures.
2005-05-18 18:21:59 +00:00
Emmanuel Maillard 64c077860e Added Darwin 8.0 specific headers. 2005-05-18 18:20:23 +00:00
Alexandre Julliard f624b48f48 Split the module building functionality of NE_LoadExeHeader into
separate functions.
2005-05-18 17:48:28 +00:00
Alexandre Julliard 90dd7f0603 Removed implementation of LoadDIBIconHandler16 and
LoadDIBCursorHandler16 since they are no longer used, and stop
exporting NE_DefResourceHandler.
2005-05-18 15:37:41 +00:00
Pierre d'Herbemont 342da59b0c Remove stdlib.h inclusion if winsock.h is included. 2005-05-18 15:33:20 +00:00
Alexandre Julliard 964b7fb14d Changed SNOOP16_RegisterDLL to take a module handle instead of
pointer. Moved snoop function prototypes to kernel16_private.h.
2005-05-18 09:58:43 +00:00
Dimi Paun 0c4be325b1 Remove the LOCAL_*() function calls from KERNEL. 2005-05-18 09:48:32 +00:00
Alexandre Julliard 4417574d2c Renamed some fields in NE_MODULE to use the same name as in the
exported IMAGE_OS2_HEADER structure.
2005-05-17 14:36:09 +00:00
Alexandre Julliard e8a23c9572 Use the exported IMAGE_OS2_HEADER to generate the module header in the
spec file, and moved the NE_MODULE structure definition to
kernel16_private.h.
2005-05-17 10:21:29 +00:00
Alexandre Julliard 4776085c9c Moved a bunch of definitions out of module.h into a new
kernel16_private.h header.
2005-05-16 19:44:54 +00:00
Alexandre Julliard e4412a618c Removed the special casing of kernel32 and ntdll for the TEB
definition in winternl.h.
2005-05-16 17:52:10 +00:00
Alexandre Julliard 19bfcd3533 Moved the remaining stack frame definitions to kernel_private.h and
removed stackframe.h.
2005-05-16 14:45:18 +00:00
Dimi Paun bac5f4603d Use the standard Local*16() instead of LOCAL_*() functions. 2005-05-16 14:07:52 +00:00
Alexandre Julliard 95086f45a4 Moved data structures for 16-bit relay calls to winbase16.h and
removed builtin16.h.
2005-05-16 09:19:18 +00:00
Dimi Paun 5eae73de10 Avoid using some LOCAL_*() functions. 2005-05-16 08:49:39 +00:00
Dimi Paun e510a29159 Make LOCAL_*() just wrappers around Local*16() functions. 2005-05-14 12:18:15 +00:00
Alexandre Julliard d876893fc1 Store the 16-bit stack pointer in the WOW32Reserved TEB field. 2005-05-14 12:16:46 +00:00
Mike McCormack 8bcdf42710 Stub implementation for GetGeoInfo. 2005-05-11 12:57:50 +00:00
Mike McCormack 9d293981b4 Add Module32FirstW and Module32NextW exports. 2005-05-11 12:01:40 +00:00
Eric Pouech 6246c2d4c4 Get rid of include/miscemu.h. 2005-05-10 16:01:38 +00:00