Paul Vriens : transl: Fix DIALOGEX parsing.
Alexandre Julliard
julliard at winehq.org
Wed Jun 24 09:39:20 CDT 2009
Module: tools
Branch: master
Commit: d847d39f7c6152072364e96f4802a5f027722818
URL: http://source.winehq.org/git/tools.git/?a=commit;h=d847d39f7c6152072364e96f4802a5f027722818
Author: Paul Vriens <paul at acer.famvriens.nl>
Date: Wed Jun 24 14:17:33 2009 +0200
transl: Fix DIALOGEX parsing.
---
transl/php/lib_res.php | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/transl/php/lib_res.php b/transl/php/lib_res.php
index 0f963ed..ff877b0 100644
--- a/transl/php/lib_res.php
+++ b/transl/php/lib_res.php
@@ -638,16 +638,19 @@ class DialogResource extends Resource
$this->Resource($header);
$this->items = array();
- $signature = get_dword($data);
- $this->extended = ($signature == 0xffff0001);
+ $temp = substr($data, 0, 4);
+ $signature = get_word($temp);
+ $dlgver = get_word($temp);
+ $this->extended = ($signature == 1 && $dlgver == 0xffff);
if ($this->extended) /* DIALOGEX resource*/
{
+ $dummy = get_dword($data);
$this->dwHelpId = get_dword($data);
$this->exStyle = get_dword($data);
$this->style = get_dword($data);
} else /* DIALOG resource*/
{
- $this->style = $signature;
+ $this->style = get_dword($data);
$this->exStyle = get_dword($data);
$this->dwHelpId = 0;
}
More information about the wine-cvs
mailing list