Fix an obvious typo in get_res_name. Spotted by Mike McCormack.
This commit is contained in:
parent
b46d8235c1
commit
0f9eeb6f64
|
@ -52,7 +52,7 @@ static NTSTATUS get_res_nameA( LPCSTR name, UNICODE_STRING *str )
|
||||||
if (name[0] == '#')
|
if (name[0] == '#')
|
||||||
{
|
{
|
||||||
ULONG value;
|
ULONG value;
|
||||||
if (RtlCharToInteger( name, 10, &value ) != STATUS_SUCCESS || HIWORD(value))
|
if (RtlCharToInteger( name + 1, 10, &value ) != STATUS_SUCCESS || HIWORD(value))
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
str->Buffer = (LPWSTR)value;
|
str->Buffer = (LPWSTR)value;
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
|
@ -73,7 +73,7 @@ static NTSTATUS get_res_nameW( LPCWSTR name, UNICODE_STRING *str )
|
||||||
if (name[0] == '#')
|
if (name[0] == '#')
|
||||||
{
|
{
|
||||||
ULONG value;
|
ULONG value;
|
||||||
RtlInitUnicodeString( str, name );
|
RtlInitUnicodeString( str, name + 1 );
|
||||||
if (RtlUnicodeStringToInteger( str, 10, &value ) != STATUS_SUCCESS || HIWORD(value))
|
if (RtlUnicodeStringToInteger( str, 10, &value ) != STATUS_SUCCESS || HIWORD(value))
|
||||||
return STATUS_INVALID_PARAMETER;
|
return STATUS_INVALID_PARAMETER;
|
||||||
str->Buffer = (LPWSTR)value;
|
str->Buffer = (LPWSTR)value;
|
||||||
|
|
Loading…
Reference in New Issue