Ok, this time with the test program attached ;-)
Stefan ---------- Forwarded Message ---------- Subject: testers needed with win 9x/me Date: Wednesday 02 July 2003 21:33 From: Stefan Leichter <[EMAIL PROTECTED]> To: Wine Devel <[EMAIL PROTECTED]> Hello, before i convert the function QueryDosDevice from ascii to unicode i did some testings on my NT box. The result returned of the test are much different from what the current implementation returned. Therefore i am okking for some testers which are building the attached program on their computer and returning the output to me. Thanks Stefan -------------------------------------------------------
#include <stdio.h> #include <windows.h> char* strin[] = {NULL, "CON", "CON:", "COM1:", "COM1", "COM2", "COM3", "COM4", "COM5", "LPT1:", "LPT1", "LPT2", "LPT3", "LPT4", "NUL", "NUL:"}; int main() { int i, j; char buf[4000]; DWORD res, used; for (i=0; i<(sizeof(strin)/sizeof(char*)); i++) { res = QueryDosDeviceA( strin[i], buf, sizeof(buf)/sizeof(char)); printf( "%5s -> res %4ld,err %2ld,", strin[i] ? strin[i] : "NULL", res, GetLastError()); for(j = used = 0; used < res; j++) { printf(" %s", buf+used); used += strlen(buf+used) + 1; } printf("\n"); } res = QueryDosDeviceA( NULL, NULL, 0); printf("NULL, NULL, 0, -> %ld, %ld\n", res, GetLastError()); res = QueryDosDeviceA( "SHIT", NULL, 0); printf("SHIT, NULL, 0, -> %ld, %ld\n", res, GetLastError()); // #ifdef SIGSEGV res = QueryDosDeviceA( "LPT1", NULL, 10); printf("LPT1, NULL, 10, -> %ld, %ld\n", res, GetLastError()); // #endif return 0; }