Commit Graph

1210 Commits

Author SHA1 Message Date
Alexandre Julliard 6a27b48895 Fd type is no longer used, get rid of it. 2004-08-18 00:04:58 +00:00
Eric Pouech 1ffddb4d0c - better support for non-blocking COMM and socket read/writes:
+ added necessary semantics to fd flags
  + no longer uses fd type (but fd flags) read/write semantic behavior
- fixed socket code to use the proper manifest constants
- fixes for kernel32.GetOverlappedResult without hEvent set
- in ntdll.Nt{Read|Write}File
  + always reset the event
  + added support for longlong offsets
  + better object disposal in error handling code paths
2004-08-17 23:37:55 +00:00
Robert Reif 778168c316 Fix BSD build. 2004-08-13 19:47:11 +00:00
Alexandre Julliard ff039ccdf3 We don't need the shared heap on non-i386 platforms. 2004-08-13 00:42:09 +00:00
Robert Reif 22174de9bb Use GlobalMemoryStatusEx in GlobalMemoryStatus rather than the other
way around.
2004-08-13 00:41:34 +00:00
Alexandre Julliard b459952144 Avoid some non-portable makefile constructs, and get rid of the
ALTNAMES variable.
2004-08-11 23:59:06 +00:00
Hans Leidekker 9baafec900 Fix signed/unsigned comparison warnings. 2004-08-10 23:43:21 +00:00
Hans Leidekker 70d400adf6 Fix signed/unsigned comparison warnings. 2004-08-09 23:42:19 +00:00
Mike McCormack e3d8853bb8 Moved FlushInstructionCache to ntdll. 2004-08-04 18:15:04 +00:00
Alexandre Julliard 81b22375d0 Added support for getting and setting the UI language. 2004-07-30 01:45:16 +00:00
Vincent Béron 6dc4e2af82 Remove last winedefault.reg reference in the code. 2004-07-23 23:17:13 +00:00
Alexandre Julliard c95b984882 Avoid lvalue casts (based on a patch by Marcus Meissner). 2004-07-23 19:09:35 +00:00
Alexandre Julliard 2c90b52bbc Rewrote load_messageA/W to deal properly with multibyte characters. 2004-07-20 22:12:21 +00:00
Mike Hearn 850dcad17d Make STARTUPINFO.lpDesktop tests pass on NT. 2004-07-20 01:20:50 +00:00
Shachar Shemesh 8c24ef7845 System default locale in Windows determines the ANSI encoding
(LC_CTYPE on Unix).
2004-07-16 23:44:18 +00:00
Alexandre Julliard c4ec2108b1 Pass the environment for a child process through the server instead of
relying on the Unix environment.
2004-07-16 03:54:35 +00:00
Alexandre Julliard df55257115 Support for large profile values (based on a patch by Robert
Shearman).
Fixed PROFILE_FlushFile to correctly truncate the file before saving
it.
2004-07-16 02:45:00 +00:00
Alexandre Julliard 9f58ee709d Set the system directory in ntdll as soon as we have determined it. 2004-07-15 22:07:21 +00:00
Rein Klazes 932533ca09 In GetVolumeInformationW handle the case when there are no permissions
accessing the device the same way as when no device is found.
2004-07-13 23:33:47 +00:00
Rob Shearman 95dc472698 Add TRACE to ReadFileEx. 2004-07-09 22:24:59 +00:00
Roger Olson 0da4277a62 Added stub for CreateRemoteThread(). 2004-07-07 00:49:34 +00:00
Dmitry Timoshkov 3d36713c2a Initialize also ACP, OEMCP and MACCP in registry on locale change. 2004-07-07 00:47:31 +00:00
Mike Hearn 95012151f9 Correct error code returned by CreateFile when given a non-existent
VxD on NT, add a test case.
2004-07-06 21:31:24 +00:00
Vitaly Lipatov f11ea29268 Return proper codepage value in GetCPInfoEx. 2004-07-04 00:07:42 +00:00
Alexandre Julliard 2130f61310 In GlobalMemoryStatus, also cap the sum of dwAvailPhys and
dwAvailPageFile at 2Gb to avoid a bug in Photoshop 4.
2004-06-24 04:08:33 +00:00
Stefan Leichter de16a00fa5 Fix the GetPrivateProfileIntA tests for the win9x platform. 2004-06-17 23:00:54 +00:00
Alexandre Julliard 9cb122c2ef Added a couple of tests for SetCurrentDirectoryA. 2004-06-17 04:26:59 +00:00
Marcus Meissner 751e991210 Fixed some illegal lvalue casts / increments. 2004-06-16 19:02:11 +00:00
Francois Gouget 497709b9bb Assorted spelling and case fixes. 2004-06-15 20:26:45 +00:00
Dmitry Timoshkov c7d2379916 - Fix erroneous use of LOCALE_SDATE in the place of LOCALE_SSHORTDATE.
- Fix incorrect assumptions about format strings when parsing date
  formats and setting LOCALE_IDATE and LOCALE_ILDATE values.
