mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-01 11:08:45 +00:00
Fix an obvious typo in get_res_name. Spotted by Mike McCormack.
This commit is contained in:
parent
b46d8235c1
commit
0f9eeb6f64
1 changed files with 2 additions and 2 deletions
|
@ -52,7 +52,7 @@ static NTSTATUS get_res_nameA( LPCSTR name, UNICODE_STRING *str )
|
|||
if (name[0] == '#')
|
||||
{
|
||||
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;
|
||||
str->Buffer = (LPWSTR)value;
|
||||
return STATUS_SUCCESS;
|
||||
|
@ -73,7 +73,7 @@ static NTSTATUS get_res_nameW( LPCWSTR name, UNICODE_STRING *str )
|
|||
if (name[0] == '#')
|
||||
{
|
||||
ULONG value;
|
||||
RtlInitUnicodeString( str, name );
|
||||
RtlInitUnicodeString( str, name + 1 );
|
||||
if (RtlUnicodeStringToInteger( str, 10, &value ) != STATUS_SUCCESS || HIWORD(value))
|
||||
return STATUS_INVALID_PARAMETER;
|
||||
str->Buffer = (LPWSTR)value;
|
||||
|
|
Loading…
Reference in a new issue