Branch: Tag:

2001-03-10

2001-03-10 22:22:39 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Now looks up the correct registry key on NT.

Rev: src/main.c:1.114

5:   \*/   /**/   #include "global.h" - RCSID("$Id: main.c,v 1.113 2001/02/24 02:38:33 hubbe Exp $"); + RCSID("$Id: main.c,v 1.114 2001/03/10 22:22:39 grubba Exp $");   #include "fdlib.h"   #include "backend.h"   #include "module.h"
118: Inside #if defined(__NT__)
   DWORD len=sizeof(buffer)-1,type=REG_SZ;    long ret;    if(RegOpenKeyEx(cat, -  (LPCTSTR)"SOFTWARE\\Idonex\\Pike\\0.7", +  (LPCTSTR)("SOFTWARE\\Idonex\\Pike\\" +  DEFINETOSTR(PIKE_MAJOR_VERSION) +  "." +  DEFINETOSTR(PIKE_MINOR_VERSION)),    0,KEY_READ,&k)==ERROR_SUCCESS)    {    if(RegQueryValueEx(k,