2004-06-15 17:02:31 +00:00
Alexandre Julliard f435914b88 Added magic number in the FindFirstFile structure to allow more robust
detection of bad handles (with help from Aric Stewart).
2004-06-15 00:55:04 +00:00
Alexandre Julliard cc461324da Store the number of processors in the PEB structure.
More correct support for setting critical section spin counts (based
on a patch by Robert Shearman).
2004-06-15 00:52:03 +00:00
Alexandre Julliard 410db2ada4 Rewrote SetFilePointer to use SetFilePointerEx. 2004-06-14 19:40:44 +00:00
Mike McCormack 6122eeb5ca Implemented SetFilePointerEx. 2004-06-14 17:56:50 +00:00
Eric Pouech 62a860988c Const correctness, pointer cast correctness, removed extraneous ';'. 2004-06-14 17:04:34 +00:00
Eric Pouech b0fd2ade62 - Added ProcessBasicInformation class to ntdll.NtQueryInformationProcess.
- Make use of it in kernel32.
2004-06-14 17:02:00 +00:00
Robert Shearman 6c91e9bff6 Use the same path transformation for WaitNamedPipe and
CreateNamedPipe.
2004-06-14 17:00:21 +00:00
Rein Klazes 136a93e6be Set last error value to ERROR_CALL_NOT_IMPLEMENTED in QueryActCtxW()
to make Photoshop 7.0 work again.
2004-06-14 16:59:19 +00:00
Rein Klazes 667ac7ff5e Fix a crash when launching Unix executables. 2004-06-04 18:01:02 +00:00
Dimitrie O. Paun f28155de3f In Win9x, {Create,Remove}Directory returns ERROR_PATH_NOT_FOUND when
given directories containing '*' or '?'.
2004-06-04 17:59:05 +00:00
Dimitrie O. Paun b395a0c560 Win9x does not convert FIXED to MOVEABLE. It also discards locked
memory.
2004-06-04 17:58:49 +00:00
Robert Reif 55b57417e1 I got the test for failure on NT wrong in my last patch. The function
returns 0 on error and sets last error to ERROR_INVALID_FLAGS.
2004-06-03 23:19:27 +00:00
Alexandre Julliard 10e6f57fab Set the WINEPRELOADRESERVE variable when starting a new process. 2004-06-03 00:25:08 +00:00
Raphael Junqueira ac825d02f4 Semi stubs for GetSystemWow64Directory[AW]. 2004-06-02 21:32:55 +00:00
Dimitrie O. Paun 6e28fe7144 Do not fix the drive letter to 'C', it fails on other people's boxes. 2004-06-02 00:36:36 +00:00
Mike Hearn 3c705bf008 Use TRACE rather than FIXME for check_resource_write. 2004-06-01 19:45:15 +00:00
Robert Reif 4751ff2b44 NT 4.0 doesn't support MAP_EXPAND_LIGATURES so skip test if it returns
ERROR_INVALID_FLAGS.
2004-05-30 03:11:24 +00:00
Alexandre Julliard b1abca8a5d Initial version of the Wine preloader, used to reserve memory
areas at startup. Based on the work of Mike McCormack.
2004-05-28 20:59:22 +00:00
Mike Hearn b4c2968049 Print module name when calling LibMain. 2004-05-28 19:29:20 +00:00
Alexandre Julliard f974c8598e Ensure that we can initialize the DOS memory area correctly even if it
has been pre-reserved already.
2004-05-28 03:45:47 +00:00
Rein Klazes 73ed82c373 Fix the missing tread ID of some snoop return traces. 2004-05-27 20:00:37 +00:00
Alexandre Julliard 7109423ec0 Allocate the shared heap inside the Win9x shared memory area. 2004-05-25 05:13:44 +00:00
Alexandre Julliard 7163000df8 Only create the shared heap when Windows version is Win9x. 2004-05-25 05:08:28 +00:00
Alexandre Julliard 94d74b5fed Added support for managing reserved memory areas in libwine and ntdll.
Try to reserve everything above 0x80000000 on startup.
2004-05-25 01:29:24 +00:00
Dmitry Timoshkov b6dae78bac Avoid a failure under Win9x. 2004-05-25 00:20:50 +00:00
Dmitry Timoshkov d8a59cdfd5 Explicitly specify name of the pipe in the pipe test. 2004-05-24 19:06:52 +00:00
Eric Pouech 09fed7567b Some fixes to module browsing. 2004-05-24 19:06:32 +00:00
Dmitry Timoshkov 8811628cff Add a test for opening an already opened file for writing in a not
compatible sharing mode.
2004-05-22 03:14:17 +00:00
Christian Costa fe0460fd2f Added some traces to kernel file functions. 2004-05-22 03:13:56 +00:00
Alexandre Julliard eb04fd22f8 Converted the memory views list to use the standard functions from
wine/list.h.
Restructured some functions to always return proper NT status codes.
A couple of optimizations.
Added a few tests for file mappings.
2004-05-21 20:58:44 +00:00
Alexandre Julliard 16fe224275 Don't use the Wine debug functions.
Fixed wrong A/W length checks.
2004-05-20 01:19:05 +00:00
Eric Pouech df93f2eeee GetModuleFileName[AW] doesn't terminate the string if the buffer is
too small.
2004-05-19 03:22:55 +00:00
Eric Pouech bde649c356 Added some missing prototypes. 2004-05-18 20:43:29 +00:00
Patrik Stridvall 070db4e5de Fixed some issues found by winapi_check. 2004-05-17 21:08:31 +00:00
Alexandre Julliard 8c29b5f0cc Removed the no longer used SMB file I/O support, we can't do reliable
file I/O in user space anyway.
2004-05-14 22:24:48 +00:00
Alexandre Julliard ad546918b4 Use environment variables instead of config file entries to specify
path, profile, temp, windows and system directories.
Convert existing config file entries to registry values under
HKCU\Environment.
2004-05-14 21:43:18 +00:00
Alexandre Julliard 6ab8827236 Set environment variables from the HKCU\Environment key too.
Moved current directory initialisation to process.c.
Make sure to always pass the correct current directory in the process
parameters for child processes.
2004-05-14 05:03:29 +00:00
Alexandre Julliard 3c3d23063c Fixed some of the GetShortPathName tests to use the short version of
the current directory where needed.
2004-05-14 04:55:28 +00:00
Alexandre Julliard 0d33e5e32d Added proper support for switching file APIs between ANSI and OEM
codepages. Optimized some of the A->W conversions by using the
per-thread Unicode string buffer.
2004-05-13 20:21:25 +00:00
Dimitrie O. Paun f950d97381 Remove the last remaining wine options when running programs.
Keep support for --help, and --version when they are the only options
on the command line.
2004-05-06 23:51:43 +00:00
Alexandre Julliard 0a19a07ecf Set additional environment variables at startup from
HKLM\System\CurrentControlSet\Control\Session Manager\Environment.
2004-05-05 22:05:18 +00:00
Alexandre Julliard ab92cfe0a0 Replaced LPINPUT_RECORD by PINPUT_RECORD. 2004-05-05 05:54:44 +00:00
Francois Gouget cfc3943c5f Make our ascii strings static const.
Remove a couple string variables that were used only once and use the
string literal directly.
2004-05-04 04:13:05 +00:00
Alexandre Julliard db50578ddc Avoid killing threads with TerminateThread, this can cause deadlocks. 2004-05-04 00:43:46 +00:00
Alexandre Julliard a11b2bbafb Updated the auto-generated tests. 2004-05-04 00:41:11 +00:00
Alexandre Julliard 9759474371 Make GetVolumeInformation default to reporting NTFS for non-FAT
filesystems.
2004-05-03 20:22:07 +00:00
Alexandre Julliard 2f8fd10647 OF_CREATE should force write access in OpenFile. 2004-05-03 20:20:54 +00:00
Aric Stewart a56eadc92d Strip leading whitespace when adding a new value and not just when
replacing a current value.
2004-05-03 20:18:43 +00:00
Jakob Eriksson 7874ce53bd Prevent from crashing/hanging in Windows 95 OSR2. 2004-05-03 20:07:24 +00:00
Alexandre Julliard 643617f2ae Moved most remaining file functions to dlls/kernel.
Removed files/file.c and include/file.h.
2004-05-01 05:25:07 +00:00
Alexandre Julliard cba2fcaf61 Fixed last error code check in GetVolumeInformationW, opening a
non-existent device returns ERROR_FILE_NOT_FOUND now.
2004-05-01 03:05:36 +00:00
Alexandre Julliard b592cbbc18 Reimplemented GetFileType and SetEndOfFile using ntdll functions. 2004-05-01 02:44:00 +00:00
Alexandre Julliard d4874d6406 Added a few more info classes in NtQueryInformationFile.
Use NT file names in CreateNamedPipeW.
Reimplemented GetFileInformationByHandle, GetFileSize and GetFileTime
using ntdll functions.
2004-04-30 21:03:09 +00:00
Uwe Bonnes 6ebf8b494c Fixed buffer overflow. 2004-04-30 18:34:34 +00:00
Alexandre Julliard 07ddc60c04 Use RtlDosPathNameToNtPathName_U to build the registry entries for
MOVEFILE_DELAY_UNTIL_REBOOT.
2004-04-30 04:16:23 +00:00
Alexandre Julliard c749433e26 Create the system heap event before the shared mapping to avoid a race
condition.
2004-04-29 20:02:01 +00:00
Alexandre Julliard 553a75e16e Use symlinks in dosdevices/ for the drive devices too.
Store drive types in the registry instead of in the config file.
Added some more code to convert existing config to the new scheme.
2004-04-29 00:27:57 +00:00
Alexandre Julliard c349d7d297 Removed a number of internal file functions that are no longer used. 2004-04-28 03:53:19 +00:00
Jakob Eriksson c49b9485df Fixed tests to succeed on all Windows versions. 2004-04-28 03:52:02 +00:00
Alexandre Julliard 06c46d9aab Reimplemented Get/SetCurrentDirectoryW using the corresponding ntdll
functions.
2004-04-28 01:04:24 +00:00
Alexandre Julliard 74f583ed19 DefineDosDeviceW: implemented the DDD_REMOVE_DEFINITION flag. 2004-04-27 02:43:40 +00:00
Alexandre Julliard 115862146a Removed todo_wine from some tests that succeed now. 2004-04-27 02:27:47 +00:00
Alexandre Julliard ad9b799324 Reimplemented CreateDirectoryW and RemoveDirectoryW using ntdll
functions.
2004-04-27 02:27:09 +00:00
Alexandre Julliard cf67839bc4 Pass the creation disposition to wine_nt_to_unix_file_name so that it
can return the correct error code in all cases.
Changed MoveFileExW to use wine_nt_to_unix_file_name to avoid
computing the NT name twice.
Fixed crash in GetDriveTypeW with a NULL root.
2004-04-27 02:15:52 +00:00
Duane Clark d6c537b43c Add testing of PeekNamedPipe, multiple writes, and message mode. 2004-04-26 23:30:51 +00:00
Alexandre Julliard a2963dacc3 Reimplemented GetLogicalDrives, GetLogicalDriveStrings and
GetDriveType using the new symlink mechanism.
Made GetDriveType attempt to autodetect the type if not specified in
the registry.
2004-04-23 23:31:58 +00:00
Alexandre Julliard 223fcdff77 Moved support for opening DOS device files to ntdll. 2004-04-23 03:22:34 +00:00
Alexandre Julliard 9db147e5e4 Make DIR_nt_to_unix return STATUS_NO_SUCH_FILE instead of
STATUS_OBJECT_NAME_NOT_FOUND to indicate that the last component
didn't exist to allow distinguishing it from legitimate errors.
Export it from ntdll, renamed to wine_nt_to_unix_file_name.
2004-04-23 02:46:18 +00:00
Jakob Eriksson 960104b249 When the Windows directory was something else than C:\WINDOWS
test_GetTempFileNameA() failed.
2004-04-22 23:44:14 +00:00
Alexandre Julliard 31a7a7847e Changed MoveFileEx to use ntdll functions, and moved it to
dlls/kernel/path.c.
2004-04-21 22:27:34 +00:00
Emmanuel Maillard 9731286324 GetSystemInfo support for Darwin. 2004-04-21 22:22:09 +00:00
Alexandre Julliard e4409325d2 Reimplemented GetFileAttributesExW and GetCompressedFileSizeW using
the corresponding ntdll functionality.
2004-04-20 04:06:49 +00:00
Francois Gouget 52c0832161 Make Unicode strings static const. 2004-04-20 01:12:17 +00:00
Alexandre Julliard 174e2a6464 Reimplemented GetFileAttributesW, SetFileAttributesW and SetFileTime
using the corresponding ntdll functionality.
2004-04-20 00:36:29 +00:00
Francois Gouget 6a6c85c6d8 Make Unicode const strings static so they are not copied to the stack
each time we enter the function.
2004-04-19 20:12:14 +00:00
Alexandre Julliard 769a4bb586 Fixed ntdll_wcstoumbs and WideCharToMultiByte to set the 'used' flag
for UTF-8 codepage too. This was causing DIR_nt_to_unix to fail in
some cases (tracked down with help from Alex Pasadyn).
2004-04-19 03:05:07 +00:00
Alexandre Julliard d1051870db Reimplemented GetDiskFreeSpaceW and GetDiskFreeSpaceExW on top of the
corresponding ntdll functions.
2004-04-17 00:30:09 +00:00
Alexandre Julliard a9832be1a7 Make FindFirstFileExW and FindFirstChangeNotificationW use NtOpenFile
directly so that they can take advantage of the FILE_DIRECTORY_FILE
option.
2004-04-17 00:26:54 +00:00
Alexandre Julliard 716878c5b1 Fixed a number of NT status values to be closer to NT behavior. 2004-04-16 23:32:40 +00:00
Alexandre Julliard dfcfc98ed0 RtlSetCurrentDirectory_U: store a handle to the current directory
along with its name.
2004-04-16 05:00:46 +00:00
Alexandre Julliard 186b419e02 Added hack to fetch the current directory from the subsystem tid so
that it is handled correctly in ntdll also for 16-bit tasks.
2004-04-16 00:10:03 +00:00
Alexandre Julliard bd1fdeddaa Update the drive environment strings when changing the current
directory from 16-bit or DOS code.
2004-04-16 00:08:11 +00:00
Alexandre Julliard a45931c6f3 Get rid of the TEB flags, they are no longer used. 2004-04-15 05:04:53 +00:00
Alexandre Julliard fba7149a2d Started implementing support for the SubSystemTib field in the TEB of
16-bit threads. This allows GetModuleFileNameW to avoid calling 16-bit
functions.
2004-04-15 00:04:05 +00:00
Alexandre Julliard 1cb0cf4ced Moved wine_get_unix_file_name implementation to ntdll, and changed it
to return an allocated buffer instead of a fixed size one.
2004-04-14 19:40:53 +00:00
Rein Klazes 0d34501876 Add missing POSIX baud rates to GetCommState and SetCommState. 2004-04-14 19:33:27 +00:00
Alexandre Julliard 1a833442a1 Replaced create_file server requests by a call to NtCreateFile. 2004-04-14 04:31:55 +00:00
Christian Costa 51b37e1abc Fixed typo. 2004-04-13 21:16:26 +00:00
Alexandre Julliard 693a3cd049 Create the devices earlier on during startup. 2004-04-12 22:12:43 +00:00
Rein Klazes cef3983703 Fix GetCommState and SetCommState, so that these functions can be used
to set/clear/read the DTR and RTS lines.
2004-04-12 22:06:52 +00:00
Aric Stewart d1e1bcb9df Empty values need to be preserved as empty values and not assumed to
be nonexistent values.
2004-04-08 19:06:54 +00:00
Alexandre Julliard 743997fa38 Replace the get_file_info request by an fstat() on the client side. 2004-04-08 04:39:59 +00:00
Alexandre Julliard 49b2f6d964 Get rid of the removable media handling in the server. 2004-04-06 23:41:01 +00:00
Lionel Ulmer 91d63c0cb6 Add better NULL checks to lstrcmp[i](A/W) functions. 2004-04-05 20:14:33 +00:00
Alexandre Julliard c4c4da4e07 Reimplemented DeleteFile by using CreateFile with
FILE_FLAG_DELETE_ON_CLOSE. Added/fixed a few tests.
2004-04-03 00:05:24 +00:00
Alexandre Julliard b70e0c8ea6 Removed the FailReadOnly option, this is now the default behavior. 2004-04-02 23:33:39 +00:00
Alexandre Julliard 6b1a93114a Don't try to get the file time if the file wasn't found. 2004-04-02 19:39:37 +00:00
Hans Leidekker 687197d8ba GetConsoleInfo() pseudo stub. 2004-04-02 19:18:51 +00:00
Raphael Junqueira b9f45e7a70 Added some stubs. 2004-04-01 02:12:41 +00:00
Alexandre Julliard 0701b0748c Get the drive root directories from the symlinks in dosdevices/ if
they exist.
Added creation of drive symlinks in the device transition code.
2004-03-30 21:19:00 +00:00
Alexandre Julliard 21e5909ac1 Added support for DOS drives in QueryDosDevice and DefineDosDevice. 2004-03-30 21:00:07 +00:00
Dmitry Timoshkov 96db7b27f8 Add CP932, CP936, CP949 and CP950 to the charset map. 2004-03-30 20:38:24 +00:00
Mike McCormack 1cf04bd70a Fix builtin NE module refcounting of 32bit parent. 2004-03-30 20:37:33 +00:00
Ivan Leo Murray-Smith f1e5356f04 WINE_FILEDESCRIPTION_STR is already defined in wine_common_ver.rc. 2004-03-29 23:05:20 +00:00
Dmitry Timoshkov 9c637f4322 Add Traditional Chinese Big5 and Simplified Chinese GBK mappings. 2004-03-29 22:55:46 +00:00
Mike McCormack 7b8d745a4f Use CreateEventW in preference to CreateEventA. 2004-03-29 20:26:39 +00:00
Alexandre Julliard 74bd1e47ed Check file sharing permissions based on the file inode instead of the
file name.
Added regression test for sharing permissions.
2004-03-27 20:48:42 +00:00
Alexandre Julliard 27a2004430 Fixed GetDriveType16 return value for non-existent drives.
Fixed bug in OpenFile16 introduced by previous change.
2004-03-26 02:29:48 +00:00
Alexandre Julliard dbecf5c911 Store the windows and system directories as long path names.
Moved GetTempPath and GetTempDrive to dlls/kernel.
2004-03-26 01:07:34 +00:00
Alexandre Julliard af16aac743 Reimplemented SearchPathW using ntdll functions. 2004-03-25 23:41:04 +00:00
Alexandre Julliard 5bfafc9d7d Split OpenFile implementation in separate 16- and 32-bit versions, and
changed it to use exported APIs instead of internal functions where
possible.
2004-03-25 05:36:08 +00:00
Alexandre Julliard ed8a17fb1b Changed LoadLibraryEx32W16 to use OpenFile16 to look for the file
instead of DIR_SearchPath.
2004-03-25 05:32:05 +00:00
Alexandre Julliard 9e4ed6460c .spec.c files are no longer used for 32-bit dlls. 2004-03-24 03:36:44 +00:00
Francois Gouget b948778660 Assorted spelling fixes. 2004-03-23 23:20:16 +00:00
Uwe Bonnes bb2724eaba Added tests for time functions. 2004-03-22 21:12:02 +00:00
Alexandre Julliard 1de20ae4af Rewrote handling of COM and LPT devices to use symlinks in
$WINEPREFIX/dosdevices, with suitable defaults if the symlinks are
missing.
Rewrote QueryDosDevice and DefineDosDevice to use the new scheme.
Added temporary code to create the symlinks based on the contents of
the config file.
2004-03-20 02:28:51 +00:00
Ulrich Czekalla eebc3ef949 Fix typo in FormatMessageW. 2004-03-19 19:15:54 +00:00
Ulrich Czekalla cf5775fd09 Convert FormatMessageW to use unicode functions. 2004-03-19 01:52:10 +00:00
Raphael Junqueira 401853557a Remove duplicate code by using Nt* functions for PulseEvent,
ResetEvent and SetEvent.
2004-03-18 01:36:09 +00:00
Richard Cohen 47323d2f1e Added some traces. 2004-03-18 01:34:57 +00:00
Alexandre Julliard 8f032165c4 Reimplemented FindFirstFile/FindNextFile on top of
NtQueryDirectoryFile.
2004-03-17 20:57:09 +00:00
Richard Cohen c1e995d59f Fix relative screen resizing. 2004-03-17 20:48:57 +00:00
Alexandre Julliard cfc5d57122 Retrieve a short name in GetShortPathNameW if the long name contains
spaces.
2004-03-17 01:55:01 +00:00
Raphael Junqueira 919605c8be Added stub for SignalObjectAndWait. 2004-03-17 01:43:47 +00:00
Jukka Heinonen 54a8a25b5e DPMI programs now handle pending events. 2004-03-16 01:15:11 +00:00
Jukka Heinonen 37213d2ba1 Emulating STI instruction now raises an exception if there are pending
events.
2004-03-15 20:09:41 +00:00
Alexandre Julliard fc6fbd01d4 We no longer need to pass --debugmsg -all to winedbg. 2004-03-12 02:05:11 +00:00
Alexandre Julliard 8a37297fe8 Get rid of the WINEOPTIONS variable and instead use WINEDEBUG to
inherit debug options.
Start deprecating the --debugmsg option.
2004-03-11 23:22:29 +00:00
Alexandre Julliard e9871b0b68 The OpenConsoleW inherit argument is a boolean not a
SECURITY_ATTRIBUTES pointer.
2004-03-11 22:46:27 +00:00
Alexandre Julliard a98a37cde5 Do not put the TEMP and TMP variables into the Unix environment, use
WINETEMP and WINETMP instead, like we already do for PATH.
2004-03-11 00:49:01 +00:00
Alexandre Julliard 805f0699eb Remove the WINEDEBUG variable from the environment of the debugger
process.
2004-03-11 00:47:49 +00:00
Alexandre Julliard 62b6bef318 Moved a number of 16-bit functions to file16.c. 2004-03-10 02:20:40 +00:00
Alexandre Julliard 8045ad5c0e Removed some unnecessary definitions from file.h.
Got rid of drive.h.
2004-03-09 23:51:02 +00:00
Alexandre Julliard 954c570ae3 Reimplemented GetVolumeInformation and SetVolumeLabel; volume label
and serial number are now stored in the filesystem instead of in the
config file (partly based on a patch by Eric Pouech).
2004-03-09 01:03:03 +00:00
Dmitry Timoshkov fccd869b3e Do not take into account LC_CTYPE and LC_MESSAGES while detecting a
user locale.
2004-03-09 00:41:00 +00:00
Rein Klazes 2ce96b45a0 Implemented GetDaylightFlag. 2004-03-03 02:17:58 +00:00
Alexandre Julliard 589e115233 We no longer use the .exe.spec.c files. 2004-03-02 21:16:37 +00:00
Patrik Stridvall 8f9b09e947 Fixed some issues found by winapi_check. 2004-02-27 21:32:54 +00:00
Patrik Stridvall 885450a38e Added proper headers for the *ActCtx* functions. 2004-02-27 21:28:34 +00:00
Dimitrie O. Paun 475cdcba8c Remove the win32 debug channel, misc cleanup of debugging code. 2004-02-26 05:30:54 +00:00
Mike Hearn e16426b082 Use time rather than win32 debug channel for kernel time functions. 2004-02-26 05:29:55 +00:00
Alexandre Julliard b65d13605c Fixed callers of GetLocaleInfoW to use the correct buffer size. 2004-02-25 01:35:01 +00:00
Alexandre Julliard f39be9ff48 Return the right error code for non-existent VxD modules. 2004-02-25 01:31:17 +00:00
Alexandre Julliard 1a87dc42e2 Removed some of the DOS device hacks (based on a patch by Eric
Pouech).
2004-02-24 01:15:12 +00:00
Uwe Bonnes 9ffce00940 Pass inherit handle flag properly for CreateNamedPipe. 2004-02-24 01:06:30 +00:00
Alexandre Julliard 6c8147b1d1 Allow the implementation of the VxDCall entry points to be moved to
separate VxD dlls.
Moved VMM code to a separate dll, and removed the registry calls to
get rid of the code duplication with advapi32.
2004-02-21 04:13:56 +00:00
Patrik Stridvall ede82e3055 Fixed some issues found by winapi_check. 2004-02-20 20:19:23 +00:00
Alexandre Julliard 4d984fd9c1 Create real file handles for VxDs instead of using the server device
object hack (partly based on a patch by Eric Pouech).
2004-02-20 05:22:20 +00:00
Alexandre Julliard a21cf075a8 Added support for implementing VxDs as separate dlls and loading them
on demand.
Moved all the DeviceIoControl code into the respective VxD dlls.
2004-02-20 01:18:43 +00:00
Marcus Meissner 0462858eac Support emulation of the privileged mov dr7,eax instruction. 2004-02-17 22:46:06 +00:00
Alexandre Julliard 492ac292b9 Added support for building a dll from a .def file for cases where we
don't want to write a full .spec.
Renamed --spec option to --dll for consistency.
2004-02-17 20:36:16 +00:00
Alexandre Julliard 850ee4ba4e Authors: David Hammerton <david@transgaming.com>, Mike McCormack <mike@codeweavers.com>
Completed PeekNamedPipe implementation.
2004-02-12 20:03:53 +00:00
Alexandre Julliard c1acebc305 Get rid of the flatthunk.h header. 2004-02-12 01:03:55 +00:00
Alexandre Julliard e92b7eed7e Store the kernel32 module handle globally to avoid some
GetModuleHandle calls that can cause deadlocks with the loader
section.
Moved some 16-bit definitions out of kernel_private.h.
2004-02-12 00:00:55 +00:00
Dmitry Timoshkov d40ec6f8a2 Fix a couple of copy/paste errors. 2004-02-10 20:07:56 +00:00
Francois Gouget ad5ff7ceeb Assorted spelling and case fixes. 2004-02-09 22:07:42 +00:00
Dmitry Timoshkov f323d5d31b Add a test case for Virtual* APIs, fix a few bugs discovered by it. 2004-02-09 20:58:16 +00:00
Dmitry Timoshkov 13081af50a Allow compilation with MSVC. 2004-02-09 20:48:12 +00:00
Alexandre Julliard 5fdc57ef5c Added memchrW and memrchrW to the exported Unicode functions. 2004-02-07 02:24:15 +00:00
Alexandre Julliard 31f3221535 Added missing parameter check in SetLocaleInfoA revealed by the
profile code changes.
2004-02-07 02:21:31 +00:00
Robert Shearman e7ad75adf4 - Use Win32 instead of Unix file functions.
- Process files fully in Unicode.
- Add Unicode file detection.
2004-02-07 02:18:51 +00:00
Bill Medland 8d94d1925d Correct GetNumberFormat for negative numbers with e.g. 3 leading
digits.
2004-02-07 01:28:45 +00:00
Alexandre Julliard f19c9e7cdd Get pointer to CreateFileW earlier on during startup.
Make sure we don't crash when loading a dll before the modref for the
main exe has been created.
2004-02-07 01:11:54 +00:00
Francois Gouget afd3c257bd Add trailing '\n's to ok() calls. 2004-02-06 05:24:34 +00:00
Alexandre Julliard 163396b955 Revert the thread exit race fix for now, it doesn't work right on
pthreads.
2004-02-05 17:45:31 +00:00
Alexandre Julliard 4fac95df3d Fixed a couple of race conditions in the wine_pthread routines at
thread startup and exit.
2004-02-05 02:01:35 +00:00
Hans Leidekker ff49652ef6 Improved error reporting.
Add some notification types and a test.
2004-02-05 01:45:58 +00:00
Mike McCormack edf9eb6eea Fix incorrect GetLongPathName usage exposed by Eric's filename
patches.
2004-02-05 01:23:42 +00:00
Jon Griffiths 32376a5227 Add stubs for the Activation Context API (XP+). 2004-01-30 22:57:21 +00:00
Alexandre Julliard 23ff2d51a7 Make sure that there is extra information in the exception record
before accessing it in check_resource_write.
2004-01-28 21:40:01 +00:00
Francois Gouget ce7c3b50ac Add trailing '\n's to ok() calls. 2004-01-27 20:13:03 +00:00
Dmitry Timoshkov 69c047a10c Use case insensitive comparison with pseudo console handle names in
OpenConsole.
2004-01-27 20:11:53 +00:00
Francois Gouget 6b6ed724ae Add missing '\n's to debug traces. 2004-01-27 00:01:43 +00:00
Francois Gouget e18aa3f614 Add trailing '\n's to ok() calls. 2004-01-26 20:23:25 +00:00
Francois Gouget 47e116225a Add trailing '\n's to ok() calls. 2004-01-23 20:50:35 +00:00
Francois Gouget 7494b5b980 Add trailing '\n's to ok() calls.
Check whether _MSC_VER is defined.
2004-01-23 02:11:12 +00:00
Francois Gouget f229c911b5 Add trailing '\n's to ok() calls. 2004-01-23 02:10:33 +00:00
Ge van Geldorp 399901e054 Rename LARGE_INTEGER and ULARGE_INTEGER members "s" to "u" to conform
with PSDK.
2004-01-23 01:51:33 +00:00
Rein Klazes f20ce3b816 Fix MultiByteToWideChar and WideCharToMultiByte when called with code
page CP_SYMBOL.
Remove the symbol font from the code page table, so it is not reported
as a valid/supported/installed code page.
Remove workarounds for the badly behaved MultiByteToWideChar and co.
in a few places.
2004-01-20 22:39:06 +00:00
Francois Gouget 3ada284495 Avoid duplicate '=C:' entries in the child process environment. 2004-01-20 21:51:27 +00:00
Francois Gouget 52bf6c2bb1 Fix a file descriptor leak in create_process(). 2004-01-20 02:11:06 +00:00
Eric Pouech 6c8ee62340 - RtlGetFullPathName_U: rewritten so that the source & destination
buffer can be the same
- GetFullPathName[AW]: now call RtlGetFullPathName_U
- GetShortPathNameW: fixed regression introduced in last patch
2004-01-20 01:40:23 +00:00
Eric Pouech 210e1abb35 Added support for Unix code page in NTDLL. 2004-01-18 22:11:52 +00:00
Francois Gouget 17112eaa4d Assorted spelling fixes. 2004-01-16 21:26:08 +00:00
Francois Gouget 1614f91767 Return HFILE_ERROR instead of -1 in _lread. 2004-01-16 21:23:32 +00:00
Mike Hearn 517248d7bc - Ensure we correctly add a backslash like Windows 98/XP do.
- Generate filenames that look like Windows does (no left digit
  padding).
