Allow empty rail strings.

This commit is contained in:
Armin Novak 2018-09-25 09:54:47 +02:00
parent ba69925b8d
commit 93846c801a
1 changed files with 1 additions and 1 deletions

View File

@ -60,7 +60,7 @@ BOOL rail_string_to_unicode_string(const char* string, RAIL_UNICODE_STRING* unic
unicode_string->length = 0;
if (!string || strlen(string) < 1)
return FALSE;
return TRUE;
length = ConvertToUnicode(CP_UTF8, 0, string, -1, &buffer, 0) * 2;