• 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

Revisionf8a6001fdfaa76037414510aaabd4cef452fc702 (tree)
Time2012-03-13 17:04:21
Authorunknown <XPMUser@Virt...>
Commiterunknown

Log Message

cookie取得処理修正

Change Summary

Incremental Difference

Binary files a/nlite.suo and b/nlite.suo differ
--- a/shareCookie/shareCookie.c
+++ b/shareCookie/shareCookie.c
@@ -343,18 +343,29 @@ static INLINE COOKIE_RESULT GetCookieInternetExplorer(LPWSTR cookie,SIZE_T bufSi
343343
344344 //保護モードフラグがFALSEならInternetGetCookieExでクッキーの値を取得
345345 }else{
346+
347+
348+
349+ if(InternetGetCookie(url,key,cookie,&bufSize)== TRUE){
350+
351+ cookieResult = S_OK;
352+ }else {
353+ cookieResult = GetLastError();
354+ }
355+ /*
346356 if(InternetGetCookieEx(url,key,cookie,&bufSize,0,NULL) == TRUE){
347357
348358 cookieResult = S_OK;
349359 }else {
350360 cookieResult = GetLastError();
351361 }
362+ */
352363
353364
354365 }
355366
356367 dumpln(TEXT("cookieResult:%d"),cookieResult);
357-
368+ dumpln(TEXT("cookie:%s"),cookie);
358369
359370
360371 //結果コード判定
@@ -952,7 +963,7 @@ BROWSERTYPE getDefaultBrowserType(){
952963 HKEY hKey;
953964 //レジストリキーを読み取り専用でオープン
954965 if(RegOpenKeyEx(HKEY_CURRENT_USER,L"Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice",0,KEY_READ,&hKey) != ERROR_SUCCESS){
955- return COOKIE_ERR_INTERNETOPTION_NOTOPEN;
966+ return BT_NOSETTING;
956967 }
957968
958969 RegQueryValueEx(hKey,TEXT("Progid"),(LPDWORD)NULL,(LPDWORD)NULL,(LPBYTE)&browserName,&cName);