Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
ed9cd3ed
Commit
ed9cd3ed
authored
Sep 23, 2008
by
Rob Shearman
Committed by
Alexandre Julliard
Sep 23, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msvcrt: Fix mutual exclusion over logical or is always a non-zero constant.
Logical and should have been used instead.
parent
62a1beeb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
dir.c
dlls/msvcrt/dir.c
+2
-2
process.c
dlls/msvcrt/process.c
+1
-1
No files found.
dlls/msvcrt/dir.c
View file @
ed9cd3ed
...
...
@@ -990,7 +990,7 @@ void CDECL _searchenv(const char* file, const char* env, char *buf)
return
;
}
memcpy
(
curPath
,
penv
,
end
-
penv
);
if
(
curPath
[
end
-
penv
]
!=
'/'
||
curPath
[
end
-
penv
]
!=
'\\'
)
if
(
curPath
[
end
-
penv
]
!=
'/'
&&
curPath
[
end
-
penv
]
!=
'\\'
)
{
curPath
[
end
-
penv
]
=
'\\'
;
curPath
[
end
-
penv
+
1
]
=
'\0'
;
...
...
@@ -1053,7 +1053,7 @@ void CDECL _wsearchenv(const MSVCRT_wchar_t* file, const MSVCRT_wchar_t* env, MS
return
;
}
memcpy
(
curPath
,
penv
,
(
end
-
penv
)
*
sizeof
(
MSVCRT_wchar_t
));
if
(
curPath
[
end
-
penv
]
!=
'/'
||
curPath
[
end
-
penv
]
!=
'\\'
)
if
(
curPath
[
end
-
penv
]
!=
'/'
&&
curPath
[
end
-
penv
]
!=
'\\'
)
{
curPath
[
end
-
penv
]
=
'\\'
;
curPath
[
end
-
penv
+
1
]
=
'\0'
;
...
...
dlls/msvcrt/process.c
View file @
ed9cd3ed
...
...
@@ -96,7 +96,7 @@ static void msvcrt_search_executable(const MSVCRT_wchar_t *name, MSVCRT_wchar_t
if
(
path_len
+
name_len
<=
MAX_PATH
-
2
)
{
memcpy
(
buffer
,
env
,
path_len
*
sizeof
(
MSVCRT_wchar_t
));
if
(
buffer
[
path_len
]
!=
'/'
||
buffer
[
path_len
]
!=
'\\'
)
if
(
buffer
[
path_len
]
!=
'/'
&&
buffer
[
path_len
]
!=
'\\'
)
{
buffer
[
path_len
++
]
=
'\\'
;
buffer
[
path_len
]
=
'\0'
;
...
...
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