Skip to content

Commit 18c20b8

Browse files
committed
Remove unused PhCreateProcessLxss paramater
1 parent e7b2f34 commit 18c20b8

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

phlib/wslsup.c

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,7 @@ BOOLEAN PhInitializeLxssImageVersionInfo(
183183
lxssDistroName->Buffer,
184184
lxssCommandLine->Buffer,
185185
NULL,
186-
&result,
187-
NULL
186+
&result
188187
);
189188

190189
if (status == 0)
@@ -201,8 +200,7 @@ BOOLEAN PhInitializeLxssImageVersionInfo(
201200
lxssDistroName->Buffer,
202201
lxssCommandLine->Buffer,
203202
NULL,
204-
&result,
205-
NULL
203+
&result
206204
);
207205

208206
if (status != 0)
@@ -244,8 +242,7 @@ BOOLEAN PhInitializeLxssImageVersionInfo(
244242
lxssDistroName->Buffer,
245243
lxssCommandLine->Buffer,
246244
NULL,
247-
&result,
248-
NULL
245+
&result
249246
);
250247

251248
if (status != 0)
@@ -269,7 +266,7 @@ BOOLEAN PhInitializeLxssImageVersionInfo(
269266
PH_STRINGREF descriptionPart;
270267
PH_STRINGREF versionPart;
271268

272-
remainingPart = result->sr;
269+
remainingPart = PhGetStringRef(result);
273270
PhSplitStringRefAtChar(&remainingPart, '|', &versionPart, &remainingPart);
274271
PhSplitStringRefAtChar(&remainingPart, '|', &companyPart, &remainingPart);
275272
PhSplitStringRefAtChar(&remainingPart, '|', &descriptionPart, &remainingPart);
@@ -296,8 +293,7 @@ ULONG PhCreateProcessLxss(
296293
_In_ PWSTR LxssDistribution,
297294
_In_ PWSTR LxssCommandLine,
298295
_In_opt_ PWSTR LxssCurrentDirectory,
299-
_Out_ PPH_STRING *Result,
300-
_Out_opt_ PHANDLE ProcessHandle
296+
_Out_ PPH_STRING *Result
301297
)
302298
{
303299
NTSTATUS status;

0 commit comments

Comments
 (0)