summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorsuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-10 00:05:42 +0000
committersuke <suke@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-10 00:05:42 +0000
commitffddf9349fc0810ba4f796c487a4e7d4c6622b94 (patch)
tree1a7c22a5d2c9492338adcb747289c54e16b9fed8 /ext
parentc8359821a0a4aa50d2bfb9044e2516574002b6f6 (diff)
* ext/win32ole/win32ole.c (ole_variant2val): fix compile error
on VC++. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11687 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r--ext/win32ole/win32ole.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c
index f9064aa..950ff21 100644
--- a/ext/win32ole/win32ole.c
+++ b/ext/win32ole/win32ole.c
@@ -921,12 +921,13 @@ ole_variant2val(pvar)
VARIANT variant;
VALUE val;
VALUE val2;
+ int dim = 0;
if (!psa) {
return obj;
}
+ dim = SafeArrayGetDim(psa);
- int dim = SafeArrayGetDim(psa);
VariantInit(&variant);
V_VT(&variant) = (V_VT(pvar) & ~VT_ARRAY) | VT_BYREF;