Commit Graph

67 Commits

Author SHA1 Message Date
Alexandre Julliard 088a787a2c makefiles: Make -mno-cygwin the default.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-09-20 22:45:48 +02:00
Alexandre Julliard e6a41c2669 userenv: Use --prefer-native instead of DLL_WINE_PREATTACH.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-02-25 08:59:05 +01:00
Michael Stefaniuc d7e43c9e31 userenv: Use wide-char string literals.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-11-17 09:55:33 +01:00
Francois Gouget 8ec8a56a24 userenv/tests: Windows 10 1809 changed GetUserProfileDirectory().
It is no longer possible to get the required buffer size in the ANSI
version, and the Unicode one requires a NULL buffer.

Signed-off-by: Francois Gouget <fgouget@free.fr>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-22 23:01:13 +01:00
Zebediah Figura b8cf786412 userenv: Add a set_env_var() helper.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-06 09:32:36 +01:00
Zebediah Figura 99dc0e0eeb userenv: Set the ProgramFiles(x86) and CommonProgramFiles(x86) environment variables.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-06 09:32:34 +01:00
Zebediah Figura 6a079faf70 userenv: Use wide character string literals.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-06 09:32:32 +01:00
Zebediah Figura c31049b885 userenv: Fix a copy-paste error.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-06 09:32:28 +01:00
Alexandre Julliard 048588ed39 userenv: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-06-25 08:33:34 +02:00
Alexandre Julliard 3c53e06b7b userenv: Use strncmpiW instead of memicmpW for strings without embedded nulls.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-05-08 08:35:15 -05:00
Hans Leidekker fd044802b9 userenv: Fix setting the ALLUSERSPROFILE environment variable.
Since 27edd4e35c ALLUSERSPROFILE is set to
C:\\users\\C:\\users\\Public. This is because the expanded registry
value of "Public" is appended to "ProfilesDirectory" and "Public" expands
to a full path. AllUsersProfile, used before this commit, expanded to just
"Public".

Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-05 17:02:28 +02:00
Dmitry Timoshkov 27edd4e35c shell32: Use Public instead of AllUsersProfile in the registry.
This matches what recent Windows versions set in the process environment.

Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-23 12:39:59 +02:00
Michael Stefaniuc 53a3c77c98 userenv: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-08-14 10:16:02 +02:00
Michael Stefaniuc 3f3083d7f3 userenv/tests: Use the available ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-31 09:24:56 +02:00
Bruno Jesus 55f8233390 userenv/tests: Fix a memory leak (valgrind). 2014-06-11 16:10:59 +02:00
Alexandre Julliard 99ef0d6ff0 makefiles: Get rid of the MAKE_TEST_RULES variable. 2014-01-02 12:13:16 +01:00
Alexandre Julliard 5e7416e5c8 makefiles: Get rid of the MAKE_DLL_RULES variable. 2014-01-02 12:08:18 +01:00
Jacek Caban 1c721e7164 userenv: Added a few more stubs. 2013-07-24 11:11:51 -05:00
Alexandre Julliard f02cdd877f Remove empty DLL_PROCESS_DETACH case statements. 2013-04-15 16:45:35 +02:00
Francois Gouget 48515313fd userenv: Add a missing include directive to userenv.h. 2011-12-13 18:59:04 +01:00
Piotr Caban f0d8c3383e userenv: Improved CreateEnvironmentBlock implementation. 2011-11-15 19:37:33 +01:00
Hans Leidekker 8c7d6b1c94 userenv: Initialize a variable (valgrind). 2011-03-07 13:16:51 +01:00
Joris Huizer fa7c08820b userenv: GetUserProfileDirectoryW: Plug memory leak. 2011-03-03 17:47:15 +01:00
Hans Leidekker c4d8f7400b userenv: Implement and test GetUserProfileDirectory. 2011-03-02 12:50:59 +01:00
Hans Leidekker 1c6ea02ffa userenv: GetProfilesDirectoryW accepts a NULL buffer. 2011-03-02 12:50:59 +01:00
Austin English 04b5763923 userenv/tests: Remove win9x hacks. 2011-02-25 11:06:53 +01:00
Austin English 84972be4aa userenv: Add a stub for GetDefaultUserProfileDirectoryA/W. 2010-09-22 12:44:02 +02:00
Alexandre Julliard 81b8ee863e makefiles: Add a standard header for all makefiles to replace the common variable initializations. 2010-09-19 12:36:48 +02:00
Juan Lang e5394c6ce5 userenv: Implement GetProfilesDirectory. 2010-08-27 12:28:04 +02:00
Juan Lang 4e19b7ae35 userenv/tests: Add tests for GetProfilesDirectory. 2010-08-27 12:26:50 +02:00
Alexandre Julliard b86d515ed6 dlls: Remove explicit imports of kernel32 and ntdll. 2010-07-21 17:38:36 +02:00
Alexandre Julliard bef5645eb1 makefiles: Remove the no longer needed explicit separators for dependencies. 2010-03-16 13:28:19 +01:00
Andrey Turkin baf86a13f3 userenv: Implement stubbed userenv.dll.138. 2010-03-02 14:29:29 +01:00
Alexandre Julliard 6164ce2d82 makefiles: Use the standard C_SRCS variable as the list of test files.
This enables it to be auto-updated by make_makefiles.
2010-02-22 10:47:11 +01:00
Lei Zhang a96db3c35c userenv: Add a small test for DestroyEnvironmentBlock. 2010-02-03 11:00:50 +01:00
Maarten Lankhorst 83486aaf66 userenv: Implement DestroyEnvironmentBlock. 2010-02-02 11:47:20 +01:00
Piotr Caban 6981816388 userenv: Added GetAllUsersProfileDirectory[AW] stubs. 2010-02-01 12:10:44 +01:00
Andrew Nguyen c4ffbade86 wine.inf: Add CommonProgramFiles system environment variable. 2010-01-04 11:41:22 +01:00
Hans Leidekker 952cd1d36a userenv/tests: Fix some memory leaks.
Found by Valgrind.
2009-12-07 14:18:29 +01:00
Alexandre Julliard c8c839a9bc userenv/tests: Don't depend on the Ascii length to find the next env variable. 2009-08-19 19:50:06 +02:00
Alexandre Julliard b374a72d51 userenv/tests: Don't use string debugging functions for non-debug usage. 2009-08-19 12:09:23 +02:00
Austin English 4814d67ed5 userenv: Add a stub for LoadUserProfileW. 2009-08-05 15:30:16 +02:00
Francois Gouget 4d8cf750ff userenv/tests: Replace realloc() with HeapReAlloc(). 2009-05-19 12:01:13 +02:00
Alexandre Julliard 950ad4efdb userenv/tests: Don't check for TEMP and TMP variables on NT4. 2009-01-25 17:30:01 +01:00
Francois Gouget 8dbc8d3b9d userenv/tests: Make userenv_dbgstr_w() static. 2008-12-12 11:44:36 +01:00
Paul Vriens 86a0b2915a userenv/tests: Skip a few tests on NT4. 2008-10-22 13:54:53 +02:00
Paul Vriens 8b01f4ae53 userenv/tests: Rewrite the test to cope with multiple blocks of tests. 2008-10-22 13:54:53 +02:00
Paul Vriens a397448549 userenv/tests: Don't crash on NT4. 2008-09-22 12:17:18 +02:00
Dan Kegel 9d54392ca9 userenv/tests: Fix buffer overrun. 2008-06-04 12:50:36 +02:00
Alexandre Julliard 6477a1c1bf kernel32: Set the USERPROFILE and ALLUSERSPROFILE environment variables based on the ProfileList registry keys. 2008-05-06 16:07:13 +02:00