1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

services: Avoid calling RtlInitUnicodeString on a static constant.

This commit is contained in:
Alex Henrie 2023-02-09 23:04:17 -07:00 committed by Alexandre Julliard
parent 8675cad31c
commit dccc6a60b6

View file

@ -1074,9 +1074,9 @@ found:
CreateEnvironmentBlock(&environment, token, FALSE);
if (GetEnvironmentVariableW( L"WINEBOOTSTRAPMODE", val, ARRAY_SIZE(val) ))
{
UNICODE_STRING name, value;
UNICODE_STRING name = RTL_CONSTANT_STRING(L"WINEBOOTSTRAPMODE");
UNICODE_STRING value;
RtlInitUnicodeString( &name, L"WINEBOOTSTRAPMODE" );
RtlInitUnicodeString( &value, val );
RtlSetEnvironmentVariable( (WCHAR **)&environment, &name, &value );
}