Commit 00cc966ad98585d161166a455a68458d8d48af97
1 parent
6ccbc77a
Exists in
master
and in
5 other branches
Pequeno ajuste na função HLLAPI
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/plugins/hllapi/calls.c
@@ -147,7 +147,7 @@ | @@ -147,7 +147,7 @@ | ||
147 | 147 | ||
148 | trace("hModule=%p",hModule); | 148 | trace("hModule=%p",hModule); |
149 | if(hModule) | 149 | if(hModule) |
150 | - return EBUSY; | 150 | + return -EBUSY; |
151 | 151 | ||
152 | kernel = LoadLibrary("kernel32.dll"); | 152 | kernel = LoadLibrary("kernel32.dll"); |
153 | AddDllDirectory = (HANDLE (*)(PCWSTR)) GetProcAddress(kernel,"AddDllDirectory"); | 153 | AddDllDirectory = (HANDLE (*)(PCWSTR)) GetProcAddress(kernel,"AddDllDirectory"); |
@@ -196,7 +196,7 @@ | @@ -196,7 +196,7 @@ | ||
196 | hModule = LoadLibrary(dllname); | 196 | hModule = LoadLibrary(dllname); |
197 | rc = GetLastError(); | 197 | rc = GetLastError(); |
198 | } | 198 | } |
199 | - | 199 | + |
200 | SetErrorMode(errorMode); | 200 | SetErrorMode(errorMode); |
201 | 201 | ||
202 | trace("%s hModule=%p rc=%d",dllname,hModule,(int) rc); | 202 | trace("%s hModule=%p rc=%d",dllname,hModule,(int) rc); |
@@ -219,9 +219,9 @@ | @@ -219,9 +219,9 @@ | ||
219 | 219 | ||
220 | if(!ptr) | 220 | if(!ptr) |
221 | { | 221 | { |
222 | - fprintf(stderr,"Can´t load \"%s\"\n",entry_point[f].name); | 222 | + trace(stderr,"Can´t load \"%s\"\n",entry_point[f].name); |
223 | hllapi_deinit(); | 223 | hllapi_deinit(); |
224 | - return ENOENT; | 224 | + return -ENOENT; |
225 | } | 225 | } |
226 | *entry_point[f].call = ptr; | 226 | *entry_point[f].call = ptr; |
227 | } | 227 | } |