1
0
mirror of https://github.com/solemnwarning/ipxwrapper synced 2024-12-30 16:45:37 +01:00

Fixed DLL loading bug

This commit is contained in:
Daniel Collins 2008-12-09 21:50:07 +00:00
parent 4d28856065
commit 2d383dda97

View File

@ -244,7 +244,7 @@ static HMODULE load_sysdll(char const *name) {
char sysdir[1024], path[1024];
HMODULE ret = NULL;
GetSystemDirectory(path, 1024);
GetSystemDirectory(sysdir, 1024);
snprintf(path, 1024, "%s\\%s", sysdir, name);
ret = LoadLibrary(path);