Commit dccc6a60 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

services: Avoid calling RtlInitUnicodeString on a static constant.

parent 8675cad3
......@@ -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 );
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment