git-svn-id: trunk@34321 -
This commit is contained in:
sekelsenmat 2011-12-20 10:49:05 +00:00
parent 1f545e968d
commit bf64f7b1f8

View File

@ -432,7 +432,10 @@ var
res : Integer;
begin
{$ifdef WinCE}
raise Exception.Create('[GetCurrentDirWide] The concept of the current directory doesn''t exist in Windows CE');
Result := '\';
// Previously we sent an exception here, which is correct, but this causes
// trouble with code which isnt tested for WinCE, so lets just send a dummy result instead
// Exception.Create('[GetCurrentDirWide] The concept of the current directory doesn''t exist in Windows CE');
{$else}
res:=GetCurrentDirectoryW(0, nil);
SetLength(w, res);