Index: /trunk/src/VBox/Runtime/r3/win/dir-win.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/win/dir-win.cpp	(revision 20102)
+++ /trunk/src/VBox/Runtime/r3/win/dir-win.cpp	(revision 20103)
@@ -131,4 +131,6 @@
 RTDECL(int) RTDirCreateTemp(char *pszTemplate)
 {
+    /** @todo r=bird: this doesn't work for more than 26 calls and it's racy:
+     *        http://msdn.microsoft.com/en-us/library/34wc6k1f(VS.80).aspx */
     if (_mktemp(pszTemplate))
     {
@@ -136,5 +138,5 @@
         return rc;
     }
-    return RTErrConvertFromWin32(GetLastError());
+    return RTErrConvertFromErrno(errno);
 }
 
