Commit ddf793953ab6f02f08d9cd0a601dc5218906b7ba
1 parent
fca74eb7
Exists in
master
and in
1 other branch
Fixing delay-load hook.
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/core/windows/init.cc
@@ -151,7 +151,7 @@ | @@ -151,7 +151,7 @@ | ||
151 | savedpath.clear(); | 151 | savedpath.clear(); |
152 | } | 152 | } |
153 | 153 | ||
154 | - SetCurrentDirectory(curdir); | 154 | + SetCurrentDirectory(datadir); |
155 | 155 | ||
156 | } | 156 | } |
157 | 157 | ||
@@ -160,6 +160,7 @@ | @@ -160,6 +160,7 @@ | ||
160 | 160 | ||
161 | case dliNoteEndProcessing: | 161 | case dliNoteEndProcessing: |
162 | if(!savedpath.empty()) { | 162 | if(!savedpath.empty()) { |
163 | + | ||
163 | SetCurrentDirectory(savedpath.c_str()); | 164 | SetCurrentDirectory(savedpath.c_str()); |
164 | savedpath.clear(); | 165 | savedpath.clear(); |
165 | 166 |