Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
69108af6
Commit
69108af6
authored
Nov 21, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Nov 21, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Convert of couple more of string literals.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
d1eb78a7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
path.c
dlls/dbghelp/path.c
+6
-9
No files found.
dlls/dbghelp/path.c
View file @
69108af6
...
@@ -741,17 +741,14 @@ BOOL search_dll_path(const struct process *process, const WCHAR *name, BOOL (*ma
...
@@ -741,17 +741,14 @@ BOOL search_dll_path(const struct process *process, const WCHAR *name, BOOL (*ma
if
((
env
=
process_getenv
(
process
,
L"WINEBUILDDIR"
)))
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
);
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
;
2
*
lstrlenW
(
name
)
+
1
)
*
sizeof
(
WCHAR
))))
return
FALSE
;
wcscpy
(
buf
,
env
);
wcscpy
(
buf
,
env
);
end
=
buf
+
len
;
end
=
buf
+
len
;
memcpy
(
end
,
dllsW
,
sizeof
(
dllsW
)
);
wcscpy
(
end
,
L"
\\
dlls
\\
"
);
lstrcpyW
(
end
+
ARRAY_SIZE
(
dllsW
)
,
name
);
wcscat
(
end
,
name
);
if
((
p
=
wcsrchr
(
end
,
'.'
))
&&
!
lstrcmpW
(
p
,
L".so"
))
*
p
=
0
;
if
((
p
=
wcsrchr
(
end
,
'.'
))
&&
!
lstrcmpW
(
p
,
L".so"
))
*
p
=
0
;
if
((
p
=
wcsrchr
(
end
,
'.'
))
&&
!
lstrcmpW
(
p
,
L".dll"
))
*
p
=
0
;
if
((
p
=
wcsrchr
(
end
,
'.'
))
&&
!
lstrcmpW
(
p
,
L".dll"
))
*
p
=
0
;
p
=
end
+
lstrlenW
(
end
);
p
=
end
+
lstrlenW
(
end
);
...
@@ -764,9 +761,9 @@ BOOL search_dll_path(const struct process *process, const WCHAR *name, BOOL (*ma
...
@@ -764,9 +761,9 @@ BOOL search_dll_path(const struct process *process, const WCHAR *name, BOOL (*ma
lstrcpyW
(
p
,
name
);
lstrcpyW
(
p
,
name
);
if
(
try_match_file
(
buf
,
match
,
param
))
goto
found
;
if
(
try_match_file
(
buf
,
match
,
param
))
goto
found
;
memcpy
(
end
,
programsW
,
sizeof
(
programsW
)
);
wcscpy
(
end
,
L"
\\
programs
\\
"
);
end
+=
ARRAY_SIZE
(
programsW
);
end
+=
wcslen
(
end
);
lstrcpyW
(
end
,
name
);
wcscpy
(
end
,
name
);
if
((
p
=
wcsrchr
(
end
,
'.'
))
&&
!
lstrcmpW
(
p
,
L".so"
))
*
p
=
0
;
if
((
p
=
wcsrchr
(
end
,
'.'
))
&&
!
lstrcmpW
(
p
,
L".so"
))
*
p
=
0
;
if
((
p
=
wcsrchr
(
end
,
'.'
))
&&
!
lstrcmpW
(
p
,
L".exe"
))
*
p
=
0
;
if
((
p
=
wcsrchr
(
end
,
'.'
))
&&
!
lstrcmpW
(
p
,
L".exe"
))
*
p
=
0
;
p
=
end
+
lstrlenW
(
end
);
p
=
end
+
lstrlenW
(
end
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment