Revision: 44859
          http://brlcad.svn.sourceforge.net/brlcad/?rev=44859&view=rev
Author:   d_rossberg
Date:     2011-06-09 08:54:46 +0000 (Thu, 09 Jun 2011)

Log Message:
-----------
made it compile with MSVC

Modified Paths:
--------------
    brlcad/trunk/src/libbu/dlfcn.c

Modified: brlcad/trunk/src/libbu/dlfcn.c
===================================================================
--- brlcad/trunk/src/libbu/dlfcn.c      2011-06-09 05:35:50 UTC (rev 44858)
+++ brlcad/trunk/src/libbu/dlfcn.c      2011-06-09 08:54:46 UTC (rev 44859)
@@ -30,6 +30,7 @@
 #  define HAVE_DLOPEN 1
 # endif
 #endif
+#include "bio.h"
 
 #include "bu.h"
 
@@ -52,7 +53,7 @@
 #ifdef HAVE_DLOPEN
     return dlsym(handle, symbol);
 #elif defined(WIN32)
-    return GetProcAddress(path, symbol);
+    return GetProcAddress(handle, symbol);
 #else
     bu_log("dlsym not supported\n");
     return NULL;
@@ -79,7 +80,7 @@
     return dlerror();
 #elif defined(WIN32)
     static char buf[BUFSIZ];
-    FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), &buf, 0, 
NULL);
+    FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, NULL, GetLastError(), 
LANG_NEUTRAL, buf, BUFSIZ, NULL);
     return (const char *)buf;
 #else
     bu_log("dlerror not supported\n");


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits

Reply via email to