mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-18 08:56:16 +00:00
wordpad: Use return value of LoadStringW() instead of calling lstrlenW().
Signed-off-by: Carlo Bramini <carlo_bramini@users.sourceforge.net> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
e141d4a1c6
commit
0f4891ff53
|
@ -107,20 +107,16 @@ static void DoLoadStrings(void)
|
||||||
|
|
||||||
HINSTANCE hInstance = GetModuleHandleW(0);
|
HINSTANCE hInstance = GetModuleHandleW(0);
|
||||||
|
|
||||||
LoadStringW(hInstance, STRING_RICHTEXT_FILES_RTF, p, MAX_STRING_LEN);
|
p += 1 + LoadStringW(hInstance, STRING_RICHTEXT_FILES_RTF, p, MAX_STRING_LEN);
|
||||||
p += lstrlenW(p) + 1;
|
|
||||||
lstrcpyW(p, files_rtf);
|
lstrcpyW(p, files_rtf);
|
||||||
p += lstrlenW(p) + 1;
|
p += lstrlenW(p) + 1;
|
||||||
LoadStringW(hInstance, STRING_TEXT_FILES_TXT, p, MAX_STRING_LEN);
|
p += 1 + LoadStringW(hInstance, STRING_TEXT_FILES_TXT, p, MAX_STRING_LEN);
|
||||||
p += lstrlenW(p) + 1;
|
|
||||||
lstrcpyW(p, files_txt);
|
lstrcpyW(p, files_txt);
|
||||||
p += lstrlenW(p) + 1;
|
p += lstrlenW(p) + 1;
|
||||||
LoadStringW(hInstance, STRING_TEXT_FILES_UNICODE_TXT, p, MAX_STRING_LEN);
|
p += 1 + LoadStringW(hInstance, STRING_TEXT_FILES_UNICODE_TXT, p, MAX_STRING_LEN);
|
||||||
p += lstrlenW(p) + 1;
|
|
||||||
lstrcpyW(p, files_txt);
|
lstrcpyW(p, files_txt);
|
||||||
p += lstrlenW(p) + 1;
|
p += lstrlenW(p) + 1;
|
||||||
LoadStringW(hInstance, STRING_ALL_FILES, p, MAX_STRING_LEN);
|
p += 1 + LoadStringW(hInstance, STRING_ALL_FILES, p, MAX_STRING_LEN);
|
||||||
p += lstrlenW(p) + 1;
|
|
||||||
lstrcpyW(p, files_all);
|
lstrcpyW(p, files_all);
|
||||||
p += lstrlenW(p) + 1;
|
p += lstrlenW(p) + 1;
|
||||||
*p = '\0';
|
*p = '\0';
|
||||||
|
|
Loading…
Reference in a new issue