OSDN Git Service

ビルド時に警告が出ないようにした
authorkonekoneko <jbh03215@gmail.com>
Thu, 9 Feb 2012 09:52:11 +0000 (18:52 +0900)
committerkonekoneko <jbh03215@gmail.com>
Thu, 9 Feb 2012 09:52:11 +0000 (18:52 +0900)
.gitignore
ShellExtension/ContextMenu.h
ShellExtension/DllMain.cpp
ShellExtension/DllMain.h
ShellExtension/Exports.def

index f176faf..f65aaea 100644 (file)
@@ -5,4 +5,5 @@
 /ShellExtension/Release
 /ShellExtension/Debug
 /ShellExtension/Debug
-/CompleteEraser.suo
\ No newline at end of file
+/CompleteEraser.suo
+/ipch
\ No newline at end of file
index b0f1590..fafbc5e 100644 (file)
@@ -1,6 +1,9 @@
 #pragma once\r
 #include "DllMain.h"\r
+#pragma warning(push)\r
+#pragma warning(disable: 4995)\r
 #include <string>\r
+#pragma warning(pop)\r
 \r
 #define ID_ITEM 500\r
 \r
index 99cdf5f..4efc7a6 100644 (file)
@@ -50,7 +50,7 @@ void GetModulePath(WCHAR szOutput[],int length)
        }\r
        \r
        //\83t\83\8b\83p\83X\96¼\82ð\95ª\8a\84\82·\82é\r
-       _wsplitpath(szPath, szDrive, szDir, szFileName, szExt); \r
+       _wsplitpath_s(szPath, szDrive,sizeof(szDrive), szDir,sizeof(szDir), szFileName,sizeof(szFileName), szExt,sizeof(szExt)); \r
 \r
        StringCbPrintf(szOutput,length,L"%s%s",szDrive,szDir);\r
 }\r
index d27871f..88eb597 100644 (file)
@@ -1,8 +1,13 @@
+#pragma once\r
+\r
+#pragma warning(push)\r
+#pragma warning(disable: 4995)\r
 #include <Windows.h>\r
 #include <shlwapi.h>\r
 #include <shlobj.h>\r
 #include <strsafe.h>\r
 #include <string>\r
+#pragma warning(pop)\r
 \r
 extern void LockModule(BOOL bLock);\r
 extern void MyLoadString(std::wstring& str,UINT id);\r
index ba55d5a..26a7296 100644 (file)
@@ -1,5 +1,5 @@
 \r
-LIBRARY        "ContextMenu"\r
+LIBRARY        "ShellExtension"\r
 \r
 EXPORTS\r
        DllCanUnloadNow PRIVATE\r