Skip to content

Commit ba93cea

Browse files
committed
[MSVCRT] Don't unconditionally set errno in msvcrt_search_executable
This is a bad idea and breaks tests.
1 parent 7ce189f commit ba93cea

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

dll/win32/msvcrt/process.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,9 @@ static void msvcrt_search_executable(const wchar_t *name, wchar_t *fullname, int
5050
int extension = 1;
5151

5252
*fullname = '\0';
53+
#ifndef __REACTOS__
5354
msvcrt_set_errno(ERROR_FILE_NOT_FOUND);
55+
#endif
5456

5557
end = name + MAX_PATH - 1;
5658
for(p = name; p < end; p++)

0 commit comments

Comments
 (0)