From: erg Date: Thu, 15 May 2008 17:25:33 +0000 (+0000) Subject: Fix Windows code to get libgvc module rather than main program module X-Git-Tag: LAST_LIBGRAPH~32^2~4066 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=39cd648a1b529aa0ea556849de4e0ba655811d9c;p=graphviz Fix Windows code to get libgvc module rather than main program module in order to find path to plugins and config file. --- diff --git a/lib/gvc/gvconfig.c b/lib/gvc/gvconfig.c index ac5840ac1..ea04fe5de 100644 --- a/lib/gvc/gvconfig.c +++ b/lib/gvc/gvconfig.c @@ -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;