Commit Graph

34 Commits

Author SHA1 Message Date
Jonathan Ernst 360a3f9142 Update the address of the Free Software Foundation. 2006-05-23 14:11:13 +02:00
Mike McCormack 7bffb5e42d kernel32: [Read/Write]PrivateProfile functions accept a NULL filename. 2006-04-03 12:15:29 +02:00
Eric Pouech e0cffe355f Fix a couple of bugs spotted by valgrind. 2006-01-27 16:18:05 +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
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
Mike McCormack 4e700d36e0 Make sure not to strcpy from a NULL default value pointer. 2005-10-11 19:27:03 +00:00
Alexandre Julliard 20a1a203c6 Use a more portable scheme for storing the name of a critical
section.
2005-09-09 10:19:44 +00:00
Richard Cohen 8cbf08b5d5 - Fix regression in GetPrivateProfileString16 for key=NULL.
- Check return values in Profile tests.
2005-08-10 12:59:38 +00:00
Alexandre Julliard 57cd2df559 Fixed white space handling on the last line (reported by Jeremy
White).
Avoid parsing the same line twice when it contains trailing spaces.
2005-08-02 10:00:32 +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
Mike McCormack 0f36d124a2 Fix warnings from -Wmissing-declarations. 2005-06-14 11:42:34 +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
Francois Gouget f5c9da6860 Assorted spelling fixes. 2005-05-06 15:44:31 +00:00
Peter Berg Larsen e732fc023d Janitorial: Get rid of strncpy/strncpyW. 2005-03-28 14:17:51 +00:00
Huw Davies 00ced5e3af Fix regression in GetPrivateProfileSection for lines without an '='.
Add test.
2005-03-04 10:46:55 +00:00
Rein Klazes 4c5832ba65 When enumerating keys using Get(Private)ProfileString do not include
lines without an '=' character. Added a test that shows the behavior.
2005-03-02 10:08:18 +00:00
Alexandre Julliard 14f9b844ce Fixed profile cache flushing when no filename is specified (reported
by Mike Hearn).
2005-02-10 21:22:31 +00:00
Robert Shearman 8a46494ea9 - Don't use an invalid file handle. In this case invalid file handle
means that the file hasn't yet been created.
- Only call GetFileTime when we are being logged for a tiny
  performance improvement.
- Reindent to 4 spaces.
2005-01-11 10:43:24 +00:00
Michael Stefaniuc 15a308a9d7 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2005-01-03 14:56:42 +00:00
Michael Stefaniuc 5ad7d858e0 Do not check for non NULL pointer before HeapFree'ing it. It's
redundant.
2004-12-23 17:06:43 +00:00
Dmitry Timoshkov 5a9ba7cf2a Perform case insensitive comparison with cached ini file name. 2004-12-22 14:55:44 +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
Eric Pouech 62a860988c Const correctness, pointer cast correctness, removed extraneous ';'. 2004-06-14 17:04:34 +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
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
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 6b1a93114a Don't try to get the file time if the file wasn't found. 2004-04-02 19:39:37 +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 5fdc57ef5c Added memchrW and memrchrW to the exported Unicode functions. 2004-02-07 02:24:15 +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
Alexandre Julliard f9be2f3d21 Removed some unnecessary includes. 2003-11-17 20:31:29 +00:00
Alexandre Julliard 49a0224fb3 Get rid of the drive codepages and use CP_UNIXCP instead. 2003-10-15 03:47:53 +00:00
Alexandre Julliard e37c6e18d0 Fixed header dependencies to be fully compatible with the Windows
headers (with help from Dimitrie O. Paun).
2003-09-05 23:08:26 +00:00
Alexandre Julliard 94463d7bbe Moved profile functions to dlls/kernel. 2003-08-26 02:54:37 +00:00