From f2f453cf756877670f8eec30ac0fcca3dea509f7 Mon Sep 17 00:00:00 2001 From: Joel Dice Date: Wed, 24 Oct 2007 10:27:59 -0600 Subject: [PATCH] more system-specific tweaks for windows port (cont.) --- src/windows.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/windows.cpp b/src/windows.cpp index 197ebda8a2..aee54e93b4 100644 --- a/src/windows.cpp +++ b/src/windows.cpp @@ -550,9 +550,9 @@ class MySystem: public System { HMODULE handle; unsigned nameLength = (name ? strlen(name) : 0); if (mapName) { - unsigned size = nameLength + sizeof(SO_SUFFIX); + unsigned size = sizeof(SO_PREFIX) + nameLength + sizeof(SO_SUFFIX); char buffer[size]; - snprintf(buffer, size, "%s" SO_SUFFIX, name); + snprintf(buffer, size, SO_PREFIX "%s" SO_SUFFIX, name); handle = LoadLibrary(buffer); } else if (name) { handle = LoadLibrary(name);