• 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

Revision84661a525afa126c40aae0a81519623a8ba3a1ae (tree)
Time2012-03-14 15:43:22
Authorqwerty2501 <qwerty2501@user...>
Commiterqwerty2501

Log Message

クローム、ファイアフォックスのクッキー取得処理を修正

Change Summary

Incremental Difference

Binary files a/nlite.suo and b/nlite.suo differ
--- a/nlite/nlite_commentview.cpp
+++ b/nlite/nlite_commentview.cpp
@@ -424,7 +424,7 @@ namespace nlite{
424424
425425 GetTextExtentPoint32(hdc , columns[index] , _tcslen(columns[index]) , &size);
426426 UINT_PTR holsize = holizenSize[index] + size.cx + 15;
427- holizenSize[index] = viewproperty.GetHeaderHolSize()[index] >= 0 ? viewproperty.GetHeaderHolSize()[index] : holsize;
427+ holizenSize[index] = viewproperty.GetHeaderHolSize()[index] > 0 ? viewproperty.GetHeaderHolSize()[index] : holsize;
428428 }
429429
430430 SelectObject(hdc,hOld);
--- a/nlite/nlite_property.cpp
+++ b/nlite/nlite_property.cpp
@@ -65,11 +65,11 @@ namespace nlite{
6565 {
6666 for(INT_PTR orderIndex = 0;orderIndex < ARRAY_LENGTH(headerOrderArray);orderIndex++){
6767
68- new(&headerOrderArray[orderIndex]) INT_PTR(orderIndex);
68+ headerOrderArray[orderIndex] = orderIndex;
6969
7070 }
7171
72- memset(headerholSize,-1,sizeof(headerholSize));
72+ memset(headerholSize,0,sizeof(headerholSize));
7373 }
7474
7575
--- a/nlite/stdafx.h
+++ b/nlite/stdafx.h
@@ -16,8 +16,8 @@
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>
--- a/shareCookie/shareCookie.c
+++ b/shareCookie/shareCookie.c
@@ -4,6 +4,7 @@
44 #define _CRT_SECURE_NO_WARNINGS 1 //vc++のおせっかいな警告を消す
55 #define _CRT_NON_CONFORMING_SWPRINTFS 1 //vc++のおせっかいな警告を消す
66 #include <shlobj.h>
7+#include <time.h>
78 #include <Wininet.h>
89 #include <Iepmapi.h>
910 #include <sqlite3\sqlite3.h>
@@ -14,16 +15,16 @@
1415
1516 static TCHAR ieCookiePath[_MAX_PATH]; //IEのクッキーパス
1617 static TCHAR ieCookieSecPath[_MAX_PATH]; //IEセキュリティモードのパス
17-static WCHAR fireFoxCookiePath[_MAX_PATH]; //ファイアフォックスのクッキーのパス
18-static sqlite3 *firefoxCookie; //ファイアフォックスのクッキーのDB
19-static sqlite3_stmt *firefoxCookieStmt; //ファイアフォックスのクッキー取得用ステートメント
20-static CRITICAL_SECTION firefoxCs; //ファイアフォックスのクッキー取得用クリティカルセクション
18+static WCHAR fireFoxCookiePath[_MAX_PATH]; //ファイアフォックスのクッキーのパス
19+//static sqlite3 *firefoxCookie; //ファイアフォックスのクッキーのDB
20+//static sqlite3_stmt *firefoxCookieStmt; //ファイアフォックスのクッキー取得用ステートメント
21+//static CRITICAL_SECTION firefoxCs; //ファイアフォックスのクッキー取得用クリティカルセクション
2122
2223
2324 static WCHAR googleChromeCookiePath[_MAX_PATH]; //グーグルクロームのクッキーのパス
24-static sqlite3 *googleChromeCookie; //グーグルクロームのクッキーのDB
25-static sqlite3_stmt *googleChromeCookieStmt; //グーグルクロームのクッキー取得用ステートメント
26-static CRITICAL_SECTION googleChromeCs; //グーグルクロームのクッキー取得用クリティカルセクション
25+//static sqlite3 *googleChromeCookie; //グーグルクロームのクッキーのDB
26+//static sqlite3_stmt *googleChromeCookieStmt; //グーグルクロームのクッキー取得用ステートメント
27+//static CRITICAL_SECTION googleChromeCs; //グーグルクロームのクッキー取得用クリティカルセクション
2728
2829
2930 static WCHAR safariCookiePath[_MAX_PATH]; //Safariのクッキーパス
@@ -31,6 +32,8 @@ static WCHAR operaCookiePath[_MAX_PATH]; //Opera
3132
3233 typedef COOKIE_RESULT (*SelfParseCookieCallBack)(LPCSTR targetString,LPCSTR targetEndPointer,LPWSTR cookie,SIZE_T bufSize,LPCWSTR key,LPCWSTR domein);
3334
35+typedef COOKIE_RESULT (*ParseCookieCallBack)(sqlite3_stmt *stmt,LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein);
36+
3437 ///
3538 ///クロームとファイアフォックスの共通処理
3639 ///
@@ -73,15 +76,29 @@ static INLINE COOKIE_RESULT GetCookieInternetExplorerSelfParse(LPCWSTR dir,LPWST
7376 ///自力解析時のコールバック関数
7477 ///
7578 static COOKIE_RESULT selfParseIECallBack(LPCSTR targetString,LPCSTR targetEndPointer,LPWSTR cookie,SIZE_T bufSize,LPCWSTR key,LPCWSTR domein);
79+
80+static COOKIE_RESULT getCookieSQLite(LPCWSTR path,LPCWSTR sql,LPWSTR cookie,SIZE_T bufSize,LPCWSTR key,LPCWSTR domein,ParseCookieCallBack sqlCallBack,SelfParseCookieCallBack selfCallBack);
81+
7682 ///
7783 ///ファイアフォックスのクッキーを取得
7884 ///
79-static INLINE COOKIE_RESULT GetCookieFireFox(LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein);
85+static INLINE COOKIE_RESULT GetCookieFireFoxSQLite(sqlite3_stmt *stmt,LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein);
86+
87+
88+///
89+///ファイアフォックスを自力で解析
90+///
91+static INLINE COOKIE_RESULT GetCookieFireFoxSelf(LPCSTR targetString,LPCSTR targetEndPointer,LPWSTR cookie,SIZE_T bufSize,LPCWSTR key,LPCWSTR domein);
8092
8193 ///
8294 ///グーグルクロームのクッキーを取得
8395 ///
84-static INLINE COOKIE_RESULT GetCookieGoogleChrome(LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein);
96+static INLINE COOKIE_RESULT GetCookieGoogleChromeSQLite(sqlite3_stmt *stmt,LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein);
97+
98+///
99+///グーグルクロームを自力で解析
100+///
101+static INLINE COOKIE_RESULT GetCookieGoogleChromeSelf(LPCSTR targetString,LPCSTR targetEndPointer,LPWSTR cookie,SIZE_T bufSize,LPCWSTR key,LPCWSTR domein);
85102
86103 ///
87104 ///オペラのクッキーを取得
@@ -93,10 +110,16 @@ static INLINE COOKIE_RESULT GetCookieOpera(LPCSTR targetString,LPCSTR targetEndP
93110 ///
94111 static INLINE COOKIE_RESULT GetCookieSafari(LPCSTR targetString,LPCSTR targetEndPointer,LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein);
95112
96-#define FIREFOX_GET_COOKIE_SQL "SELECT a.name, a.value FROM moz_cookies a WHERE a.name = ?1 AND a.baseDomain = ?2 " //ファイアフォックスクッキー取得用SQL
113+
114+///
115+///クッキーコピー用のパスを取得
116+///
117+static INLINE BOOL CookieFileCopy(LPCWSTR sourceFileName,LPWSTR pathBuf,int bufSize);
118+
119+const LPCWSTR FIREFOX_GET_COOKIE_SQL = L"SELECT a.name, a.value FROM moz_cookies a WHERE a.name = ?1 AND a.baseDomain = ?2 "; //ファイアフォックスクッキー取得用SQL
97120
98121
99-#define GOOGLECHROME_GET_COOKIE_SQL "SELECT a.name,a.value FROM cookies a WHERE a.name = ?1 AND (a.host_key = ?2 OR a.host_key = ?3)" //グーグルクロームクッキー取得用SQL 頭に.付いてるのと付いてないのがあったのでとりえあえず両方拾うことにした。規則性がわかればもう少しスマートにいける
122+const LPCWSTR GOOGLECHROME_GET_COOKIE_SQL = L"SELECT a.name,a.value FROM cookies a WHERE a.name = ?1 AND (a.host_key = ?2 OR a.host_key = ?3)"; //グーグルクロームクッキー取得用SQL 頭に.付いてるのと付いてないのがあったのでとりえあえず両方拾うことにした。規則性がわかればもう少しスマートにいける
100123
101124
102125 VOID InitializeShareCookie(LPCWSTR appDataPath,LPCWSTR localAppDataPath){
@@ -151,7 +174,7 @@ VOID InitializeShareCookie(LPCWSTR appDataPath,LPCWSTR localAppDataPath){
151174 break;
152175
153176 default:
154- //ZeroMemory(fireFoxCookiePath,sizeof(fireFoxCookiePath) / sizeof(fireFoxCookiePath[0]));
177+
155178
156179 break;
157180
@@ -166,9 +189,9 @@ VOID InitializeShareCookie(LPCWSTR appDataPath,LPCWSTR localAppDataPath){
166189 dumpln(TEXT("firefoxのクッキーファイルを開いた"));
167190 }
168191 */
169- checkDBAndStmt(&firefoxCookie,&firefoxCookieStmt,fireFoxCookiePath,WTEXT(FIREFOX_GET_COOKIE_SQL));
192+ //checkDBAndStmt(&firefoxCookie,&firefoxCookieStmt,fireFoxCookiePath,WTEXT(FIREFOX_GET_COOKIE_SQL));
170193
171- InitializeCriticalSection(&firefoxCs);
194+ //InitializeCriticalSection(&firefoxCs);
172195 }
173196
174197 //GoogleChromeの設定
@@ -187,9 +210,9 @@ VOID InitializeShareCookie(LPCWSTR appDataPath,LPCWSTR localAppDataPath){
187210 dumpln(TEXT("chromeのクッキーファイルを開いた"));
188211 }
189212 */
190- checkDBAndStmt(&googleChromeCookie,&googleChromeCookieStmt,googleChromeCookiePath,WTEXT(GOOGLECHROME_GET_COOKIE_SQL));
213+ //checkDBAndStmt(&googleChromeCookie,&googleChromeCookieStmt,googleChromeCookiePath,WTEXT(GOOGLECHROME_GET_COOKIE_SQL));
191214
192- InitializeCriticalSection(&googleChromeCs);
215+ //InitializeCriticalSection(&googleChromeCs);
193216
194217
195218
@@ -215,13 +238,9 @@ VOID InitializeShareCookie(LPCWSTR appDataPath,LPCWSTR localAppDataPath){
215238
216239 VOID FinalizeShareCookie(){
217240
218-
219- DeleteCriticalSection(&firefoxCs);
220- DeleteCriticalSection(&googleChromeCs);
221- sqlite3_finalize(firefoxCookieStmt);
222- sqlite3_finalize(googleChromeCookieStmt);
223- SqliteManager_close(&firefoxCookie);
224- SqliteManager_close(&googleChromeCookie);
241+
242+
243+
225244
226245
227246
@@ -230,6 +249,31 @@ VOID FinalizeShareCookie(){
230249
231250
232251
252+static INLINE BOOL CookieFileCopy(LPCWSTR sourceFileName,LPWSTR pathBuf,int bufSize){
253+
254+ WCHAR tempBuff[_MAX_PATH];
255+ LPWSTR timestartPtr = NULL;
256+ BOOL result = FALSE;
257+ int tmpnamesize = 0;
258+ struct tm nowtm;
259+ time_t nowtime = time(NULL);
260+ SHGetFolderPathW(0,CSIDL_TEMPLATES,0,SHGFP_TYPE_CURRENT,tempBuff);
261+ tmpnamesize = wcslen(tempBuff);
262+ timestartPtr = tempBuff + tmpnamesize;
263+ nowtm = *localtime(&nowtime);
264+ if(_tcsftime(timestartPtr,bufSize - tmpnamesize,L"\\cookie_buff_%Y%m%d%H&M%S",&nowtm) > 0){
265+
266+ result = CopyFile(sourceFileName,tempBuff,TRUE);
267+
268+ if(result != FALSE)wcscpy(pathBuf,tempBuff);
269+ }
270+
271+
272+
273+ return result;
274+}
275+
276+
233277 COOKIE_RESULT GetCookie(BROWSERTYPE browserType,LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein){
234278
235279 //ブラウザタイプにより実行する関数を決定する
@@ -245,13 +289,13 @@ COOKIE_RESULT GetCookie(BROWSERTYPE browserType,LPWSTR cookie,SIZE_T bufSize, LP
245289 //ファイアフォックスの場合
246290 case BT_FIRE_FOX:
247291
248- return GetCookieFireFox(cookie,bufSize,key,domein);
292+ return getCookieSQLite(fireFoxCookiePath,FIREFOX_GET_COOKIE_SQL,cookie,bufSize,key,domein,GetCookieFireFoxSQLite,GetCookieFireFoxSelf);
249293
250294 //グーグルクロームの場合
251295 case BT_GOOGLE_CHROME:
252296
253297
254- return GetCookieGoogleChrome(cookie,bufSize,key,domein);
298+ return getCookieSQLite(googleChromeCookiePath,GOOGLECHROME_GET_COOKIE_SQL,cookie,bufSize,key,domein,GetCookieGoogleChromeSQLite,GetCookieGoogleChromeSelf);
255299
256300 //オペラの場合
257301 case BT_OPERA:
@@ -310,7 +354,7 @@ static INLINE COOKIE_RESULT GetCookieInternetExplorer(LPWSTR cookie,SIZE_T bufSi
310354 HRESULT cookieResult; //クッキー取得結果コード
311355 BOOL isProtectedMode = FALSE; //保護モードフラグ
312356 WCHAR url[GET_IE_COOKIE_URL_MAXLENGTH]; //urlバッファ
313-
357+ SIZE_T bufSizeTemp = bufSize;
314358 //IEかIEコンポーネントかを判定
315359 if(isIE){
316360
@@ -394,8 +438,7 @@ static INLINE COOKIE_RESULT GetCookieInternetExplorer(LPWSTR cookie,SIZE_T bufSi
394438
395439 }
396440
397- dumpln(TEXT("cookieResult:%d"),cookieResult);
398- dumpln(TEXT("cookie:%s"),cookie);
441+
399442
400443
401444 //結果コード判定
@@ -407,9 +450,9 @@ static INLINE COOKIE_RESULT GetCookieInternetExplorer(LPWSTR cookie,SIZE_T bufSi
407450
408451 result = COOKIE_ERR_OK;
409452
410- //取得したクッキーのサイズが0の場合、notFoundErrorを設定
453+ //取得したクッキーのサイズが0の場合、自力で解析する
411454 } else {
412- result = COOKIE_ERR_DETAIL_NOTFOUND;
455+ result = GetCookieInternetExplorerSelfParse(isProtectedMode == TRUE ? ieCookieSecPath : ieCookiePath,cookie,bufSizeTemp,key,domein);
413456
414457 }//if(bufSize > 0)
415458
@@ -571,49 +614,74 @@ cookiebuffbigerr:
571614 }
572615
573616 ///
574-///ファイアフォックスのクッキーを取得
617+///SQL系の解析用関数
575618 ///
576-static INLINE COOKIE_RESULT GetCookieFireFox(LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein){
577619
578- COOKIE_RESULT result = COOKIE_ERR_OK; //結果コード
579- LPCWSTR pName = (LPCWSTR)NULL; //名前の値を確保する一時的なポインタ
580- LPCWSTR pValue = (LPCWSTR)NULL; //valueの値を確保する一時的なポインタ
581-
582-
620+static COOKIE_RESULT getCookieSQLite(LPCWSTR path,LPCWSTR sql,LPWSTR cookie,SIZE_T bufSize,LPCWSTR key,LPCWSTR domein,ParseCookieCallBack sqlCallBack,SelfParseCookieCallBack selfCallBack){
583621
584-
622+ COOKIE_RESULT result = COOKIE_ERR_UNKNOWN;
623+ UINT dbchekresult = 0;
624+ sqlite3 *db = NULL;
625+ sqlite3_stmt *stmt = NULL;
626+ BOOL copyFlag = FALSE;
627+ WCHAR cookieFilePathBuff[_MAX_PATH] ={0};
628+ dbchekresult = checkDBAndStmt(&db,&stmt,path,sql);
629+
630+ if(dbchekresult != 0){
631+ db = NULL;
632+ stmt = NULL;
633+ copyFlag = CookieFileCopy(path,cookieFilePathBuff,ARRAY_LENGTH(cookieFilePathBuff));
634+ dbchekresult = checkDBAndStmt(&db,&stmt,path,sql);
635+ }
585636
586- //db,ステートメントが開かれているかチェック
587- switch(checkDBAndStmt(&firefoxCookie,&firefoxCookieStmt,fireFoxCookiePath, WTEXT(FIREFOX_GET_COOKIE_SQL))){
637+ if(dbchekresult == 0){
588638
589- case 0:
590- break;
639+ result = sqlCallBack(stmt,cookie,bufSize,key,domein);
591640
592- case 1:
593- result = COOKIE_ERR_DBOPEN_FAILED;
594- goto end;
641+ }
595642
596- case 2:
597- result = COOKIE_ERR_CREATESTMT_FAILED;
598- goto end;
643+ if(result != COOKIE_ERR_OK){
599644
645+ SelfParseCookie(path,cookie,bufSize,key,domein,selfCallBack);
600646
601647 }
602648
603- EnterCriticalSection(&firefoxCs);
649+
650+ sqlite3_finalize(stmt);
651+ SqliteManager_close(&db);
652+
653+ if(copyFlag != FALSE)DeleteFile(cookieFilePathBuff);
654+
655+ return result;
656+}
657+
658+///
659+///ファイアフォックスのクッキーを取得
660+///
661+static INLINE COOKIE_RESULT GetCookieFireFoxSQLite(sqlite3_stmt *stmt,LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein){
662+
663+ COOKIE_RESULT result = COOKIE_ERR_UNKNOWN; //結果コード
664+ LPCWSTR pName = (LPCWSTR)NULL; //名前の値を確保する一時的なポインタ
665+ LPCWSTR pValue = (LPCWSTR)NULL; //valueの値を確保する一時的なポインタ
666+
667+
668+
669+
670+
671+
604672
605673
606674
607- switch(sqlite3_bind_text16(firefoxCookieStmt,1,key,-1,SQLITE_STATIC)){
675+ switch(sqlite3_bind_text16(stmt,1,key,-1,SQLITE_STATIC)){
608676
609677 case SQLITE_OK:
610678
611679
612- switch(sqlite3_bind_text16(firefoxCookieStmt,2,domein,-1,SQLITE_STATIC)){
680+ switch(sqlite3_bind_text16(stmt,2,domein,-1,SQLITE_STATIC)){
613681
614682 case SQLITE_OK:
615683
616- cookieStepExec(firefoxCookieStmt,cookie,bufSize, &result);
684+ cookieStepExec(stmt,cookie,bufSize, &result);
617685
618686
619687
@@ -656,28 +724,30 @@ static INLINE COOKIE_RESULT GetCookieFireFox(LPWSTR cookie,SIZE_T bufSize, LPCWS
656724
657725 }//switch(sqlite3_bind_text16(firefoxCookieStmt,1,key[index],sizeof(WCHAR) * (wcslen(key[index]) + 1),SQLITE_STATIC))
658726
659- //パラメタのリセット(バインド解除)
660- sqlite3_reset(firefoxCookieStmt);
661727
662728
663-
664- LeaveCriticalSection(&firefoxCs);
665729
666-end:
730+
731+
667732
668733
669734 return result;
670735 }
671736
672737
738+static INLINE COOKIE_RESULT GetCookieFireFoxSelf(LPCSTR targetString,LPCSTR targetEndPointer,LPWSTR cookie,SIZE_T bufSize,LPCWSTR key,LPCWSTR domein){
739+ COOKIE_RESULT result = COOKIE_ERR_UNKNOWN;
673740
741+ result = COOKIE_ERR_DETAIL_NOTFOUND;
742+ return result;
743+}
674744
675745
676746
677747 ///
678748 ///グーグルクロームのクッキーを取得
679749 ///
680-static INLINE COOKIE_RESULT GetCookieGoogleChrome(LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein){
750+static INLINE COOKIE_RESULT GetCookieGoogleChromeSQLite(sqlite3_stmt *stmt,LPWSTR cookie,SIZE_T bufSize, LPCWSTR key,LPCWSTR domein){
681751
682752
683753
@@ -691,35 +761,18 @@ static INLINE COOKIE_RESULT GetCookieGoogleChrome(LPWSTR cookie,SIZE_T bufSize,
691761
692762
693763
694- //db,ステートメントが開かれているかチェック
695- switch(checkDBAndStmt(&googleChromeCookie,&googleChromeCookieStmt,googleChromeCookiePath, WTEXT(GOOGLECHROME_GET_COOKIE_SQL))){
696-
697- case 0:
698- break;
699-
700- case 1:
701- result = COOKIE_ERR_DBOPEN_FAILED;
702- goto end;
703-
704- case 2:
705- result = COOKIE_ERR_CREATESTMT_FAILED;
706- goto end;
707-
708-
709- }
710-
711- EnterCriticalSection(&googleChromeCs);
764+
712765
713766
714767
715768
716769 //ステートメントにパラメタを設定1
717- switch(sqlite3_bind_text16(googleChromeCookieStmt,1,key,-1,SQLITE_STATIC)){
770+ switch(sqlite3_bind_text16(stmt,1,key,-1,SQLITE_STATIC)){
718771
719772 case SQLITE_OK:
720773
721774 //ステートメントにパラメタを設定2
722- switch(sqlite3_bind_text16(googleChromeCookieStmt,2,domein,-1,SQLITE_STATIC)){
775+ switch(sqlite3_bind_text16(stmt,2,domein,-1,SQLITE_STATIC)){
723776
724777 case SQLITE_OK:
725778
@@ -735,13 +788,13 @@ static INLINE COOKIE_RESULT GetCookieGoogleChrome(LPWSTR cookie,SIZE_T bufSize,
735788 wcscpy(pHostKey,domein); //このあたりはもう少し効率化できる?
736789
737790 //ステートメントにパラメタを設定3
738- switch(sqlite3_bind_text16(googleChromeCookieStmt,3,host_key2Buf,-1,SQLITE_STATIC)){
791+ switch(sqlite3_bind_text16(stmt,3,host_key2Buf,-1,SQLITE_STATIC)){
739792
740793 case SQLITE_OK:
741794
742795
743796 //クッキー取得SQL実行
744- cookieStepExec(googleChromeCookieStmt,cookie,bufSize,&result);
797+ cookieStepExec(stmt,cookie,bufSize,&result);
745798
746799
747800
@@ -804,17 +857,17 @@ static INLINE COOKIE_RESULT GetCookieGoogleChrome(LPWSTR cookie,SIZE_T bufSize,
804857
805858 }//switch(sqlite3_bind_text16(googleChromeCookieStmt,1,key[index],sizeof(WCHAR) * (wcslen(key[index]) + 1),SQLITE_STATIC))
806859
807- //パラメタのリセット(バインド解除)
808- sqlite3_reset(googleChromeCookieStmt);
809860
810861
811-
812- LeaveCriticalSection(&googleChromeCs);
813862
814-end:
863+ return result;
864+}
815865
866+static INLINE COOKIE_RESULT GetCookieGoogleChromeSelf(LPCSTR targetString,LPCSTR targetEndPointer,LPWSTR cookie,SIZE_T bufSize,LPCWSTR key,LPCWSTR domein){
816867
868+ COOKIE_RESULT result = COOKIE_ERR_UNKNOWN;
817869
870+ result = COOKIE_ERR_DETAIL_NOTFOUND;
818871 return result;
819872 }
820873
@@ -1036,7 +1089,7 @@ static INLINE VOID cookieStepExec(sqlite3_stmt *stmt,LPWSTR cookie,SIZE_T bufSiz
10361089 wcscat(cookie,L"=");
10371090 wcscat(cookie,pValue);
10381091
1039-
1092+ *result = COOKIE_ERR_OK;
10401093
10411094
10421095