diff options
Diffstat (limited to 'compiler/main/SysTools.hs')
-rw-r--r-- | compiler/main/SysTools.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/main/SysTools.hs b/compiler/main/SysTools.hs index ad2e33c85c..612206bc5d 100644 --- a/compiler/main/SysTools.hs +++ b/compiler/main/SysTools.hs @@ -1508,7 +1508,7 @@ foreign import WINDOWS_CCONV unsafe "windows.h GetModuleFileNameW" -- is located at. See Trac #11759. getFinalPath :: FilePath -> IO (Maybe FilePath) getFinalPath name = do - dllHwnd <- failIfNull "LoadLibray" $ loadLibrary "kernel32.dll" + dllHwnd <- failIfNull "LoadLibrary" $ loadLibrary "kernel32.dll" -- Note: The API GetFinalPathNameByHandleW is only available starting from Windows Vista. -- This means that we can't bind directly to it since it may be missing. -- Instead try to find it's address at runtime and if we don't succeed consider the |