2004-01-16 04:49:13 +00:00
Vincent Béron 14263ab0c4 Move the implementation of GetDefaultCommConfig from A to W.
Get rid of a W->A cross call at the same time.
2004-01-16 02:21:01 +00:00
Vincent Béron b370abab45 Unicodify some comm functions.
Get rid of some W->A cross calls along the way.
2004-01-16 02:14:50 +00:00
Mike McCormack 41e25208b2 Preserve trailing backslashes in GetFullPathName. 2004-01-15 01:48:44 +00:00
Alexandre Julliard d03300eca3 Define INADDR_NONE if needed (reported by Robert Lunnon). 2004-01-15 00:25:41 +00:00
Eric Pouech 9ccb73a8d7 Reimplemented Get{Short|Long}PathName and updated the regression
tests.
2004-01-15 00:20:46 +00:00
Eric Pouech 768008fa20 - got rid of FILE_Dup2 export from kernel32
- move all dos handle related code into dlls/kernel32
2004-01-14 04:34:20 +00:00
Eric Pouech d6771b1333 Implemented Toolhelp32ReadProcessMemory. 2004-01-12 21:05:53 +00:00
Alexandre Julliard e8283089cb Get rid of no longer needed WINE_PACKED define. 2004-01-09 22:18:49 +00:00
Mike McCormack f7b47f7a5c Regression test for files with zero length. 2004-01-09 00:34:37 +00:00
Alexandre Julliard 3604824262 If supported by the linker, prevent the ELF loader from calling the
dll constructors at load time and call them from the dll entry point
instead.
2004-01-08 03:36:53 +00:00
Mike Hearn 925a2f936e Always print a message for generic stubs. 2004-01-08 03:28:42 +00:00
Alexandre Julliard af542075e7 Don't use constructors for ntdll and kernel32 initialization. 2004-01-07 04:50:11 +00:00
Francois Gouget 640cc3f3e1 Assorted spelling fixes. 2004-01-06 22:08:33 +00:00
Eric Pouech 5bf3a2669b Made wine_get_unix_file_name take a Unicode string pointer. 2004-01-05 23:42:09 +00:00
Alexandre Julliard 6db772cd2e Always try to load the 32-bit owner dll instead of directly loading
the .so file for 16-bit builtins. Make the load order for 16-bit dlls
always match the load order of their 32-bit owner (if any).
2004-01-03 01:18:55 +00:00
Mike Hearn 43cb03be3a Implemented RegFlushKey and NtFlushKey. 2004-01-03 00:38:30 +00:00
Juan Lang ae459e133d Properly L2-encode the NetBIOS scope ID in DeviceIo_VNB, so
ipconfig.exe and winipcfg.exe display it.
2004-01-02 03:55:35 +00:00
Marcus Meissner 492451464a Removed too strict header check to enable execution of handcoded PE
exes.
2003-12-31 00:12:31 +00:00
Hans Leidekker 513670551b MoveFile returns ERROR_ALREADY_EXISTS, not ERROR_FILE_EXISTS. 2003-12-15 20:15:20 +00:00
Hans Leidekker 9f12d22657 [Global|Local]ReAlloc don't fail with size 0.
Fixed typos.
2003-12-15 19:51:17 +00:00
Marcus Meissner 20c338acd2 Explicitly clear vm86 flag in DIOCRegs_2_CONTEXT. 2003-12-15 19:50:22 +00:00
Alexandre Julliard 8543a5db9a Added exception handlers in FindResourceExA/W (based on a patch by
Richard Cohen).
2003-12-13 01:36:14 +00:00
Alexandre Julliard 65ff814617 Return an error in wine_pthread_mutex_unlock if we don't own the
critical section, this should avoid trouble caused by a locking bug
inside Xlib.
2003-12-12 06:19:25 +00:00
Vik Kumar 755762426c Added eucJP charset. 2003-12-12 05:59:54 +00:00
Eric Pouech 1da37e6ac4 Moved all remaining console related code to dlls/kernel directory. 2003-12-12 04:10:52 +00:00
Frank 39a16e8297 Fixed size check in GetCommConfig(). 2003-12-11 04:25:00 +00:00
Hans Leidekker 7499242fd3 Include tests for MoveFile[W|A]. 2003-12-08 22:21:20 +00:00
Hans Leidekker c9d42291e8 Deal with kernels that don't have IsValidLanguageGroup.
Deal with non-implemented FoldString[A|W].
2003-12-08 22:20:44 +00:00
Hans Leidekker 2402f21b41 Check for ERROR_CALL_NOT_IMPLEMENTED error from RemoveDirectoryW. 2003-12-08 22:20:25 +00:00
Dimitrie O. Paun 2eaefbd1a4 Move content of global.h into the appropriate private headers. 2003-12-08 21:58:55 +00:00
Dimitrie O. Paun 4c90416d40 More tests for {Local,Global}{,Re}Alloc() calls.
Cleanup of the Heap*() tests.
2003-12-04 21:52:52 +00:00
Juan Lang 1e4de4c420 Partially implement DeviceIoControl for VDHCP, VNETBIOS, and VNB.
Gets rid of FIXMEs for ipconfig.exe and winipcfg.exe.
2003-12-04 21:05:13 +00:00
Marcus Meissner 8b150d6e5d On i686, report processor level 6. 2003-12-04 01:41:53 +00:00
Alexandre Julliard e9badbfb86 Converted locale setup to Unicode so that we don't use code pages
before they are initialized. Improved error reporting a bit.
2003-12-03 22:32:11 +00:00
Alexandre Julliard ccff458669 Revert change for handling user overrides as numbers and reimplement
it differently.
2003-12-03 20:28:10 +00:00
Alexandre Julliard 04ecca54a1 Use wine_server_release_fd() instead of close() everywhere we use
wine_server_handle_to_fd().
A few minor winsock cleanups.
2003-12-02 04:19:56 +00:00
Jon Griffiths d9339f83ec Fail GetCalendarInfoA for Unicode-only locales. 2003-12-01 22:47:28 +00:00
Jon Griffiths 87ae5ba84e Allow user overridden locale data to be retrieved as numbers. 2003-12-01 22:46:19 +00:00
Alexandre Julliard 402b79a1e8 Porting fixes. 2003-11-27 00:59:36 +00:00
Alexandre Julliard 77b8c0a42f NE_LoadBuiltinModule: return error 21 if the module we loaded was a
32-bit builtin. This should help WinExec16 to do the right thing.
2003-11-26 04:13:53 +00:00
Alexandre Julliard 9e73f55af3 Store the last error code at the TEB offset used by NT instead of the
Win9x one.
2003-11-25 01:53:23 +00:00
Eric Pouech ff0365290b Got rid of DRIVE_OpenDevice, and replaced it with Win32 equivalents. 2003-11-25 01:51:07 +00:00
Alexandre Julliard 16b4411669 Removed MODULE_GetLoadOrderA. 2003-11-25 01:03:04 +00:00
Dimitrie O. Paun c762f5d7af RtlHeapReAllocate() should not allocate memory.
Add small test to make sure it doesn't return.
Don't import ntdll for tests, we need to load it dynamically.
2003-11-25 01:02:02 +00:00
Alexandre Julliard 436eda3071 Removed task.h. 2003-11-25 00:42:26 +00:00
Jon Griffiths eff671ef0d Documentation updates 2003-11-25 00:08:46 +00:00
Alexandre Julliard c6d44be3e5 Create a huge array in bss to reserve the memory area we need for PE
binaries, to prevent exec shield from mapping system libraries there.
2003-11-22 00:08:26 +00:00
Dmitry Timoshkov 33f9dcb1f9 Move CompareString implementation to libwine_unicode, add a bunch of
CompareString tests.
2003-11-22 00:00:53 +00:00
Hans Leidekker af7e65b46d Account for the fact that the temporary directory may expand to a long
name.
2003-11-18 20:39:34 +00:00
Francois Gouget 6768ecb6c1 Scale the buffer sizes with MAX_LISTED_ENV_VAR.
Add a note about the limited buffer size used by the *Profile functions.
Fix a couple of spelling errors.
2003-11-18 19:38:51 +00:00
Alexandre Julliard a7ce2abc9d Removed include/selectors.h. 2003-11-18 00:16:25 +00:00
Alexandre Julliard 746d900b04 Force minimum stack size to 1Mb for Xlib. 2003-11-18 00:14:17 +00:00
Alexandre Julliard 204847e8f6 Use the wine_ldt_* functions directly in winedos instead of calling
SELECTOR_AllocBlock.
2003-11-18 00:06:15 +00:00
Alexandre Julliard d868549754 Moved toolhelp.h to dlls/kernel. 2003-11-17 20:49:45 +00:00
Alexandre Julliard f9be2f3d21 Removed some unnecessary includes. 2003-11-17 20:31:29 +00:00
Alexandre Julliard 464cc10419 Fixed regression in loading of builtin apps from the system dir when
the native doesn't exist.
2003-11-17 20:18:19 +00:00
Alexandre Julliard d3fb25cd0f Moved a few definitions used in only one source file out of module.h. 2003-11-17 20:16:38 +00:00
Alexandre Julliard 8fb98a41e0 Added wine_ldt_is_system() to replace the IS_SELECTOR_SYSTEM macro,
and stop exporting the WINE_LDT_FIRST_ENTRY constant.
2003-11-17 20:12:56 +00:00
Alexandre Julliard e983652363 Moved a number of DOS definitions out of the global headers and into
winedos private files. Removed the msdos.h header.
2003-11-15 00:13:20 +00:00
Alexandre Julliard 4044372596 Moved winedos loading functionality to dlls/kernel/instr.c and get rid
of msdos/dpmi.c.
2003-11-14 21:08:39 +00:00
Jon Griffiths 998cdd650a Fix a crash in GetLocaleInfo() when extra high bits are set. 2003-11-14 20:59:03 +00:00
Eric Pouech 8ca6cadab1 - moved the remaining of int21 calls to dlls/winedos
- disabled drive enabling/disabling as well as disk serial number
  writing (for DLL separation issues)
