[Ttssh2-commit] [4672] 不要なコードを削除

Zurück zum Archiv-Index

svnno****@sourc***** svnno****@sourc*****
2011年 10月 13日 (木) 19:33:18 JST


Revision: 4672
          http://sourceforge.jp/projects/ttssh2/svn/view?view=rev&revision=4672
Author:   maya
Date:     2011-10-13 19:33:18 +0900 (Thu, 13 Oct 2011)

Log Message:
-----------
不要なコードを削除

Modified Paths:
--------------
    trunk/teraterm/ttpmacro/ttmlib.c


-------------- next part --------------
Modified: trunk/teraterm/ttpmacro/ttmlib.c
===================================================================
--- trunk/teraterm/ttpmacro/ttmlib.c	2011-10-13 10:23:09 UTC (rev 4671)
+++ trunk/teraterm/ttpmacro/ttmlib.c	2011-10-13 10:33:18 UTC (rev 4672)
@@ -9,7 +9,7 @@
 #include <string.h>
 #include <direct.h>
 #include <Shlobj.h>
-#include <stdio.h>
+
 static char CurrentDir[MAXPATHLEN];
 
 void CalcTextExtent(HDC DC, PCHAR Text, LPSIZE s)
@@ -91,7 +91,7 @@
 	OSVERSIONINFO osvi;
 	LONG result;
 	HKEY hKey;
-	DWORD disposition, len, type;
+	DWORD disposition, len;
 
 	char Path[MAX_PATH] = "";
 	LPITEMIDLIST pidl;
@@ -121,7 +121,7 @@
 		}
 
 		len = sizeof(Path);
-		result = RegQueryValueEx(hKey, KEY, NULL, &type, Path, &len);
+		result = RegQueryValueEx(hKey, KEY, NULL, NULL, Path, &len);
 		if (result != ERROR_SUCCESS) {
 			return 0;
 		}



Ttssh2-commit メーリングリストの案内
Zurück zum Archiv-Index