[ros-bugs] [Bug 1146] createfilew() path wrong
ReactOS.Bugzilla at reactos.org
ReactOS.Bugzilla at reactos.org
Sun Dec 18 05:11:58 CET 2005
http://www.reactos.org/bugzilla/show_bug.cgi?id=1146
------- Additional Comments From royce3 at ev1.net 2005-12-18 05:11 CET -------
The following demonstrates that the problem is in the "current directory" of an
application started from the root directory within explorer ( this bug does not
manifest when app is launched via cmd ):
#include <string>
#include <windows.h>
#include <direct.h>
#include <stdio.h>
using std::string;
int main()
{
char buf[256];
string s;
_getcwd(buf,sizeof(buf));
buf[sizeof(buf)-1] = 0;
s = "getcwd() = '";
s += buf;
s += "'\n";
::GetCurrentDirectory ( sizeof(buf), buf );
buf[sizeof(buf)-1] = 0;
s += "GetCurrentDirectory() = '";
s += buf;
s += "'\n";
::MessageBox ( NULL, s.c_str(), "current directory", MB_OK );
return 0;
}
--
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Ros-bugs
mailing list