[Project64] Remove usage of windows.h from md5.cpp

This commit is contained in:
zilmar 2016-01-13 06:12:31 +11:00
parent b420078089
commit 0939d70ef3
3 changed files with 4 additions and 8 deletions

View File

@ -63,8 +63,8 @@ CMemList::~CMemList()
size_t ItemsLeft = MemList.size();
if (ItemsLeft > 0)
{
TCHAR path_buffer[_MAX_PATH], drive[_MAX_DRIVE], dir[_MAX_DIR];
TCHAR fname[_MAX_FNAME], ext[_MAX_EXT], LogFileName[_MAX_PATH];
char path_buffer[_MAX_PATH], drive[_MAX_DRIVE], dir[_MAX_DIR];
char fname[_MAX_FNAME], ext[_MAX_EXT], LogFileName[_MAX_PATH];
memset(path_buffer, 0, sizeof(path_buffer));
memset(drive, 0, sizeof(drive));
@ -94,7 +94,7 @@ CMemList::~CMemList()
{
if (GetLastError() == ERROR_SHARING_VIOLATION)
{
char Msg[3000];
TCHAR Msg[3000];
sprintf(Msg, "%s\nCan not be opened for writing please close app using this file\n\nTry Again ?", LogFileName);
int Result = MessageBox(NULL, Msg, "Memory Leak", MB_YESNO | MB_ICONQUESTION | MB_SETFOREGROUND | MB_SERVICE_NOTIFICATION);
if (Result == IDNO)

View File

@ -40,7 +40,6 @@
*/
#include "stdafx.h"
#include <windows.h>
// MD5 simple initialization method
MD5::MD5()
@ -168,7 +167,7 @@ MD5::MD5(CPath File)
init(); // must be called be all constructors
if (File.Exists())
{
FILE * fp = fopen((LPCTSTR)File, "rb");
FILE * fp = fopen((const char *)File, "rb");
if (fp)
{
update(fp);

View File

@ -43,9 +43,6 @@ documentation and/or software.
#include <string>
#include <functional>
#include <stdio.h>
#include <string.h>
#include "path.h"
struct MD5Digest