ntdll: Avoid using memrchrW().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7a974814cd
commit
6fc9088789
|
@ -3379,8 +3379,8 @@ NTSTATUS WINAPI LdrQueryImageFileExecutionOptions( const UNICODE_STRING *key, LP
|
||||||
attr.SecurityDescriptor = NULL;
|
attr.SecurityDescriptor = NULL;
|
||||||
attr.SecurityQualityOfService = NULL;
|
attr.SecurityQualityOfService = NULL;
|
||||||
|
|
||||||
if ((p = memrchrW( key->Buffer, '\\', key->Length / sizeof(WCHAR) ))) p++;
|
p = key->Buffer + key->Length / sizeof(WCHAR);
|
||||||
else p = key->Buffer;
|
while (p > key->Buffer && p[-1] != '\\') p--;
|
||||||
len = key->Length - (p - key->Buffer) * sizeof(WCHAR);
|
len = key->Length - (p - key->Buffer) * sizeof(WCHAR);
|
||||||
name_str.Buffer = path;
|
name_str.Buffer = path;
|
||||||
name_str.Length = sizeof(optionsW) + len;
|
name_str.Length = sizeof(optionsW) + len;
|
||||||
|
|
Loading…
Reference in New Issue