Claudio Fontana
be678a52e1
kernel32: Allow empty profile section and key name strings.
...
Consider "" a normal section, and fix calculation for zero
length section name string and key name string.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=8036
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=18099
Signed-off-by: Claudio Fontana <claudio.fontana@gmail.com>
Signed-off-by: Vijay Kiran Kamuju <infyquest@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-03-28 19:12:28 +01:00
Sven Baars
b012281cc9
kernel32/tests: Fix a memory leak (Valgrind).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-01-23 18:23:42 +01:00
Michael Stefaniuc
80be3a460b
kernel32/tests: Use the available ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-06-27 22:02:48 +02:00
Zebediah Figura
43c5fe11cb
kernel32/tests: Fix permission check.
...
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-12 18:00:21 +01:00
Zhiyi Zhang
aa16304c19
kernel32: Fix handling lines with only values in GetPrivateProfileSection.
...
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-06 09:15:29 -06:00
Paul Graham
39899fd11a
kernel32: Fix failure reporting in WritePrivateProfile* and add tests.
...
Conformance tests based on work by Fabian Maurer, with some adaptations.
Signed-off-by: Paul Graham <development@omega-software.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-01 22:24:58 +01:00
Francois Gouget
f1087d865b
kernel32/tests: Skip some profile tests if not allowed to create files in the Windows directory.
2014-03-04 17:06:07 +01:00
Frédéric Delanoy
7215eb2497
kernel32/tests: Unconstify a character string.
2014-01-10 12:04:10 +01:00
Frédéric Delanoy
5f6b0d0027
kernel32/tests: Constify some character strings.
2013-12-24 11:22:52 +01:00
Dmitry Timoshkov
f776e879fd
kernel32/tests: Fix profile tests compilation with __WINESRC__ defined.
2013-10-22 16:37:39 +02:00
Bruno Jesus
40f0145d00
kernel32: Avoid ini cache if file does not exist anymore.
2012-03-28 11:38:35 +02:00
Bruno Jesus
a4e3268886
kernel32/tests: Show that ini cache must not be used if file no longer exists.
2012-03-28 11:38:31 +02:00
André Hentschel
0ba0f505af
kernel32/tests: Don't test function directly when reporting GetLastError().
2011-09-26 18:16:03 +02:00
Austin English
19f58e889f
kernel32/tests: Make sure return values are used (LLVM/Clang).
2011-07-26 10:22:47 +02:00
Alexandre Julliard
362ecd06f6
kernel32: Fix handling of overflows in GetPrivateProfileSectionA.
2009-10-08 16:28:17 +02:00
Dmitry Kislyuk
c81d1e78f7
kernel32/tests: Pass test on error code returned by Windows 7.
2009-10-05 13:46:01 +02:00
Stefan Leichter
88a019956e
kernel32: Test GetPrivateProfileString with empty string as key and section.
2009-08-21 13:49:45 +02:00
Paul Vriens
eca3d74877
kernel32/tests: Skip WritePrivateProfileString tests on Win9x/WinME.
2009-06-04 12:11:56 +02:00
Dmitry Kislyuk
8d9434eefe
kernel32/tests: Show that NULLs need to be preserved in data before first section.
2009-05-07 15:16:15 +02:00
Dmitry Kislyuk
182e75140e
kernel32: Added GetPrivateProfileSection and GetPrivateProfileString tests for empty section scenario.
2009-04-20 17:40:33 +02:00
Paul Vriens
9a10234ef2
kernel32: Fix creation of empty sections in ini files.
2009-04-02 16:28:30 +02:00
Paul Vriens
a61e117781
kernel32/tests: Fix some test failures on Win9x and WinME.
2009-03-30 13:58:12 +02:00
Paul Vriens
7eca8022df
kernel32/tests: Fix some test failures on NT4 and below.
2009-03-27 15:51:25 +01:00
Paul Vriens
9e82e50eb3
kernel32/tests: Fix crash on NT4 and higher.
2009-03-26 16:21:59 +01:00
James Hawkins
87847b47cd
kernel32: Don't try to load an empty initialization file.
2009-03-24 11:37:01 +01:00
James Hawkins
7c3529f1cc
kernel32: Handle writing empty sections and keys in WritePrivateProfileString.
2009-03-24 11:36:52 +01:00
James Hawkins
f1308f9b40
kernel32: Set last error to ERROR_FILE_NOT_FOUND if lpAppName is NULL.
2009-03-24 11:36:03 +01:00
James Hawkins
287b07fddc
kernel32: Add tests for WritePrivateProfileString.
2009-03-24 11:35:52 +01:00
Paul Vriens
047a43f084
kernel32/tests: Fix remaining failures on Win9x and WinME.
2009-02-02 12:12:24 +01:00
Paul Vriens
a8c24d343c
kernel32/tests: Fix some test failures on Win9x and WinME.
2009-02-02 12:12:16 +01:00
Paul Vriens
2bac661c2f
kernel32/tests: Fix some tests on Win9x and WinME (GetPrivateProfileSection).
2009-02-02 12:12:09 +01:00
Paul Vriens
b7b59236cf
kernel32/tests: Fill the buffer and check for double-NULL to show a bug in Wine.
2009-02-02 12:12:03 +01:00
Paul Vriens
8236f362ff
kernel32/tests: Fix some test failures on Win9x and WinME.
2009-01-30 11:43:21 +01:00
Paul Vriens
a21ea16f90
kernel32/tests: Skip some tests on Win9x and WinME.
2009-01-30 11:43:16 +01:00
Paul Vriens
407f0d9f56
kernel32/tests: Fix some test failures on Win9x and WinME (GetPrivateProfileString).
2009-01-29 12:19:35 +01:00
Paul Vriens
48f035bd4c
kernel32/tests: Fix some test failures on Win9x and WinME (GetPrivateProfileSectionNames).
2009-01-29 12:19:29 +01:00
Paul Vriens
7099cdebd5
kernel32/tests: Fix some test failures on several platforms.
2009-01-29 12:19:19 +01:00
Paul Vriens
cca75cc147
kernel32/tests: Don't crash when run as a normal user.
2009-01-28 12:32:22 +01:00
Paul Vriens
dda0fe451d
kernel32/tests: Fill the buffer to show a bug in Wine.
2009-01-28 12:32:05 +01:00
Alasdair Sinclair
116886cf0a
kernel32/tests: Fix missing void in empty parameter list.
2009-01-28 12:10:55 +01:00
Alexandre Julliard
181e4f08b6
kernel32/tests: Fix some profile test failures on NT4.
2008-11-10 11:09:02 +01:00
Erik Inge Bolsø
e8754b8ea6
kernel32: Fix PROFILE_Load to handle mac line endings.
2008-09-23 13:07:40 +02:00
Dmitry Timoshkov
4d672ba090
kernel32: Use a kernel error code.
2008-09-11 11:46:02 +02:00
Michael Karcher
34aa6b7002
kernel32: Fix profile cache logic and don't cache new files.
2008-08-20 14:56:15 +02:00
Michael Karcher
c2a26cee16
kernel32/tests: Fix profile crash on NT and up.
2008-08-19 15:19:29 +02:00
Michael Karcher
33ca67dcab
kernel32: Fix profile sharing mode.
...
Based on a patch from Austin English.
2008-08-18 17:15:56 +02:00
Francois Gouget
a793888a28
Assorted spelling fixes.
2008-08-04 13:04:48 +02:00
Detlef Riekenberg
5437f4ce9c
kernel32/tests: Fix a crash on win9x (lpDefault is truncated inplace).
2008-07-28 11:35:38 +02:00
James Hawkins
3fb196fb57
kernel32: Return the default value if lpKeyName is empty.
2008-07-17 11:38:19 +02:00
James Hawkins
7e9df53f38
kernel32: Fix removing trailing spaces from lpDefault for GetPrivateProfileString.
2008-07-17 11:37:55 +02:00