summaryrefslogtreecommitdiff
path: root/ext/win32ole/win32ole.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/win32ole/win32ole.c')
-rw-r--r--ext/win32ole/win32ole.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c
index 2addfc9f3d..686daf67de 100644
--- a/ext/win32ole/win32ole.c
+++ b/ext/win32ole/win32ole.c
@@ -1196,7 +1196,7 @@ ole_raise(HRESULT hr, VALUE ecs, const char *fmt, ...)
rb_str_cat2(msg, "\n");
rb_str_append(msg, err_msg);
}
- rb_exc_raise(rb_exc_new_str(ecs, msg));
+ rb_exc_raise(rb_exc_new3(ecs, msg));
}
void