mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 20:50:41 +00:00
[GDI32_APITEST] Fix AddFontResource test (#1901)
This commit uses GetCurrentDirectoryA rather than GetWindowsDirectoryA for convenience.
This commit is contained in:
parent
a9411fb658
commit
a4ca5f05d1
1 changed files with 7 additions and 7 deletions
|
@ -16,13 +16,13 @@ void Test_AddFontResourceA()
|
|||
CHAR szFileNameFont2A[MAX_PATH];
|
||||
int result;
|
||||
|
||||
GetWindowsDirectoryA(szFileNameA,MAX_PATH);
|
||||
GetCurrentDirectoryA(MAX_PATH, szFileNameA);
|
||||
|
||||
memcpy(szFileNameFont1A,szFileNameA,MAX_PATH );
|
||||
strcat(szFileNameFont1A, "\\bin\\testdata\\test.ttf");
|
||||
memcpy(szFileNameFont1A, szFileNameA, MAX_PATH );
|
||||
strcat(szFileNameFont1A, "\\testdata\\test.ttf");
|
||||
|
||||
memcpy(szFileNameFont2A,szFileNameA,MAX_PATH );
|
||||
strcat(szFileNameFont2A, "\\bin\\testdata\\test.otf");
|
||||
memcpy(szFileNameFont2A, szFileNameA, MAX_PATH );
|
||||
strcat(szFileNameFont2A, "\\testdata\\test.otf");
|
||||
|
||||
RtlZeroMemory(szFileNameA, sizeof(szFileNameA));
|
||||
|
||||
|
@ -89,10 +89,10 @@ void Test_AddFontResourceA()
|
|||
|
||||
GetCurrentDirectoryA(MAX_PATH, szFileNameA);
|
||||
strcpy(szFileNameFont1A, szFileNameA);
|
||||
strcat(szFileNameFont1A, "\\bin\\testdata\\test.pfm");
|
||||
strcat(szFileNameFont1A, "\\testdata\\test.pfm");
|
||||
|
||||
strcpy(szFileNameFont2A, szFileNameA);
|
||||
strcat(szFileNameFont2A, "\\bin\\testdata\\test.pfb");
|
||||
strcat(szFileNameFont2A, "\\testdata\\test.pfb");
|
||||
|
||||
SetLastError(ERROR_SUCCESS);
|
||||
|
||||
|
|
Loading…
Reference in a new issue