GetShortPathName broken

Stefan Leichter Stefan.Leichter at
Sat Jan 17 05:11:59 CST 2004


The function GetShortPathName is broken in current cvs. This short program 
exhibits the problem:
#include <stdio.h>
#include <windows.h>
#include <version.h>

int main(int argc,char **argv[])
{ char	buffer[0x104] ="";
  DWORD retval;
  retval = GetShortPathName("C:\\Program Files", buffer, sizeof(buffer));
  printf("%08x, %08x, %s\n", retval, GetLastError(), buffer );

On win2k and wine "2004-01-14 CST" i get 
 0000000b as retval and 00000000 from GetLastError() starting with wine 
"2004-01-14 18:21:00 CST" up to current cvs i get 00000000  for retavl and 
00000002 from GetLastError().

So for my understanding the patch 
broke the function.

Bye Stefan

More information about the wine-devel mailing list