- added volume management prototypes to include/winbase.h
- started DefineDosDevice (needed by first item in this list)
- removed int21 specific code from dlls/kernel
2003-11-14 04:54:39 +00:00
Alexandre Julliard 55b51eabdf Removed instance.h and callback.h, moving their contents to
kernel_private.h.
2003-11-13 21:04:01 +00:00
Alexandre Julliard 7999469e7d Moved memory/environ.c, memory/virtual.c and misc/cpu.c to
dlls/kernel.
Get rid of the memory/ directory.
2003-11-13 20:58:55 +00:00
Alexandre Julliard daeccba704 Moved the exec_wine_binary function to the wine library, and use it to
exec the wineserver too.
2003-11-11 22:21:29 +00:00
Andreas Mohr 34ed04f1fa Don't include build number in GetVersion() for Win9x versions. 2003-11-11 22:00:14 +00:00
Alexandre Julliard 50fba7ffec Moved the remaining SYSDEPS_* functions to the wine_pthread interface.
Let the pthread library allocate the stack itself.
2003-11-09 01:25:23 +00:00
Francois Gouget ed27249038 Fixed buffer overflow.
Fixed two -Wwrite-strings warnings (but there are more).
2003-11-09 00:30:36 +00:00
Alexandre Julliard b9efd4afcb Moved loader/module.c to dlls/kernel. 2003-11-06 01:09:58 +00:00
Alexandre Julliard 8574412e1e Added wine_pthread_create_thread and wine_pthread_exit_thread to the
pthread support, and removed the corresponding SYSDEPS functions.
Moved stack allocation for new threads to wine_pthread_create_thread
to allow more flexibility.
2003-11-05 23:31:11 +00:00
Alexandre Julliard 063cff8686 Use the signal stack pointer to determine the current thread.
Converted the SIGUSR2 handler to use setup_exception (probably still
not working properly).
2003-11-05 00:52:29 +00:00
Alexandre Julliard 47f62a402a Set %fs and %gs in the register context to their current value when
calling 16-bit code.
2003-11-05 00:46:44 +00:00
Alexandre Julliard 7924f421e9 Allocate the TEB and signal stack separately from the main stack.
Dynamically allocate the initial TEB too so that it is properly
page-aligned.
2003-11-04 04:50:18 +00:00
Mike McCormack 7e1f38034c Stubs for job control. 2003-11-03 22:12:15 +00:00
Dmitry Timoshkov 99e3e6f88b Replace 28591 by 28605 (euro) for appropriate locales. 2003-10-31 03:40:08 +00:00
Alexandre Julliard 7370f60120 Implemented RtlCreateUserThread, and use it to move thread creation to
ntdll.
2003-10-31 00:16:20 +00:00
Mike McCormack 0b28472010 Added a test for mailslots. 2003-10-30 23:24:12 +00:00
Mike McCormack c854f9eba8 Return more sane mailslot error values. 2003-10-30 23:08:23 +00:00
Mike McCormack 6a83224eb3 Fix incorrectly sized buffer. 2003-10-30 23:06:10 +00:00
Alexandre Julliard 59022e5818 Restored emulation of protected instructions in 32-bit code when
running with a Win9x version.
2003-10-28 21:57:24 +00:00
Francois Gouget f405629e8e Weekly spelling fixes. 2003-10-28 21:45:30 +00:00
Alexandre Julliard 54b1d87daf Implemented Add/RemoveVectoredExceptionHandler. 2003-10-28 21:22:50 +00:00
Uwe Bonnes 143f075335 FormatMessageW: Allocate anough space. 2003-10-28 21:09:32 +00:00
Alexandre Julliard 55f2dac059 Fixed typo that broke handling of .com and .bat files. 2003-10-28 00:31:52 +00:00