Skip to content

Commit 7802ead

Browse files
committed
47.4 RC release. Previous RC crashed on WinXP (Issue #180).
1 parent 107e293 commit 7802ead

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

phpdesktop-chrome47/cef/browser_window.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,13 +123,12 @@ Fullscreen* BrowserWindow::GetFullscreenObject() {
123123
void BrowserWindow::SetCefBrowser(CefRefPtr<CefBrowser> cefBrowser) {
124124
// Called from ClientHandler::OnAfterCreated().
125125
_ASSERT(!cefBrowser_.get());
126-
if (cefBrowser_) {
126+
if (cefBrowser_.get()) {
127127
LOG_ERROR << "BrowserWindow::SetCefBrowser() called, "
128128
<< "but it is already set";
129129
return;
130130
}
131131
cefBrowser_ = cefBrowser;
132-
browserHandle_ = cefBrowser->GetHost()->GetWindowHandle();
133132
fullscreen_.reset(new Fullscreen(cefBrowser));
134133
json_value* appSettings = GetApplicationSettings();
135134
if (!IsPopup()) {
@@ -215,7 +214,11 @@ void BrowserWindow::OnGetMinMaxInfo(UINT uMsg, WPARAM wParam, LPARAM lParam) {
215214
}
216215
}
217216
void BrowserWindow::OnSize() {
218-
if (browserHandle_) {
217+
if (cefBrowser_.get()) {
218+
HWND browserHandle_ = cefBrowser_->GetHost()->GetWindowHandle();
219+
if (!browserHandle_) {
220+
return;
221+
}
219222
RECT rect;
220223
GetClientRect(windowHandle_, &rect);
221224
HDWP hdwp = BeginDeferWindowPos(2);

phpdesktop-chrome47/cef/browser_window.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ int CountBrowserWindows();
2222
class BrowserWindow {
2323
private:
2424
HWND windowHandle_;
25-
HWND browserHandle_;
2625
bool isPopup_;
2726
CefRefPtr<CefBrowser> cefBrowser_; // may be empty, always check using .get()
2827
std::tr1::shared_ptr<Fullscreen> fullscreen_; // may be empty

phpdesktop-chrome47/resource.rc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ IDR_MAINWINDOW ICON "icon.ico"
4747
//
4848

4949
VS_VERSION_INFO VERSIONINFO
50-
FILEVERSION 47,3,0,0
51-
PRODUCTVERSION 47,3,0,0
50+
FILEVERSION 47,4,0,0
51+
PRODUCTVERSION 47,4,0,0
5252
FILEFLAGSMASK 0x3fL
5353
#ifdef _DEBUG
5454
FILEFLAGS 0x1L
@@ -65,12 +65,12 @@ BEGIN
6565
BEGIN
6666
VALUE "CompanyName", "PHP Desktop"
6767
VALUE "FileDescription", "PHP Desktop Chrome"
68-
VALUE "FileVersion", "47.3.0.0"
68+
VALUE "FileVersion", "47.4.0.0"
6969
VALUE "InternalName", "phpdesktop"
7070
VALUE "LegalCopyright", "(c) Czarek Tomczak 2012"
7171
VALUE "OriginalFilename", "phpdesktop-chrome.exe"
7272
VALUE "ProductName", "PHP Desktop Chrome"
73-
VALUE "ProductVersion", "47.3.0.0"
73+
VALUE "ProductVersion", "47.4.0.0"
7474
END
7575
END
7676
BLOCK "VarFileInfo"

0 commit comments

Comments
 (0)