services: Avoid calling RtlInitUnicodeString on a static constant.
This commit is contained in:
parent
8675cad31c
commit
dccc6a60b6
1 changed files with 2 additions and 2 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue