about summary refs log tree commit diff
path: root/src/rt/rust.cpp
diff options
context:
space:
mode:
authorEric Holk <eholk@mozilla.com>2011-06-28 11:34:20 -0700
committerGraydon Hoare <graydon@mozilla.com>2011-06-28 16:12:33 -0700
commit02f6645fca946fd7cb9f55036c05a908f0567ceb (patch)
tree88d71ff1fd10f3f8312f2c8a1041d7eeaf0251e4 /src/rt/rust.cpp
parent2f84987a48c3625670cd62321f0e3dcb5c0e8768 (diff)
downloadrust-02f6645fca946fd7cb9f55036c05a908f0567ceb.tar.gz
rust-02f6645fca946fd7cb9f55036c05a908f0567ceb.zip
Moved win32_require to the kernel.
Diffstat (limited to 'src/rt/rust.cpp')
-rw-r--r--src/rt/rust.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rt/rust.cpp b/src/rt/rust.cpp
index 19f114d29a9..c2a56d993d8 100644
--- a/src/rt/rust.cpp
+++ b/src/rt/rust.cpp
@@ -23,16 +23,16 @@ command_line_args : public kernel_owned<command_line_args>
 #if defined(__WIN32__)
         LPCWSTR cmdline = GetCommandLineW();
         LPWSTR *wargv = CommandLineToArgvW(cmdline, &argc);
-        task->dom->win32_require("CommandLineToArgvW", wargv != NULL);
+        kernel->win32_require("CommandLineToArgvW", wargv != NULL);
         argv = (char **) kernel->malloc(sizeof(char*) * argc);
         for (int i = 0; i < argc; ++i) {
             int n_chars = WideCharToMultiByte(CP_UTF8, 0, wargv[i], -1,
                                               NULL, 0, NULL, NULL);
-            task->dom->win32_require("WideCharToMultiByte(0)", n_chars != 0);
+            kernel->win32_require("WideCharToMultiByte(0)", n_chars != 0);
             argv[i] = (char *) kernel->malloc(n_chars);
             n_chars = WideCharToMultiByte(CP_UTF8, 0, wargv[i], -1,
                                           argv[i], n_chars, NULL, NULL);
-            task->dom->win32_require("WideCharToMultiByte(1)", n_chars != 0);
+            kernel->win32_require("WideCharToMultiByte(1)", n_chars != 0);
         }
         LocalFree(wargv);
 #endif