Fix VS 2005 compatibility issue
authormdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Oct 2006 23:12:00 +0000 (23:12 +0000)
committermdkinney <mdkinney@6f19259b-4bc3-4df7-8a09-765794883524>
Wed, 4 Oct 2006 23:12:00 +0000 (23:12 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1666 6f19259b-4bc3-4df7-8a09-765794883524

EdkNt32Pkg/Sec/SecMain_build.xml
EdkNt32Pkg/Sec/WinNtThunk.c

index 56b2635..12b1a94 100644 (file)
@@ -99,6 +99,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
     <target name="sections" />\r
 \r
     <target name="output" >\r
+      <if>\r
+        <available type="file" file="${DEST_DIR_OUTPUT}/AutoGen.h.obj"/>\r
+        <then>\r
+          <var name="SLINK_FLAGS" value="${SLINK_FLAGS} ${DEST_DIR_OUTPUT}/AutoGen.h.obj"/>\r
+        </then>\r
+      </if>\r
       <OnDependency>\r
         <sourcefiles>\r
           <fileset dir="${DEST_DIR_OUTPUT}" includes="${OBJECTS}" />\r
index d064fae..2832e13 100644 (file)
@@ -45,6 +45,7 @@ Abstract:
 //  to tell if all the elements have been initailized properly.\r
 //\r
 #pragma warning(disable : 4232)\r
+#pragma warning(disable : 4996)\r
 \r
 EFI_WIN_NT_THUNK_PROTOCOL mWinNtThunkTable = {\r
   EFI_WIN_NT_THUNK_PROTOCOL_SIGNATURE,\r
@@ -137,7 +138,7 @@ EFI_WIN_NT_THUNK_PROTOCOL mWinNtThunkTable = {
   PurgeComm,\r
   SetCommTimeouts,\r
   ExitProcess,\r
-  swprintf,\r
+  _snwprintf,\r
   GetDesktopWindow,\r
   GetForegroundWindow,\r
   CreateWindowEx,\r
@@ -173,6 +174,7 @@ EFI_WIN_NT_THUNK_PROTOCOL mWinNtThunkTable = {
   HeapFree\r
 };\r
 \r
+#pragma warning(default : 4996)\r
 #pragma warning(default : 4232)\r
 \r
 EFI_WIN_NT_THUNK_PROTOCOL *gWinNt = &mWinNtThunkTable;\r