Skip to content

Commit

Permalink
Revert changes at few places and remove some code for Unix
Browse files Browse the repository at this point in the history
  • Loading branch information
janvorli committed Dec 1, 2022
1 parent 4553e3a commit 48e4852
Show file tree
Hide file tree
Showing 4 changed files with 162 additions and 219 deletions.
5 changes: 3 additions & 2 deletions src/coreclr/inc/longfilepathwrappers.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#define _WIN_PATH_APIS_WRAPPER_
class SString;

#ifdef HOST_WINDOWS

HMODULE
LoadLibraryExWrapper(
_In_ LPCWSTR lpLibFileName,
Expand Down Expand Up @@ -35,7 +37,6 @@ GetFileAttributesExWrapper(
_Out_writes_bytes_(sizeof(WIN32_FILE_ATTRIBUTE_DATA)) LPVOID lpFileInformation
);

#ifndef HOST_UNIX
BOOL
CopyFileExWrapper(
_In_ LPCWSTR lpExistingFileName,
Expand All @@ -46,7 +47,7 @@ CopyFileExWrapper(
_Inout_opt_ LPBOOL pbCancel,
_In_ DWORD dwCopyFlags
);
#endif //HOST_UNIX
#endif //HOST_WINDOWS

DWORD
SearchPathWrapper(
Expand Down
8 changes: 7 additions & 1 deletion src/coreclr/inc/winwrap.h
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,17 @@

//File and Directory Functions which need special handling for LongFile Names
//Note only the functions which are currently used are defined
#ifdef HOST_WINDOWS
#define WszLoadLibrary LoadLibraryExWrapper
#define WszLoadLibraryEx LoadLibraryExWrapper
#define WszCreateFile CreateFileWrapper
#define WszGetFileAttributes GetFileAttributesWrapper
#define WszGetFileAttributesEx GetFileAttributesExWrapper
#else // HOST_WINDOWS
#define WszLoadLibrary LoadLibraryW
#define WszLoadLibraryEx LoadLibraryExW
#define WszCreateFile CreateFileW
#define WszGetFileAttributesEx GetFileAttributesExW
#endif // HOST_WINDOWS

//Can not use extended syntax
#define WszGetFullPathName GetFullPathNameW
Expand Down
Loading

0 comments on commit 48e4852

Please sign in to comment.