OSDN Git Service

クッキー取得ができない現象の調査中
authorunknown <qwerty2501@users.sourceforge.jp>
Mon, 6 Feb 2012 03:58:51 +0000 (12:58 +0900)
committerunknown <qwerty2501@users.sourceforge.jp>
Mon, 6 Feb 2012 03:58:51 +0000 (12:58 +0900)
nlite.suo
nlite/nlite_mainframe.cpp
nlite/nlite_nlib.cpp
nlite/nlite_property.cpp

index 70b6a96..250e0c8 100644 (file)
Binary files a/nlite.suo and b/nlite.suo differ
index d0db8bc..17596c3 100644 (file)
@@ -1,4 +1,5 @@
 #include "stdafx.h"
+
 #include "nlite_include.h"
 
 
@@ -260,6 +261,8 @@ VOID CNliteMainFrame::OnCookie(UINT uNotifyCode,int nID,HWND hWndCtl){
 
        nicoVideoAuth.SetBrowserType(nliteProperty.gp.browserType);
 
+       
+
 }
 
 
index f1f4b65..997133c 100644 (file)
@@ -40,8 +40,11 @@ VOID CNicoVideoAuth::SetBrowserType(BROWSERTYPE bt){
        if(val != NULL){
                *(val) = TEXT('\0');
                val++;
+               wincheck(::GetLastError());
                //dumpln(TEXT("left:%s,right:%s"),userSession.Left(sertchEquol),userSession.Right(sertchEquol));
-               ::InternetSetCookieEx(domein,name,val,INTERNET_COOKIE_IS_SESSION,NULL);
+               BOOL rslt2 = ::InternetSetCookie(domein,name,val);
+               BOOL rslt = ::InternetSetCookieEx(domein,name,val,  INTERNET_COOKIE_THIRD_PARTY,NULL);
+               wincheck(::GetLastError());
        }
 }
 
index b5d78ac..888130b 100644 (file)
@@ -1,4 +1,5 @@
 #include "stdafx.h"
+
 #include "nlite_include.h"
 
 namespace nlite{
@@ -140,6 +141,9 @@ namespace nlite{
 
                this->gp.browserType = cookieSettingwindow.GetBrowserType();
 
+
+               
+
                return this->gp.browserType;
 
        }