亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? path.c

?? Wine-20031016
?? C
字號:
/* * Unit test suite for ntdll path functions * * Copyright 2002 Alexandre Julliard * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */#include <stdarg.h>#include "wine/test.h"#include "ntstatus.h"#include "windef.h"#include "winbase.h"#include "winnt.h"#include "winreg.h"#include "winternl.h"static NTSTATUS (WINAPI *pRtlMultiByteToUnicodeN)( LPWSTR dst, DWORD dstlen, LPDWORD reslen,                                                   LPCSTR src, DWORD srclen );static UINT (WINAPI *pRtlDetermineDosPathNameType_U)( PCWSTR path );static ULONG (WINAPI *pRtlIsDosDeviceName_U)( PCWSTR dos_name );static NTSTATUS (WINAPI *pRtlOemStringToUnicodeString)(UNICODE_STRING *, const STRING *, BOOLEAN );static BOOLEAN (WINAPI *pRtlIsNameLegalDOS8Dot3)(const UNICODE_STRING*,POEM_STRING,PBOOLEAN);static void test_RtlDetermineDosPathNameType(void){    struct test    {        const char *path;        int ret;    };    static const struct test tests[] =    {        { "\\\\foo", 1 },        { "//foo", 1 },        { "\\/foo", 1 },        { "/\\foo", 1 },        { "\\\\", 1 },        { "//", 1 },        { "c:\\foo", 2 },        { "c:/foo", 2 },        { "c://foo", 2 },        { "c:\\", 2 },        { "c:/", 2 },        { "c:foo", 3 },        { "c:f\\oo", 3 },        { "c:foo/bar", 3 },        { "\\foo", 4 },        { "/foo", 4 },        { "\\", 4 },        { "/", 4 },        { "foo", 5 },        { "", 5 },        { "\0:foo", 5 },        { "\\\\.\\foo", 6 },        { "//./foo", 6 },        { "/\\./foo", 6 },        { "\\\\.foo", 1 },        { "//.foo", 1 },        { "\\\\.", 7 },        { "//.", 7 },        { NULL, 0 }    };    const struct test *test;    WCHAR buffer[MAX_PATH];    UINT ret;    for (test = tests; test->path; test++)    {        pRtlMultiByteToUnicodeN( buffer, sizeof(buffer), NULL, test->path, strlen(test->path)+1 );        ret = pRtlDetermineDosPathNameType_U( buffer );        ok( ret == test->ret, "Wrong result %d/%d for %s", ret, test->ret, test->path );    }}static void test_RtlIsDosDeviceName(void){    struct test    {        const char *path;        WORD pos;        WORD len;    };    static const struct test tests[] =    {        { "\\\\.\\CON",    8, 6 },        { "\\\\.\\con",    8, 6 },        { "\\\\.\\CON2",   0, 0 },        { "",              0, 0 },        { "\\\\foo\\nul",  0, 0 },        { "c:\\nul:",      6, 6 },        { "c:\\nul::",     0, 0 },        { "c:prn     ",    4, 6 },        { "c:prn.......",  4, 6 },        { "c:prn... ...",  4, 6 },        { "c:NUL  ....  ", 0, 0 },        { "c: . . .",      0, 0 },        { "c:",            0, 0 },        { " . . . :",      0, 0 },        { ":",             0, 0 },        { "c:nul. . . :",  4, 6 },        { "c:nul . . :",   0, 0 },        { "c:nul0",        0, 0 },        { "c:prn:aaa",     0, 0 },        { "c:PRN:.txt",    4, 6 },        { "c:aux:.txt...", 4, 6 },        { "c:prn:.txt:",   4, 6 },        { "c:nul:aaa",     0, 0 },        { "con:",          0, 6 },        { "lpt1:",         0, 8 },        { "c:com5:",       4, 8 },        { "CoM4:",         0, 8 },        { "lpt9:",         0, 8 },        { "c:\\lpt0.txt",  0, 0 },        { "c:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"          "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"          "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"          "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"          "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"          "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"          "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa\\nul.txt", 1000, 6 },        { NULL, 0 }    };    const struct test *test;    WCHAR buffer[2000];    ULONG ret;    for (test = tests; test->path; test++)    {        pRtlMultiByteToUnicodeN( buffer, sizeof(buffer), NULL, test->path, strlen(test->path)+1 );        ret = pRtlIsDosDeviceName_U( buffer );        ok( ret == MAKELONG( test->len, test->pos ),            "Wrong result (%d,%d)/(%d,%d) for %s",            HIWORD(ret), LOWORD(ret), test->pos, test->len, test->path );    }}static void test_RtlIsNameLegalDOS8Dot3(void){    struct test    {        const char *path;        BOOLEAN result;        BOOLEAN spaces;    };    static const struct test tests[] =    {        { "12345678",     TRUE,  FALSE },        { "123 5678",     TRUE,  TRUE  },        { "12345678.",    FALSE, 2 /*not set*/ },        { "1234 678.",    FALSE, 2 /*not set*/ },        { "12345678.a",   TRUE,  FALSE },        { "12345678.a ",  FALSE, 2 /*not set*/ },        { "12345678.a c", TRUE,  TRUE  },        { " 2345678.a ",  FALSE, 2 /*not set*/ },        { "1 345678.abc", TRUE,  TRUE },        { "1      8.a c", TRUE,  TRUE },        { "1 3 5 7 .abc", FALSE, 2 /*not set*/ },        { "12345678.  c", TRUE,  TRUE },        { "123456789.a",  FALSE, 2 /*not set*/ },        { "12345.abcd",   FALSE, 2 /*not set*/ },        { "12345.ab d",   FALSE, 2 /*not set*/ },        { ".abc",         FALSE, 2 /*not set*/ },        { "12.abc.d",     FALSE, 2 /*not set*/ },        { ".",            TRUE,  FALSE },        { "..",           TRUE,  FALSE },        { "...",          FALSE, 2 /*not set*/ },        { "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", FALSE, 2 /*not set*/ },        { NULL, 0 }    };    const struct test *test;    UNICODE_STRING ustr;    OEM_STRING oem, oem_ret;    WCHAR buffer[200];    char buff2[12];    BOOLEAN ret, spaces;    ustr.MaximumLength = sizeof(buffer);    ustr.Buffer = buffer;    for (test = tests; test->path; test++)    {        char path[100];        strcpy(path, test->path);        oem.Buffer = path;        oem.Length = strlen(test->path);        oem.MaximumLength = oem.Length + 1;        pRtlOemStringToUnicodeString( &ustr, &oem, FALSE );        spaces = 2;        oem_ret.Length = oem_ret.MaximumLength = sizeof(buff2);        oem_ret.Buffer = buff2;        ret = pRtlIsNameLegalDOS8Dot3( &ustr, &oem_ret, &spaces );        ok( ret == test->result, "Wrong result %d/%d for '%s'", ret, test->result, test->path );        ok( spaces == test->spaces, "Wrong spaces value %d/%d for '%s'", spaces, test->spaces, test->path );        if (strlen(test->path) <= 12)        {            char str[13];            int i;            strcpy( str, test->path );            for (i = 0; str[i]; i++) str[i] = toupper(str[i]);            ok( oem_ret.Length == strlen(test->path), "Wrong length %d/%d for '%s'",                oem_ret.Length, strlen(test->path), test->path );            ok( !memcmp( oem_ret.Buffer, str, oem_ret.Length ),                "Wrong string '%.*s'/'%s'", oem_ret.Length, oem_ret.Buffer, str );        }    }}START_TEST(path){    HMODULE mod = GetModuleHandleA("ntdll.dll");    pRtlMultiByteToUnicodeN = (void *)GetProcAddress(mod,"RtlMultiByteToUnicodeN");    pRtlDetermineDosPathNameType_U = (void *)GetProcAddress(mod,"RtlDetermineDosPathNameType_U");    pRtlIsDosDeviceName_U = (void *)GetProcAddress(mod,"RtlIsDosDeviceName_U");    pRtlOemStringToUnicodeString = (void *)GetProcAddress(mod,"RtlOemStringToUnicodeString");    pRtlIsNameLegalDOS8Dot3 = (void *)GetProcAddress(mod,"RtlIsNameLegalDOS8Dot3");    test_RtlDetermineDosPathNameType();    test_RtlIsDosDeviceName();    test_RtlIsNameLegalDOS8Dot3();}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲高清久久久| 久久99精品网久久| 91亚洲国产成人精品一区二三| 精品久久久久久久久久久久久久久| 日本不卡在线视频| 精品久久久久久久一区二区蜜臀| 久久99国产乱子伦精品免费| 精品欧美一区二区在线观看| 国内精品在线播放| 国产精品久久久久久久久免费丝袜 | 91丝袜呻吟高潮美腿白嫩在线观看| 国产欧美日韩亚州综合| 99在线精品一区二区三区| 亚洲人成网站在线| 欧美日韩免费一区二区三区视频| 午夜精品一区在线观看| 欧美成人精品福利| 成人app在线| 亚洲精品免费在线观看| 欧美精品乱码久久久久久按摩| 美女视频黄a大片欧美| 欧美激情中文字幕| 欧美午夜精品久久久| 美女网站一区二区| 中文字幕在线视频一区| 欧美色中文字幕| 国产麻豆精品一区二区| 亚洲婷婷综合久久一本伊一区| 欧美日韩精品一区二区天天拍小说| 欧美aaaaa成人免费观看视频| 欧美国产欧美综合| 欧美日韩精品高清| 国产成人免费xxxxxxxx| 六月婷婷色综合| 欧美三级三级三级爽爽爽| 久久99精品久久久久久动态图| 国产欧美精品区一区二区三区| 91免费版pro下载短视频| 蜜桃在线一区二区三区| 国产精品久久久久久久久免费桃花 | 黑人精品欧美一区二区蜜桃| 一二三区精品视频| 欧美不卡123| 91成人免费网站| 国产成人午夜精品影院观看视频 | 在线免费观看成人短视频| 成人性生交大合| 天天射综合影视| 自拍偷拍国产亚洲| 精品日韩欧美一区二区| 在线观看日韩高清av| 国产成人免费视频精品含羞草妖精| 婷婷综合在线观看| 一区二区三区资源| 国产精品久久久久影视| 亚洲精品一区二区三区福利| 欧美日韩精品欧美日韩精品一 | 972aa.com艺术欧美| 激情丁香综合五月| 男女男精品视频网| 亚洲国产成人91porn| 亚洲免费观看在线视频| 国产精品三级电影| 欧美韩国日本不卡| 久久先锋影音av鲁色资源| 日韩一级高清毛片| 6080yy午夜一二三区久久| 在线观看亚洲精品视频| 在线亚洲精品福利网址导航| 91看片淫黄大片一级在线观看| 蜜臀av性久久久久蜜臀aⅴ四虎 | 一区二区三区小说| 国产精品久久久久久久久搜平片| 精品国产乱子伦一区| 51精品国自产在线| 欧美高清视频www夜色资源网| 欧美午夜精品一区| 精品视频在线免费观看| 欧美日韩精品久久久| 欧美午夜理伦三级在线观看| 欧美视频一区二区三区在线观看| 色偷偷久久一区二区三区| 91蝌蚪porny九色| 日本久久精品电影| 精品久久久久久久久久久院品网 | 亚洲成人av电影在线| 国产精品福利电影一区二区三区四区| 久久精品夜色噜噜亚洲a∨| 久久先锋影音av| 中文字幕乱码亚洲精品一区| 中文字幕精品综合| 亚洲免费视频成人| 亚洲电影一级黄| 青青草国产成人av片免费 | 久久精品国产99国产| 久久精品国产一区二区三区免费看| 蜜臀a∨国产成人精品| 国产精华液一区二区三区| 成人网在线免费视频| 在线免费精品视频| 在线不卡中文字幕| 久久久国际精品| 日韩毛片视频在线看| 丝袜美腿亚洲一区二区图片| 黑人精品欧美一区二区蜜桃| a美女胸又www黄视频久久| 欧洲精品一区二区| 精品国产1区二区| 国产精品久久综合| 午夜精品福利一区二区三区av| 黄色成人免费在线| 色综合天天综合网国产成人综合天 | 99久久久久久| 欧美精品日韩一区| 中文字幕国产一区二区| 成人97人人超碰人人99| 亚洲国产成人精品视频| 青青草一区二区三区| 国产精品一区二区久久精品爱涩| 不卡一区在线观看| 日韩一区二区三区电影在线观看| 国产亚洲成aⅴ人片在线观看| 一区二区免费视频| 国产一区二区调教| 91久久国产最好的精华液| 精品日韩成人av| 一区二区三区日韩欧美精品 | 伊人色综合久久天天人手人婷| 天天综合网 天天综合色| 国产成人综合亚洲91猫咪| 欧美视频中文一区二区三区在线观看| 欧美成人激情免费网| 亚洲永久精品大片| 国产成人免费视频一区| 91精品国产免费| 一区二区在线免费| 国产成人精品aa毛片| 日韩亚洲欧美中文三级| 亚洲欧洲韩国日本视频| 国产一区二区在线观看免费| 欧美日韩视频一区二区| 自拍视频在线观看一区二区| 国产一区欧美日韩| 91精品午夜视频| 亚洲自拍偷拍欧美| 91在线视频免费观看| 2欧美一区二区三区在线观看视频| 亚洲午夜三级在线| 色狠狠色狠狠综合| 亚洲国产成人自拍| 国产美女视频一区| 日韩欧美不卡在线观看视频| 亚洲综合色网站| 日韩精品1区2区3区| 色综合咪咪久久| 久久久久久久久久久黄色| 丝瓜av网站精品一区二区| 91久久免费观看| 亚洲精品免费在线播放| av电影一区二区| 国产精品你懂的| 成人美女视频在线观看18| 国产亚洲制服色| 国产成人精品三级麻豆| 久久久久久电影| 国产福利一区二区| 国产日产精品1区| 成人午夜av电影| 成人免费在线观看入口| www.在线欧美| 亚洲日本成人在线观看| 91麻豆国产自产在线观看| 亚洲人123区| 欧美午夜免费电影| 热久久国产精品| 欧美大片日本大片免费观看| 日本不卡视频在线| 精品国产免费人成电影在线观看四季 | 日本久久一区二区| 亚洲国产综合色| 欧美日韩精品一二三区| 午夜成人免费视频| 日韩小视频在线观看专区| 久久99九九99精品| 国产欧美va欧美不卡在线| 99久久精品费精品国产一区二区| 日韩码欧中文字| 91超碰这里只有精品国产| 麻豆成人久久精品二区三区红| 久久伊人中文字幕| www.66久久| 亚洲超碰精品一区二区| 亚洲精品在线免费观看视频| 亚洲高清三级视频| 日韩午夜中文字幕| 国产v综合v亚洲欧| 亚洲在线中文字幕| 日韩精品一区国产麻豆| 成人国产免费视频| 亚洲成av人片在线|