Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
64012fdb
Commit
64012fdb
authored
Feb 08, 2013
by
Patrick Pokatilo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace LoadLibrary with GetModuleHandle, since kernel32 is loaded by default
As requested
parent
a49e5bed
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
src/win32/posix_w32.c
+3
-3
No files found.
src/win32/posix_w32.c
View file @
64012fdb
...
...
@@ -173,10 +173,10 @@ int p_readlink(const char *link, char *target, size_t target_len)
* it is not available in platforms older than Vista
*/
if
(
pGetFinalPath
==
NULL
)
{
H
INSTANCE
library
=
LoadLibrary
(
"kernel32"
);
H
MODULE
module
=
GetModuleHandle
(
"kernel32"
);
if
(
library
!=
NULL
)
pGetFinalPath
=
(
fpath_func
)
GetProcAddress
(
library
,
"GetFinalPathNameByHandleW"
);
if
(
module
!=
NULL
)
pGetFinalPath
=
(
fpath_func
)
GetProcAddress
(
module
,
"GetFinalPathNameByHandleW"
);
if
(
pGetFinalPath
==
NULL
)
{
giterr_set
(
GITERR_OS
,
...
...
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