mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-19 01:17:47 +00:00
dbghelp: Convert of couple more of string literals.
Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
This commit is contained in:
parent
d1eb78a75d
commit
69108af654
|
@ -741,17 +741,14 @@ BOOL search_dll_path(const struct process *process, const WCHAR *name, BOOL (*ma
|
|||
|
||||
if ((env = process_getenv(process, L"WINEBUILDDIR")))
|
||||
{
|
||||
const WCHAR dllsW[] = { '\\','d','l','l','s','\\' };
|
||||
const WCHAR programsW[] = { '\\','p','r','o','g','r','a','m','s','\\' };
|
||||
|
||||
len = lstrlenW(env);
|
||||
if (!(buf = heap_alloc((len + ARRAY_SIZE(programsW) + machine_dir_len +
|
||||
if (!(buf = heap_alloc((len + wcslen(L"\\programs\\") + machine_dir_len +
|
||||
2 * lstrlenW(name) + 1) * sizeof(WCHAR)))) return FALSE;
|
||||
wcscpy(buf, env);
|
||||
end = buf + len;
|
||||
|
||||
memcpy(end, dllsW, sizeof(dllsW));
|
||||
lstrcpyW(end + ARRAY_SIZE(dllsW), name);
|
||||
wcscpy(end, L"\\dlls\\");
|
||||
wcscat(end, name);
|
||||
if ((p = wcsrchr(end, '.')) && !lstrcmpW(p, L".so")) *p = 0;
|
||||
if ((p = wcsrchr(end, '.')) && !lstrcmpW(p, L".dll")) *p = 0;
|
||||
p = end + lstrlenW(end);
|
||||
|
@ -764,9 +761,9 @@ BOOL search_dll_path(const struct process *process, const WCHAR *name, BOOL (*ma
|
|||
lstrcpyW(p, name);
|
||||
if (try_match_file(buf, match, param)) goto found;
|
||||
|
||||
memcpy(end, programsW, sizeof(programsW));
|
||||
end += ARRAY_SIZE(programsW);
|
||||
lstrcpyW(end, name);
|
||||
wcscpy(end, L"\\programs\\");
|
||||
end += wcslen(end);
|
||||
wcscpy(end, name);
|
||||
if ((p = wcsrchr(end, '.')) && !lstrcmpW(p, L".so")) *p = 0;
|
||||
if ((p = wcsrchr(end, '.')) && !lstrcmpW(p, L".exe")) *p = 0;
|
||||
p = end + lstrlenW(end);
|
||||
|
|
Loading…
Reference in a new issue