Commit Graph

986 Commits

Author SHA1 Message Date
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