]> granicus.if.org Git - graphviz/commitdiff
Fix Windows code to get libgvc module rather than main program module
authorerg <devnull@localhost>
Thu, 15 May 2008 17:25:33 +0000 (17:25 +0000)
committererg <devnull@localhost>
Thu, 15 May 2008 17:25:33 +0000 (17:25 +0000)
in order to find path to plugins and config file.

lib/gvc/gvconfig.c

index ac5840ac1c97d342093a34fa5ceb203ffca36184..ea04fe5ded6177c3dca2d052a83f6db5dad3940a 100644 (file)
@@ -273,7 +273,7 @@ char * gvconfig_libdir(void)
 #ifdef WIN32
            int r;
            char* s;
-           HMODULE hm = GetModuleHandle (NULL);
+           HMODULE hm = GetModuleHandle ("gvc");
            if (!hm) {
                agerr(AGERR,"failed to get handle for executable.\n");
                return 0;