• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision7e80c1182a6bca69dde156f43fa9783901c0afef (tree)
Time2012-03-13 23:28:31
Authorqwerty2501 <qwerty2501@user...>
Commiterqwerty2501

Log Message

IEクッキー失敗時の最後の手段を追加

Change Summary

Incremental Difference

--- a/nlib/nlib.h
+++ b/nlib/nlib.h
@@ -482,6 +482,13 @@ public:
482482
483483
484484
485+
486+ ///
487+ ///テスト用関数
488+ ///
489+ VOID NLIB_Test();
490+
491+
485492 #pragma comment(lib,"Wininet.lib")
486493 #pragma comment(lib,"WinHttp.lib")
487494 #pragma comment(lib,"Iepmapi.lib")
--- a/nlib/nlib_common.cpp
+++ b/nlib/nlib_common.cpp
@@ -255,4 +255,12 @@ networkerr:
255255 goto end;
256256
257257
258+ }
259+
260+
261+
262+ VOID NLIB_Test(){
263+
264+ ShareCookieUnitTest();
265+
258266 }
\ No newline at end of file
Binary files a/nlite.suo and b/nlite.suo differ
--- a/nlite/nlite.cpp
+++ b/nlite/nlite.cpp
@@ -131,7 +131,7 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE,
131131
132132 InitializeNlite();
133133
134-
134+ /*
135135 int count = 0;
136136 BugTrail bugtrail;
137137 bugtrail.function = TEXT("testfunction");
@@ -149,7 +149,10 @@ int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE,
149149 vcassert(_heapchk() == _HEAPOK,TEXT("ヒープエラーです"));
150150
151151 nRet = 0;
152+ */
153+
152154
155+ NLIB_Test();
153156
154157 FreeLibrary(hRich);
155158
--- a/nlite/nlite_common.cpp
+++ b/nlite/nlite_common.cpp
@@ -306,9 +306,9 @@ err:
306306 throw AppInitException(__LINE__,TEXT(__FILE__),TEXT(__FUNCTION__));
307307 }
308308
309-
310309
311-
310+
311+
312312
313313
314314 if(SHGetFolderPathW(0,CSIDL_APPDATA,0,SHGFP_TYPE_CURRENT,appFolderPath) != S_OK){
--- a/nlite/stdafx.h
+++ b/nlite/stdafx.h
@@ -16,17 +16,19 @@
1616 #define _WTL_NO_CSTRING
1717
1818 #ifndef NDEBUG
19-//#define NLITE_UNIT_TEST //単体テストモード
20-//#define USE_STUB //スタブを使用する場合はコメントアウトを解除する
19+#define NLITE_UNIT_TEST //単体テストモード
20+#define USE_STUB //スタブを使用する場合はコメントアウトを解除する
2121 #endif
2222 // Windows ヘッダー ファイル:
2323 #include <windows.h>
2424 #include <WindowsX.h>
2525 #include <WinSock2.h>
26+
2627 #include <ShellAPI.h>
2728 #include <shlobj.h>
2829 #include <Iphlpapi.h>
2930 #include <wincrypt.h>
31+
3032 // C ランタイム ヘッダー ファイル
3133 #include <stdlib.h>
3234 #include <malloc.h>
--- a/shareCookie/shareCookie.h
+++ b/shareCookie/shareCookie.h
@@ -37,6 +37,12 @@ extern VOID FinalizeShareCookie();
3737 extern COOKIE_RESULT GetCookie(BROWSERTYPE browserType,LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein);
3838
3939
40+
41+///
42+///単体テスト用の関数
43+///
44+extern VOID ShareCookieUnitTest();
45+
4046 #ifdef __cplusplus
4147 }
4248 #endif