fix msvc6 template warning
authorRoyce Mitchell III <royce3@ev1.net>
Thu, 20 Oct 2005 13:59:37 +0000 (13:59 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Thu, 20 Oct 2005 13:59:37 +0000 (13:59 +0000)
fix writing to uninitialized pointer

svn path=/trunk/; revision=18627

reactos/tools/rbuild/backend/msvc/genguid.cpp

index f3dc7ed..85dfb6b 100644 (file)
@@ -20,7 +20,7 @@
  *\r
  */\r
 
-\r
+#include "../../pch.h"\r
 #include "msvc.h"\r
 #include <string>\r
 \r
@@ -45,7 +45,7 @@ MSVCBackend::_gen_guid()
        GUID m_guid;\r
        HRESULT result;\r
        bool good_guid = false;\r
-       char* guid;\r
+       static char guid[38];\r
        \r
        // Load ole32. We will need it later on\r
        HMODULE olelib = LoadLibrary ( "ole32.dll" );\r