Advertisement
Guest User

Untitled

a guest
Apr 14th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.51 KB | None | 0 0
  1. diff --git a/dlls/kernel32/path.c b/dlls/kernel32/path.c
  2. index 1cfd850..2067cad 100644
  3. --- a/dlls/kernel32/path.c
  4. +++ b/dlls/kernel32/path.c
  5. @@ -1535,6 +1535,13 @@ BOOL WINAPI SetCurrentDirectoryW( LPCWSTR dir )
  6.  {
  7.      UNICODE_STRING dirW;
  8.      NTSTATUS status;
  9. +    
  10. +    WCHAR *p = (WCHAR *)dir;
  11. +    while (*p) p++;
  12. +    if (*--p == '.') {
  13. +      *p = '\0';
  14. +      FIXME("%s . fixed\n", debugstr_w(dir));
  15. +    }
  16.  
  17.      RtlInitUnicodeString( &dirW, dir );
  18.      status = RtlSetCurrentDirectory_U( &dirW );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement